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 # DIV for integer division: 
query I rowsort label-0
SELECT 75 DIV - 30 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-0
SELECT 75 / - 30 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT DISTINCT col0 AS col2, col2 + + 54 AS col1 FROM tab2 cor0
----
46
77
64
94
75
112

query I rowsort
SELECT col1 * col1 * - col0 * - col1 FROM tab1 AS cor0
----
10625
139944
9447893

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

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

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

query I rowsort
SELECT DISTINCT ( + 95 ) FROM tab1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col0, 6 col1 FROM tab2
----
2346
6
4928
6
5025
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT COUNT( * ) * + 52 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-8
SELECT COUNT ( * ) * + 52 FROM tab1
----
156

query I rowsort
SELECT col1 * + 74 AS col0 FROM tab2
----
3774
4958
5698

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

query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
17
23
24

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 12
----

query I rowsort
SELECT - col2 * + - col0 * col0 + + 58 FROM tab1 AS cor0
----
249754
426333
563166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-15
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col2 >= - + CAST( NULL AS SIGNED ) * + 78
----

skipif mysql # not compatible
query III rowsort label-15
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col2 >= - + CAST ( NULL AS INTEGER ) * + 78
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 33 + - col2 FROM tab1 AS cor0
----
-101
-129
-92

query I rowsort
SELECT ALL + col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL + + COUNT( * ) + COUNT( * ) * COUNT( * ) + COUNT( * ) + + 67 AS col0 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) + + 67 AS col0 FROM tab0 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 - - col2 col1 FROM tab2 AS cor0
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT + 25 + + SUM( ALL - 93 ) + MIN( - - 25 ) AS col0 FROM tab2 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + 25 + + SUM ( ALL - 93 ) + MIN ( - - 25 ) AS col0 FROM tab2 AS cor0
----
-229

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 * - - col2 * + - col1 >= - - col0 - 94
----

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

query I rowsort
SELECT ALL 66 - + 77 - + - col1 AS col0 FROM tab1
----
-6
3
36

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT COUNT( * ), - COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-27
SELECT COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT - MAX( - - col1 ) AS col2 FROM tab0 WHERE + - 57 <> - col1
----
-81

skipif mysql # not compatible
query I rowsort label-28
SELECT - MAX ( - - col1 ) AS col2 FROM tab0 WHERE + - 57 <> - col1
----
-81

query I rowsort
SELECT + col1 * + - 42 FROM tab0 AS cor0
----
-3402
-42
-882

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

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

query I rowsort
SELECT ALL 2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - + col1 - + ( 90 ) * col0
----

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

query I rowsort
SELECT ALL + + ( + 35 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - - col0 * - + col1 * - col0 NOT BETWEEN col1 AND + col0 / 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT DISTINCT + - col0 + - col2 + + - col1 DIV + - col0 FROM tab2 cor0
----
-103
-133
-68

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + - col0 + - col2 + + - col1 / + - col0 FROM tab2 cor0
----
-103
-133
-68

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-38
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - CAST( + - 22 AS SIGNED )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-38
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - CAST ( + - 22 AS INTEGER )
----
23
40
58

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

query I rowsort
SELECT ALL col0 * - 53 FROM tab0
----
-4611
-5141
-795

query I rowsort
SELECT - col1 * 71 AS col0 FROM tab0
----
-1491
-5751
-71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-43
SELECT + 11 * + CAST( col1 AS SIGNED ) * - ( + 11 ) FROM tab1
----
-1694
-5687
-605

skipif mysql # not compatible
query I rowsort label-43
SELECT + 11 * + CAST ( col1 AS INTEGER ) * - ( + 11 ) FROM tab1
----
-1694
-5687
-605

query II rowsort
SELECT DISTINCT col0, 13 AS col2 FROM tab1
----
51
13
85
13
91
13

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

skipif mysql # not compatible
query I rowsort label-45
SELECT 19 * + + 70 + COUNT ( * ) FROM tab1
----
1333

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE 75 BETWEEN - 92 AND 23
----

query II rowsort
SELECT DISTINCT + 33 AS col1, col0 + - 75 AS col0 FROM tab2
----
33
-11
33
-29
33
0

query I rowsort
SELECT DISTINCT AVG ( - col0 ) FROM tab1 cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT - CAST( - - col1 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-49
SELECT - CAST ( - - col1 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= + + col0
----
46
51
23
64
77
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT COUNT( * ) * - 51 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-52
SELECT COUNT ( * ) * - 51 FROM tab1
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT DISTINCT ( 59 ) + - - MIN( ALL 35 ) * COUNT( * ) FROM tab2 AS cor0
----
164

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT ( 59 ) + - - MIN ( ALL 35 ) * COUNT ( * ) FROM tab2 AS cor0
----
164

query I rowsort
SELECT - col2 + + 71 * + + col1 * - 95 * + col2 AS col2 FROM tab1 AS cor0
----
-1989834
-21557088
-9065376

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT - 65 DIV + - ( + col1 ) + + 47 col0 FROM tab2
----
47
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-59
SELECT DISTINCT - 65 / + - ( + col1 ) + + 47 col0 FROM tab2
----
47
48

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 65 col2 FROM tab0
----
-1365
-5265
-65

query I rowsort
SELECT DISTINCT + col1 * - + 72 * col1 AS col0 FROM tab0
----
-31752
-472392
-72

query I rowsort
SELECT ALL + col1 * + + col1 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL 49 * - MIN( - + 73 ) FROM tab2
----
3577

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL 49 * - MIN ( - + 73 ) FROM tab2
----
3577

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> + - ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-67
SELECT col1 AS col1, - col0 - - - 57 AS col2, + + CAST( NULL AS SIGNED ) * - - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 0fba1277b539d8c885c4dd230fb9d40a

skipif mysql # not compatible
query III rowsort label-67
SELECT col1 AS col1, - col0 - - - 57 AS col2, + + CAST ( NULL AS INTEGER ) * - - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 0fba1277b539d8c885c4dd230fb9d40a

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-69
SELECT - 32, + COUNT( * ) * + 89 AS col1 FROM tab0 AS cor0
----
-32
267

skipif mysql # not compatible
query II rowsort label-69
SELECT - 32, + COUNT ( * ) * + 89 AS col1 FROM tab0 AS cor0
----
-32
267

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

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

query I rowsort
SELECT ALL - col1 * - 31 * + col2 * + col1 FROM tab0
----
136710
3069
9559377

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < 35 * col2
----

query I rowsort
SELECT - 9 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - col0 + ( - 53 ) + 75 AS col2 FROM tab1 AS cor0
----
-29
-63
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT + MIN( ALL 52 ) FROM tab2, tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT + MIN ( ALL 52 ) FROM tab2, tab0 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-77
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + col0 * - - 98 / 92 + + + CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-77
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + col0 * - - 98 / 92 + + + CAST ( - - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT DISTINCT 9 DIV - SUM( DISTINCT - + 70 ) + + SUM( DISTINCT 45 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT 9 / - SUM ( DISTINCT - + 70 ) + + SUM ( DISTINCT 45 ) AS col0 FROM tab0
----
45

query I rowsort
SELECT 62 * - 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 5233bdb1e0a8bc81c8d72fa7b5e7c53b

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

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

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

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

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

query II rowsort
SELECT - col2 + + + 1 + - col2 * - + col1 AS col2, col2 AS col0 FROM tab2
----
1151
23
3041
40
3829
58

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL - + MIN( - 77 ) + + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
143

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL - + MIN ( - 77 ) + + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-85
SELECT col2 + ( CAST( - + 8 AS SIGNED ) ) FROM tab1
----
51
60
88

skipif mysql # not compatible
query I rowsort label-85
SELECT col2 + ( CAST ( - + 8 AS INTEGER ) ) FROM tab1
----
51
60
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 63 <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT ALL + + col2 DIV 25 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + + col2 / 25 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT + col1 * - 20 - - 95 * 97 * + col2 FROM tab0 AS cor0
----
431485
912265
91730

query I rowsort
SELECT + + 25 - col2 FROM tab2 AS cor0
----
-15
-33
2

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

skipif mysql # not compatible
query II rowsort label-91
SELECT col2 / col0 - + col1, - col1 AS col0 FROM tab0 AS cor0
----
-21
-21
-78
-81
0
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT col1 * - 46 * + + col0 * CAST( 38 AS SIGNED ) FROM tab2
----
-4100808
-8614144
-8783700

skipif mysql # not compatible
query I rowsort label-93
SELECT col1 * - 46 * + + col0 * CAST ( 38 AS INTEGER ) FROM tab2
----
-4100808
-8614144
-8783700

query I rowsort
SELECT ( 77 ) AS col1 FROM tab0
----
77
77
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 FROM tab1 AS cor0 WHERE NOT NULL <> - 68 + + col0
----

query I rowsort
SELECT ALL ( 5 ) AS col2 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT DISTINCT + ( - 5 ) * - COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + ( - 5 ) * - COUNT ( * ) FROM tab2 AS cor0
----
15

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

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

query I rowsort
SELECT 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT 28 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE 94 NOT IN ( 89 )
----
3

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE 94 NOT IN ( 89 )
----
3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col0 < - ( col0 ) / col2
----
-15
-87
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT col1 DIV col1 + - + col0 * - col1 FROM tab2
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-106
SELECT col1 / col1 + - + col0 * - col1 FROM tab2
----
2347
4929
5026

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-108
SELECT 33 + - CAST( NULL AS DECIMAL ) + 52 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT 33 + - CAST ( NULL AS REAL ) + 52 FROM tab0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT + 31 + + 7 FROM tab0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT COUNT( * ) + - 0 + + + 47 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-112
SELECT COUNT ( * ) + - 0 + + + 47 AS col1 FROM tab1
----
50

query II rowsort
SELECT col2 * + col1 * - + col0 + col2 AS col1, - 1 + col0 FROM tab1
----
-25016
84
-290768
90
-68448
50

query I rowsort
SELECT ALL 98 * - - col2 * - col1 AS col1 FROM tab2
----
-114954
-301840
-380828

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-115
SELECT DISTINCT + 63 col2, CAST( + col0 AS SIGNED ) + + 28 * - - col2 * + + col1 + - 18 FROM tab2 WHERE NOT NULL = + 45
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-115
SELECT DISTINCT + 63 col2, CAST ( + col0 AS INTEGER ) + + 28 * - - col2 * + + col1 + - 18 FROM tab2 WHERE NOT NULL = + 45
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-116
SELECT ALL 50 DIV - + COUNT( ALL - 49 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL 50 / - + COUNT ( ALL - 49 ) FROM tab2
----
-16

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

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

query I rowsort
SELECT DISTINCT + + col0 + - - 54 FROM tab1 cor0
----
105
139
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT - col0 * - CAST( NULL AS SIGNED ) - + 47 + + 37 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT - col0 * - CAST ( NULL AS INTEGER ) - + 47 + + 37 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT DISTINCT - 92 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT - 92 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
276

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT ALL - COUNT( - 81 ) AS col0, 84 FROM tab2 AS cor0
----
-3
84

skipif mysql # not compatible
query II rowsort label-124
SELECT ALL - COUNT ( - 81 ) AS col0, 84 FROM tab2 AS cor0
----
-3
84

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 79 col0 FROM tab1
----
-4661
-5372
-7584

query II rowsort
SELECT col1, - 24 AS col2 FROM tab1
----
14
-24
47
-24
5
-24

query I rowsort
SELECT DISTINCT - 87 * - col0 FROM tab2
----
4002
5568
6525

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

query I rowsort
SELECT DISTINCT 42 * - 48 FROM tab1
----
-2016

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

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

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

query I rowsort
SELECT + - 8 * + col2 FROM tab1 AS cor0
----
-472
-544
-768

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-135
SELECT COUNT( * ) + 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-135
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - ( 31 )
----

query I rowsort
SELECT 2 + - col2 * - col1 AS col0 FROM tab1
----
1346
297
3198

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE + 98 BETWEEN + 67 * + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT + CAST( NULL AS SIGNED ) * + 72 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT + CAST ( NULL AS INTEGER ) * + 72 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 + + col1 * + col1 AS col1 FROM tab0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT - COUNT( * ) * 41 FROM tab1 WHERE - col0 > + 23
----
0

skipif mysql # not compatible
query I rowsort label-142
SELECT - COUNT ( * ) * 41 FROM tab1 WHERE - col0 > + 23
----
0

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

query I rowsort
SELECT 62 * + 25 AS col2 FROM tab0
----
1550
1550
1550

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

query I rowsort
SELECT col2 + 87 FROM tab2
----
110
127
145

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

query I rowsort
SELECT + col0 + 41 AS col1 FROM tab2
----
105
116
87

query I rowsort
SELECT ALL + 89 * ( ( 71 ) ) AS col1 FROM tab2
----
6319
6319
6319

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

query I rowsort
SELECT ALL col2 * 62 AS col2 FROM tab1
----
3658
4216
5952

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

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0 WHERE NOT ( + col0 - ( + 91 ) ) IS NULL
----
60

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

query I rowsort
SELECT 29 FROM tab1 WHERE 41 + col1 NOT IN ( 41 * col2 )
----
29
29
29

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + col1 <> + 25
----

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

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

query I rowsort
SELECT + 50 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + ( COUNT( * ) ) + ( + 56 ) AS col1 FROM tab2 cor0
----
59

skipif mysql # not compatible
query I rowsort label-160
SELECT + ( COUNT ( * ) ) + ( + 56 ) AS col1 FROM tab2 cor0
----
59

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

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

query I rowsort
SELECT ALL + col0 - 36 AS col0 FROM tab2 AS cor0
----
10
28
39

query I rowsort
SELECT col0 * 66 + + 75 * + 87 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT DISTINCT 81 - + col1 DIV + col2 AS col0 FROM tab0
----
79
80
81

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT 81 - + col1 / + col2 AS col0 FROM tab0
----
79
80
81

query I rowsort
SELECT + 71 * 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 3408109de511330d0a1477fdf184c784

query I rowsort
SELECT DISTINCT 93 / - 16 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + col0 * 81 ) > + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-169
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + col0 * 81 ) > + CAST ( + col0 AS INTEGER )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 74 ) col1 FROM tab2 AS cor0
----
-74
-74
-74

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col1 * col1 - - 65
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 * col2 + 86 * 17 AND NULL
----

query I rowsort
SELECT ALL col1 * - - 55 * col0 FROM tab0
----
100485
5335
66825

query I rowsort
SELECT - 45 + 30 FROM tab1 WHERE NOT ( col2 * + col0 ) IS NULL
----
-15
-15
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT ALL - CAST( - + col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - 68 * col1 FROM tab1 WHERE ( 54 + + 7 ) IS NULL
----

query I rowsort
SELECT ALL - 16 FROM tab2 WHERE - col0 * col2 IS NOT NULL
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

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

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

query I rowsort
SELECT col2 * col2 FROM tab2 AS cor0 WHERE NOT 27 IS NULL
----
1600
3364
529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT DISTINCT COUNT( * ) * - 56 + 2 AS col0 FROM tab2 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT COUNT ( * ) * - 56 + 2 AS col0 FROM tab2 AS cor0
----
-166

query I rowsort
SELECT + col2 * 49 AS col0 FROM tab0
----
2303
4851
490

query I rowsort
SELECT ALL 60 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT DISTINCT - 26 + + SUM( ALL + ( col1 ) ) FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT - 26 + + SUM ( ALL + ( col1 ) ) FROM tab1 cor0
----
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN ( 84 ) AND - col2 * 67
----

query II rowsort
SELECT - col0, col2 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-51
-2505
-85
-7166
-91
-8213

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT - 97 + + 30 * - - MAX( DISTINCT 68 ) col2 FROM tab0 AS cor0
----
1943

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-197
SELECT DISTINCT - 97 + + 30 * - - MAX ( DISTINCT 68 ) col2 FROM tab0 AS cor0
----
1943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL ( + COUNT( * ) ) + - + 39 DIV + 89 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL ( + COUNT ( * ) ) + - + 39 / + 89 FROM tab0 cor0
----
3

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 4 NOT BETWEEN + + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-201
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 39 * CAST( NULL AS SIGNED ) AND col1 * CAST( + 86 AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-201
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 39 * CAST ( NULL AS INTEGER ) AND col1 * CAST ( + 86 AS INTEGER ) + col2
----

query I rowsort
SELECT + col1 + - - 78 FROM tab1 AS cor0
----
125
83
92

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 59 + + col0 - + 34 * col2 )
----

query I rowsort
SELECT ALL + 38 + - - col1 * + col1 * 32 - + col1 FROM tab2 cor0
----
143619
189689
83219

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT ALL + 64 AS col1, + COUNT( * ) - - MAX( DISTINCT 26 ) col0 FROM tab1 cor0
----
64
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-206
SELECT ALL + 64 AS col1, + COUNT ( * ) - - MAX ( DISTINCT 26 ) col0 FROM tab1 cor0
----
64
29

query II rowsort
SELECT 92 + - col1, - col2 AS col1 FROM tab2
----
15
-40
25
-58
41
-23

query I rowsort
SELECT DISTINCT - 76 * + 84 * + col2 + - col0 AS col0 FROM tab1
----
-376741
-434203
-612915

query I rowsort
SELECT + col0 + + col1 - col2 AS col1 FROM tab0
----
-1
49
98

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT + col1 DIV col2 + + + col0 AS col2 FROM tab0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-210
SELECT + col1 / col2 + + + col0 AS col2 FROM tab0
----
16
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT COUNT( * ) AS col0 FROM tab0 WHERE 63 * - 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE 63 * - 25 IS NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 33 * + col0 col1 FROM tab0
----
-2881
-3300
-542

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT ALL col1 - col0 - + col0 DIV + col2 - - 15 FROM tab0
----
-59
-81
81

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL col1 - col0 - + col0 / + col2 - - 15 FROM tab0
----
-59
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - SUM( DISTINCT + + col2 ) + COUNT( + col0 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-216
SELECT - SUM ( DISTINCT + + col2 ) + COUNT ( + col0 ) FROM tab2
----
-118

query III rowsort
SELECT * FROM tab2 WHERE ( 38 ) IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT ( 12 ) + col0 FROM tab1 WHERE NOT - col2 <> col0
----

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

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

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab1 cor0
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 81
----

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE - 14 * + col2 + + 7 * + col0 * col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT ALL - CAST( - 8 AS SIGNED ) FROM tab0 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL - CAST ( - 8 AS INTEGER ) FROM tab0 AS cor0
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-227
SELECT + MAX ( - 14 ) FROM tab1 AS cor0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT ALL + CAST( + COUNT( DISTINCT - col1 ) AS SIGNED ) * + MIN( - ( + col2 ) ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + CAST ( + COUNT ( DISTINCT - col1 ) AS INTEGER ) * + MIN ( - ( + col2 ) ) FROM tab1 AS cor0
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-229
SELECT - SUM( + CAST( + col0 AS SIGNED ) ) col2 FROM tab1
----
-227

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

query I rowsort
SELECT - 10 * - col2 AS col0 FROM tab2
----
230
400
580

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

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

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

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

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

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

query II rowsort
SELECT ALL 71 AS col2, + 63 FROM tab0 AS cor0
----
71
63
71
63
71
63

query I rowsort
SELECT - 51 AS col0 FROM tab0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - 21 + - - MIN( DISTINCT - 6 ) * + COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-236
SELECT - 21 + - - MIN ( DISTINCT - 6 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-237
SELECT ALL - CAST( - col2 AS SIGNED ) col0, - ( col0 ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-237
SELECT ALL - CAST ( - col2 AS INTEGER ) col0, - ( col0 ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) * - AVG ( + ( - 82 ) ) + + CAST( 4 AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) * - AVG ( + ( - 82 ) ) + + CAST ( 4 AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT COUNT( * ) * + 4 FROM tab1 AS cor0 WHERE ( + 95 + col0 + + col0 + + - col2 * 26 * + + 79 + + col2 ) IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-241
SELECT COUNT ( * ) * + 4 FROM tab1 AS cor0 WHERE ( + 95 + col0 + + col0 + + - col2 * 26 * + + 79 + + col2 ) IS NOT NULL
----
12

query I rowsort
SELECT ALL + col2 - + 70 FROM tab2
----
-12
-30
-47

query II rowsort
SELECT DISTINCT - 2 AS col1, - 75 AS col0 FROM tab2
----
-2
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( 87 ) ) - + + col1 col0 FROM tab1
----
-101
-134
-92

query I rowsort
SELECT ALL + col2 - + - col0 AS col1 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT - 65 * - COUNT( * ) AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - 65 * - COUNT ( * ) AS col1 FROM tab0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-248
SELECT 59 * - + col1 - CAST( NULL AS SIGNED ) AS col0, - col2 * + col1 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-248
SELECT 59 * - + col1 - CAST ( NULL AS INTEGER ) AS col0, - col2 * + col1 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

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

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

query I rowsort
SELECT + col0 * + 39 + + - col0 AS col2 FROM tab1 AS cor0
----
1938
3230
3458

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

query I rowsort
SELECT ( + - col1 ) * - 58 FROM tab0 AS cor0
----
1218
4698
58

onlyif mysql # DIV for integer division: 
query I rowsort label-253
SELECT DISTINCT 23 DIV - 29 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT 23 / - 29 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT + SUM( + 88 ) * 21 col1 FROM tab0 AS cor0
----
5544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-254
SELECT + SUM ( + 88 ) * 21 col1 FROM tab0 AS cor0
----
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT DISTINCT col1 DIV - + 35 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT col1 / - + 35 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT DISTINCT + 81 * - col1 * - col1 AS col2 FROM tab0
----
35721
531441
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-257
SELECT ALL ( + + ( CAST( NULL AS DECIMAL ) ) ) * + col2 + 88 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL ( + + ( CAST ( NULL AS REAL ) ) ) * + col2 + 88 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT DISTINCT + + MIN( ALL - - 45 ) AS col1, + 85 + + ( - + 37 ) FROM tab0 cor0
----
45
48

skipif mysql # not compatible
query II rowsort label-262
SELECT DISTINCT + + MIN ( ALL - - 45 ) AS col1, + 85 + + ( - + 37 ) FROM tab0 cor0
----
45
48

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + col0 + - + col1 <= + + 23 + - ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT + 13 DIV ( - + col2 ) DIV + + 40 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-264
SELECT + 13 / ( - + col2 ) / + + 40 AS col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT col2 * + + col2 AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab0
----
-75

query I rowsort
SELECT 65 * - 78 AS col2 FROM tab1
----
-5070
-5070
-5070

query I rowsort
SELECT col2 + + + col2 - + col1 AS col2 FROM tab2
----
-5
3
49

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

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

query I rowsort
SELECT 34 + col2 FROM tab1
----
102
130
93

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

query I rowsort
SELECT + - col1 + + 50 AS col2 FROM tab1 cor0
----
3
36
45

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

query II rowsort
SELECT DISTINCT + 49, 18 AS col2 FROM tab0 AS cor0
----
49
18

query I rowsort
SELECT DISTINCT col2 * - col1 * - + col2 + + 0 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT DISTINCT + 19 * - col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-175104
-66139
-87856

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-278
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 IS NULL AND ( 33 + col0 * + 49 ) IN ( - 86, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-278
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 IS NULL AND ( 33 + col0 * + 49 ) IN ( - 86, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 * + col0 - + + col2 AS col1 FROM tab2 AS cor0
----
2093
4056
5567

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

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

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

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

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

query I rowsort
SELECT ALL + + 55 + 49 FROM tab2 AS cor0
----
104
104
104

query I rowsort
SELECT + col2 + + + 76 AS col1 FROM tab2 AS cor0
----
116
134
99

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

query I rowsort
SELECT ALL col0 - - 86 - + col0 * - 13 FROM tab1 AS cor0
----
1276
1360
800

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT SUM( + col0 ) * COUNT( * ) - - - ( + 95 ) FROM tab0
----
502

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT SUM ( + col0 ) * COUNT ( * ) - - - ( + 95 ) FROM tab0
----
502

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL - 4 - COUNT( DISTINCT - ( - col2 ) ) col0 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-288
SELECT ALL - 4 - COUNT ( DISTINCT - ( - col2 ) ) col0 FROM tab2
----
-7

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

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL 12 / + + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + 11 NOT IN ( 13 * col2 + + col0 )
----

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

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

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

query I rowsort
SELECT DISTINCT - 58 * col0 - + + col2 FROM tab2 AS cor0
----
-2691
-3752
-4408

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT DISTINCT + 26 * MAX( ( - + col0 ) ) AS col2 FROM tab2
----
-1196

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT + 26 * MAX ( ( - + col0 ) ) AS col2 FROM tab2
----
-1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT DISTINCT MIN( - - col1 ) DIV COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT MIN ( - - col1 ) / COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT + 94 + - COUNT( * ) FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT + 94 + - COUNT ( * ) FROM tab2 cor0
----
91

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT 36 DIV - 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-303
SELECT 36 / - 73 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98 * 50 AS col2, 74 col0 FROM tab0
----
-4900
74
-4900
74
-4900
74

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + col2 IS NULL
----
23
40
58

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT ALL col1 DIV 31 * 26 AS col1 FROM tab2 AS cor0
----
26
52
52

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL col1 / 31 * 26 AS col1 FROM tab2 AS cor0
----
26
52
52

query I rowsort
SELECT ALL - col1 + 17 AS col1 FROM tab1 AS cor0
----
-30
12
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-312
SELECT col2 * col2 + CAST( - - 93 AS SIGNED ) col0 FROM tab0 cor0
----
193
2302
9894

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-312
SELECT col2 * col2 + CAST ( - - 93 AS INTEGER ) col0 FROM tab0 cor0
----
193
2302
9894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-313
SELECT COUNT( + + col1 ) + + 26 + + - ( - COUNT( * ) ) + - 48 * 39 DIV - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
656

skipif mysql # not compatible
query I rowsort label-313
SELECT COUNT ( + + col1 ) + + 26 + + - ( - COUNT ( * ) ) + - 48 * 39 / - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + - 21 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + - 21 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL - MIN( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 95 > + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL - MIN ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 95 > + - 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT DISTINCT - 19 DIV - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - 19 / - COUNT ( * ) AS col0 FROM tab0
----
6

query II rowsort
SELECT 80, 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6143dcb042c9f10aad1b346ae577b7fc

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL CAST( NULL AS SIGNED ) + CAST( - - 21 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= + ( col2 )
----

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( - - 21 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= + ( col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT + + 50 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-321
SELECT + + 50 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - ( ( + + col0 ) ) * - - ( - - 57 ) + - col2 FROM tab0 AS cor0
----
-4969
-5628
-902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT - - col1 * + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-323
SELECT - - col1 * + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4489
-5929

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

query I rowsort
SELECT 61 - - 99 FROM tab1 AS cor0
----
160
160
160

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

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT + - 12 - col0 + - col2 DIV + - col1 col2 FROM tab0 AS cor0
----
-10
-27
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-327
SELECT + - 12 - col0 + - col2 / + - col1 col2 FROM tab0 AS cor0
----
-10
-27
-99

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

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

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

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

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

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

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

query I rowsort
SELECT + 22 / - + col1 + col0 + - 34 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( + col2 ) ) col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - + COUNT( * ) * - 28 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - 77
----
0

skipif mysql # not compatible
query I rowsort label-336
SELECT - + COUNT ( * ) * - 28 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - 77
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT - 91 IS NULL
----
10
47
99

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 49, col1 FROM tab1
----
49
14
49
47
49
5

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT 49 * MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
490

skipif mysql # not compatible
query I rowsort label-350
SELECT 49 * MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
490

query II rowsort
SELECT col2, - 27 + col2 + + col0 FROM tab0
----
10
70
47
35
99
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * col0 * + + col2 col1 FROM tab0
----
50055
61770
681813

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT MIN( col2 ) * + 95 AS col1 FROM tab2
----
2185

skipif mysql # not compatible
query I rowsort label-353
SELECT MIN ( col2 ) * + 95 AS col1 FROM tab2
----
2185

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-357
SELECT DISTINCT + ( - + 18 ) * + col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + ( - + 18 ) * + col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + 26 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

query I rowsort
SELECT ALL + 36 + - 75 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 35 * - col2 ) <> + 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 + + col1 + - 41 FROM tab1 AS cor0
----
-13
-31
53

query I rowsort
SELECT col1 FROM tab2 WHERE col2 + + + ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL + col1 + - + 17 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-16
4
64

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

query I rowsort
SELECT + 83 * - ( - + col1 ) FROM tab0
----
1743
6723
83

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

query I rowsort
SELECT DISTINCT - ( + + col1 ) * + + 20 FROM tab1 AS cor0
----
-100
-280
-940

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-371
SELECT ALL - COUNT( ALL 99 ) DIV ( + 54 ) + MAX( ALL ( + 82 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - COUNT ( ALL 99 ) / ( + 54 ) + MAX ( ALL ( + 82 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
82

query I rowsort
SELECT col1 * - - 37 * - 96 * + + col2 FROM tab1
----
-1047840
-11352192
-4773888

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

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

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

query I rowsort
SELECT + col1 * + col2 + 44 FROM tab0 AS cor0
----
143
254
3851

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT - SUM( ALL + - 89 ) AS col0 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-377
SELECT - SUM ( ALL + - 89 ) AS col0 FROM tab0
----
267

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT + 88 * MAX( - col2 ) FROM tab1
----
-5192

skipif mysql # not compatible
query I rowsort label-379
SELECT + 88 * MAX ( - col2 ) FROM tab1
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL 68 - - MAX( col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - 41 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL 68 - - MAX ( col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - 41 AND NULL
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-383
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + col1 + CAST( - 67 AS DECIMAL ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-383
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + col1 + CAST ( - 67 AS REAL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-384
SELECT - CAST( + - col0 AS SIGNED ) DIV + 14 + - col1 + - col2 col0 FROM tab0
----
-127
-25
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-384
SELECT - CAST ( + - col0 AS INTEGER ) / + 14 + - col1 + - col2 col0 FROM tab0
----
-127
-25
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT ALL 72 + + + col0 AS col1 FROM tab0
----
159
169
87

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

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

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

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL 33 * - CAST ( - + COUNT ( * ) AS INTEGER ) - + - 33 FROM tab1
----
132

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

query I rowsort
SELECT ALL col1 * + 75 * - ( - + col2 ) * + col0 FROM tab2
----
14784000
21858750
4046850

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

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

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

query I rowsort
SELECT ALL - - 35 * - col1 FROM tab1 cor0
----
-1645
-175
-490

query I rowsort
SELECT DISTINCT col1 * - col0 * - ( col1 ) + + 10 + + 11 + - col2 FROM tab0 AS cor0
----
19
38378
98389

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT col0 DIV + 84 - - + 29 FROM tab0
----
29
30
30

skipif mysql # not compatible
query I rowsort label-396
SELECT col0 / + 84 - - + 29 FROM tab0
----
29
30
30

query I rowsort
SELECT ALL + ( + - 26 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ( - col0 ) - + col0 AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-399
SELECT ALL + - CAST( NULL AS SIGNED ) / COUNT( * ) * + 34 AS col2, + COUNT( * ) col2 FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-399
SELECT ALL + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 34 AS col2, + COUNT ( * ) col2 FROM tab0 cor0
----
NULL
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT - - col1 * col0 DIV - + ( 7 ) AS col0 FROM tab0 AS cor0
----
-13
-173
-261

skipif mysql # not compatible
query I rowsort label-402
SELECT - - col1 * col0 / - + ( 7 ) AS col0 FROM tab0 AS cor0
----
-13
-173
-261

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < col2 AND NULL <= 98
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col1 col2 FROM tab0
----
-10
21
-47
81
-99
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL MAX( ALL - + col0 ) FROM tab1 WHERE ( + 93 ) IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL MAX ( ALL - + col0 ) FROM tab1 WHERE ( + 93 ) IS NOT NULL
----
-51

query I rowsort
SELECT DISTINCT 95 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN col2 AND NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT - col0 * + 98 AS col0 FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT DISTINCT + + 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
23

query I rowsort
SELECT ALL - - 47 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

query I rowsort
SELECT ALL - - col0 + + + 25 + - 39 FROM tab1 AS cor0
----
37
71
77

query I rowsort
SELECT ALL + - col1 + col2 + ( + col1 ) + 68 * - - col0 FROM tab0 AS cor0
----
1067
5926
6695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT - COUNT( DISTINCT - ( - CAST( - 1 AS SIGNED ) ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-419
SELECT - COUNT ( DISTINCT - ( - CAST ( - 1 AS INTEGER ) ) ) FROM tab0 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT col0 DIV + col0 + + ( - col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-420
SELECT col0 / + col0 + + ( - col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-58
-67
-95

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

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

query I rowsort
SELECT DISTINCT - ( + + 5 ) * - - col1 - + ( col1 ) AS col2 FROM tab0
----
-126
-486
-6

query II rowsort
SELECT ALL col2, + 36 + + col2 AS col2 FROM tab1
----
59
95
68
104
96
132

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

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

query II rowsort
SELECT - - col0 + - col1 + + 96 AS col1, - col1 * + 82 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
162
-1635
192
15
30
-6627

query II rowsort
SELECT - 13 AS col0, 41 + - 48 FROM tab1
----
-13
-7
-13
-7
-13
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - + 90
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-431
SELECT ALL col1 DIV - + col0 AS col0, - col2 AS col1 FROM tab2
----
-1
-23
-1
-40
0
-58

skipif mysql # not compatible
query II rowsort label-431
SELECT ALL col1 / - + col0 AS col0, - col2 AS col1 FROM tab2
----
-1
-23
-1
-40
0
-58

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

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE 70 * 22 <> - + 30
----
14
47
5

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

query II rowsort
SELECT DISTINCT 69, - 52 AS col2 FROM tab2 AS cor0
----
69
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-438
SELECT ALL - - 72 AS col2, 73 * - COUNT( * ) DIV - - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
72
-76

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL - - 72 AS col2, 73 * - COUNT ( * ) / - - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
72
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 56 col2 FROM tab0 AS cor0
----
-1176
-4536
-56

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

query I rowsort
SELECT + + 68 * col0 AS col0 FROM tab2 cor0
----
3128
4352
5100

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-442
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 26 col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 75 AS col2 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT ALL - col2 * + + ( + col2 ) * + - col0 AS col1 FROM tab0
----
33135
8700
950697

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT DISTINCT CAST( + + col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT ALL - 98 * + 26, COUNT( * ) - - - 5 AS col1 FROM tab1
----
-2548
-2

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL - 98 * + 26, COUNT ( * ) - - - 5 AS col1 FROM tab1
----
-2548
-2

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

query I rowsort
SELECT 24 + + + col2 AS col0 FROM tab0
----
123
34
71

query I rowsort
SELECT + 94 + ( - col0 ) AS col2 FROM tab1
----
3
43
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL COUNT( * ) * - 42 + - + COUNT( * ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL COUNT ( * ) * - 42 + - + COUNT ( * ) FROM tab1 AS cor0
----
-129

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

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

query I rowsort
SELECT col2 + - + col0 + 5 FROM tab1 AS cor0
----
-18
-21
50

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT + 14 + col2 DIV + - 71 - 61 + - - 38 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 14 + col2 / + - 71 - 61 + - - 38 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT col1 DIV - 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-456
SELECT col1 / - 63 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 13 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT - 95 * col0 * + CAST( - col0 AS SIGNED ) * - col2 FROM tab1
----
-23721120
-40496125
-53495260

skipif mysql # not compatible
query I rowsort label-458
SELECT - 95 * col0 * + CAST ( - col0 AS INTEGER ) * - col2 FROM tab1
----
-23721120
-40496125
-53495260

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 - - col1 col0 FROM tab1 cor0
----
-13
-4
29

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT DISTINCT col2 + + CAST( - 91 AS SIGNED ) * + + col0 AS col2 FROM tab1 AS cor0
----
-4545
-7676
-8213

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT col2 + + CAST ( - 91 AS INTEGER ) * + + col0 AS col2 FROM tab1 AS cor0
----
-4545
-7676
-8213

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 / - - col0 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + 23 * + COUNT( * ) + + 64 AS col0 FROM tab0
----
133

skipif mysql # not compatible
query I rowsort label-464
SELECT + 23 * + COUNT ( * ) + + 64 AS col0 FROM tab0
----
133

query I rowsort
SELECT + 0 + + col1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - + MIN( + col2 ) FROM tab1 WHERE NOT + col1 BETWEEN + col1 * 81 + - - 97 AND - 92
----
-59

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - + MIN ( + col2 ) FROM tab1 WHERE NOT + col1 BETWEEN + col1 * 81 + - - 97 AND - 92
----
-59

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

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

query I rowsort
SELECT DISTINCT - 33 - + col2 * ( 61 ) FROM tab2 AS cor0
----
-1436
-2473
-3571

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

skipif mysql # not compatible
query II rowsort label-470
SELECT - 81 * - CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - col1 + - col0 * - col2 * - col1 FROM tab1 AS cor0 WHERE NOT col0 * + 59 BETWEEN col0 * ( - - 48 ) + + col2 * + 88 AND NULL
----
-25080
-290883
-68558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 78 col0 FROM tab2
----
1794
3120
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + MAX( + - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-473
SELECT + MAX ( + - 41 ) FROM tab1
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - - col0 AS DECIMAL ) NOT BETWEEN + col0 AND - + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - - col0 AS REAL ) NOT BETWEEN + col0 AND - + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL SUM( DISTINCT - 41 ) AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL SUM ( DISTINCT - 41 ) AS col0 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT - 11 * col0 FROM tab0 AS cor0
----
-1067
-165
-957

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * + col1 + - col1 AND + 67
----

query I rowsort
SELECT DISTINCT 43 * - col2 FROM tab2 cor0
----
-1720
-2494
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT COUNT( * ) * 85 FROM tab1 cor0
----
255

skipif mysql # not compatible
query I rowsort label-481
SELECT COUNT ( * ) * 85 FROM tab1 cor0
----
255

query I rowsort
SELECT - col1 * + col1 + + 94 + + + col1 * 61 FROM tab1 AS cor0
----
374
752
752

query I rowsort
SELECT - 91 FROM tab2 AS cor0 WHERE NOT NULL > + 83
----

query I rowsort
SELECT - ( - 88 ) * + 59 AS col0 FROM tab1
----
5192
5192
5192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 2 FROM tab2
----
46
2
64
2
75
2

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * col1 AS col1 FROM tab0
----
210
3807
99

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

query I rowsort
SELECT ALL col0 / - 95 AS col1 FROM tab2 WHERE + col1 BETWEEN + - col0 AND - col2
----

query I rowsort
SELECT ALL 58 * col1 AS col2 FROM tab2
----
2958
3886
4466

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

onlyif mysql # DIV for integer division: 
query II rowsort label-492
SELECT DISTINCT 29 col0, 72 DIV 41 FROM tab2
----
29
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-492
SELECT DISTINCT 29 col0, 72 / 41 FROM tab2
----
29
1

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

query I rowsort
SELECT ALL + col0 * 8 * + col1 + - + col1 + - - col0 * - col0 FROM tab2 AS cor0
----
16601
34508
35251

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

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

query I rowsort
SELECT DISTINCT + col2 + - - 9 FROM tab0
----
108
19
56

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= + 43
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + + 12 * col0 FROM tab1 WHERE + col0 + col0 * col0 IS NOT NULL
----
1020
1092
612

query II rowsort
SELECT DISTINCT - col0 + - 11 AS col2, col0 + 39 FROM tab0 AS cor0
----
-108
136
-26
54
-98
126

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

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

query II rowsort
SELECT ALL + 56 * - 78, ( - 66 ) AS col1 FROM tab0 AS cor0
----
-4368
-66
-4368
-66
-4368
-66

query I rowsort
SELECT ALL - col2 + - 37 FROM tab1 AS cor0
----
-105
-133
-96

query I rowsort
SELECT ALL - col1 + - 93 FROM tab2 cor0
----
-144
-160
-170

query I rowsort
SELECT DISTINCT ( - col1 ) - + 71 + ( 44 ) FROM tab0 AS cor0
----
-108
-28
-48

query I rowsort
SELECT ALL col1 + + - col2 * - 65 FROM tab0
----
3136
6436
671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT - + 85 DIV - - COUNT( * ) FROM tab2 WHERE NOT + 14 IS NULL
----
-28

skipif mysql # not compatible
query I rowsort label-508
SELECT - + 85 / - - COUNT ( * ) FROM tab2 WHERE NOT + 14 IS NULL
----
-28

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col1 ) * col2 NOT IN ( + ( - 1 ), - col2 + - 76, + 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT 53 * + CAST( NULL AS SIGNED ) * - 5 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT 53 * + CAST ( NULL AS INTEGER ) * - 5 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT - - MAX( ALL - ( CAST( + - ( col2 ) AS SIGNED ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-517
SELECT - - MAX ( ALL - ( CAST ( + - ( col2 ) AS INTEGER ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
99

query I rowsort
SELECT col2 + + - 74 FROM tab0
----
-27
-64
25

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL + SUM( col2 ) + - 62 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + SUM ( col2 ) + - 62 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT 99 + + MAX( - - col0 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-520
SELECT 99 + + MAX ( - - col0 ) FROM tab2
----
174

query I rowsort
SELECT col1 + - - 13 FROM tab1
----
18
27
60

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL - MIN( DISTINCT + 96 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-96

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - MIN ( DISTINCT + 96 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-96

query II rowsort
SELECT + 81 AS col2, - 70 + - col1 AS col2 FROM tab0
----
81
-151
81
-71
81
-91

query I rowsort
SELECT ALL - col0 - - 81 + - col1 FROM tab0
----
-15
-17
-27

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

query I rowsort
SELECT ALL - 89 * 95 * - col1 + + - 59 FROM tab2 AS cor0
----
431146
566426
650976

query I rowsort
SELECT ALL - col2 * 78 * + - ( col0 ) AS col0 FROM tab2 AS cor0
----
199680
339300
82524

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col2 AS col2, 88 col1 FROM tab2
----
-1600
88
-3364
88
-529
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-535
SELECT ALL - - col2 DIV + 97 AS col2, ( col1 ) col1 FROM tab2 cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-535
SELECT ALL - - col2 / + 97 AS col2, ( col1 ) col1 FROM tab2 cor0
----
0
51
0
67
0
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT SUM( 30 ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-537
SELECT SUM ( 30 ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT + - col0 * col1 * + col1 FROM tab2 cor0
----
-119646
-336675
-379456

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

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

query I rowsort
SELECT ALL + 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT col1 + + - 72 * + col0 AS col1 FROM tab1 cor0
----
-3658
-6115
-6505

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

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

query II rowsort
SELECT + col0 * + 25 + - col2 AS col0, - 86 FROM tab1 AS cor0
----
1179
-86
2066
-86
2207
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT ALL - 30 DIV MAX( - col1 ) + + 86 AS col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL - 30 / MAX ( - col1 ) + + 86 AS col1 FROM tab2 AS cor0
----
86

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

query I rowsort
SELECT - - col0 * col1 * 98 FROM tab1 AS cor0
----
41650
419146
69972

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-548
SELECT - - CAST( NULL AS SIGNED ) AS col0, 55 * - - 57 FROM tab2 AS cor0
----
NULL
3135
NULL
3135
NULL
3135

skipif mysql # not compatible
query II rowsort label-548
SELECT - - CAST ( NULL AS INTEGER ) AS col0, 55 * - - 57 FROM tab2 AS cor0
----
NULL
3135
NULL
3135
NULL
3135

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

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

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

query II rowsort
SELECT 27 * + col1 AS col1, col2 FROM tab1
----
1269
68
135
59
378
96

query I rowsort
SELECT - - 19 AS col0 FROM tab1 WHERE NULL > - col0 * + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE + 26 + ( col0 ) + col0 * - + col2 <= NULL
----

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

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

query I rowsort
SELECT + + col2 + - + 70 + col2 FROM tab1 AS cor0
----
122
48
66

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT + MIN( + col1 ) - + + 60 col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-556
SELECT DISTINCT + MIN ( + col1 ) - + + 60 col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + ( - 65 ) FROM tab0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - ( + 76 ) FROM tab0
----
1
-76
21
-76
81
-76

query I rowsort
SELECT DISTINCT + col0 * - 24 FROM tab2
----
-1104
-1536
-1800

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-560
SELECT + 82 * + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-738

query I rowsort
SELECT col0 * - + col2 * + col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - - MIN( - col0 ) - 63 FROM tab0 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-562
SELECT - - MIN ( - col0 ) - 63 FROM tab0 AS cor0
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT ALL + + col1 DIV - col1 + + col0 + col1 FROM tab2 AS cor0
----
140
141
96

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + + col1 / - col1 + + col0 + col1 FROM tab2 AS cor0
----
140
141
96

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + 97 - 37 - COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-564
SELECT + 97 - 37 - COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
57

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

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT ALL + COUNT( * ) AS col1, MIN( - col1 ) FROM tab0 AS cor0
----
3
-81

skipif mysql # not compatible
query II rowsort label-566
SELECT ALL + COUNT ( * ) AS col1, MIN ( - col1 ) FROM tab0 AS cor0
----
3
-81

query II rowsort
SELECT ALL 29 AS col2, 61 FROM tab0
----
29
61
29
61
29
61

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

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

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

query I rowsort
SELECT DISTINCT 23 * col1 FROM tab1
----
1081
115
322

query III rowsort
SELECT * FROM tab0 WHERE NOT + 98 = - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 71 * - 12 AS col0 FROM tab1
----
-852
-852
-852

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

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

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

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

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

query I rowsort
SELECT ALL 69 * ( 48 ) FROM tab2
----
3312
3312
3312

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT 61 DIV - col1 FROM tab0
----
-2
-61
0

skipif mysql # not compatible
query I rowsort label-577
SELECT 61 / - col1 FROM tab0
----
-2
-61
0

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

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - MAX ( 28 ) FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-579
SELECT DISTINCT + ( - col0 ) + - col0 + col0 DIV - col2 FROM tab2 AS cor0
----
-129
-151
-94

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT + ( - col0 ) + - col0 + col0 / - col2 FROM tab2 AS cor0
----
-129
-151
-94

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-581
SELECT DISTINCT - col1 + 8 + 79 + 50 col0, ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE - 28 BETWEEN + col2 / + col2 + col2 + + CAST( - - col1 AS SIGNED ) AND + - 19
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-581
SELECT DISTINCT - col1 + 8 + 79 + 50 col0, ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE - 28 BETWEEN + col2 / + col2 + col2 + + CAST ( - - col1 AS INTEGER ) AND + - 19
----

query I rowsort
SELECT ALL col1 + - col0 * + 31 FROM tab1 AS cor0
----
-1567
-2630
-2774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT ALL col0 * + CAST( 69 AS SIGNED ) FROM tab0 AS cor0
----
1035
6003
6693

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL col0 * + CAST ( 69 AS INTEGER ) FROM tab0 AS cor0
----
1035
6003
6693

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 29
----

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

query I rowsort
SELECT ALL ( - - col1 ) + + 45 FROM tab0 AS cor0
----
126
46
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col0 col2 FROM tab0 WHERE NULL = + 16
----

onlyif mysql # aggregate syntax: 
query III rowsort label-588
SELECT DISTINCT + 6, COUNT( * ) * - SUM( - - 73 ) AS col0, 10 AS col0 FROM tab1
----
6
-657
10

skipif mysql # not compatible
query III rowsort label-588
SELECT DISTINCT + 6, COUNT ( * ) * - SUM ( - - 73 ) AS col0, 10 AS col0 FROM tab1
----
6
-657
10

query I rowsort
SELECT - col1 + ( + col0 ) FROM tab0
----
-66
66
96

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

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

query II rowsort
SELECT - col2 + - col2 + + - col1, - col0 * - + 85 * - col0 * col1 AS col1 FROM tab1
----
-123
-3070625
-183
-33082595
-206
-3095190

query II rowsort
SELECT + 9 + + 41 * - + col0, + col2 AS col1 FROM tab0
----
-3558
10
-3968
99
-606
47

query I rowsort
SELECT ALL 31 - + 81 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT + 76 DIV - 43 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-595
SELECT + 76 / - 43 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT 82 + COUNT( * ) AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-596
SELECT 82 + COUNT ( * ) AS col2 FROM tab0
----
85

query I rowsort
SELECT 19 + 65 AS col2 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL ( col2 ) + - 75 AS col0 FROM tab0
----
-28
-65
24

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT 81 + + col1 FROM tab0
----
102
162
82

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

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

query I rowsort
SELECT ALL 92 / col1 + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL 33 FROM tab2 WHERE NOT ( col2 ) >= ( col2 )
----

query I rowsort
SELECT DISTINCT 93 - - 1 FROM tab1
----
94

query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab0 WHERE NOT - 98 = - col0 + - col0 * - 62
----
225
7569
9409

query I rowsort
SELECT 41 FROM tab1 WHERE - 88 = ( NULL )
----

query I rowsort
SELECT col0 - col1 * - 11 AS col1 FROM tab0
----
108
318
906

query I rowsort
SELECT ALL + col2 + 57 * + col1 AS col2 FROM tab1
----
2747
344
894

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT DISTINCT - 77 * 18 - COUNT( * ) AS col1 FROM tab1
----
-1389

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT - 77 * 18 - COUNT ( * ) AS col1 FROM tab1
----
-1389

query I rowsort
SELECT ALL - 66 AS col2 FROM tab1 WHERE NULL < - col0 * col0
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + 42 FROM tab2
----
106
117
88

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 39 + + 19 / + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 63 * col2 = NULL
----

query I rowsort
SELECT ALL + 51 * + 1 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + 17 * 91 AS col0 FROM tab0 AS cor0
----
1547

query I rowsort
SELECT + 87 * 49 AS col1 FROM tab1 cor0
----
4263
4263
4263

query I rowsort
SELECT ALL - 20 AS col1 FROM tab0 cor0 WHERE NOT 77 IN ( - col0 * col2 )
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - COUNT( * ) * - 72 col0 FROM tab2 AS cor0
----
216

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-625
SELECT * FROM tab0 WHERE NOT ( NULL ) <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-625
SELECT * FROM tab0 WHERE NOT ( NULL ) <= - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT + 61 FROM ( tab2 cor0 CROSS JOIN tab2 )
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2 WHERE ( + 39 ) BETWEEN + col0 AND + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT DISTINCT 61 + COUNT( * ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT 61 + COUNT ( * ) FROM tab0 AS cor0
----
64

query I rowsort
SELECT 36 + + ( - 58 - col2 * - col2 ) FROM tab0 cor0
----
2187
78
9779

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

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

query I rowsort
SELECT DISTINCT - col2 + - 84 * - col0 AS col0 FROM tab1 AS cor0
----
4188
7081
7576

query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab2 AS cor0 WHERE ( 75 ) <> col0
----
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT + COUNT( * ) + SUM( ALL - col0 - col0 ) FROM tab1 AS cor0 WHERE - col2 * + 20 >= ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT + COUNT ( * ) + SUM ( ALL - col0 - col0 ) FROM tab1 AS cor0 WHERE - col2 * + 20 >= ( col0 )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT DISTINCT 13 + - 5 DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-638
SELECT DISTINCT 13 + - 5 / - COUNT ( * ) col1 FROM tab1 AS cor0
----
14

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

query I rowsort
SELECT ALL - 68 + - 38 AS col0 FROM tab0 AS cor0
----
-106
-106
-106

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL MAX( + 73 ) + - COUNT( * ) * + MIN( DISTINCT - 33 ) AS col2 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL MAX ( + 73 ) + - COUNT ( * ) * + MIN ( DISTINCT - 33 ) AS col2 FROM tab0
----
172

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT ALL - col2 DIV 16 * - col1 FROM tab1
----
15
188
84

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - col2 / 16 * - col1 FROM tab1
----
15
188
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT DISTINCT 24 DIV + - COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT 24 / + - COUNT ( * ) FROM tab1
----
-8

query I rowsort
SELECT ALL 73 - ( + 44 ) AS col0 FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT DISTINCT COUNT( * ) + - 59 DIV 79 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT COUNT ( * ) + - 59 / 79 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col1 ) + - 27 col1 FROM tab0 AS cor0
----
-108
-28
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL ( + COUNT( * ) ) - + SUM( DISTINCT col2 + + 39 ) FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL ( + COUNT ( * ) ) - + SUM ( DISTINCT col2 + + 39 ) FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT - COUNT( * ) * 61 DIV + 92 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-655
SELECT - COUNT ( * ) * 61 / + 92 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT DISTINCT - COUNT( DISTINCT + 16 ) + 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
68

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - COUNT ( DISTINCT + 16 ) + 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE NOT - 83 * ( col1 ) IS NULL
----
51
85
91

query I rowsort
SELECT + col2 * + - 93 * - - 85 + col2 AS col2 FROM tab1 AS cor0
----
-466336
-537472
-758784

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

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

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

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

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

query I rowsort
SELECT - 4 * + ( - col1 ) * - 96 + 40 FROM tab1 cor0
----
-18008
-1880
-5336

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-663
SELECT ALL CAST( NULL AS DECIMAL ) + ( AVG ( DISTINCT 9 ) ) * + SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL CAST ( NULL AS REAL ) + ( AVG ( DISTINCT 9 ) ) * + SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 * col1 )
----
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query III rowsort label-667
SELECT * FROM tab2 WHERE NOT - col2 * CAST ( NULL AS INTEGER ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ( + COUNT( DISTINCT - - 57 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-669
SELECT ( + COUNT ( DISTINCT - - 57 ) ) FROM tab0
----
1

query I rowsort
SELECT 70 FROM tab0 WHERE NOT - 71 IS NULL
----
70
70
70

query I rowsort
SELECT DISTINCT ( - - col0 ) * - + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT - col1 DIV - col0 * - 38 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-672
SELECT - col1 / - col0 * - 38 AS col1 FROM tab1
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-674
SELECT - CAST( + + col1 AS SIGNED ) * + col1 + - + 74 AS col1 FROM tab1
----
-2283
-270
-99

skipif mysql # not compatible
query I rowsort label-674
SELECT - CAST ( + + col1 AS INTEGER ) * + col1 + - + 74 AS col1 FROM tab1
----
-2283
-270
-99

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

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

query I rowsort
SELECT DISTINCT 59 * col2 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT DISTINCT - 62 * col0 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL COUNT( DISTINCT + + 47 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL COUNT ( DISTINCT + + 47 ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT ALL - col1 DIV + col0 + - 98 FROM tab0 AS cor0
----
-103
-98
-98

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - col1 / + col0 + - 98 FROM tab0 AS cor0
----
-103
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL - 80 + COUNT( * ) + - - 7 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL - 80 + COUNT ( * ) + - - 7 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ( + col1 ) + + col2 + - col2 + 67 * - col2 AS col0 FROM tab0 AS cor0
----
-3068
-649
-6632

query I rowsort
SELECT + 19 + - - col2 + 50 FROM tab0 AS cor0
----
116
168
79

query I rowsort
SELECT DISTINCT 91 - + col1 AS col0 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT ALL - col1 + + col0 DIV + col2 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL - col1 + + col0 / + col2 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT + col2 + + 97 + + 98 * - - col2 AS col1 FROM tab1
----
5938
6829
9601

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT - SUM( ALL - - 4 ) AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - SUM ( ALL - - 4 ) AS col0 FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT COUNT( * ) * 52 AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-687
SELECT COUNT ( * ) * 52 AS col0 FROM tab2
----
156

query II rowsort
SELECT ALL col1 AS col2, 22 + col0 AS col1 FROM tab1
----
14
73
47
113
5
107

query I rowsort
SELECT DISTINCT + 89 - 58 FROM tab2
----
31

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < + 98 * 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 54 * + col0 AS col2 FROM tab1 cor0
----
2754
4590
4914

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

query I rowsort
SELECT ALL - 11 + + col0 * + col2 + col2 * col2 FROM tab2 WHERE ( 50 + - + 20 ) IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( col0 / - + 25 )
----

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

query I rowsort
SELECT ALL - + col2 * + + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT + + SUM( - 78 ) FROM tab0 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + + SUM ( - 78 ) FROM tab0 cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT COUNT( * ) * ( - - 10 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-702
SELECT COUNT ( * ) * ( - - 10 ) FROM tab0
----
30

query II rowsort
SELECT DISTINCT - col0, col2 + - 19 AS col0 FROM tab2
----
-46
4
-64
21
-75
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT + MAX( - + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + MAX ( - + col1 ) AS col2 FROM tab0
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT + MAX ( DISTINCT - + 45 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 53 * + - 5 + + col2 * - + col1 + + col2 FROM tab1 AS cor0
----
-1513
-3393
-501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-709
SELECT + 81 DIV COUNT( DISTINCT - 49 ) + + + 83 + - + ( + 89 ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-709
SELECT + 81 / COUNT ( DISTINCT - 49 ) + + + 83 + - + ( + 89 ) AS col0 FROM tab1
----
75

query I rowsort
SELECT + 89 * + ( + col0 ) + - - col2 FROM tab2
----
4117
5736
6733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT ALL + 16 * + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) * - 60 AS col2 FROM tab0 AS cor0 WHERE ( + - 3 ) * + col2 / + 45 BETWEEN + col0 AND + 21
----

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + 16 * + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) * - 60 AS col2 FROM tab0 AS cor0 WHERE ( + - 3 ) * + col2 / + 45 BETWEEN + col0 AND + 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT col2 DIV - 38 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-712
SELECT col2 / - 38 AS col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-713
SELECT - + col0 DIV + 20, CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
-4
NULL
-4
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-713
SELECT - + col0 / + 20, CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
-4
NULL
-4
NULL
0
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT - SUM( ALL - - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 64 / + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT - SUM ( ALL - - col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 64 / + - col1 )
----
NULL

query I rowsort
SELECT ALL - col1 * 98 + 29 FROM tab1 AS cor0
----
-1343
-4577
-461

query I rowsort
SELECT ALL - col1 - 18 AS col0 FROM tab2
----
-69
-85
-95

query I rowsort
SELECT ALL 46 * - 36 FROM tab0
----
-1656
-1656
-1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-719
SELECT CAST( + + col1 AS SIGNED ) - + col1 + + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-719
SELECT CAST ( + + col1 AS INTEGER ) - + col1 + + col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL = col0
----

skipif mysql # not compatible
query I rowsort label-720
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL = col0
----

query I rowsort
SELECT - 43 * col0 AS col1 FROM tab0 cor0
----
-3741
-4171
-645

query II rowsort
SELECT DISTINCT + - col2 * ( - 38 ) * col0 * + col1, col1 AS col1 FROM tab0 AS cor0
----
2169990
81
364914
1
694260
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT - + COUNT( DISTINCT - + col1 ) DIV 51 DIV - 27 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-723
SELECT - + COUNT ( DISTINCT - + col1 ) / 51 / - 27 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT ALL + ( 22 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

query II rowsort
SELECT DISTINCT 10, + 32 - + - col2 AS col2 FROM tab1 AS cor0
----
10
100
10
128
10
91

query I rowsort
SELECT col0 * - 93 * - 85 + + + col0 AS col1 FROM tab1 AS cor0
----
403206
672010
719446

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-730
SELECT + + CAST( NULL 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-730
SELECT + + CAST ( NULL AS INTEGER ), + col1 col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT col1 DIV col1 * - col2 * - - col1 + - col1 + 24 AS col0 FROM tab0 AS cor0 WHERE NOT col2 DIV col0 IS NULL
----
-207
-3864
-76

skipif mysql # not compatible
query I rowsort label-732
SELECT col1 / col1 * - col2 * - - col1 + - col1 + 24 AS col0 FROM tab0 AS cor0 WHERE NOT col2 / col0 IS NULL
----
-207
-3864
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT + COUNT( * ) + + COUNT( ALL - - col0 ) + + ( + + 96 ) * MIN( col2 ) FROM tab2
----
2214

skipif mysql # not compatible
query I rowsort label-734
SELECT + COUNT ( * ) + + COUNT ( ALL - - col0 ) + + ( + + 96 ) * MIN ( col2 ) FROM tab2
----
2214

query I rowsort
SELECT 92 + - col2 FROM tab2
----
34
52
69

query I rowsort
SELECT col2 + 47 AS col0 FROM tab0
----
146
57
94

query I rowsort
SELECT col2 + - + 53 AS col1 FROM tab1
----
15
43
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT DISTINCT - + ( - 68 ) * COUNT( * ) DIV - 88 + + 47 + MAX( + 42 ) AS col1 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - + ( - 68 ) * COUNT ( * ) / - 88 + + 47 + MAX ( + 42 ) AS col1 FROM tab2 cor0
----
87

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

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

query I rowsort
SELECT - ( + 44 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

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

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

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

query I rowsort
SELECT DISTINCT - 78 + + - col2 AS col2 FROM tab2
----
-101
-118
-136

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

query I rowsort
SELECT + - 57 * + 21 + + col0 FROM tab2 AS cor0
----
-1122
-1133
-1151

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 + + 66 FROM tab1 AS cor0
----
-1329
-314
-3221

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + COUNT( * ) * - 8 col1 FROM tab1
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-751
SELECT + COUNT ( * ) * - 8 col1 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT + 62 + col0 * ( + col1 ) FROM tab2
----
2408
4990
5087

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-753
SELECT ALL 43 - col0, col1 * col0 DIV - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-21
-64
-3
-46
-32
-75

skipif mysql # not compatible
query II rowsort label-753
SELECT ALL 43 - col0, col1 * col0 / - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-21
-64
-3
-46
-32
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE NOT ( NULL ) IN ( - col0, col2 + - 18 - + 96, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT CAST( 54 AS SIGNED ) * - - col1 FROM tab1
----
2538
270
756

skipif mysql # not compatible
query I rowsort label-755
SELECT CAST ( 54 AS INTEGER ) * - - col1 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT + 21 * - COUNT( DISTINCT - + col2 ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN + col0 * + col0 AND NULL OR NULL < - - 74
----
-63

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT + 21 * - COUNT ( DISTINCT - + col2 ) AS col0 FROM tab2 WHERE + col2 NOT BETWEEN + col0 * + col0 AND NULL OR NULL < - - 74
----
-63

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

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

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 85 + - col1 + + - col1 FROM tab2 AS cor0
----
-2788
-4708
-6168

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

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT ALL + 31 DIV col0 * 62 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + 31 / col0 * 62 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT + 15 DIV + ( + ( col0 ) ) * - col0 AS col0 FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + 15 / + ( + ( col0 ) ) * - col0 AS col0 FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( ( + - 48 ) ) FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT ALL col2 DIV - 43 col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-764
SELECT ALL col2 / - 43 col0 FROM tab2 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT 47 * - COUNT( * ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT 47 * - COUNT ( * ) FROM tab0 AS cor0
----
-141

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 / - col1 )
----

query II rowsort
SELECT - + col1 AS col1, col1 * - col1 FROM tab0 AS cor0
----
-1
-1
-21
-441
-81
-6561

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

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL + MIN ( ALL col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT COUNT( + - 68 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( + - 68 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + 26 * - - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-770
SELECT + 26 * - - COUNT ( * ) FROM tab0
----
78

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

query II rowsort
SELECT DISTINCT 35, + col1 FROM tab2
----
35
51
35
67
35
77

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IN ( 28 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL MIN( - - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL MIN ( - - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL 92 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT + col1 + + 70 IS NOT NULL
----
92

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL 92 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT + col1 + + 70 IS NOT NULL
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + COUNT( * ) - + 92 * + 42 FROM tab0 AS cor0
----
-3861

skipif mysql # not compatible
query I rowsort label-781
SELECT + COUNT ( * ) - + 92 * + 42 FROM tab0 AS cor0
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT + ( + - COUNT( + col0 ) ) - + MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-782
SELECT + ( + - COUNT ( + col0 ) ) - + MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT DISTINCT - 54 + + col2 + - 56 FROM tab0 AS cor0
----
-100
-11
-63

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

query I rowsort
SELECT ALL - + col1 - - + col2 AS col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + col0 - col1 AS col1 FROM tab0 WHERE NOT NULL = - col1 * + col2 * + 7
----

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

query I rowsort
SELECT ALL - - 5 AS col2 FROM tab1 WHERE col1 IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 10 ) NOT IN ( + col2 / + 79, - col2, col0 * 26 * + - col2, - col0 + col0 + 90 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 + - + col2 FROM tab0 AS cor0
----
-15
-32
-87
77
-97
-2

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

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

skipif mysql # not compatible
query I rowsort label-794
SELECT COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-27

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) * - col0 AS col2 FROM tab2
----
2116
4096
5625

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

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

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

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

query I rowsort
SELECT + col1 * ( + + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
1173
3080
3886

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

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

query I rowsort
SELECT ALL - 99 * + col1 AS col1 FROM tab0 cor0
----
-2079
-8019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + MAX( - col0 ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 * + + col2 + - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT + MAX ( - col0 ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 * + + col2 + - - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE + col2 * - - 3 IS NOT NULL
----
-1
-21
-81

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

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

query I rowsort
SELECT ALL 8 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
18768
39424
40200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT DISTINCT - col2 * CAST( col1 AS SIGNED ) * + 22 + 92 FROM tab1 AS cor0
----
-29476
-6398
-70220

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - col2 * CAST ( col1 AS INTEGER ) * + 22 + 92 FROM tab1 AS cor0
----
-29476
-6398
-70220

query I rowsort
SELECT + ( + 15 ) + - + col2 * col2 FROM tab2 AS cor0 WHERE col0 * + 8 - - col1 = col1
----

query I rowsort
SELECT + 91 + + 41 + col0 + + col2 * - 64 * col0 FROM tab2 AS cor0
----
-163644
-278193
-67534

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

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL COUNT( * ) * COUNT( * ) + - ( + 21 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL COUNT ( * ) * COUNT ( * ) + - ( + 21 ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT ( - 35 ) * + - COUNT( * ) * + 15 FROM tab0
----
1575

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT ( - 35 ) * + - COUNT ( * ) * + 15 FROM tab0
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT + ( + col0 ) ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT + ( + col0 ) ) FROM tab2
----
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + ( - ( - COUNT( * ) ) ) + + SUM( + - col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-816
SELECT + ( - ( - COUNT ( * ) ) ) + + SUM ( + - col0 ) FROM tab0
----
-196

query I rowsort
SELECT 67 * - col2 + - - 62 FROM tab0
----
-3087
-608
-6571

query III rowsort
SELECT * FROM tab2 WHERE + + 64 * - col2 * ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT ALL 72 DIV + 65 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL 72 / + 65 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col0 + col1 - 60 + 53 AS col0 FROM tab0
----
101
89
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 31 - ( - 84 ) IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-824
SELECT - COUNT ( ALL col1 ) FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT SUM( + 38 ) FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT SUM ( + 38 ) FROM tab2
----
114

query I rowsort
SELECT 68 + - col1 FROM tab2
----
-9
1
17

query I rowsort
SELECT 39 * + 3 + col0 + - col1 * + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) - - col1 FROM tab2
----
102
134
154

query I rowsort
SELECT 28 * + 62 + - col2 FROM tab1
----
1640
1668
1677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT - - col0 DIV ( + - col1 ) FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-834
SELECT - - col0 / ( + - col1 ) FROM tab1 AS cor0
----
-1
-17
-3

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

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

query I rowsort
SELECT + + 17 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 = + col1
----
-1003
-1156
-1632

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT MIN( + - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-838
SELECT MIN ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-47

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

onlyif mysql # DIV for integer division: 
query II rowsort label-840
SELECT ( + - 60 ), + col0 DIV - 11 AS col2 FROM tab0
----
-60
-1
-60
-7
-60
-8

skipif mysql # not compatible
query II rowsort label-840
SELECT ( + - 60 ), + col0 / - 11 AS col2 FROM tab0
----
-60
-1
-60
-7
-60
-8

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-843
SELECT ALL CAST( - col0 AS SIGNED ), 61 + + ( - 18 ) col0 FROM tab1 cor0
----
-51
43
-85
43
-91
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-843
SELECT ALL CAST ( - col0 AS INTEGER ), 61 + + ( - 18 ) col0 FROM tab1 cor0
----
-51
43
-85
43
-91
43

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT + COUNT( DISTINCT + 6 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + COUNT ( DISTINCT + 6 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT DISTINCT - MAX( DISTINCT 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT - MAX ( DISTINCT 72 ) FROM tab2
----
-72

query I rowsort
SELECT DISTINCT - 81 + + 96 AS col2 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT + COUNT( * ) AS col2, + 57 + + ( + - 30 ) AS col1 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + - col1
----
0
27

skipif mysql # not compatible
query II rowsort label-847
SELECT + COUNT ( * ) AS col2, + 57 + + ( + - 30 ) AS col1 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + - col1
----
0
27

query I rowsort
SELECT - 2 * - col1 FROM tab2 AS cor0
----
102
134
154

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

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT - 21, + 8 + + + SUM( ALL + + 1 ) AS col0 FROM tab2 cor0
----
-21
11

skipif mysql # not compatible
query II rowsort label-850
SELECT - 21, + 8 + + + SUM ( ALL + + 1 ) AS col0 FROM tab2 cor0
----
-21
11

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - 59 * COUNT( * ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-851
SELECT - 59 * COUNT ( * ) FROM tab0 AS cor0
----
-177

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 50 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT ALL 36 DIV + 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL 36 / + 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - + 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col0 ) col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-861
SELECT DISTINCT + 13, 0 DIV + col0 - + col0 AS col1 FROM tab2 cor0
----
13
-46
13
-64
13
-75

skipif mysql # not compatible
query II rowsort label-861
SELECT DISTINCT + 13, 0 / + col0 - + col0 AS col1 FROM tab2 cor0
----
13
-46
13
-64
13
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT + 97 * - CAST( + ( - + col0 ) AS SIGNED ) + + 54 FROM tab1 cor0
----
5001
8299
8881

skipif mysql # not compatible
query I rowsort label-862
SELECT + 97 * - CAST ( + ( - + col0 ) AS INTEGER ) + + 54 FROM tab1 cor0
----
5001
8299
8881

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT + + 4 DIV 84 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-863
SELECT + + 4 / 84 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 86 + + col1 NOT BETWEEN NULL AND ( - - 75 + col2 + 53 + col1 * + col2 )
----

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

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

query I rowsort
SELECT - + 31 * - col0 AS col0 FROM tab2 AS cor0
----
1426
1984
2325

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <> col1 * 61 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL + ( + MIN( ALL + 87 ) ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + ( + MIN ( ALL + 87 ) ) AS col0 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 83 * - - col2 FROM tab1
----
-4897
-5644
-7968

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

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

query I rowsort
SELECT ALL 66 * - + col2 FROM tab2
----
-1518
-2640
-3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-874
SELECT - - CAST( NULL AS SIGNED ) - - - ( + - COUNT( * ) ) AS col1, 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-874
SELECT - - CAST ( NULL AS INTEGER ) - - - ( + - COUNT ( * ) ) AS col1, 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
68

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

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

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

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

skipif mysql # not compatible
query I rowsort label-878
SELECT + 15 * + - CAST ( NULL AS INTEGER ) + + 54 - - - col1 * + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-880
SELECT ALL - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

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

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

query I rowsort
SELECT ALL 36 * + col1 AS col0 FROM tab0
----
2916
36
756

query III rowsort
SELECT * FROM tab0 WHERE + + 64 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL 63 * - COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 63 * - COUNT ( * ) FROM tab2
----
-189

query I rowsort
SELECT 22 * col1 * + 17 FROM tab1
----
17578
1870
5236

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + + col2 ) + + col0 + - col2 col1 FROM tab2 cor0
----
-16
-41
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-889
SELECT - col0 * - - col2 / - 93 - + - 42 * - - CAST ( NULL AS INTEGER ) - col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT CAST( - MAX( 82 ) AS SIGNED ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-890
SELECT CAST ( - MAX ( 82 ) AS INTEGER ) AS col1 FROM tab0
----
-82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT - ( ( - - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + 62 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT - ( ( - - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + 62 AND NULL
----
0

query I rowsort
SELECT col1 * 62 AS col2 FROM tab1 cor0
----
2914
310
868

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

onlyif mysql # DIV for integer division: 
query II rowsort label-895
SELECT - + col2 DIV + + 17, + col1 AS col1 FROM tab1 AS cor0
----
-3
5
-4
47
-5
14

skipif mysql # not compatible
query II rowsort label-895
SELECT - + col2 / + + 17, + col1 AS col1 FROM tab1 AS cor0
----
-3
5
-4
47
-5
14

query I rowsort
SELECT - 65 * - col0 + - - col1 AS col0 FROM tab2 WHERE NOT + - 39 < + - 57 + - ( - 31 ) + + col2 * col2 * col2 + col2 + 60 + - col1 * + 31 * + 74
----
3041
4237

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

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

query I rowsort
SELECT 6 * + - col0 AS col0 FROM tab2
----
-276
-384
-450

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 24 IS NULL
----

query I rowsort
SELECT DISTINCT 55 * + - 54 FROM tab2
----
-2970

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL COUNT( * ) + + - 54 AS col1 FROM tab0 cor0 WHERE - col0 BETWEEN - + col2 * - 46 AND - col2 * - col1 * - col2
----
-54

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL COUNT ( * ) + + - 54 AS col1 FROM tab0 cor0 WHERE - col0 BETWEEN - + col2 * - 46 AND - col2 * - col1 * - col2
----
-54

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-909
SELECT - CAST( NULL AS SIGNED ), - COUNT( * ) * + ( - 45 ) AS col1 FROM tab2 AS cor0
----
NULL
135

skipif mysql # not compatible
query II rowsort label-909
SELECT - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + ( - 45 ) AS col1 FROM tab2 AS cor0
----
NULL
135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT - - COUNT( DISTINCT - - col1 ) * - SUM( - + col2 ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-911
SELECT - - COUNT ( DISTINCT - - col1 ) * - SUM ( - + col2 ) FROM tab1 AS cor0
----
669

query I rowsort
SELECT + + 67 AS col1 FROM tab0 cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL - - COUNT( * ) + - 95 AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - - COUNT ( * ) + - 95 AS col2 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col0 + col2 * + + 64 AS col0 FROM tab1
----
3745
4282
6175

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 98 + + + 25 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
11

query II rowsort
SELECT col2, + 8 FROM tab1 AS cor0
----
59
8
68
8
96
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / + 34 + - 37 - - col0 * + col2 * + + 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 50 * - col1 FROM tab0 AS cor0
----
-1050
-4050
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT MAX( 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT MAX ( 78 ) FROM tab2 AS cor0
----
78

query II rowsort
SELECT DISTINCT + col2, - 62 AS col1 FROM tab2 AS cor0
----
23
-62
40
-62
58
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT + + col0 * col2 * + 39 * - 59 - - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col2 + + + col0 + 28
----

skipif mysql # not compatible
query I rowsort label-924
SELECT + + col0 * col2 * + 39 * - 59 - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col2 + + + col0 + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-925
SELECT col0 * ( CAST( + + col1 AS SIGNED ) ) AS col2, - col1 FROM tab0
----
1215
-81
1827
-21
97
-1

skipif mysql # not compatible
query II rowsort label-925
SELECT col0 * ( CAST ( + + col1 AS INTEGER ) ) AS col2, - col1 FROM tab0
----
1215
-81
1827
-21
97
-1

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

query I rowsort
SELECT DISTINCT - + 37 / col0 FROM tab1 WHERE NULL NOT BETWEEN + + col1 AND - - 92
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 11 <= NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT + col2 + + - CAST( + 0 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-931
SELECT + col2 + + - CAST ( + 0 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT - 52 + + col0 AS col2 FROM tab0
----
-37
35
45

onlyif mysql # DIV for integer division: 
query II rowsort label-933
SELECT DISTINCT col0 DIV + 46, - col0 AS col0 FROM tab0
----
0
-15
1
-87
2
-97

skipif mysql # not compatible
query II rowsort label-933
SELECT DISTINCT col0 / + 46, - col0 AS col0 FROM tab0
----
0
-15
1
-87
2
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT ALL - CAST( + - col2 AS SIGNED ) DIV col1 + - col0 FROM tab1 AS cor0
----
-45
-74
-90

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - CAST ( + - col2 AS INTEGER ) / col1 + - col0 FROM tab1 AS cor0
----
-45
-74
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT 97 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
143
161
172

skipif mysql # not compatible
query I rowsort label-935
SELECT 97 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
143
161
172

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-937
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( + - 52 * - col1, + CAST( NULL AS DECIMAL ), + col2, 58 * + - 54 + + 47 )
----

skipif mysql # not compatible
query III rowsort label-937
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( + - 52 * - col1, + CAST ( NULL AS REAL ), + col2, 58 * + - 54 + + 47 )
----

query I rowsort
SELECT ( - - ( + ( col0 ) ) ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-939
SELECT ALL col1, - 3 DIV col0 AS col1 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL col1, - 3 / col0 AS col1 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT col1 + - ( + - col2 ) * + 8 * col0 * 43 AS col1 FROM tab0 AS cor0
----
242601
299301
3303433

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL COUNT( * ) + COUNT( * ) + - COUNT( * ) + 72 AS col2 FROM tab2 AS cor0
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + 47 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 / col1 * + - col0 + + col2 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-943
SELECT + 47 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 / col1 * + - col0 + + col2 IS NOT NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) + - SUM( DISTINCT col1 ) FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) + - SUM ( DISTINCT col1 ) FROM tab1 cor0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT DISTINCT COUNT( * ) AS col0, 49 AS col2 FROM tab0 AS cor0 WHERE NULL > col0
----
0
49

skipif mysql # not compatible
query II rowsort label-945
SELECT DISTINCT COUNT ( * ) AS col0, 49 AS col2 FROM tab0 AS cor0 WHERE NULL > col0
----
0
49

query I rowsort
SELECT DISTINCT - 77 + + col2 * + 35 * - col0 * - + col1 FROM tab0 AS cor0
----
1998598
336028
639373

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

query I rowsort
SELECT + 21 + + col2 AS col2 FROM tab1 AS cor0
----
117
80
89

query I rowsort
SELECT + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT DISTINCT COUNT( * ) AS col0, - 2 AS col0 FROM tab2
----
3
-2

skipif mysql # not compatible
query II rowsort label-952
SELECT DISTINCT COUNT ( * ) AS col0, - 2 AS col0 FROM tab2
----
3
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL + MAX( ALL - 31 ) FROM tab2 WHERE ( NULL NOT BETWEEN col0 AND 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + MAX ( ALL - 31 ) FROM tab2 WHERE ( NULL NOT BETWEEN col0 AND 84 )
----
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 > + col2 - - - col2
----

query II rowsort
SELECT + 72 AS col0, - ( 60 ) FROM tab2 AS cor0
----
72
-60
72
-60
72
-60

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + 32 + + 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 65 col0 FROM tab1
----
3315
5525
5915

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

query II rowsort
SELECT DISTINCT ( + col2 ) AS col1, + col0 + - 61 AS col0 FROM tab0 AS cor0
----
10
26
47
-46
99
36

query II rowsort
SELECT DISTINCT 80, + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( 13 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT ALL + CAST( 65 AS SIGNED ) + ( + COUNT( * ) ) * 51 AS col1 FROM tab0 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + CAST ( 65 AS INTEGER ) + ( + COUNT ( * ) ) * 51 AS col1 FROM tab0 AS cor0
----
218

query I rowsort
SELECT ALL + 49 FROM tab1 AS cor0 WHERE NOT ( ( NOT col0 / - - ( - + 25 ) IS NOT NULL ) )
----
49
49
49

query I rowsort
SELECT DISTINCT + + ( - col0 ) + + col1 * - + col0 + - col1 + + 99 FROM tab2 cor0
----
-2344
-4970
-5068

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

skipif mysql # not compatible
query I rowsort label-968
SELECT + 96 * + - ( + - MAX ( ALL - col0 ) ) FROM tab2
----
-4416

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 14 col1 FROM tab0
----
1386
140
658

query I rowsort
SELECT DISTINCT 50 * - - col0 AS col2 FROM tab0
----
4350
4850
750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 39 + col2 col2 FROM tab2 WHERE + - 83 + + col0 IS NULL
----

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

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - 29 - - - col2 - - 96 IS NOT NULL
----
-59
-68
-96

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

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

query I rowsort
SELECT + 81 * + - 57 FROM tab0 AS cor0
----
-4617
-4617
-4617

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + 52 + COUNT( * ) col1 FROM tab1 cor0
----
55

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

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

query I rowsort
SELECT + - 59 + col1 FROM tab2 AS cor0
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT - COUNT( * ) + ( + COUNT( * ) ) * - 87 col1 FROM tab0 AS cor0
----
-264

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

query I rowsort
SELECT ALL + col2 * + 78 + + + ( col1 ) + + + ( - col0 ) FROM tab2
----
1799
3133
4516

query I rowsort
SELECT - 23 * col2 * - col2 FROM tab2 AS cor0
----
12167
36800
77372

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 = 59
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-986
SELECT + + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT ALL 80 DIV - - col1 + - - col0 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL 80 / - - col1 + - - col0 AS col1 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT ALL + ( + + col0 ) * + col2 + + - col0 - + col1 AS col2 FROM tab1 AS cor0
----
4831
4925
6050

query I rowsort
SELECT ALL col1 * + col0 * + - 27 - col0 * - - col0 * 56 AS col0 FROM tab0 AS cor0
----
-45405
-473193
-529523

query II rowsort
SELECT ALL + col0 + - col2, + 10 AS col0 FROM tab1 AS cor0
----
-45
10
23
10
26
10

query I rowsort
SELECT - col0 - - - col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT 1 AS col0 FROM tab1 cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-993
SELECT + + 26 - + - col2 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
125
NULL
36
NULL
73
NULL

skipif mysql # not compatible
query II rowsort label-993
SELECT + + 26 - + - col2 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
125
NULL
36
NULL
73
NULL

query I rowsort
SELECT DISTINCT col0 + col0 * + col2 AS col1 FROM tab0
----
720
957
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) * + - col0 col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0 WHERE NOT + + col0 * - col0 / - + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT - ( + 22 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query II rowsort
SELECT DISTINCT + 47 AS col2, 57 AS col0 FROM tab2
----
47
57

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

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

query I rowsort
SELECT DISTINCT - col1 * - ( + - col0 ) + - + 79 FROM tab1 AS cor0
----
-4356
-504
-793

onlyif mysql # DIV for integer division: 
query II rowsort label-1003
SELECT DISTINCT + + col0 AS col2, + col0 DIV 81 FROM tab0 AS cor0
----
15
0
87
1
97
1

skipif mysql # not compatible
query II rowsort label-1003
SELECT DISTINCT + + col0 AS col2, + col0 / 81 FROM tab0 AS cor0
----
15
0
87
1
97
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT - SUM( - - col0 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - SUM ( - - col0 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT SUM( + col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-1006
SELECT SUM ( + col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
121

query I rowsort
SELECT ALL + col0 * 39 * + 1 FROM tab1
----
1989
3315
3549

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 93 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT - col1 + - + 23 AS col0, + col1 FROM tab2
----
-100
77
-74
51
-90
67

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT + COUNT ( * ) / - COUNT ( * ) + + 25 AS col2 FROM tab0
----
24

query I rowsort
SELECT + col2 + - + col0 * + col2 FROM tab2 cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT col1 * + col0 * - - col2 - - + col2 FROM tab0
----
18280
57152
9702

query I rowsort
SELECT ( col2 ) - + + ( + col0 ) + - col0 FROM tab0
----
-164
-95
17

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= 99
----

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

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

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

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

query I rowsort
SELECT + col1 * ( - 16 ) + - col0 AS col0 FROM tab0 AS cor0
----
-113
-1311
-423

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

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

query I rowsort
SELECT ALL ( + 52 ) * + ( + col0 ) * - + ( + col2 ) FROM tab0 AS cor0
----
-36660
-45240
-499356

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * - 90 FROM tab1 AS cor0
----
1260
4230
450

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 88 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1028
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 88 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query I rowsort
SELECT + 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

query II rowsort
SELECT DISTINCT col2, col1 * col1 AS col2 FROM tab0 AS cor0
----
10
441
47
6561
99
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT + + 60 DIV - + col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT + + 60 / - + col0 FROM tab0 AS cor0
----
-4
0
0

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

query II rowsort
SELECT - col1, + 31 AS col0 FROM tab1
----
-14
31
-47
31
-5
31

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

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

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

query I rowsort
SELECT - + col2 FROM tab2 WHERE + 79 > + 99
----

query III rowsort
SELECT * FROM tab2 WHERE + + col0 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT MAX( + - 81 ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT MAX ( + - 81 ) AS col2 FROM tab1
----
-81

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

query I rowsort
SELECT DISTINCT col1 + - col1 * ( + col0 ) FROM tab2
----
-2295
-4851
-4958

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT CAST( NULL AS SIGNED ) + 95 + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT CAST ( NULL AS INTEGER ) + 95 + - col0 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1048
SELECT + - CAST( NULL AS SIGNED ) + - col2 AS col1, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-1048
SELECT + - CAST ( NULL AS INTEGER ) + - col2 AS col1, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT + + MAX( DISTINCT + 37 ) AS col2 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + + MAX ( DISTINCT + 37 ) AS col2 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * - col0 - + - col1 + + - col2 col0 FROM tab2 AS cor0
----
626
869
984

query I rowsort
SELECT ALL - 99 + + col1 * + + 86 - - - 55 + + + col0 AS col2 FROM tab2 AS cor0
----
4278
5683
6532

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT - col0 + + - ( + col1 ) * + CAST( - col2 AS SIGNED ) FROM tab1 WHERE NOT NULL >= - col0
----

skipif mysql # not compatible
query I rowsort label-1059
SELECT - col0 + + - ( + col1 ) * + CAST ( - col2 AS INTEGER ) FROM tab1 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT ALL 61 * - - col2 FROM tab0
----
2867
6039
610

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT + 27 * COUNT( * ) * - + 77 FROM tab2
----
-6237

skipif mysql # not compatible
query I rowsort label-1062
SELECT + 27 * COUNT ( * ) * - + 77 FROM tab2
----
-6237

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1065
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 26 IN ( - CAST( - 10 AS SIGNED ), + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1065
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 26 IN ( - CAST ( - 10 AS INTEGER ), + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT 62 + + col1 FROM tab2
----
113
129
139

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( - col2 - ( 65 ) ) IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT MIN( + 25 ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1071
SELECT MIN ( + 25 ) FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT MIN( ALL 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1072
SELECT MIN ( ALL 27 ) FROM tab2
----
27

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

skipif mysql # not compatible
query I rowsort label-1073
SELECT - ( - 79 ) + COUNT ( * ) AS col1 FROM tab1
----
82

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

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

query I rowsort
SELECT DISTINCT - col2 * - ( ( + col1 ) ) AS col0 FROM tab1
----
1344
295
3196

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

query I rowsort
SELECT DISTINCT col1 - ( 13 ) AS col0 FROM tab0
----
-12
68
8

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

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

query I rowsort
SELECT ALL 56 * + 87 FROM tab0
----
4872
4872
4872

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

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

query I rowsort
SELECT + 85 - col0 FROM tab2
----
10
21
39

query I rowsort
SELECT ALL 40 * + ( + col0 ) - 10 AS col1 FROM tab1
----
2030
3390
3630

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT COUNT( * ) * 64 + - 47 AS col1 FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-1083
SELECT COUNT ( * ) * 64 + - 47 AS col1 FROM tab2
----
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + SUM( 58 ) FROM tab1 WHERE NULL >= + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + SUM ( 58 ) FROM tab1 WHERE NULL >= + 15
----
NULL

query I rowsort
SELECT col0 * + 47 AS col2 FROM tab0
----
4089
4559
705

query I rowsort
SELECT DISTINCT 38 * col2 + - col1 AS col1 FROM tab0
----
1705
359
3761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * 57 col1 FROM tab2
----
798
798
798

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

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

query I rowsort
SELECT - 53 * col0 + - col0 FROM tab0
----
-4698
-5238
-810

query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 FROM tab2 WHERE NOT 36 BETWEEN + col0 AND ( - col1 + 84 )
----
2550
4422
5852

query I rowsort
SELECT DISTINCT col2 * ( 25 ) AS col1 FROM tab1
----
1475
1700
2400

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

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL SUM ( ALL - col1 ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT - 98 DIV + 4 AS col2 FROM tab0 cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-1095
SELECT - 98 / + 4 AS col2 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT ( + col2 ) FROM tab2 cor0 WHERE ( - col0 ) NOT IN ( 80 )
----
23
40
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT DISTINCT 79 DIV + 95 + - col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT 79 / + 95 + - col2 FROM tab2 cor0
----
-23
-40
-58

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

query I rowsort
SELECT - ( + col2 ) - 50 * + col1 FROM tab1 AS cor0
----
-2418
-309
-796

query I rowsort
SELECT DISTINCT - 7 - - col2 AS col0 FROM tab2 cor0
----
16
33
51

query III rowsort
SELECT ALL * FROM tab2 WHERE - 96 IN ( + 52 )
----

query I rowsort
SELECT - 71 + + 70 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 96 / - col2 FROM tab2 WHERE 72 < NULL
----

query I rowsort
SELECT - 37 + - ( + col0 ) * col2 AS col2 FROM tab2
----
-1095
-2597
-4387

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE col0 <> col0
----

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

query I rowsort
SELECT DISTINCT 46 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 22 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col2 <> + 70
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - col1 )
----

query I rowsort
SELECT ALL + - 13 * col0 AS col1 FROM tab0 AS cor0
----
-1131
-1261
-195

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

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + CAST ( - - 19 AS INTEGER ) FROM tab1
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * + col1 col1 FROM tab2
----
3009
3953
4543

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT 96 DIV - col1 FROM tab1
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-1114
SELECT 96 / - col1 FROM tab1
----
-19
-2
-6

query I rowsort
SELECT - 86 * - - col1 AS col0 FROM tab0
----
-1806
-6966
-86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col0 ) col2 FROM tab2
----
2116
4096
5625

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 56 NOT IN ( + 56 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 - - col1 ) IS NULL
----

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT 65 + COUNT( * ) * - MAX( DISTINCT col2 ) + + SUM( ALL + col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1128
SELECT 65 + COUNT ( * ) * - MAX ( DISTINCT col2 ) + + SUM ( ALL + col2 ) AS col1 FROM tab1
----
0

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) > col1
----

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

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

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

query I rowsort
SELECT DISTINCT - - 71 * 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6532

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

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

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

query I rowsort
SELECT DISTINCT col1 + + + 9 AS col1 FROM tab2 AS cor0
----
60
76
86

query I rowsort
SELECT col0 * col1 AS col2 FROM tab1 AS cor0 WHERE + 52 * + col0 <= ( col0 )
----

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

query I rowsort
SELECT + ( + + 23 ) FROM tab0 cor0
----
23
23
23

query I rowsort
SELECT DISTINCT 68 + col1 FROM tab1 cor0 WHERE + col1 + + 99 <= col1
----

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

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

query I rowsort
SELECT DISTINCT - 6 + - col2 FROM tab0 AS cor0
----
-105
-16
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT DISTINCT - ( + col0 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-1

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 33 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - MAX( ALL + - col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1145
SELECT - MAX ( ALL + - col1 ) FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 + col0 col2 FROM tab2
----
-20
-38
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT + CAST( NULL AS SIGNED ) + col0 FROM tab1 WHERE - + 81 - + 55 * + col2 BETWEEN NULL AND - 10 * 89
----

skipif mysql # not compatible
query I rowsort label-1148
SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab1 WHERE - + 81 - + 55 * + col2 BETWEEN NULL AND - 10 * 89
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT + - 94 + + col0 IS NOT NULL
----

query I rowsort
SELECT col1 * - col0 + - col2 + + col0 AS col2 FROM tab0
----
-1247
-1750
-99

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1152
SELECT ALL col1 * CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0 WHERE NOT + ( + 92 ) - - 16 - - col1 NOT BETWEEN col1 AND 5
----

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL col1 * CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0 WHERE NOT + ( + 92 ) - - 16 - - col1 NOT BETWEEN col1 AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT + MAX( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT DISTINCT + + col0 + + 73 + - col1 DIV 6 DIV col0 AS col1 FROM tab0 AS cor0
----
160
170
88

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT + + col0 + + 73 + - col1 / 6 / col0 AS col1 FROM tab0 AS cor0
----
160
170
88

query I rowsort
SELECT - 83 + - col1 FROM tab0 AS cor0
----
-104
-164
-84

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + + col0 / CAST ( NULL AS INTEGER ) + + 70 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - 16 NOT BETWEEN ( + + col1 * - ( col2 ) * + 84 ) AND - col0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * col2 ) = - col1
----

query I rowsort
SELECT ALL + col0 * 79 FROM tab2
----
3634
5056
5925

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE ( col2 ) BETWEEN 0 AND + - ( + ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE ( col2 ) BETWEEN 0 AND + - ( + ( col0 ) )
----
0

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

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

query I rowsort
SELECT DISTINCT ( + 48 ) * - + col2 FROM tab0 AS cor0
----
-2256
-4752
-480

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

query I rowsort
SELECT ALL + + 85 AS col0 FROM tab2 AS cor0
----
85
85
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL - 47 * + 40 * - - COUNT( * ) AS col0 FROM tab2
----
-5640

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - 47 * + 40 * - - COUNT ( * ) AS col0 FROM tab2
----
-5640

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

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

query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab1 WHERE + - col2 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT col2 DIV col0 * + 69 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT col2 / col0 * + 69 FROM tab2
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + 10 AS col2 FROM tab1
----
14
10
47
10
5
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT + 68 DIV + + MAX( 57 ) + - - COUNT( * ) AS col1 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-1175
SELECT + 68 / + + MAX ( 57 ) + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
4

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

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

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

query I rowsort
SELECT ALL + 92 + 82 * - - col1 AS col2 FROM tab2 AS cor0
----
4274
5586
6406

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT ALL - + col2 DIV - col0 + - 42 FROM tab2 cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - + col2 / - col0 + - 42 FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT col0 * 94 AS col2 FROM tab1 WHERE NOT - + col2 + - + col1 NOT IN ( - ( - col0 ) * - ( - col0 ) / - 88 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 2 * + ( - 92 ) < + 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1183
SELECT + - COUNT( * ) DIV + COUNT( DISTINCT - col1 ) + - + 42 AS col2 FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1183
SELECT + - COUNT ( * ) / + COUNT ( DISTINCT - col1 ) + - + 42 AS col2 FROM tab2 cor0
----
-43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 29
----

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

query I rowsort
SELECT - - ( - + 27 ) AS col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( + col2 * + col1 ) AND 64
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT ALL + CAST( NULL AS SIGNED ) + + + col0 + - - col2 * - col0 * - + 65 + - 3 + + col0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + CAST ( NULL AS INTEGER ) + + + col0 + - - col2 * - col0 * - + 65 + - 3 + + col0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 74 + + - col2 AS col1 FROM tab1
----
-133
-142
-170

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

query I rowsort
SELECT ALL + 41 - + - 42 FROM tab0
----
83
83
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT + col0 + - col1 + col0 DIV col2 FROM tab0
----
-66
74
96

skipif mysql # not compatible
query I rowsort label-1191
SELECT + col0 + - col1 + col0 / col2 FROM tab0
----
-66
74
96

query I rowsort
SELECT ALL - + 36 FROM tab0 WHERE col1 <= - 50
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE col0 + - + 66 <= NULL OR NOT NULL NOT BETWEEN col2 AND + 20 * + col0 * + col1 + col2
----

query II rowsort
SELECT col1 AS col0, - col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT col2 DIV + col2 - col1 * - - 74 * col1 FROM tab2
----
-192473
-332185
-438745

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT col2 / + col2 - col1 * - - 74 * col1 FROM tab2
----
-192473
-332185
-438745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT ALL - 14 - CAST( - ( - + CAST( col2 AS SIGNED ) ) AS SIGNED ) col1 FROM tab2
----
-37
-54
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1197
SELECT ALL - 14 - CAST ( - ( - + CAST ( col2 AS INTEGER ) ) AS INTEGER ) col1 FROM tab2
----
-37
-54
-72

query I rowsort
SELECT DISTINCT + + col0 - + 17 AS col2 FROM tab0 AS cor0
----
-2
70
80

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( - col0 * + 82, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1201
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - CAST( - col2 AS SIGNED ) AND 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1201
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - CAST ( - col2 AS INTEGER ) AND 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + + - ( 51 ) FROM tab0 WHERE + col0 * + + col0 * - col0 + col0 <> - + col2
----
-150
-61
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT - + 5 * COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-45

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT - + 5 * COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-45

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0 WHERE + 82 IS NOT NULL
----
73

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

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

query I rowsort
SELECT ( col0 ) * - 82 AS col1 FROM tab1 AS cor0
----
-4182
-6970
-7462

query I rowsort
SELECT DISTINCT 77 * + col1 FROM tab0
----
1617
6237
77

query II rowsort
SELECT DISTINCT - 96 AS col0, - col0 FROM tab1
----
-96
-51
-96
-85
-96
-91

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

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

skipif mysql # not compatible
query II rowsort label-1212
SELECT + ( - ( COUNT ( * ) ) ), 41 AS col2 FROM tab1
----
-3
41

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

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

query I rowsort
SELECT DISTINCT + + col0 + 58 FROM tab0 AS cor0
----
145
155
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - + 84 + - col0 col0, col0 FROM tab0 AS cor0
----
-180
15
-182
97
-192
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT - - COUNT( * ) + 1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - - COUNT ( * ) + 1 FROM tab2 AS cor0
----
4

query II rowsort
SELECT DISTINCT + col0 * - ( + ( - col2 ) ) - - + 94 + col1 + col1 + col1 AS col0, ( - col2 ) AS col1 FROM tab1 AS cor0
----
5032
-96
5124
-59
6423
-68

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT + COUNT( * ) * SUM( ALL + col2 ) DIV ( + 70 ) + COUNT( + + col0 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1220
SELECT + COUNT ( * ) * SUM ( ALL + col2 ) / ( + 70 ) + COUNT ( + + col0 ) AS col0 FROM tab0
----
9

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

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

query I rowsort
SELECT DISTINCT col1 * - + 54 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT DISTINCT 59 + + - col2 FROM tab2 AS cor0
----
1
19
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT 55 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) / col1 + - col0 NOT BETWEEN NULL AND ( - col0 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-1224
SELECT 55 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) / col1 + - col0 NOT BETWEEN NULL AND ( - col0 * + col0 )
----

query II rowsort
SELECT + 13, + 75 + - + col0 AS col2 FROM tab2 AS cor0
----
13
0
13
11
13
29

query I rowsort
SELECT ALL + col0 * - 79 AS col2 FROM tab1 AS cor0
----
-4029
-6715
-7189

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1232
SELECT + 46 DIV CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE 69 IS NOT NULL
----
0
3
9

skipif mysql # not compatible
query I rowsort label-1232
SELECT + 46 / CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE 69 IS NOT NULL
----
0
3
9

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + col1 = + 50
----

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

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

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

query I rowsort
SELECT DISTINCT + col0 - - col0 * - 27 * - col2 + col1 + + + col2 FROM tab2
----
117650
28686
69301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT DISTINCT col2 * - CAST( + 72 AS SIGNED ) AS col0 FROM tab1
----
-4248
-4896
-6912

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT col2 * - CAST ( + 72 AS INTEGER ) AS col0 FROM tab1
----
-4248
-4896
-6912

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL - 11 * - + COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - 11 * - + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + COUNT( * ) * 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
792

skipif mysql # not compatible
query I rowsort label-1241
SELECT + COUNT ( * ) * 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
792

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1242
SELECT 99 * + + col0 * col0 DIV + CAST( + 1 AS SIGNED ) FROM tab2 AS cor0
----
209484
405504
556875

skipif mysql # not compatible
query I rowsort label-1242
SELECT 99 * + + col0 * col0 / + CAST ( + 1 AS INTEGER ) FROM tab2 AS cor0
----
209484
405504
556875

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 - + col0 < 71
----

query I rowsort
SELECT - col1 * + col0 * - col1 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + + - 19 IS NULL
----
194
38454
98430

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT ALL + COUNT( * ) AS col2, - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT + 1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL + COUNT ( * ) AS col2, - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT + 1 IS NOT NULL
----
0
0

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

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col0 * + col2 + - 15 AND NULL
----
51
67
77

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

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

query I rowsort
SELECT 68 * - col2 + + 10 AS col1 FROM tab2
----
-1554
-2710
-3934

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

query I rowsort
SELECT 40 + - - 57 AS col2 FROM tab0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) + - - ( 73 ) col1 FROM tab2
----
113
131
96

query I rowsort
SELECT - col0 + - + ( + - 17 ) AS col0 FROM tab2
----
-29
-47
-58

query I rowsort
SELECT 47 + col2 AS col1 FROM tab1
----
106
115
143

query I rowsort
SELECT + col2 + + col1 + col0 - + col0 FROM tab0
----
100
128
31

query I rowsort
SELECT col2 * 9 * + 52 AS col0 FROM tab2 cor0
----
10764
18720
27144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + 29 col1 FROM tab2 AS cor0
----
-22
-38
-48

query I rowsort
SELECT - col0 * + - 48 - - + col0 FROM tab1
----
2499
4165
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT + COUNT( * ) - 19 * + + 24 FROM tab2
----
-453

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT + COUNT ( * ) - 19 * + + 24 FROM tab2
----
-453

query I rowsort
SELECT - col0 + - col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + 3 + - ( - 45 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1032
-1797
-2607

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT ALL 42 + + - col0 DIV - col1 FROM tab1 AS cor0
----
43
45
59

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 42 + + - col0 / - col1 FROM tab1 AS cor0
----
43
45
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT + + col1 + - col2 DIV - - col2 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-1264
SELECT + + col1 + - col2 / - - col2 FROM tab1 AS cor0
----
13
4
46

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

query I rowsort
SELECT ALL + - col0 + - + 91 FROM tab1 AS cor0
----
-142
-176
-182

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT ALL + CAST( - - col2 AS SIGNED ) * col2 + - 23 - - + col1 FROM tab1
----
3463
4648
9207

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + CAST ( - - col2 AS INTEGER ) * col2 + - 23 - - + col1 FROM tab1
----
3463
4648
9207

query II rowsort
SELECT col0, - col2 * - col1 + - col2 AS col1 FROM tab1
----
51
1248
85
236
91
3128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - MIN( + + 7 ) AS col1 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-1271
SELECT - MIN ( + + 7 ) AS col1 FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT COUNT( * ) * - 55 * - 88 AS col2 FROM tab0
----
14520

skipif mysql # not compatible
query I rowsort label-1272
SELECT COUNT ( * ) * - 55 * - 88 AS col2 FROM tab0
----
14520

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

query II rowsort
SELECT ALL + col1 AS col0, col1 AS col1 FROM tab1 WHERE - 57 * + col0 * + col2 IS NULL
----

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

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

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

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

query II rowsort
SELECT - col0 AS col2, col1 + - 66 AS col0 FROM tab2 AS cor0
----
-46
-15
-64
11
-75
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1280
SELECT + + col1, CAST( 5 AS SIGNED ) * + col1 DIV - col1 FROM tab0 AS cor0
----
1
-5
21
-5
81
-5

skipif mysql # not compatible
query II rowsort label-1280
SELECT + + col1, CAST ( 5 AS INTEGER ) * + col1 / - col1 FROM tab0 AS cor0
----
1
-5
21
-5
81
-5

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

query I rowsort
SELECT + + 97 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col2 * - col0 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col2 * - col0 FROM tab0
----
10575
75690
931491

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT DISTINCT 57 DIV - + 27 + + - 14 + + col1 FROM tab0 AS cor0
----
-15
5
65

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT 57 / - + 27 + + - 14 + + col1 FROM tab0 AS cor0
----
-15
5
65

query II rowsort
SELECT + col2, - 68 FROM tab0
----
10
-68
47
-68
99
-68

query I rowsort
SELECT ALL 39 * + col1 AS col0 FROM tab1
----
1833
195
546

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT SUM( - + col2 ) * + + 18 FROM tab2
----
-2178

skipif mysql # not compatible
query I rowsort label-1289
SELECT SUM ( - + col2 ) * + + 18 FROM tab2
----
-2178

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

query I rowsort
SELECT col0 + 37 - col2 * - col1 * col2 FROM tab2 AS cor0
----
123301
225500
27062

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( 31, + 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT ( + 65 ) * 31 + MAX( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
2106

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT ( + 65 ) * 31 + MAX ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL + COUNT( * ) * - 66 AS col2 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + COUNT ( * ) * - 66 AS col2 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT + 35 + - + col0 AS col1 FROM tab1 AS cor0
----
-16
-50
-56

query I rowsort
SELECT ( - 44 ) FROM tab1 AS cor0 WHERE ( NULL BETWEEN NULL AND + col1 - - + col1 / col1 )
----

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

query I rowsort
SELECT 55 * - 29 - + col1 FROM tab0 cor0
----
-1596
-1616
-1676

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 + col0 - - + col2 + col2 FROM tab0 AS cor0
----
338
395
3997

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - COUNT( 98 ) - - + MAX( ALL - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1301
SELECT - COUNT ( 98 ) - - + MAX ( ALL - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT ALL + - col0 + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + - col0 + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-174
-194
-30

query II rowsort
SELECT - col2 - - + col1 * - + col0 * + col1 * + + 42 * - col0 + + col2, 10 AS col0 FROM tab1 AS cor0
----
21411432
10
7586250
10
768294618
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL COUNT( * ) * + - MIN( + col0 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL COUNT ( * ) * + - MIN ( + col0 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 80 * 22 <> NULL
----

query II rowsort
SELECT - col1, col1 * 38 AS col2 FROM tab1
----
-14
532
-47
1786
-5
190

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 - + - 63 <= + col0 - - + col1
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT - MAX( - - 27 ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT - MAX ( - - 27 ) AS col2 FROM tab0
----
-27

query II rowsort
SELECT DISTINCT 62, 55 AS col2 FROM tab0
----
62
55

query II rowsort
SELECT ALL col2 AS col2, col2 FROM tab2 WHERE - ( - 72 ) IS NOT NULL
----
23
23
40
40
58
58

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT - col0 DIV 40 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1314
SELECT - col0 / 40 FROM tab2 AS cor0
----
-1
-1
-1

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT + col2 DIV - + col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1318
SELECT + col2 / - + col2 FROM tab2
----
-1
-1
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1320
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + + SUM( DISTINCT col1 ), + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL
3

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

query II rowsort
SELECT - 91 AS col2, col1 FROM tab2 AS cor0
----
-91
51
-91
67
-91
77

query I rowsort
SELECT ALL - col2 + 4 FROM tab0 AS cor0
----
-43
-6
-95

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

skipif mysql # not compatible
query II rowsort label-1323
SELECT + + MAX ( - col2 ), ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-59
-3

query I rowsort
SELECT DISTINCT - + 33 * - + 68 FROM tab0 AS cor0
----
2244

query I rowsort
SELECT ALL - 89 AS col1 FROM tab0 AS cor0 WHERE NOT ( - 7 ) + + + col2 * + - col0 / + 71 / - + 86 <> NULL
----

query I rowsort
SELECT ALL - col1 + 1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT ALL + ( 2 ) * col2 * col2 AS col1 FROM tab0
----
19602
200
4418

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

query I rowsort
SELECT 57 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 + + 5 AS col2 FROM tab1
----
-54
-63
-91

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

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

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

query I rowsort
SELECT + 86 * + 15 + - col1 FROM tab0
----
1209
1269
1289

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + + 49 < - col1
----

query II rowsort
SELECT - col1 * - 21 AS col0, col0 * col0 AS col2 FROM tab1
----
105
7225
294
2601
987
8281

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

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

query I rowsort
SELECT DISTINCT + 98 + 54 AS col0 FROM tab0 AS cor0
----
152

query I rowsort
SELECT ALL col1 + 0 AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 46 * ( col0 ) + 56 FROM tab1
----
2402
3966
4242

query I rowsort
SELECT ALL + ( 56 ) AS col0 FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT SUM( - - col1 ) FROM tab0 WHERE NOT ( NULL < NULL ) OR - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT SUM ( - - col1 ) FROM tab0 WHERE NOT ( NULL < NULL ) OR - col1 IS NULL
----
NULL

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + + 24 FROM tab2 AS cor0
----
23
70
40
88
58
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 12 + - 67 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL - + SUM( ALL - 87 ) AS col0 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL - + SUM ( ALL - 87 ) AS col0 FROM tab0 AS cor0
----
261

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 69 * col1 AS col0 FROM tab2
----
3519
4623
5313

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT SUM( ALL + 36 ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-1352
SELECT SUM ( ALL + 36 ) FROM tab1
----
108

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

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

query I rowsort
SELECT ALL - - 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT + 24 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1355
SELECT + 24 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1356
SELECT ALL + 46 AS col2, + col2 DIV - - col1 AS col2 FROM tab1 AS cor0
----
46
1
46
11
46
6

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL + 46 AS col2, + col2 / - - col1 AS col2 FROM tab1 AS cor0
----
46
1
46
11
46
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 >= 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + 83 col2 FROM tab0 AS cor0
----
170
180
98

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + + 51 * 60
----

query I rowsort
SELECT DISTINCT + col2 + ( + - col1 ) AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1362
SELECT - AVG ( + - col1 ) / - - COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT - AVG ( + - col1 ) / - - COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL - 35 * COUNT( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - 35 * COUNT ( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL col2, + 89 FROM tab2
----
23
89
40
89
58
89

query I rowsort
SELECT DISTINCT - col1 - + col0 + - + col1 FROM tab2
----
-148
-209
-218

query I rowsort
SELECT ALL + col1 + col0 + + - col0 * + col2 AS col2 FROM tab0
----
-609
-762
-9505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1367
SELECT + 60 DIV - 77 + - COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1367
SELECT + 60 / - 77 + - COUNT ( * ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + 67 * 89 FROM tab1 WHERE + col2 * - col2 * - - col0 IS NOT NULL
----
5963
5963
5963

query I rowsort
SELECT - + col0 * col2 + - 55 FROM tab1 AS cor0
----
-4951
-5070
-6243

query I rowsort
SELECT ALL 46 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
46
46

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

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

query I rowsort
SELECT - + 66 * ( - col0 ) FROM tab2 cor0
----
3036
4224
4950

onlyif mysql # DIV for integer division: 
query II rowsort label-1373
SELECT ALL - + 4 DIV 24 + col0 AS col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL - + 4 / 24 + col0 AS col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT - 65 * + col0 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT ALL + 47 DIV 74 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + 47 / 74 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 25 * + col0 * - + 82 <> NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE col0 <= + col0
----
46
64
75

query II rowsort
SELECT ALL col0, col2 * - + col0 FROM tab0
----
15
-705
87
-870
97
-9603

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1379
SELECT + MAX ( + - col0 ) col1 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1380
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1380
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col1 + - 44 / + 94 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 49 ) * - 63 + + ( col0 ) AND NULL
----

query I rowsort
SELECT 28 * 64 AS col2 FROM tab1
----
1792
1792
1792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1385
SELECT ALL + SUM( col0 ) DIV + + 44 + - 62 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NULL OR NOT 81 <> ( + 15 )
----
-57

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL + SUM ( col0 ) / + + 44 + - 62 FROM tab1 WHERE CAST ( NULL AS REAL ) IS NULL OR NOT 81 <> ( + 15 )
----
-57

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

query I rowsort
SELECT ALL - - ( col1 ) * 23 * + + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( NOT - - col2 * + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT ( col0 ) DIV - + 59 + col0 + - col1 + + col0 FROM tab2 cor0
----
41
50
82

skipif mysql # not compatible
query I rowsort label-1388
SELECT ( col0 ) / - + 59 + col0 + - col1 + + col0 FROM tab2 cor0
----
41
50
82

query I rowsort
SELECT + 69 + - 41 FROM tab0 AS cor0
----
28
28
28

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

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

query I rowsort
SELECT ALL + 34 + - col2 * + col2 * - 8 * col0 + + - 17 FROM tab1 AS cor0
----
2367097
3366289
3760145

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT + + COUNT( * ) * + - 84 FROM tab0 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
-252

skipif mysql # not compatible
query I rowsort label-1392
SELECT + + COUNT ( * ) * + - 84 FROM tab0 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
-252

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col1 + - col2 IN ( + ( col1 ) / ( + col1 ) * - 94, + col2 * - + 48 )
----

query I rowsort
SELECT ALL + 90 * + col0 + - col1 FROM tab2
----
4089
5683
6683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1395
SELECT DISTINCT 76 - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT col1 * + 61 AS col2 FROM tab0
----
1281
4941
61

query II rowsort
SELECT DISTINCT + 96, - 40 AS col0 FROM tab2
----
96
-40

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL > - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1399
SELECT DISTINCT MAX( ALL CAST( + + 53 AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) * + 72 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT MAX ( ALL CAST ( + + 53 AS INTEGER ) ) * - CAST ( NULL AS REAL ) * + 72 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 * 26 FROM tab0 AS cor0
----
-1222
-2574
-260

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT + SUM( ALL - + col1 ) - 62, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-128
3

skipif mysql # not compatible
query II rowsort label-1402
SELECT + SUM ( ALL - + col1 ) - 62, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-128
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT DISTINCT + 19 DIV - col0 - - + col2 AS col1, 47 FROM tab0 AS cor0
----
10
47
46
47
99
47

skipif mysql # not compatible
query II rowsort label-1403
SELECT DISTINCT + 19 / - col0 - - + col2 AS col1, 47 FROM tab0 AS cor0
----
10
47
46
47
99
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT SUM( ALL 8 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1404
SELECT SUM ( ALL 8 ) FROM tab2
----
24

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

query I rowsort
SELECT - - 90 * + col1 + - col1 FROM tab2 cor0
----
4539
5963
6853

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT DISTINCT + + col1 DIV - col2 + + col2 DIV + - col1 AS col2 FROM tab0 AS cor0
----
-1
-2
-99

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT + + col1 / - col2 + + col2 / + - col1 AS col2 FROM tab0 AS cor0
----
-1
-2
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT ALL + col0 * - col1 * - + 9 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
10935
16443
873

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + col0 * - col1 * - + 9 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
10935
16443
873

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

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

skipif mysql # not compatible
query I rowsort label-1412
SELECT + - MIN ( - 35 ) FROM tab2 AS cor0
----
35

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

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

skipif mysql # not compatible
query I rowsort label-1414
SELECT - ( MIN ( + 60 ) ) AS col2 FROM tab1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT 61 DIV + col1 AS col0 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-1415
SELECT 61 / + col1 AS col0 FROM tab1
----
1
12
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT COUNT( DISTINCT - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT COUNT ( DISTINCT - col0 ) FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + SUM( 73 ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + SUM ( 73 ) FROM tab0 AS cor0
----
219

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

query I rowsort
SELECT col1 * - col2 + + + 61 AS col0 FROM tab1
----
-1283
-234
-3135

query II rowsort
SELECT - col0 * + - col1 + + col1, col1 FROM tab0
----
1296
81
1848
21
98
1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 93 + + 72 IS NOT NULL
----

query II rowsort
SELECT - 80 + - col2 + 9, + col1 AS col2 FROM tab2
----
-111
77
-129
67
-94
51

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - col1 * - 36 FROM tab0 AS cor0
----
-61
2901
669

onlyif mysql # aggregate syntax: 
query II rowsort label-1428
SELECT - - COUNT( * ), - MAX( - - col0 ) + + + 11 col2 FROM tab1 AS cor0
----
3
-80

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

query I rowsort
SELECT ALL col2 + + 19 AS col0 FROM tab2 AS cor0
----
42
59
77

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

query I rowsort
SELECT ALL - col2 * + col2 + - col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

query I rowsort
SELECT - 84 - + col0 + col0 FROM tab2
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT - 25 * - COUNT( * ) - + - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 25 * - COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT 77 AS col2 FROM tab2 WHERE - - col1 <= - col1 * col1
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1436
SELECT col1 + - 95 + col1 DIV - col1 AS col2, + col1 + + col1 FROM tab2
----
-19
154
-29
134
-45
102

skipif mysql # not compatible
query II rowsort label-1436
SELECT col1 + - 95 + col1 / - col1 AS col2, + col1 + + col1 FROM tab2
----
-19
154
-29
134
-45
102

query I rowsort
SELECT DISTINCT col1 * + col0 * + 68 AS col0 FROM tab2 AS cor0
----
159528
335104
341700

query I rowsort
SELECT - col0 * + col2 * - + col1 FROM tab2 cor0
----
197120
291450
53958

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

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT MIN ( - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT 20 * - 38 FROM tab0 AS cor0
----
-760

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - - SUM( col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - - SUM ( col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT + 10 DIV - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 10 / - COUNT ( * ) FROM tab1 cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT 72 * - - COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1446
SELECT 72 * - - COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + COUNT( * ) - + - 30 FROM tab2, tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1449
SELECT + COUNT ( * ) - + - 30 FROM tab2, tab2 AS cor0
----
39

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

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

query I rowsort
SELECT ALL col2 + - col0 + - + 75 AS col0 FROM tab2
----
-92
-98
-99

query II rowsort
SELECT ALL col2 + - col2 + 34 * + col2 * ( - col0 ) + - col0 - - - 63, col2 * - col2 * col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - col2
----

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 + + + 87 FROM tab0 AS cor0
----
-9
153
21

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

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0 JOIN tab0 cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT + 97 * + col0 FROM tab2
----
4462
6208
7275

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL 63 DIV + + col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL 63 / + + col0 FROM tab0
----
0
0
4

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

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

query I rowsort
SELECT + 21 + - col1 FROM tab1 AS cor0
----
-26
16
7

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

query I rowsort
SELECT DISTINCT - 9 + - - 22 AS col1 FROM tab1 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL MIN( + - col0 ) AS col0 FROM tab1 AS cor0 WHERE 93 NOT BETWEEN NULL AND + ( - col2 ) / - 9 + - 58 + + 35 * - col2 * - col1 + col1 + + 58 / col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL MIN ( + - col0 ) AS col0 FROM tab1 AS cor0 WHERE 93 NOT BETWEEN NULL AND + ( - col2 ) / - 9 + - 58 + + 35 * - col2 * - col1 + col1 + + 58 / col2
----
NULL

query I rowsort
SELECT col2 * + 63 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3717
4284
6048

query I rowsort
SELECT DISTINCT + 59 * + col2 + - col1 FROM tab0 cor0
----
2692
569
5840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT col0 * ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE 64 * - col2 * + + ( 59 ) <> - CAST( - col0 AS SIGNED )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT col0 * ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE 64 * - col2 * + + ( 59 ) <> - CAST ( - col0 AS INTEGER )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT + - 78 + SUM( ALL - + 6 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT + - 78 + SUM ( ALL - + 6 ) FROM tab0 AS cor0
----
-96

query II rowsort
SELECT DISTINCT + 55 + - col2, - 57 AS col0 FROM tab2 cor0
----
-3
-57
15
-57
32
-57

query I rowsort
SELECT ALL 87 + col2 FROM tab0 cor0
----
134
186
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + ( 45 ) ) col2, 82 + col1 * - - col1 * + col2 FROM tab2
----
-45
237242
-45
260444
-45
59905

query I rowsort
SELECT ALL - AVG ( ALL + - 68 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - col1 - + 7 AS col0 FROM tab2
----
-58
-74
-84

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 28 * - col1 - - - 72 - col2 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 57 FROM tab0
----
2679
5643
570

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

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

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

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

query I rowsort
SELECT ( - 44 ) AS col1 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ( col2 ) * - 93 * - 23 * + + col0 AS col2 FROM tab0 AS cor0
----
1507995
1860930
20540817

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL - COUNT( * ) * 29 AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - COUNT ( * ) * 29 AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col2 * - 14 FROM tab0
----
-1386
-140
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT ALL ( 69 ) DIV - ( 70 ) col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT ALL ( 69 ) / - ( 70 ) col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT DISTINCT 87 DIV 47 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT 87 / 47 FROM tab2
----
1

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

query II rowsort
SELECT col0 + col0, col0 * - + col0 * - col2 / - col2 + + 36 FROM tab0 cor0 WHERE NULL < - 95 / - - 1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND - col2 * + 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT + col2 AS col2, col2 + + + col1 + + 38 AS col1 FROM tab0 AS cor0 WHERE NULL <> - col1
----

query II rowsort
SELECT 50, col1 * - + 63 AS col2 FROM tab0 AS cor0
----
50
-1323
50
-5103
50
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT DISTINCT + 64 AS col0, + 59 * - + SUM( ALL - 72 ) FROM tab0 AS cor0
----
64
12744

skipif mysql # not compatible
query II rowsort label-1495
SELECT DISTINCT + 64 AS col0, + 59 * - + SUM ( ALL - 72 ) FROM tab0 AS cor0
----
64
12744

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL - COUNT( * ) * + 54 + + - 26 FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - COUNT ( * ) * + 54 + + - 26 FROM tab2 AS cor0
----
-188

query I rowsort
SELECT - - col2 - 81 AS col2 FROM tab0 cor0
----
-34
-71
18

query I rowsort
SELECT ALL - col2 * col2 * + 29 + - 64 + + 57 FROM tab1 AS cor0
----
-100956
-134103
-267271

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - 84 - COUNT( + col0 ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1500
SELECT - 84 - COUNT ( + col0 ) FROM tab1 AS cor0
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1501
SELECT * FROM tab2 WHERE col2 * col0 + + CAST( NULL AS DECIMAL ) * + + col0 NOT IN ( + - col2 / - - ( - - 23 ) + + col0, col2, 79 * + 75 + + 87 )
----

skipif mysql # not compatible
query III rowsort label-1501
SELECT * FROM tab2 WHERE col2 * col0 + + CAST ( NULL AS REAL ) * + + col0 NOT IN ( + - col2 / - - ( - - 23 ) + + col0, col2, 79 * + 75 + + 87 )
----

query II rowsort
SELECT col1 + + col1, ( + + col1 ) AS col1 FROM tab0
----
162
81
2
1
42
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1503
SELECT + + COUNT( * ) + + 14 + + 61 col2, COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - + col2 AND 47
----
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1503
SELECT + + COUNT ( * ) + + 14 + + 61 col2, COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - + col2 AND 47
----
75
0

query II rowsort
SELECT DISTINCT - 77 * - col0, col2 AS col0 FROM tab1
----
3927
96
6545
59
7007
68

query I rowsort
SELECT + ( + 79 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL - - 17 AS col1 FROM tab0 WHERE NOT col1 / + - 14 IS NOT NULL
----

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

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

query I rowsort
SELECT + col0 * - 37 FROM tab2
----
-1702
-2368
-2775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 92 ) * + + 52 col0 FROM tab1 AS cor0
----
-4784
-4784
-4784

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL + ( + SUM( DISTINCT + col1 ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + ( + SUM ( DISTINCT + col1 ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT ALL + 19 * - col1 + + 92 AS col2 FROM tab1 cor0
----
-174
-3
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1512
SELECT COUNT( DISTINCT - - CAST( - - col1 AS SIGNED ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1512
SELECT COUNT ( DISTINCT - - CAST ( - - col1 AS INTEGER ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - COUNT( * ) + + 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-1513
SELECT - COUNT ( * ) + + 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
31

query II rowsort
SELECT + + col2 AS col2, - 27 * - 42 * + col0 AS col0 FROM tab2 AS cor0
----
23
52164
40
72576
58
85050

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT + 44 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + 44 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-132

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN + - 29 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1519
SELECT ALL - col1 DIV + col1 AS col0, col0 AS col2 FROM tab1
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
query II rowsort label-1519
SELECT ALL - col1 / + col1 AS col0, col0 AS col2 FROM tab1
----
-1
51
-1
85
-1
91

query I rowsort
SELECT 82 + - 95 FROM tab2
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT ALL - 77 DIV col2 * 10 FROM tab1
----
-10
-10
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - 77 / col2 * 10 FROM tab1
----
-10
-10
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1522
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT 91 * col1 + - + 73 FROM tab0
----
18
1838
7298

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + COUNT( * ) + - + 33 + + 17 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COUNT ( * ) + - + 33 + + 17 FROM tab1
----
-13

query I rowsort
SELECT col0 + - ( - 74 ) * - col0 FROM tab2
----
-3358
-4672
-5475

query I rowsort
SELECT ALL col1 + - col0 + - - col2 FROM tab0 cor0
----
-56
113
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT - - SUM( 91 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT - - SUM ( 91 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 * - + col1 * - - 87 NOT BETWEEN - col0 AND - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 * - + ( + 35 ) + - col1 AS col0 FROM tab1 AS cor0
----
-1692
-180
-504

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 69 NOT BETWEEN NULL AND - 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT + col1 * col0 + + - 52 AS col1, + ( 11 ) AS col0 FROM tab2
----
2294
11
4876
11
4973
11

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 92 * + - 14 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-3

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1538
SELECT - MIN ( - col2 ) col0 FROM tab1
----
96

query I rowsort
SELECT - col2 * - ( col2 ) AS col2 FROM tab2
----
1600
3364
529

query II rowsort
SELECT ALL + col0 AS col2, ( - 71 ) AS col0 FROM tab2
----
46
-71
64
-71
75
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-1541
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1541
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1, col0, 53 col0 FROM tab2
----
9 values hashing to 26afc3cf41fc6235f34376ddb74b0470

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

query II rowsort
SELECT ALL + + col0 AS col0, + 42 * + col0 FROM tab0 AS cor0
----
15
630
87
3654
97
4074

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

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

query II rowsort
SELECT ALL - - col1 AS col2, - col2 * + col1 * + 20 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 * - col2 AND + 19 + + + col2
----

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

query II rowsort
SELECT ALL 43 + + col1, - col1 * - + 66 AS col2 FROM tab1 AS cor0
----
48
330
57
924
90
3102

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * col1 col0 FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query II rowsort label-1552
SELECT ALL col1 * + col1 * + col2 + - col0 + - col0 * col2, + ( - - 78 ) DIV - 68 AS col1 FROM tab2
----
234536
-1
255937
-1
58719
-1

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL col1 * + col1 * + col2 + - col0 + - col0 * col2, + ( - - 78 ) / - 68 AS col1 FROM tab2
----
234536
-1
255937
-1
58719
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + SUM( ALL 67 ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + SUM ( ALL 67 ) FROM tab0 AS cor0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1556
SELECT DISTINCT 49 * - CAST( NULL AS SIGNED ) + - 39 + + col0 * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT 49 * - CAST ( NULL AS INTEGER ) + - 39 + + col0 * + col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT DISTINCT 89 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT 89 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT ( - 57 ) AS col1 FROM tab2
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL col2 DIV + 21 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL col2 / + 21 FROM tab0
----
0
2
4

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

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

query I rowsort
SELECT 37 * - col2 + + 41 FROM tab2
----
-1439
-2105
-810

query I rowsort
SELECT ALL - 86 - 45 FROM tab0
----
-131
-131
-131

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( + 71 * 8 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col0 FROM tab2 WHERE + 9 + + col1 <> CAST( col0 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE + 9 + + col1 <> CAST ( col0 AS INTEGER )
----
-3

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

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

query I rowsort
SELECT DISTINCT - 27 + col2 FROM tab2
----
-4
13
31

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

query I rowsort
SELECT 71 + ( + 15 ) AS col1 FROM tab2
----
86
86
86

query I rowsort
SELECT ALL + 42 + - ( 22 ) * 26 FROM tab0
----
-530
-530
-530

query I rowsort
SELECT DISTINCT 64 * + col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1574
SELECT ALL CAST( NULL AS SIGNED ) + MIN( 9 + + 28 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL CAST ( NULL AS INTEGER ) + MIN ( 9 + + 28 ) AS col0 FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT + COUNT( * ) * 44 - 48 AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COUNT ( * ) * 44 - 48 AS col0 FROM tab0
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1578
SELECT + col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) = ( 12 )
----

skipif mysql # not compatible
query I rowsort label-1578
SELECT + col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) = ( 12 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ALL 12 * col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 * col0 ) AND 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 - col2 col2 FROM tab1
----
-22
-31
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL + SUM( ALL 75 ) col2 FROM tab1 WHERE NOT ( + 34 ) >= col0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1582
SELECT ALL + SUM ( ALL 75 ) col2 FROM tab1 WHERE NOT ( + 34 ) >= col0
----
225

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 13 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 40 <> ( 76 / col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 40 <> ( 76 / col0 )
----
0

query I rowsort
SELECT 13 * 8 AS col2 FROM tab1 AS cor0
----
104
104
104

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 cor0 WHERE NULL IS NULL
----
225
7569
9409

query I rowsort
SELECT ALL 71 * col1 FROM tab0 AS cor0
----
1491
5751
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT 62 * + COUNT( * ) AS col1 FROM tab0 cor0
----
186

skipif mysql # not compatible
query I rowsort label-1590
SELECT 62 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ( - SUM( - 5 ) ) FROM tab0 AS cor0 CROSS JOIN tab0
----
45

skipif mysql # not compatible
query I rowsort label-1592
SELECT ( - SUM ( - 5 ) ) FROM tab0 AS cor0 CROSS JOIN tab0
----
45

query I rowsort
SELECT ALL - col1 / 14 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 36 * + col0 AS col1 FROM tab0
----
3132
3492
540

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + 68 / - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - 21 * COUNT( * ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1596
SELECT - 21 * COUNT ( * ) FROM tab0 AS cor0
----
-63

query I rowsort
SELECT col2 - + col2 FROM tab2 cor0 WHERE + col2 * - ( 73 ) IS NULL
----

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

query I rowsort
SELECT DISTINCT - 60 * + col0 + - col1 AS col0 FROM tab1 AS cor0 WHERE - col1 * 24 + col0 IN ( ( - 82 ) )
----

query I rowsort
SELECT - - 99 + col2 FROM tab1 cor0
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT 2 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT 2 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL + - col0 + + ( - 9 + col2 ) FROM tab0 AS cor0
----
-7
-86
23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1603
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - 54 BETWEEN ( CAST( + 29 AS DECIMAL ) ) AND 78
----

skipif mysql # not compatible
query III rowsort label-1603
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - 54 BETWEEN ( CAST ( + 29 AS REAL ) ) AND 78
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - 86 + COUNT( * ) FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 86 + COUNT ( * ) FROM tab2 cor0
----
-83

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) * + col1 > - 98
----
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT - col1 + + CAST( NULL AS SIGNED ) / CAST( - col0 * CAST( NULL AS SIGNED ) + - 25 * 59 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT - col1 + + CAST ( NULL AS INTEGER ) / CAST ( - col0 * CAST ( NULL AS INTEGER ) + - 25 * 59 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 56 + + 56 AS col1 FROM tab0
----
112
112
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + COUNT( * ) FROM tab2 WHERE ( - 60 + col1 ) NOT BETWEEN ( - 6 ) AND ( NULL )
----
1

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) FROM tab2 WHERE ( - 60 + col1 ) NOT BETWEEN ( - 6 ) AND ( NULL )
----
1

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

query I rowsort
SELECT ALL col2 + + 86 * - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1796
-6919
13

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - 43 * COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-1615
SELECT - 43 * COUNT ( * ) FROM tab0
----
-129

query I rowsort
SELECT DISTINCT + 54 + 27 + + 40 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - col2 - + 82 AS col1 FROM tab1 AS cor0
----
-141
-150
-178

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 15 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT col1 - - + col1 + 76 * + 77 FROM tab0
----
5854
5894
6014

query I rowsort
SELECT + col0 + 67 * col1 FROM tab0
----
1494
164
5442

query I rowsort
SELECT DISTINCT + 5 * + + col2 FROM tab1 AS cor0
----
295
340
480

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT + + COUNT( * ) DIV + 83 + + 10 col2 FROM tab2 cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1625
SELECT + + COUNT ( * ) / + 83 + + 10 col2 FROM tab2 cor0
----
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT - MIN( DISTINCT - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1627
SELECT - MIN ( DISTINCT - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51

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

query I rowsort
SELECT DISTINCT - 60 * - + col0 AS col2 FROM tab1
----
3060
5100
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT + COUNT( * ) FROM tab1 WHERE NOT - - 94 = + col0
----
3

skipif mysql # not compatible
query I rowsort label-1630
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - - 94 = + col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1631
SELECT ALL col1 DIV - col1 AS col2, 26 * + + ( col1 ) FROM tab1
----
-1
1222
-1
130
-1
364

skipif mysql # not compatible
query II rowsort label-1631
SELECT ALL col1 / - col1 AS col2, 26 * + + ( col1 ) FROM tab1
----
-1
1222
-1
130
-1
364

query I rowsort
SELECT 2 FROM tab1 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT - 94 * - ( ( COUNT( * ) ) ) AS col0 FROM tab1 WHERE NOT + + 8 IN ( + + 2 )
----
282

skipif mysql # not compatible
query I rowsort label-1633
SELECT - 94 * - ( ( COUNT ( * ) ) ) AS col0 FROM tab1 WHERE NOT + + 8 IN ( + + 2 )
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1634
SELECT col1 + + CAST( - + 9 AS SIGNED ) FROM tab0 AS cor0
----
-8
12
72

skipif mysql # not compatible
query I rowsort label-1634
SELECT col1 + + CAST ( - + 9 AS INTEGER ) FROM tab0 AS cor0
----
-8
12
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT 81 * COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT 81 * COUNT ( * ) FROM tab0
----
243

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

query II rowsort
SELECT ALL + 66 * + 2 + + 40 AS col1, - col0 AS col0 FROM tab1
----
172
-51
172
-85
172
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1638
SELECT + 95 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1638
SELECT + 95 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-31

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

query I rowsort
SELECT ALL + 3 FROM tab0 cor0 WHERE NULL > + col0
----

query I rowsort
SELECT + + 68 * - 1 + + + 14 * - ( - 11 ) FROM tab2 AS cor0
----
86
86
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT - + SUM( DISTINCT + + 17 ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1643
SELECT - + SUM ( DISTINCT + + 17 ) FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL + 29 + + 75 * ( + 1 ) * + - 88 - + COUNT( * ) FROM tab0 AS cor0
----
-6574

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + 29 + + 75 * ( + 1 ) * + - 88 - + COUNT ( * ) FROM tab0 AS cor0
----
-6574

query I rowsort
SELECT - 87 - + 96 FROM tab2
----
-183
-183
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1646
SELECT DISTINCT ( + CAST( + col1 AS SIGNED ) ) + - + ( + 24 ) FROM tab2
----
27
43
53

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT ( + CAST ( + col1 AS INTEGER ) ) + - + ( + 24 ) FROM tab2
----
27
43
53

query I rowsort
SELECT ALL - + 38 FROM tab1 WHERE NOT ( NOT + 40 IS NULL )
----

query I rowsort
SELECT col2 - - 8 AS col1 FROM tab1
----
104
67
76

query I rowsort
SELECT DISTINCT ( col0 ) - col1 + - 47 FROM tab1
----
-10
-3
33

query III rowsort
SELECT * FROM tab1 WHERE - ( - + col0 ) / - col2 * + + 50 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT DISTINCT COUNT( * ) AS col1, + 8 col1 FROM tab0
----
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1651
SELECT DISTINCT COUNT ( * ) AS col1, + 8 col1 FROM tab0
----
3
8

query I rowsort
SELECT col2 * - - 54 + + col2 FROM tab2
----
1265
2200
3190

query III rowsort
SELECT * FROM tab0 WHERE - + col1 * col1 * + col2 - + - col2 IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( col1 * 3 ) >= ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - col2 * + col0
----

query I rowsort
SELECT + 25 * col2 * + 58 AS col0 FROM tab2 AS cor0
----
33350
58000
84100

query II rowsort
SELECT - - col2, 4 + col0 AS col1 FROM tab2 AS cor0
----
23
50
40
68
58
79

query I rowsort
SELECT ALL + col0 + col1 - + 82 FROM tab1 AS cor0
----
-17
56
8

query I rowsort
SELECT ALL + 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT + 10 * - 44 AS col2 FROM tab0
----
-440

query I rowsort
SELECT - col0 * + col0 + + col2 * + ( + 88 ) FROM tab1 AS cor0
----
-2033
-2297
5847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col0 FROM tab1 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - col1 * - + 68 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - + 78 * - ( + - MIN( DISTINCT + col2 ) ) AS col2 FROM tab0 cor0
----
-780

skipif mysql # not compatible
query I rowsort label-1665
SELECT - + 78 * - ( + - MIN ( DISTINCT + col2 ) ) AS col2 FROM tab0 cor0
----
-780

query I rowsort
SELECT + ( - - 57 ) AS col1 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT CAST( NULL AS SIGNED ) / + ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1667
SELECT CAST ( NULL AS INTEGER ) / + ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT - 80 DIV - col1 FROM tab1 AS cor0
----
1
16
5

skipif mysql # not compatible
query I rowsort label-1668
SELECT - 80 / - col1 FROM tab1 AS cor0
----
1
16
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + 21 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1670
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + CAST( + 33 AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1670
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + CAST ( + 33 AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE - col0 = ( NULL )
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL IN ( - - col0 + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN - + col0 + col1 * + col2 AND ( NULL ) OR - col0 BETWEEN NULL AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2, 73 + + 23 * + + col2 FROM tab1
----
59
1430
68
1637
96
2281

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT + MIN( - ( + - col2 ) ) + + 21 AS col0 FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + MIN ( - ( + - col2 ) ) + + 21 AS col0 FROM tab1 cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1676
SELECT ALL + col0 DIV + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + col0 / + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT ALL col1 DIV 43 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL col1 / 43 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + COUNT( - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1678
SELECT + COUNT ( - - col1 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 + col0 * - + col1 col1 FROM tab2 AS cor0
----
-2287
-4869
-4966

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + COUNT( * ) * + 70 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT + COUNT ( * ) * + 70 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 11 IS NULL
----

query I rowsort
SELECT + col0 - - - 89 FROM tab0 WHERE + + col1 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT MIN( ALL ( - 69 ) ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1683
SELECT MIN ( ALL ( - 69 ) ) FROM tab0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + 52 ) * + col0, col2 col1 FROM tab1
----
-2652
96
-4420
59
-4732
68

query I rowsort
SELECT col1 * - 32 AS col1 FROM tab2
----
-1632
-2144
-2464

query I rowsort
SELECT 22 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 97 * - + ( - + COUNT( * ) ) * + 42 AS col2 FROM tab2
----
12222

skipif mysql # not compatible
query I rowsort label-1687
SELECT 97 * - + ( - + COUNT ( * ) ) * + 42 AS col2 FROM tab2
----
12222

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL - SUM( DISTINCT col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - SUM ( DISTINCT col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT - 96 - 30 AS col2 FROM tab2
----
-126
-126
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT - SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT - SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 26 + - - 38 col2 FROM tab1 AS cor0
----
103
63
97

query II rowsort
SELECT ALL + col1, - col1 AS col2 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT + 40 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query II rowsort
SELECT ALL col0, + 61 * - col0 AS col2 FROM tab2
----
46
-2806
64
-3904
75
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL - + MAX( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - + MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 + - col2 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col0 col0, - 55 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
9 values hashing to 39e3d52a7eabd3221ef3bacd38bca3b2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1699
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + - CAST( + 68 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1699
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + - CAST ( + 68 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1700
SELECT 75 DIV col0, + 20 AS col2 FROM tab2 AS cor0
----
1
20
1
20
1
20

skipif mysql # not compatible
query II rowsort label-1700
SELECT 75 / col0, + 20 AS col2 FROM tab2 AS cor0
----
1
20
1
20
1
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 78 * - 99 col2 FROM tab0 AS cor0
----
7722
7722
7722

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT + col2 DIV col0 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1703
SELECT + col2 / col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT DISTINCT - col2 * col2 DIV - 8 AS col2 FROM tab2
----
200
420
66

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - col2 * col2 / - 8 AS col2 FROM tab2
----
200
420
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1705
SELECT ALL * FROM tab1 WHERE NOT ( NULL >= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1705
SELECT ALL * FROM tab1 WHERE NOT ( NULL >= + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 2 * + 13 FROM tab1
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 66 > NULL
----

query I rowsort
SELECT - + 40 FROM tab0 AS cor0 WHERE col2 <> ( + + col2 ) + + 30
----
-40
-40
-40

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL <= + 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT + col0 * + col2 * + col1 + - 24 + - col2 + - - col0 * + 42 * 76 + 6 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) * 39 AND - col0
----

skipif mysql # not compatible
query I rowsort label-1710
SELECT + col0 * + col2 * + col1 + - 24 + - col2 + - - col0 * + 42 * 76 + 6 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) * 39 AND - col0
----

query II rowsort
SELECT 0, - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
-1
0
-21
0
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT 46 * - col1 + - col0 col0 FROM tab0 AS cor0 WHERE NULL <= + CAST( + 66 AS SIGNED ) * - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1713
SELECT 46 * - col1 + - col0 col0 FROM tab0 AS cor0 WHERE NULL <= + CAST ( + 66 AS INTEGER ) * - col2
----

query I rowsort
SELECT - ( + col2 ) * - 23 + col1 FROM tab0 AS cor0
----
1162
2278
251

query I rowsort
SELECT ALL + - 24 * col0 * + - col2 + + col0 FROM tab1 AS cor0
----
117555
120445
148603

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT + 31 * - 87 + - - MAX( DISTINCT + + col2 ) + + 53 AS col2 FROM tab1 AS cor0
----
-2548

skipif mysql # not compatible
query I rowsort label-1716
SELECT + 31 * - 87 + - - MAX ( DISTINCT + + col2 ) + + 53 AS col2 FROM tab1 AS cor0
----
-2548

onlyif mysql # aggregate syntax: 
query II rowsort label-1717
SELECT + COUNT( * ), - 70 AS col0 FROM tab0 AS cor0
----
3
-70

skipif mysql # not compatible
query II rowsort label-1717
SELECT + COUNT ( * ), - 70 AS col0 FROM tab0 AS cor0
----
3
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1718
SELECT + col1 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT + col1 / - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col1 * + 38 + - + 47, col0 * col1 AS col0 FROM tab1 AS cor0
----
-1833
4277
-237
425
-579
714

query I rowsort
SELECT - 46 - - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-145
-56
-93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL < NULL )
----

query I rowsort
SELECT - + col2 - + - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - 14 + 68 + + - 92 * + col1 FROM tab0 AS cor0
----
-1878
-38
-7398

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - + COUNT( * ) - 81 + - 18 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - + COUNT ( * ) - 81 + - 18 FROM tab2 AS cor0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 21 + 27 * + + col2 - 80 AS col1 FROM tab2 AS cor0
----
1021
1507
562

onlyif mysql # DIV for integer division: 
query II rowsort label-1727
SELECT ALL - - 83 DIV col1 - - col1 AS col0, 85 - + + col0 FROM tab1 AS cor0
----
19
34
21
0
48
-6

skipif mysql # not compatible
query II rowsort label-1727
SELECT ALL - - 83 / col1 - - col1 AS col0, 85 - + + col0 FROM tab1 AS cor0
----
19
34
21
0
48
-6

query I rowsort
SELECT + col1 - + + 67 AS col2 FROM tab0 AS cor0
----
-46
-66
14

query I rowsort
SELECT ALL + 74 + + 95 FROM tab2 AS cor0
----
169
169
169

query I rowsort
SELECT col0 + - + col0 FROM tab1 cor0 WHERE 45 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + ( + 12 ) - - - 28 AS col1 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT col0 - 10 FROM tab2
----
36
54
65

query I rowsort
SELECT ALL + 7 * - col2 - col1 FROM tab1
----
-418
-523
-686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col2, col1 * - 35 col1 FROM tab1
----
110
-490
115
-1645
64
-175

query I rowsort
SELECT ALL - 31 - - 28 AS col0 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT 17 + + col2 AS col2 FROM tab1 WHERE + - col2 * - 13 + - 82 + - + col0 + + + 49 IS NOT NULL
----
113
76
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( 79 + - + 43 )
----

query I rowsort
SELECT DISTINCT - 84 * - col2 - - col2 AS col1 FROM tab2
----
1955
3400
4930

query I rowsort
SELECT 22 * col1 - 63 FROM tab1 AS cor0
----
245
47
971

query II rowsort
SELECT DISTINCT - - 88 * - 39 AS col2, + col1 + + col1 * + col0 + - 46 AS col2 FROM tab2 AS cor0
----
-3432
2351
-3432
4959
-3432
5046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 67 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query II rowsort
SELECT + + 8 AS col0, + 90 AS col0 FROM tab1 AS cor0
----
8
90
8
90
8
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT 22 col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1743
SELECT 22 col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

query II rowsort
SELECT DISTINCT - + col2, - col1 AS col2 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query II rowsort
SELECT - 49 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
-49
-15
-49
-87
-49
-97

query I rowsort
SELECT ALL - + ( + + 89 ) + + + col0 FROM tab0 AS cor0
----
-2
-74
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1747
SELECT - SUM( DISTINCT - 25 ) + COUNT( * ) + 70, COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col2 + - - ( col0 ) * ( + 70 ) IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1747
SELECT - SUM ( DISTINCT - 25 ) + COUNT ( * ) + 70, COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col2 + - - ( col0 ) * ( + 70 ) IS NOT NULL
----
NULL
0

query I rowsort
SELECT ALL col2 * - - 61 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT CAST( - ( + col2 ) AS SIGNED ) + - 77 - - + col0 * 84 AS col2 FROM tab0
----
1136
7221
7972

skipif mysql # not compatible
query I rowsort label-1749
SELECT CAST ( - ( + col2 ) AS INTEGER ) + - 77 - - + col0 * 84 AS col2 FROM tab0
----
1136
7221
7972

query III rowsort
SELECT * FROM tab1 WHERE NOT 69 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col2 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT CAST( NULL AS SIGNED ) + 17 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT CAST ( NULL AS INTEGER ) + 17 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT + COUNT( * ) + + 97 AS col2 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT + COUNT ( * ) + + 97 AS col2 FROM tab2
----
100

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 AS col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT - 66 * + + col2 FROM tab0
----
-3102
-6534
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT COUNT( * ) AS col2, COUNT( * ) + 92 FROM tab2
----
3
95

skipif mysql # not compatible
query II rowsort label-1756
SELECT COUNT ( * ) AS col2, COUNT ( * ) + 92 FROM tab2
----
3
95

query I rowsort
SELECT ALL + - col2 + col0 + + + col1 * 6 FROM tab1 AS cor0
----
305
39
56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 14 / - + col0 IS NOT NULL
----

query I rowsort
SELECT - 19 * - 5 * col2 - - + col2 FROM tab2
----
2208
3840
5568

query III rowsort
SELECT * FROM tab2 WHERE NULL < 53 * - + 33 / col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT - - 55 + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT - - 55 + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col1 - - col1 + + - col2 FROM tab0 AS cor0
----
-197
-199
-3773

query I rowsort
SELECT ALL col2 + + 85 + - + col2 AS col2 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 + + col1 FROM tab1 AS cor0
----
-4321
-505
-751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1766
SELECT + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / ( + col1 ) = - - 23
----

query II rowsort
SELECT col0, - ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 19 + - 6 AS col1 FROM tab0 cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL + 52 - COUNT( * ) col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1770
SELECT ALL + 52 - COUNT ( * ) col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT col1 - 63 - 90 * + col2 FROM tab2
----
-2082
-3586
-5216

query II rowsort
SELECT - 24 AS col0, col2 FROM tab2
----
-24
23
-24
40
-24
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ( + + MIN( + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1773
SELECT ( + + MIN ( + col2 ) ) FROM tab2
----
23

query II rowsort
SELECT ALL 3 AS col2, + col0 FROM tab1
----
3
51
3
85
3
91

query I rowsort
SELECT DISTINCT 3 * - 86 AS col1 FROM tab0
----
-258

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT COUNT( * ) AS col1, 16 col2 FROM tab2
----
3
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1776
SELECT COUNT ( * ) AS col1, 16 col2 FROM tab2
----
3
16

query II rowsort
SELECT col0, col2 * + 42 FROM tab1
----
51
4032
85
2478
91
2856

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL > ( col2 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT DISTINCT - col0 DIV - - col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT - col0 / - - col2 AS col1 FROM tab1
----
-1
0

query II rowsort
SELECT ALL 57 AS col0, - col1 FROM tab1 cor0
----
57
-14
57
-47
57
-5

query I rowsort
SELECT - col2 * + 92 * + col1 FROM tab2 AS cor0
----
-107916
-283360
-357512

query I rowsort
SELECT 46 * col0 AS col0 FROM tab2 AS cor0
----
2116
2944
3450

query II rowsort
SELECT + - col1, + ( + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1784
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1784
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1785
SELECT DISTINCT + MIN( + 24 ) / - ( - CAST( NULL AS SIGNED ) ) AS col1, 47 FROM tab0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-1785
SELECT DISTINCT + MIN ( + 24 ) / - ( - CAST ( NULL AS INTEGER ) ) AS col1, 47 FROM tab0
----
NULL
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * col2 * + 68 + - + 90 = + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1787
SELECT CAST( 11 AS SIGNED ) FROM tab2 cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1787
SELECT CAST ( 11 AS INTEGER ) FROM tab2 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - 13 AS col2 FROM tab2 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT + + COUNT( * ) DIV - 74 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT + + COUNT ( * ) / - 74 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( - 45 ) FROM tab2 AS cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col2 col1 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT DISTINCT col2 AS col2, + 65 - + 16 FROM tab0
----
10
49
47
49
99
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1796
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL + ( CAST( - MAX( DISTINCT + col0 ) AS SIGNED ) ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1797
SELECT ALL + ( CAST ( - MAX ( DISTINCT + col0 ) AS INTEGER ) ) col2 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1798
SELECT ALL - CAST( - col0 AS SIGNED ) + - 38 + + 3 * col2, col1 AS col1 FROM tab0
----
118
81
356
1
79
21

skipif mysql # not compatible
query II rowsort label-1798
SELECT ALL - CAST ( - col0 AS INTEGER ) + - 38 + + 3 * col2, col1 AS col1 FROM tab0
----
118
81
356
1
79
21

query I rowsort
SELECT col2 * + 45 + - 69 * col2 + - - col1 FROM tab0
----
-1047
-219
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT + 69 + + COUNT( * ) * - - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT + 69 + + COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT - col2 + - - 16 FROM tab1 AS cor0
----
-43
-52
-80

query I rowsort
SELECT DISTINCT + 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL >= NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT + + 30 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL - 38 * - col1 AS col2 FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT MAX( - col2 ) FROM tab2 WHERE NOT ( col2 * - col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT MAX ( - col2 ) FROM tab2 WHERE NOT ( col2 * - col2 IS NOT NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL <> col1 * + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT CAST( - col2 AS SIGNED ) * - col0 - - col0 / CAST( NULL AS SIGNED ) / + col0 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1808
SELECT CAST ( - col2 AS INTEGER ) * - col0 - - col0 / CAST ( NULL AS INTEGER ) / + col0 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( + + col0 ) FROM tab2 AS cor0 WHERE col1 * col1 IN ( - - 61 / - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT COUNT ( + + col0 ) FROM tab2 AS cor0 WHERE col1 * col1 IN ( - - 61 / - - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT - - 73 * SUM( - + col0 ) AS col1 FROM tab1 AS cor0
----
-16571

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT - - 73 * SUM ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-16571

query I rowsort
SELECT ALL - col2 + + col2 * - 19 FROM tab0 AS cor0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT COUNT( DISTINCT + 40 ) DIV 29 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT COUNT ( DISTINCT + 40 ) / 29 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - SUM( ALL + col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1813
SELECT - SUM ( ALL + col0 ) FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT + - SUM( - - col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( ( NULL IS NULL ) ) OR NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + - SUM ( - - col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( ( NULL IS NULL ) ) OR NOT NULL IS NOT NULL
----
-66

query I rowsort
SELECT DISTINCT 0 * ( ( col0 ) ) FROM tab1
----
0

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE NOT + + 8 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1817
SELECT col0 DIV - 47 AS col0, + col2 FROM tab0
----
-1
10
-2
99
0
47

skipif mysql # not compatible
query II rowsort label-1817
SELECT col0 / - 47 AS col0, + col2 FROM tab0
----
-1
10
-2
99
0
47

query I rowsort
SELECT ALL - - ( + 74 ) FROM tab1 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT + + ( MIN( + + 99 ) ), + 89 AS col1 FROM tab2 cor0
----
99
89

skipif mysql # not compatible
query II rowsort label-1819
SELECT + + ( MIN ( + + 99 ) ), + 89 AS col1 FROM tab2 cor0
----
99
89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + 81 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 55 FROM tab0
----
1155
4455
55

query I rowsort
SELECT ALL + 57 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - col2 * col0 * + + ( - col2 ) + - - 39 FROM tab0 AS cor0
----
33174
8739
950736

onlyif mysql # aggregate syntax: 
query II rowsort label-1824
SELECT + 58, COUNT( * ) col1 FROM tab0 AS cor0
----
58
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1824
SELECT + 58, COUNT ( * ) col1 FROM tab0 AS cor0
----
58
3

query I rowsort
SELECT ALL - col2 + - col1 + - + col2 FROM tab0 AS cor0
----
-175
-199
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - MIN( - + col1 ) AS col1 FROM tab2 cor0 WHERE NULL IN ( - 95, col0, 32, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT - MIN ( - + col1 ) AS col1 FROM tab2 cor0 WHERE NULL IN ( - 95, col0, 32, - col1 )
----
NULL

query I rowsort
SELECT ALL - col0 + 59 AS col2 FROM tab1 AS cor0
----
-26
-32
8

query I rowsort
SELECT + 95 * - - 95 + + 10 FROM tab2 AS cor0
----
9035
9035
9035

query I rowsort
SELECT ALL + col2 + + - 0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT DISTINCT - + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 52 + + col2 AS col2 FROM tab0 cor0
----
-42
-5
47

query I rowsort
SELECT - ( + col0 ) + + col0 * col0 FROM tab2
----
2070
4032
5550

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > 43
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - ( ( + 96 ) ) FROM tab1
----
-96

query I rowsort
SELECT + col2 + - 47 FROM tab2
----
-24
-7
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT + CAST( 57 AS SIGNED ) / col0 * + col1 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + CAST ( 57 AS INTEGER ) / col0 * + col1 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT DISTINCT MIN( DISTINCT col2 ) DIV - - 32 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT MIN ( DISTINCT col2 ) / - - 32 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT 71 DIV + col1 FROM tab0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT 71 / + col1 FROM tab0
----
0
3
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1840
SELECT DISTINCT + 26 + + COUNT( * ) - AVG ( + + 10 ) * + CAST( NULL AS DECIMAL ) + COUNT( * ) * - 51 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + 26 + + COUNT ( * ) - AVG ( + + 10 ) * + CAST ( NULL AS REAL ) + COUNT ( * ) * - 51 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - col0 + + col2 + col1 * + - 2 / + col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col0 - - - col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT 51 - - - 47 FROM tab1
----
4
4
4

query I rowsort
SELECT - 59 + - col0 FROM tab1
----
-110
-144
-150

query I rowsort
SELECT 0 + + col1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + - 15 DIV 3 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-1847
SELECT + - 15 / 3 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab1 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1849
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1849
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + 98 * + - 23 FROM tab0 AS cor0
----
-2254
-2254
-2254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col1 ) * col0 * - 51 col1, col0 AS col1 FROM tab0
----
4947
97
61965
15
93177
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL ( - ( COUNT( * ) ) ) * 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL ( - ( COUNT ( * ) ) ) * 41 FROM tab1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT 64 * + - COUNT( - ( + 66 ) ) FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT 64 * + - COUNT ( - ( + 66 ) ) FROM tab0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col0 * col2 col2 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT + 34 FROM tab0 WHERE NOT NULL IS NOT NULL
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 50 col0, 93 + + + 40 FROM tab1
----
50
133

query I rowsort
SELECT + ( col1 ) * - + col2 - ( - 85 ) + + col1 + + 79 + col0 FROM tab2 cor0
----
-2775
-3580
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1859
SELECT ALL COUNT( * ) DIV + 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL COUNT ( * ) / + 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT - col0 * 45 + + 11 * + - CAST( - 58 AS SIGNED ) AS col1 FROM tab2
----
-1432
-2242
-2737

skipif mysql # not compatible
query I rowsort label-1860
SELECT - col0 * 45 + + 11 * + - CAST ( - 58 AS INTEGER ) AS col1 FROM tab2
----
-1432
-2242
-2737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 4 - + + col0 BETWEEN - ( + 40 ) * + ( + + col0 ) AND col2 * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 14 + - + 77 + + + col1 - - - col0 AS col2 FROM tab0 AS cor0
----
-157
-187
-25

query I rowsort
SELECT ALL - - 23 + 75 + + col2 * - - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-1377
-150114
-18718

query II rowsort
SELECT DISTINCT col2 + + col1 AS col2, + col1 FROM tab2 AS cor0
----
117
77
125
67
74
51

query I rowsort
SELECT - + col1 * - col0 + col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ( - - COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1867
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT 77 - COUNT( * ) AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1868
SELECT 77 - COUNT ( * ) AS col1 FROM tab0
----
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT ALL + 72 FROM tab1 WHERE NOT NULL = + col1 AND + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 67 ) AS col0 FROM tab1
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col1 FROM tab2 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + 53 + col2 FROM tab2 AS cor0
----
111
76
93

query I rowsort
SELECT + col0 * 97 + + + 29 AS col0 FROM tab0 AS cor0
----
1484
8468
9438

query I rowsort
SELECT + col1 + - col1 - - + 2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + col1 + + col2 + + + ( 1 ) FROM tab0 AS cor0
----
101
129
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT DISTINCT + 29 + - - ( COUNT( * ) ) * COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT + 29 + - - ( COUNT ( * ) ) * COUNT ( * ) FROM tab0 AS cor0
----
38

query II rowsort
SELECT - col2, - 89 + + + 24 + + col1 - col0 AS col1 FROM tab1 AS cor0
----
-59
-145
-68
-109
-96
-102

query I rowsort
SELECT DISTINCT + col0 - + 77 AS col2 FROM tab2 AS cor0
----
-13
-2
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT - col1 DIV + - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1881
SELECT - col1 / + - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - 67 * 51 FROM tab0 AS cor0
----
-3417

query I rowsort
SELECT - - col1 * + + 17 FROM tab2 AS cor0
----
1139
1309
867

query I rowsort
SELECT ALL - 89 * + 76 FROM tab1 AS cor0
----
-6764
-6764
-6764

query I rowsort
SELECT ALL - + ( + 83 ) FROM tab0 cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + SUM( col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1887
SELECT + SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - + 52 * 48 + - - col2 * - col1 / + - 23 - - 45 AND - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - + col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 4 col2 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT 51 * + SUM( - col0 ) FROM tab1 AS cor0
----
-11577

skipif mysql # not compatible
query I rowsort label-1891
SELECT 51 * + SUM ( - col0 ) FROM tab1 AS cor0
----
-11577

query I rowsort
SELECT ALL - col0 * - col1 + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT col0 * - CAST( + 10 AS SIGNED ) col0 FROM tab2
----
-460
-640
-750

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1893
SELECT col0 * - CAST ( + 10 AS INTEGER ) col0 FROM tab2
----
-460
-640
-750

query I rowsort
SELECT - col2 * - + col1 AS col2 FROM tab2 WHERE NOT - - 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT MIN( + - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT MIN ( + - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT - SUM( DISTINCT - - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - SUM ( DISTINCT - - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1897
SELECT + - COUNT( - col0 ) / ( + CAST( NULL AS SIGNED ) ) + + 39 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT + - COUNT ( - col0 ) / ( + CAST ( NULL AS INTEGER ) ) + + 39 AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1899
SELECT DISTINCT col2 + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT col2 + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT 63 * + col1 DIV col1 * 54 * + 38 * + col0 + - col1 AS col2 FROM tab1
----
10988455
11764069
6593062

skipif mysql # not compatible
query I rowsort label-1900
SELECT 63 * + col1 / col1 * 54 * + 38 * + col0 + - col1 AS col2 FROM tab1
----
10988455
11764069
6593062

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT - col1 + - + col1 DIV 75 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1901
SELECT - col1 + - + col1 / 75 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + 27 + - - ( + 82 ) - - 88 - col2 * - col0 FROM tab1 AS cor0
----
5093
5212
6385

query I rowsort
SELECT + 32 + col0 FROM tab0 AS cor0
----
119
129
47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT ALL + 67 - + ( - CAST( col2 AS SIGNED ) ) + - + 47 AS col1 FROM tab2 AS cor0
----
43
60
78

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + 67 - + ( - CAST ( col2 AS INTEGER ) ) + - + 47 AS col1 FROM tab2 AS cor0
----
43
60
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1906
SELECT * FROM tab1 AS cor0 WHERE CAST( - + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1906
SELECT * FROM tab1 AS cor0 WHERE CAST ( - + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0 + - col0, + 19 AS col2 FROM tab2 cor0
----
0
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1908
SELECT DISTINCT - + col1 + - 6 * - + col2 / - CAST( NULL AS SIGNED ) * - col1 * + col1, col1 FROM tab1 WHERE NOT NULL <> CAST( - ( + - col2 ) AS SIGNED ) * col2
----

skipif mysql # not compatible
query II rowsort label-1908
SELECT DISTINCT - + col1 + - 6 * - + col2 / - CAST ( NULL AS INTEGER ) * - col1 * + col1, col1 FROM tab1 WHERE NOT NULL <> CAST ( - ( + - col2 ) AS INTEGER ) * col2
----

query I rowsort
SELECT 2 + col0 / + col2 FROM tab0 WHERE - col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - SUM( + 55 ) AS col1 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-1910
SELECT - SUM ( + 55 ) AS col1 FROM tab0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1912
SELECT - + CAST( NULL AS DECIMAL ) + + - col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT - + CAST ( NULL AS REAL ) + + - col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) * + + 99 AS col0 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT COUNT( * ) * - 48 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-1914
SELECT COUNT ( * ) * - 48 FROM tab1
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT CAST( - 81 AS SIGNED ) col0 FROM tab0
----
-81
-81
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1915
SELECT CAST ( - 81 AS INTEGER ) col0 FROM tab0
----
-81
-81
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1916
SELECT DISTINCT + 89 * CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1916
SELECT DISTINCT + 89 * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1917
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + + 41 - col1 NOT BETWEEN - + col1 AND col0 + - 56
----

skipif mysql # not compatible
query III rowsort label-1917
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + + 41 - col1 NOT BETWEEN - + col1 AND col0 + - 56
----

query I rowsort
SELECT - + 52 - + col0 * + 52 * - col2 AS col1 FROM tab0 AS cor0
----
36608
45188
499304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1919
SELECT ALL + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2, + 51 AS col1 FROM tab1 AS cor0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-1919
SELECT ALL + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2, + 51 AS col1 FROM tab1 AS cor0
----
NULL
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1920
SELECT DISTINCT col0 + - - CAST( NULL AS DECIMAL ) + + col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT col0 + - - CAST ( NULL AS REAL ) + + col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col0 * - - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1922
SELECT * FROM tab2 WHERE NOT + col1 * + + 46 > - + 76 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1922
SELECT * FROM tab2 WHERE NOT + col1 * + + 46 > - + 76 / + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 5 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT col0 * 66 AS col0 FROM tab1 AS cor0
----
3366
5610
6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1925
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT + col1 DIV + - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1926
SELECT + col1 / + - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 75 * - 16 + - 29 AS col0 FROM tab2 AS cor0
----
-1229
-1229
-1229

query II rowsort
SELECT DISTINCT + col0, - ( - - col2 ) FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - ( + - col2 ) FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT MAX( ALL - - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1931
SELECT MAX ( ALL - - col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT + col1 + col1 - + col2 AS col0 FROM tab0
----
-97
115
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 55 < NULL
----

query I rowsort
SELECT 3 * - - col1 AS col0 FROM tab0 cor0
----
243
3
63

query I rowsort
SELECT DISTINCT - 58 + col2 AS col2 FROM tab0 AS cor0
----
-11
-48
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - col1 * col1 - - - col2 FROM tab1 cor0
----
-2277
-292
-84

query I rowsort
SELECT col1 - - col0 * + 68 FROM tab1 AS cor0
----
3482
5785
6235

query I rowsort
SELECT + + 52 * + col2 - + col2 FROM tab2 AS cor0
----
1173
2040
2958

query I rowsort
SELECT ALL 91 - - col2 FROM tab0 AS cor0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + - COUNT( * ) - + 46 AS col0 FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1941
SELECT + - COUNT ( * ) - + 46 AS col0 FROM tab1 cor0
----
-49

query I rowsort
SELECT DISTINCT - + 31 + - col0 FROM tab0 AS cor0
----
-118
-128
-46

query I rowsort
SELECT ALL - col0 + - 77 FROM tab0
----
-164
-174
-92

query I rowsort
SELECT DISTINCT col0 - col0 * + - col0 AS col0 FROM tab2
----
2162
4160
5700

query I rowsort
SELECT 77 + 0 FROM tab1
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT + MIN( 21 ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + MIN ( 21 ) AS col2 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT NULL = - - 47
----

query I rowsort
SELECT + 81 + col0 FROM tab2
----
127
145
156

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT + + CAST( NULL AS SIGNED ) * - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + + CAST ( NULL AS INTEGER ) * - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 75 * + ( - - col2 ) * - + col2 AS col0 FROM tab1 cor0
----
261075
346800
691200

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 53 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) * + 86 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) * + 86 FROM tab1 AS cor0
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT 46 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT 46 / + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1956
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1956
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) < - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + col1 AS col2, 74 AS col2 FROM tab0 AS cor0 WHERE ( + col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1958
SELECT col2 * + - 16 + - 42 * CAST( + 10 AS SIGNED ), col1 + - col1 * col0 * col0 AS col2 FROM tab0 cor0
----
-1172
-18144
-2004
-9408
-580
-158928

skipif mysql # not compatible
query II rowsort label-1958
SELECT col2 * + - 16 + - 42 * CAST ( + 10 AS INTEGER ), col1 + - col1 * col0 * col0 AS col2 FROM tab0 cor0
----
-1172
-18144
-2004
-9408
-580
-158928

onlyif mysql # DIV for integer division: 
query II rowsort label-1959
SELECT - - col0 * + col0 + + col0 AS col2, ( + col2 ) * col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
2652
-96
7310
-59
8372
-68

skipif mysql # not compatible
query II rowsort label-1959
SELECT - - col0 * + col0 + + col0 AS col2, ( + col2 ) * col2 / - col2 AS col1 FROM tab1 AS cor0
----
2652
-96
7310
-59
8372
-68

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 * - 10 * - col0 FROM tab2 AS cor0
----
-23460
-49280
-50250

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT col2 / + 97 / + + col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1963
SELECT + CAST( NULL AS SIGNED ) + - ( col2 ) * + 45 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT + CAST ( NULL AS INTEGER ) + - ( col2 ) * + 45 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT MIN( ALL - - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1964
SELECT MIN ( ALL - - col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - col2 * - 28 AS col2 FROM tab2
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + MIN( + - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1966
SELECT + MIN ( + - col0 ) FROM tab0 cor0
----
-97

query II rowsort
SELECT - col2, - 31 AS col0 FROM tab1 AS cor0
----
-59
-31
-68
-31
-96
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - 5 + 73 FROM tab1 AS cor0
----
-222
-267
-407

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - 5 + 73 FROM tab1 AS cor0
----
-222
-267
-407

query I rowsort
SELECT ALL + + 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL 67 + - 20 AS col0 FROM tab0
----
47
47
47

query I rowsort
SELECT + 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT 56 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1973
SELECT COUNT( * ) + - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1973
SELECT COUNT ( * ) + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1
----
3

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE + + 54 IS NULL
----

query I rowsort
SELECT ALL - + 92 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + + col1 IN ( - col0, col1, 45 )
----

query I rowsort
SELECT - + 96 + - 51 AS col2 FROM tab1 AS cor0
----
-147
-147
-147

query I rowsort
SELECT ALL - col0 * col0 + 64 FROM tab0 AS cor0
----
-161
-7505
-9345

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE 78 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL - MIN( col0 ) col0 FROM tab1 AS cor0 WHERE col1 + + col0 BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1980
SELECT ALL - MIN ( col0 ) col0 FROM tab1 AS cor0 WHERE col1 + + col0 BETWEEN NULL AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1981
SELECT 66 AS col1, CAST( NULL AS SIGNED ) * + - col1 FROM tab1
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-1981
SELECT 66 AS col1, CAST ( NULL AS INTEGER ) * + - col1 FROM tab1
----
66
NULL
66
NULL
66
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + + 21 < NULL
----

query I rowsort
SELECT DISTINCT + 63 * - + col2 AS col0 FROM tab1
----
-3717
-4284
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + 38 * - - COUNT( * ) AS col2 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-1984
SELECT + 38 * - - COUNT ( * ) AS col2 FROM tab1
----
114

query I rowsort
SELECT - col1 * 53 AS col2 FROM tab2 cor0
----
-2703
-3551
-4081

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT 53 > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1987
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT 99 AS col0, COUNT( * ) FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-1988
SELECT 99 AS col0, COUNT ( * ) FROM tab0
----
99
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT DISTINCT + CAST( 79 AS SIGNED ) * - col2 FROM tab0
----
-3713
-7821
-790

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + CAST ( 79 AS INTEGER ) * - col2 FROM tab0
----
-3713
-7821
-790

query I rowsort
SELECT ALL + ( - + col1 ) + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-100
-128
-31

query II rowsort
SELECT ALL + + col2, col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL + + MIN( ALL - - 78 ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + + MIN ( ALL - - 78 ) AS col2 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL - col2 + + col0 + - - 22 FROM tab2 AS cor0
----
39
45
46

query I rowsort
SELECT DISTINCT + 24 * col0 FROM tab0 AS cor0
----
2088
2328
360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 96
----

query I rowsort
SELECT DISTINCT + col1 * - - col1 AS col2 FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT DISTINCT 79 DIV + col2 AS col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT 79 / + col2 AS col2 FROM tab2
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + - 54 + + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0 WHERE - 18 * + - ( col1 ) IS NOT NULL
----
-54

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + - 54 + + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0 WHERE - 18 * + - ( col1 ) IS NOT NULL
----
-54

query I rowsort
SELECT ALL - 42 + + 30 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + 53 + + col2 FROM tab2 AS cor0
----
111
76
93

query I rowsort
SELECT + 26 + + 4 + - col2 FROM tab1 AS cor0
----
-29
-38
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 - + 36 AS col1 FROM tab1
----
13

query I rowsort
SELECT 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - COUNT( * ) - + 54 + + 76 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2005
SELECT - COUNT ( * ) - + 54 + + 76 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT - ( + COUNT( * ) ) - - 56 AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2006
SELECT - ( + COUNT ( * ) ) - - 56 AS col1 FROM tab1 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - ( 3 ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2008
SELECT - ( 3 ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + COUNT( * ) - + 77 AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2009
SELECT + COUNT ( * ) - + 77 AS col2 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL + 35 * - ( - + COUNT( * ) ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + 35 * - ( - + COUNT ( * ) ) FROM tab1
----
105

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + ( - col1 ) * col0 * - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 90 * col0 AS col2, - col0 FROM tab2
----
4140
-46
5760
-64
6750
-75

query II rowsort
SELECT col1 * - col0 AS col0, - col1 FROM tab2 AS cor0
----
-2346
-51
-4928
-77
-5025
-67

query II rowsort
SELECT - 16 * - + 98 AS col1, 82 AS col1 FROM tab2 AS cor0
----
1568
82
1568
82
1568
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL - - SUM( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2015
SELECT ALL - - SUM ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT - - CAST( + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 / col0 * col2 / - col1 + + 91 = NULL
----

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 / col0 * col2 / - col1 + + 91 = NULL
----

query I rowsort
SELECT ALL + 57 FROM tab1 AS cor0 WHERE NOT NULL <> - col2 - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT - + 0 * COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - + 0 * COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT + + CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2020
SELECT + + CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT DISTINCT + - 82 / CAST( NULL AS SIGNED ) / - col2 + - - col0 + col2 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2021
SELECT DISTINCT + - 82 / CAST ( NULL AS INTEGER ) / - col2 + - - col0 + col2 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + ( + 56 ) * - col1 AS col2 FROM tab1 AS cor0
----
-2632
-280
-784

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - + 80 + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL COUNT( * ) * - - 19 AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL COUNT ( * ) * - - 19 AS col0 FROM tab1
----
57

query I rowsort
SELECT 73 + - + col0 + - col1 AS col1 FROM tab1
----
-17
-65
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2026
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + 45 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2026
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + 45 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, - ( col1 ) - - + 3 + + - col2 FROM tab1
----
14
-107
47
-112
5
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2031
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 66 BETWEEN CAST( NULL AS SIGNED ) AND 23 )
----

skipif mysql # not compatible
query III rowsort label-2031
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 66 BETWEEN CAST ( NULL AS INTEGER ) AND 23 )
----

query III rowsort
SELECT * FROM tab2 WHERE + + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2033
SELECT ALL SUM( ALL + + col1 ) - - 27, - COUNT( * ) col2 FROM tab1
----
93
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2033
SELECT ALL SUM ( ALL + + col1 ) - - 27, - COUNT ( * ) col2 FROM tab1
----
93
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + + - 24 col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - 2 * + 45 * - col2 AS col0 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 20 + + CAST( NULL AS SIGNED ) * + + col1 / col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 20 + + CAST ( NULL AS INTEGER ) * + + col1 / col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col0 * 24
----

query I rowsort
SELECT ALL + 23 - - col0 + col2 FROM tab1 AS cor0 WHERE - ( + 4 ) IS NOT NULL
----
167
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT col1 DIV - 98 * + + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT col1 / - 98 * + + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT MAX( + - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2040
SELECT MAX ( + - col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - - SUM( + 52 ) col1 FROM tab1 WHERE NOT + 18 IS NULL
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT - - SUM ( + 52 ) col1 FROM tab1 WHERE NOT + 18 IS NULL
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2042
SELECT + MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2043
SELECT + 54 col2, - CAST( NULL AS SIGNED ) FROM tab2
----
54
NULL
54
NULL
54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2043
SELECT + 54 col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
54
NULL
54
NULL
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL MIN( DISTINCT + 62 ) col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2044
SELECT ALL MIN ( DISTINCT + 62 ) col2 FROM tab1 AS cor0
----
62

query I rowsort
SELECT col0 * + col1 + col0 AS col1 FROM tab1
----
4368
510
765

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( - col1 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL < col2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL < col2 * - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT 64 / - ( SUM( col1 ) ) FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT 64 / - ( SUM ( col1 ) ) FROM tab2 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT 84 * - col1 AS col1 FROM tab1
----
-1176
-3948
-420

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2050
SELECT DISTINCT + CAST( 95 AS SIGNED ) + + col1 DIV + col1 AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + CAST ( 95 AS INTEGER ) + + col1 / + col1 AS col1 FROM tab2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT DISTINCT col1 + 94 FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) ) * - 13 IS NULL
----
108
141
99

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT col1 + 94 FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) ) * - 13 IS NULL
----
108
141
99

query I rowsort
SELECT + col2 * + col0 + col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE 44 * 54 BETWEEN NULL AND ( + col1 / 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - COUNT( * ) * 48 + - ( 19 ) * 96 FROM tab0
----
-1968

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - COUNT ( * ) * 48 + - ( 19 ) * 96 FROM tab0
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL + COUNT( * ) * 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + COUNT ( * ) * 87 FROM tab2
----
261

query I rowsort
SELECT 57 + - col1 * - col2 FROM tab0
----
156
267
3864

query III rowsort
SELECT * FROM tab1 WHERE col0 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 14 * + 29 FROM tab0
----
406

query I rowsort
SELECT - ( 65 ) FROM tab2
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col0 * + 12 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE ( col2 ) * col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 89 + - col0 AS col1 FROM tab0
----
-8
2
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT - CAST( + 51 AS SIGNED ) * - col0 FROM tab2
----
2346
3264
3825

skipif mysql # not compatible
query I rowsort label-2065
SELECT - CAST ( + 51 AS INTEGER ) * - col0 FROM tab2
----
2346
3264
3825

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT DISTINCT + col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT DISTINCT 48 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT - 70 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-11
-2
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT COUNT( 6 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( 6 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2071
SELECT * FROM tab2 WHERE NOT ( col0 * + 66 ) BETWEEN col0 + + col0 AND ( CAST( + col1 AS SIGNED ) * 76 + + 14 )
----

skipif mysql # not compatible
query III rowsort label-2071
SELECT * FROM tab2 WHERE NOT ( col0 * + 66 ) BETWEEN col0 + + col0 AND ( CAST ( + col1 AS INTEGER ) * 76 + + 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 / - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 52 * + 44 + ( col1 + + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT DISTINCT - - col0 DIV 74 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - - col0 / 74 AS col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT ALL - 95 DIV col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - 95 / col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * 40 + + col1 * col2 FROM tab1 AS cor0 WHERE NOT 11 IS NULL
----
1904
495
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - MAX( col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2077
SELECT - MAX ( col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col0 + + col1 FROM tab2 cor0 WHERE NOT ( + col1 + - col0 ) IS NULL
----
141
142
97

query I rowsort
SELECT + - col1 * - 77 AS col2 FROM tab0 cor0
----
1617
6237
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT - COUNT( ALL + ( 11 ) ) DIV 74 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT - COUNT ( ALL + ( 11 ) ) / 74 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT DISTINCT - 22 DIV + 41 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - 22 / + 41 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col0 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT col0 DIV 7 FROM tab1
----
12
13
7

skipif mysql # not compatible
query I rowsort label-2083
SELECT col0 / 7 FROM tab1
----
12
13
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT col2 DIV 68 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT col2 / 68 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + MIN( ALL col2 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT + MIN ( ALL col2 ) AS col0 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab2 WHERE ( 89 + - col2 ) <> + 90 * col0
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT 62 * col0 > NULL
----

query I rowsort
SELECT ALL col1 - col2 * + col2 FROM tab2 WHERE NULL IS NULL OR NULL = NULL
----
-1523
-3297
-478

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + 16 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT ALL + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + + col1 / col0 AS col1 FROM tab0 AS cor0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + ( col2 ) * col0 + 0 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + + MAX( ALL - 73 ) AS col0 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + + MAX ( ALL - 73 ) AS col0 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - ( 10 ) + - 55 AS col2 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT - 68 AS col1 FROM tab2 AS cor0 WHERE col1 * + 78 + - col1 NOT IN ( 10 + - 15 )
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND ( - 5 * + 37 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2099
SELECT MIN( ALL - col2 ) + - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT MIN ( ALL - col2 ) + - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col0 FROM tab0 cor0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 + 17 ) IS NULL
----

query I rowsort
SELECT 35 AS col1 FROM tab0 WHERE + ( col2 ) * col2 - col0 * col0 IS NOT NULL
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT ALL + col0 DIV - col1 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + col0 / - col1 AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 4 ) NOT BETWEEN + col1 + - 6 AND ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * + col2 col1 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT ( + 2 ) * - 56 FROM tab0
----
-112
-112
-112

query II rowsort
SELECT col1 * - 20, col2 FROM tab1
----
-100
59
-280
96
-940
68

query I rowsort
SELECT - + 64 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT ALL CAST( NULL AS SIGNED ) * 78 + MAX( col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL CAST ( NULL AS INTEGER ) * 78 + MAX ( col1 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT DISTINCT + 43 * + 95 + - CAST( + ( col0 ) AS SIGNED ) * 7 FROM tab1 AS cor0
----
3448
3490
3728

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT + 43 * + 95 + - CAST ( + ( col0 ) AS INTEGER ) * 7 FROM tab1 AS cor0
----
3448
3490
3728

query I rowsort
SELECT DISTINCT - col2 + 67 AS col1 FROM tab1 AS cor0 WHERE + col2 IN ( col2 + - col2 )
----

query I rowsort
SELECT ( + ( col1 ) ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT - AVG ( ALL col1 ) / - COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT - AVG ( ALL col1 ) / - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2114
SELECT col0, + col2 * 70 * - + col1 DIV - col1 col2 FROM tab2 AS cor0
----
46
1610
64
2800
75
4060

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2114
SELECT col0, + col2 * 70 * - + col1 / - col1 col2 FROM tab2 AS cor0
----
46
1610
64
2800
75
4060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT - 26 - + col2 * 37 FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + 38 + 5 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 26 - + col2 * 37 FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + 38 + 5 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT DISTINCT - 77 DIV col1 AS col0 FROM tab0 cor0
----
-3
-77
0

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - 77 / col1 AS col0 FROM tab0 cor0
----
-3
-77
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 6 IS NOT NULL
----

query I rowsort
SELECT 39 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 - 96
----

query I rowsort
SELECT ALL - ( col1 ) * - ( - col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT + 18 * CAST( NULL AS SIGNED ) / - - 31 * - col2 * + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + 18 * CAST ( NULL AS INTEGER ) / - - 31 * - col2 * + - col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL 54 * + COUNT( * ) AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 54 * + COUNT ( * ) AS col2 FROM tab1
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, 22 col0 FROM tab0
----
1
22
21
22
81
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2123
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) > - col2 + - + 61 + - col0 * + 4
----

skipif mysql # not compatible
query III rowsort label-2123
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) > - col2 + - + 61 + - col0 * + 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT 78 DIV + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif mysql # not compatible
query I rowsort label-2124
SELECT 78 / + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT DISTINCT 48 AS col1, COUNT( * ) AS col1 FROM tab0
----
48
3

skipif mysql # not compatible
query II rowsort label-2125
SELECT DISTINCT 48 AS col1, COUNT ( * ) AS col1 FROM tab0
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-2126
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL = col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col0 col0 FROM tab1
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + 72 FROM tab0
----
-15
72
-87
72
-97
72

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL COUNT( + 25 ) * 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL COUNT ( + 25 ) * 23 FROM tab2
----
69

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col1 + + - 21 col2 FROM tab0
----
1
-22
21
-42
81
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE + col1 + + + col0 + + - col2 - - CAST( NULL AS SIGNED ) NOT BETWEEN 31 + + 62 AND 53 / 25
----

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE + col1 + + + col0 + + - col2 - - CAST ( NULL AS INTEGER ) NOT BETWEEN 31 + + 62 AND 53 / 25
----

query I rowsort
SELECT 69 FROM tab0 WHERE NOT + 79 / - 55 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 93 * + ( + 31 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 + + col1 AND ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL - - COUNT( col0 ) + - MAX( ALL - 54 ) + + COUNT( * ) FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - - COUNT ( col0 ) + - MAX ( ALL - 54 ) + + COUNT ( * ) FROM tab0 cor0
----
60

query I rowsort
SELECT ALL + col2 * + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( 52 + col0 )
----

query I rowsort
SELECT - - col1 * - col0 + - 92 FROM tab1 AS cor0
----
-4369
-517
-806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT 48 DIV 56 + COUNT( * ) DIV - MIN( - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT 48 / 56 + COUNT ( * ) / - MIN ( - col2 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - 96 / - 76 * + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT - 54 * + COUNT( col2 ) + + - 63 + - 51 AS col0 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT - 54 * + COUNT ( col2 ) + + - 63 + - 51 AS col0 FROM tab2 AS cor0
----
-276

query I rowsort
SELECT - - ( + 17 ) AS col0 FROM tab1 cor0
----
17
17
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 46 * + + 52 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - 1 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + 62 * + - col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 62 * + - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - + 76 - + ( MAX( + 92 ) ) + 47 - - + 0 AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2147
SELECT - + 76 - + ( MAX ( + 92 ) ) + 47 - - + 0 AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT col1 - + col2 * - ( 23 ) FROM tab0
----
1162
2278
251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * + col2 col2 FROM tab2
----
-1334
-2320
-3364

query II rowsort
SELECT ALL 50, 19 AS col0 FROM tab2
----
50
19
50
19
50
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + 29 DIV 48 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2151
SELECT + 29 / 48 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col0 * + col0 * col0 - + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-262208
-421950
-97382

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE ( ( NULL >= 90 * - - col2 * col1 ) )
----

query I rowsort
SELECT - - ( col0 ) AS col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT - 68 * + col1 + + 76 AS col0 FROM tab2 AS cor0
----
-3392
-4480
-5160

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2157
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> - col2
----

skipif mysql # not compatible
query III rowsort label-2157
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 WHERE - - col1 IS NULL
----

query I rowsort
SELECT ALL 51 * - ( - col1 ) FROM tab0
----
1071
4131
51

query I rowsort
SELECT ALL + - 9 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2163
SELECT col2 + + col2 AS col2 FROM tab1 WHERE NOT ( + ( + 19 ) + - col2 + - ( col0 ) ) NOT IN ( + CAST( NULL AS DECIMAL ) * - + CAST( + - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2163
SELECT col2 + + col2 AS col2 FROM tab1 WHERE NOT ( + ( + 19 ) + - col2 + - ( col0 ) ) NOT IN ( + CAST ( NULL AS REAL ) * - + CAST ( + - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT DISTINCT + 62 * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + 62 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 36 + - 38 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT col1 AS col1, 49 FROM tab0
----
1
49
21
49
81
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 98 ) col2 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT DISTINCT - - ( - + 47 ) + - - col1 + - col0 DIV + 15 + - + 14 FROM tab2 AS cor0
----
-13
1
12

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - - ( - + 47 ) + - - col1 + - col0 / + 15 + - + 14 FROM tab2 AS cor0
----
-13
1
12

query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab2 cor0 WHERE - col0 / - col1 >= ( + 99 * - + 49 + + col0 * col0 + - + 24 )
----
-46
-64

query I rowsort
SELECT 35 + col1 AS col2 FROM tab0
----
116
36
56

query II rowsort
SELECT DISTINCT + 43 AS col0, col0 AS col0 FROM tab0 AS cor0
----
43
15
43
87
43
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT SUM( DISTINCT - 26 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-26

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT SUM ( DISTINCT - 26 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-26

query I rowsort
SELECT + 38 + col1 + - + col1 * + - ( + col2 ) * 74 FROM tab2 AS cor0
----
228035
287669
86891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT - 76 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT - 76 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2175
SELECT * FROM tab1 AS cor0 WHERE col0 <= col1 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2175
SELECT * FROM tab1 AS cor0 WHERE col0 <= col1 - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + 47 + - COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-2176
SELECT + 47 + - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 * + 38 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2178
SELECT DISTINCT col0 * ( CAST( col1 AS SIGNED ) ) - + col1 * 81 + - 7 AS col2, - ( - col0 ) * + + col2 FROM tab2
----
-1316
2560
-1792
1058
-409
4350

skipif mysql # not compatible
query II rowsort label-2178
SELECT DISTINCT col0 * ( CAST ( col1 AS INTEGER ) ) - + col1 * 81 + - 7 AS col2, - ( - col0 ) * + + col2 FROM tab2
----
-1316
2560
-1792
1058
-409
4350

query II rowsort
SELECT + col2 * - col0, + col0 FROM tab2
----
-1058
46
-2560
64
-4350
75

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - - + col0, + col1 col2 FROM tab1
----
138
47
65
14
90
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 62 - - + 93 col0, + col1 AS col0 FROM tab1
----
155
14
155
47
155
5

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ( 1 ) - + - MAX( DISTINCT - - col2 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-2184
SELECT ( 1 ) - + - MAX ( DISTINCT - - col2 ) FROM tab1
----
97

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT DISTINCT + ( COUNT( * ) ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2187
SELECT DISTINCT + ( COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT + 89 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + 49 * - 39 + - col1 <> col0
----

query I rowsort
SELECT ALL 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query II rowsort
SELECT DISTINCT + - 55 AS col0, col1 AS col0 FROM tab0 cor0
----
-55
1
-55
21
-55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL MIN( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + + col0 BETWEEN + 79 AND NULL
----
-77

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL MIN ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + + col0 BETWEEN + 79 AND NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = col1
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = col1
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2195
SELECT DISTINCT + MIN( ALL + 20 ) * + ( CAST( NULL AS DECIMAL ) ) * + 78 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT + MIN ( ALL + 20 ) * + ( CAST ( NULL AS REAL ) ) * + 78 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT 54 * + 83 + - MIN( col2 ) FROM tab1 AS cor0
----
4423

skipif mysql # not compatible
query I rowsort label-2196
SELECT 54 * + 83 + - MIN ( col2 ) FROM tab1 AS cor0
----
4423

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT - ( - - 15 ) DIV col2 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2197
SELECT - ( - - 15 ) / col2 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col2 * + 19 AS col1 FROM tab2
----
1102
437
760

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * col0 NOT IN ( + + col2 )
----

query I rowsort
SELECT + 89 + + ( - AVG ( + + 24 ) ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 69 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + MAX( ALL - col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT ALL + MAX ( ALL - col2 ) col2 FROM tab2
----
-23

query I rowsort
SELECT 40 + + ( + 28 ) * - + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT + col0 * - CAST( col2 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2204
SELECT + col0 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL MIN( ALL + ( + col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL MIN ( ALL + ( + col0 ) ) AS col0 FROM tab2
----
46

query II rowsort
SELECT DISTINCT col0 + 25, ( col2 ) * 96 - - 41 + - col1 + + ( - 12 ) * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
110
6779
116
7682
76
9951

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT 11 + + MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2207
SELECT 11 + + MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT col2 + + col0 * + col0 AS col0, - col0 + 38 + - 25 AS col0 FROM tab2
----
2139
-33
4136
-51
5683
-62

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
65

query I rowsort
SELECT DISTINCT - col1 * + - 0 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + 11 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2211
SELECT + 11 - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT DISTINCT + ( + col0 ) + + col1 + - col0 DIV - - col2 AS col1 FROM tab0 AS cor0
----
100
96
98

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT + ( + col0 ) + + col1 + - col0 / - - col2 AS col1 FROM tab0 AS cor0
----
100
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 39 + - + 42 col0 FROM tab1 cor0
----
-34
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2214
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2214
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2, - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 - + + 50 col2 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT col2 - 37 - - 45 * + - col1 AS col0 FROM tab2 AS cor0
----
-2309
-2994
-3462

query I rowsort
SELECT + - 37 - + col0 FROM tab0 AS cor0
----
-124
-134
-52

query I rowsort
SELECT + - col2 - - col0 AS col1 FROM tab1 cor0 WHERE col2 * ( 2 ) IS NOT NULL
----
-45
23
26

query I rowsort
SELECT - - col2 - - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col1 + + col0 * + col0 * + - 30 col1 FROM tab0
----
-227028
-282268
-6588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 - + 82 col0 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT + - ( + 87 ) * + col2 + 29 AS col0 FROM tab0 AS cor0
----
-4060
-841
-8584

query I rowsort
SELECT DISTINCT + col0 * + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - col1 * + 19 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT - ( COUNT( * ) ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT - ( COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT MIN( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT MIN ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - ( 56 ) FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT - + AVG ( ALL col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT - - col2 * - - 2 AS col2 FROM tab0 AS cor0 WHERE NOT - 58 IS NULL
----
198
20
94

query I rowsort
SELECT DISTINCT - - ( - + 29 ) AS col0 FROM tab0 AS cor0
----
-29

query II rowsort
SELECT - + col0 + 23 AS col0, + col2 * - + col1 * - + 56 * col1 AS col2 FROM tab2 AS cor0
----
-23
3350088
-41
13280960
-52
14580272

query II rowsort
SELECT ALL col1 AS col2, + 81 FROM tab2
----
51
81
67
81
77
81

query I rowsort
SELECT + ( + col1 ) FROM tab2 WHERE - + 9 IS NULL
----

query I rowsort
SELECT ( + + 45 ) AS col0 FROM tab2
----
45
45
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + - 86 ) NOT BETWEEN - - col0 AND + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 AS col1 FROM tab1
----
-4345
-484
-810

query II rowsort
SELECT - col2 + + col0, + col1 AS col2 FROM tab2
----
17
67
23
51
24
77

query I rowsort
SELECT ALL - col1 * 70 + col0 FROM tab1 AS cor0
----
-265
-3199
-929

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT DISTINCT + 69 DIV col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + 69 / col0 FROM tab1 cor0
----
0
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + + ( 43 ) ) * + + ( ( - col2 ) ) + - - 98 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 79 + + col2 AS col1 FROM tab1 AS cor0
----
-11
-20
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2243
SELECT - CAST( NULL AS DECIMAL ) * + MAX( 36 ) + - 62 * + SUM( DISTINCT - 86 ) + + + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT - CAST ( NULL AS REAL ) * + MAX ( 36 ) + - 62 * + SUM ( DISTINCT - 86 ) + + + COUNT ( * ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + - 85 NOT BETWEEN + + 18 * - col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col0 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT + 57 AS col1, 12 + COUNT( * ) AS col0 FROM tab1
----
57
15

skipif mysql # not compatible
query II rowsort label-2246
SELECT + 57 AS col1, 12 + COUNT ( * ) AS col0 FROM tab1
----
57
15

query II rowsort
SELECT + 74 AS col2, + col2 * - + col2 * - 72 AS col1 FROM tab1
----
74
250632
74
332928
74
663552

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col0 + - 51 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2249
SELECT DISTINCT COUNT( * ) AS col2, CAST( NULL AS SIGNED ) - + MIN( DISTINCT - - col2 ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2249
SELECT DISTINCT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT - - col2 ) AS col1 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL + MIN( DISTINCT - 86 ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + MIN ( DISTINCT - 86 ) FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + MIN( 24 ) AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2251
SELECT + MIN ( 24 ) AS col1 FROM tab1
----
24

query I rowsort
SELECT DISTINCT 61 * - 33 AS col1 FROM tab0
----
-2013

query I rowsort
SELECT + 1 * col0 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col0 * 37 FROM tab1
----
1887
3145
3367

query II rowsort
SELECT col0, + 76 * + - col1 * - col2 * + col0 AS col0 FROM tab1
----
51
5209344
85
1905700
91
22103536

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL - SUM( ALL - col2 ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - SUM ( ALL - col2 ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL + 78 * - + SUM( col1 ) FROM tab0
----
-8034

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 78 * - + SUM ( col1 ) FROM tab0
----
-8034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT - CAST( - + 48 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-2258
SELECT - CAST ( - + 48 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT - + ( - COUNT( * ) ) * - SUM( + col2 ) FROM tab1 cor0
----
-669

skipif mysql # not compatible
query I rowsort label-2259
SELECT - + ( - COUNT ( * ) ) * - SUM ( + col2 ) FROM tab1 cor0
----
-669

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 - + col2 AND - col0 * col0 + - 93 / 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 45 col1, - 43 AS col2 FROM tab0 AS cor0
----
-45
-43

query I rowsort
SELECT DISTINCT ( ( col0 ) ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + - 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 73 < NULL
----

query I rowsort
SELECT col1 - + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + col2 + + col0 AS col1 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT + col0 AS col0, 31 + + + ( - col0 ) FROM tab1 AS cor0
----
51
-20
85
-54
91
-60

query II rowsort
SELECT ALL + col1, ( col2 ) FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - 11, col0 FROM tab2 AS cor0
----
-11
46
-11
64
-11
75

query I rowsort
SELECT + - ( + 59 ) FROM tab0 AS cor0
----
-59
-59
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > ( + col2 )
----

query II rowsort
SELECT DISTINCT ( - col1 ) AS col0, - ( + col0 ) FROM tab0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + - ( - MAX( col2 ) ) FROM tab2 WHERE NOT - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + - ( - MAX ( col2 ) ) FROM tab2 WHERE NOT - col1 = NULL
----
NULL

query I rowsort
SELECT ALL - 50 + + + col1 + + col2 + - col0 FROM tab1 AS cor0
----
-26
-71
9

query II rowsort
SELECT ALL - col0 AS col1, ( ( col2 ) ) AS col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT COUNT( * ) * - 11 col0 FROM tab2
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2278
SELECT DISTINCT COUNT ( * ) * - 11 col0 FROM tab2
----
-33

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT - CAST( NULL AS SIGNED ) * SUM( DISTINCT - - 39 ) - + CAST( NULL AS SIGNED ) / - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - - 39 ) - + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * 52 + + - col0 AS col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT col1 - - - 0 DIV 88 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2282
SELECT col1 - - - 0 / 88 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT - - COUNT( ALL - 52 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT - - COUNT ( ALL - 52 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT COUNT( * ) * - SUM( 72 ) AS col1 FROM tab1 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-2284
SELECT COUNT ( * ) * - SUM ( 72 ) AS col1 FROM tab1 AS cor0
----
-648

query I rowsort
SELECT ALL + + ( 51 ) FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT SUM( - + 61 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-2287
SELECT SUM ( - + 61 ) FROM tab0
----
-183

query II rowsort
SELECT DISTINCT 90 * + - col2, + col1 FROM tab0
----
-4230
81
-8910
1
-900
21

query II rowsort
SELECT col2 * col2 AS col1, col1 FROM tab0 cor0
----
100
21
2209
81
9801
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * col1, 26 col0 FROM tab2 AS cor0
----
-2601
26
-4489
26
-5929
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT - 23 * COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - 23 * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT ALL + col0 + + + col2 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + col0 + + + col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 32 AS col2 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT DISTINCT + 13 * + 95 AS col2 FROM tab1 AS cor0
----
1235

query I rowsort
SELECT + ( - - 42 ) + + col0 + col1 FROM tab1 AS cor0
----
107
132
180

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - MAX( - col1 ) FROM tab0 AS cor0 WHERE NULL <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NULL <> col2
----
NULL

query I rowsort
SELECT + + col2 FROM tab1 WHERE - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 - - col2 <= - ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT DISTINCT MIN( + - col1 ), + 81 AS col1 FROM tab1
----
-47
81

skipif mysql # not compatible
query II rowsort label-2301
SELECT DISTINCT MIN ( + - col1 ), + 81 AS col1 FROM tab1
----
-47
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT 53 DIV - MIN( + + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT 53 / - MIN ( + + col2 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2303
SELECT DISTINCT 63 DIV - 6 AS col2, col2 * col0 FROM tab0
----
-10
705
-10
870
-10
9603

skipif mysql # not compatible
query II rowsort label-2303
SELECT DISTINCT 63 / - 6 AS col2, col2 * col0 FROM tab0
----
-10
705
-10
870
-10
9603

query I rowsort
SELECT DISTINCT - + 85 AS col2 FROM tab0 WHERE NOT + + col0 * + 57 * + col1 NOT BETWEEN ( - col2 ) AND col0
----

query II rowsort
SELECT ALL + col0 AS col1, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + 92 * + 84 + - 61 AS col0 FROM tab1
----
7667
7667
7667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT - CAST( - 96 AS SIGNED ) * - col1 FROM tab2
----
-4896
-6432
-7392

skipif mysql # not compatible
query I rowsort label-2307
SELECT - CAST ( - 96 AS INTEGER ) * - col1 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - 82 * - COUNT( * ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-2308
SELECT - 82 * - COUNT ( * ) FROM tab1
----
246

query I rowsort
SELECT DISTINCT 9 + + + 9 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT col0 * + + col2 + - col0 * + - col2 - col1 FROM tab1 AS cor0
----
10025
12329
9778

query I rowsort
SELECT DISTINCT + col2 - + + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT 83 * + col2 * 73 AS col2 FROM tab0
----
284773
599841
60590

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 60 * + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2314
SELECT ( - COUNT( * ) ) * + - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( + + 3 AS SIGNED ) * + col0 + + + col0 + col2 + + col2 = 71
----
3

skipif mysql # not compatible
query I rowsort label-2314
SELECT ( - COUNT ( * ) ) * + - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( + + 3 AS INTEGER ) * + col0 + + + col0 + col2 + + col2 = 71
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2315
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) >= col0 * - 21 * - col2 + 14 + + + col2
----

skipif mysql # not compatible
query III rowsort label-2315
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) >= col0 * - 21 * - col2 + 14 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL + - ( + MAX( + col0 ) ) col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2316
SELECT ALL + - ( + MAX ( + col0 ) ) col2 FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL + COUNT( * ) * - 24 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + COUNT ( * ) * - 24 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - 91 * col0 AS col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

query II rowsort
SELECT col2, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + + 34 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL MIN( - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL MIN ( - col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT MIN( col0 ) * COUNT( * ) * - ( - 19 ) AS col0 FROM tab2
----
2622

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT MIN ( col0 ) * COUNT ( * ) * - ( - 19 ) AS col0 FROM tab2
----
2622

query I rowsort
SELECT - ( - - 58 ) FROM tab1
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT - COUNT( * ) AS col2, + MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
-3
58

skipif mysql # not compatible
query II rowsort label-2325
SELECT - COUNT ( * ) AS col2, + MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
-3
58

query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT - + 29 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - + 29 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT 67 DIV + - col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT 67 / + - col0 FROM tab2 cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 74 <= ( col0 )
----
51
14
96

query II rowsort
SELECT ALL - col1, ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL - - COUNT( ALL - 12 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - - COUNT ( ALL - 12 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 + + - 20 + + col0 AS col2 FROM tab0 AS cor0
----
-86
46
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT MIN( DISTINCT - col1 ) DIV 11 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT MIN ( DISTINCT - col1 ) / 11 FROM tab1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT DISTINCT - col2 DIV + + col2 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - col2 / + + col2 AS col0 FROM tab1
----
-1

query I rowsort
SELECT col2 + + - col2 - - col2 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT col1 + - - 71 + + col1 FROM tab2
----
173
205
225

query I rowsort
SELECT ALL ( - col2 ) + col1 + col1 + + + col2 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0 WHERE NULL IN ( col0, 69 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0 WHERE NULL IN ( col0, 69 * - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - - col0 ) ) <> 88 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + 60 - - col2 FROM tab2 AS cor0
----
129
164
193

query I rowsort
SELECT ALL - 47 - - 53 AS col2 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT + COUNT( * ) FROM tab0 cor0 WHERE - ( col2 ) / - + CAST( NULL AS SIGNED ) < 13
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE - ( col2 ) / - + CAST ( NULL AS INTEGER ) < 13
----
0

query I rowsort
SELECT ( col2 ) - - 92 AS col2 FROM tab2
----
115
132
150

query II rowsort
SELECT ALL + 92 + - - col0 + 59 + - col0 * - col0 * - 96, + col1 + - + 17 + ( - 14 ) * - col2 AS col0 FROM tab1 AS cor0
----
-249494
1341
-693364
814
-794734
982

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 95 = ( + col1 ) + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT col2 DIV + col1 + + 99 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-2346
SELECT col2 / + col1 + + 99 FROM tab2 AS cor0
----
99
99
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 49 + + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 34 + + col1 AS col2 FROM tab1
----
30
76
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT SUM( ALL + 48 ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT SUM ( ALL + 48 ) FROM tab0 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, col0 col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab1 cor0 WHERE NOT ( NOT - + col1 + 88 IS NOT NULL )
----
-75

query II rowsort
SELECT col2 AS col2, 49 AS col2 FROM tab2 AS cor0
----
23
49
40
49
58
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2355
SELECT ALL + col1 AS col1, col2 + - 67 + + - col2 + - CAST( - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
14
-16
47
24
5
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2355
SELECT ALL + col1 AS col1, col2 + - 67 + + - col2 + - CAST ( - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
14
-16
47
24
5
18

onlyif mysql # DIV for integer division: 
query II rowsort label-2356
SELECT ALL + col1 AS col0, + col2 + - ( + 73 ) * col0 DIV - + 52 + ( 67 ) * + + 53 * + ( + col2 ) FROM tab0 AS cor0
----
1
351784
21
35642
81
166965

skipif mysql # not compatible
query II rowsort label-2356
SELECT ALL + col1 AS col0, + col2 + - ( + 73 ) * col0 / - + 52 + ( 67 ) * + + 53 * + ( + col2 ) FROM tab0 AS cor0
----
1
351784
21
35642
81
166965

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT + 13 - MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + 13 - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE col1 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - 32
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col1 * + + ( col1 ), + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT DISTINCT + 18, COUNT( * ) AS col0 FROM tab1
----
18
3

skipif mysql # not compatible
query II rowsort label-2361
SELECT DISTINCT + 18, COUNT ( * ) AS col0 FROM tab1
----
18
3

query I rowsort
SELECT DISTINCT + + 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2363
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT ALL col0, 30 * 12 FROM tab0 AS cor0
----
15
360
87
360
97
360

query I rowsort
SELECT DISTINCT 24 + + - 58 AS col1 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL + 6 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 73 AS col2 FROM tab1 AS cor0
----
132
141
169

query I rowsort
SELECT DISTINCT - + 8 * - + col0 FROM tab0 AS cor0 WHERE col1 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 16 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * - - col2 * + - 23 col2 FROM tab1
----
-103776
-63779
-73508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT col0 * - CAST( 26 AS SIGNED ) * col1 FROM tab0
----
-2522
-31590
-47502

skipif mysql # not compatible
query I rowsort label-2374
SELECT col0 * - CAST ( 26 AS INTEGER ) * col1 FROM tab0
----
-2522
-31590
-47502

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT MAX( DISTINCT col2 ) - + - 45 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT MAX ( DISTINCT col2 ) - + - 45 FROM tab2
----
103

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - col0 AS col1 FROM tab1 WHERE NOT - 24 IS NULL
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2377
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2377
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT CAST( NULL AS SIGNED ) - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT CAST ( NULL AS INTEGER ) - + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col0
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - 99 * + 10 + col2 IN ( + col2 )
----

query I rowsort
SELECT ALL + 47 AS col1 FROM tab0 cor0
----
47
47
47

query I rowsort
SELECT 43 AS col0 FROM tab0 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT - MAX( ALL - + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2383
SELECT - MAX ( ALL - + col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT + col1 * - ( + 51 ) AS col2 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT DISTINCT + 11 FROM tab1 AS cor0 WHERE 57 >= + col0
----
11

query I rowsort
SELECT DISTINCT + - 30 AS col0 FROM tab0 cor0
----
-30

query II rowsort
SELECT DISTINCT + col0 AS col2, 97 * + col2 FROM tab0 AS cor0
----
15
4559
87
970
97
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 99, - col2, + + ( + - ( col2 ) ) / - col1 - - col2, 60 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 77 / + col0 + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT - CAST( + - col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2390
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - ( - - col1 ) col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - ( + COUNT( * ) ) * 15 AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2392
SELECT - ( + COUNT ( * ) ) * 15 AS col1 FROM tab2
----
-45

query II rowsort
SELECT ALL - col0 AS col0, - col0 AS col1 FROM tab1
----
-51
-51
-85
-85
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 31 * - + ( - MAX( DISTINCT 13 ) ) + 93 FROM tab0
----
496

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 31 * - + ( - MAX ( DISTINCT 13 ) ) + 93 FROM tab0
----
496

query II rowsort
SELECT - col2 AS col1, + col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT - ( - 80 ) AS col2 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT MAX( 54 ) + + SUM( + 88 ) AS col2 FROM tab2 cor0
----
318

skipif mysql # not compatible
query I rowsort label-2397
SELECT MAX ( 54 ) + + SUM ( + 88 ) AS col2 FROM tab2 cor0
----
318

query I rowsort
SELECT + 48 * + - col1 AS col1 FROM tab1
----
-2256
-240
-672

query I rowsort
SELECT DISTINCT col0 * - 83 FROM tab1 cor0
----
-4233
-7055
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL + COUNT( * ) * 91 - + COUNT( * ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL + COUNT ( * ) * 91 - + COUNT ( * ) FROM tab0 AS cor0
----
270

query II rowsort
SELECT ( + + col1 ), col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL + + 88 + + + col1 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2403
SELECT DISTINCT - 69 * + - col1 * col2 + - col2 - CAST( col2 AS SIGNED ) - col2 DIV - + col2 AS col0 FROM tab0 AS cor0
----
14471
262590
6634

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - 69 * + - col1 * col2 + - col2 - CAST ( col2 AS INTEGER ) - col2 / - + col2 AS col0 FROM tab0 AS cor0
----
14471
262590
6634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2404
SELECT ALL ( + - COUNT( * ) ) DIV - 10 + + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL ( + - COUNT ( * ) ) / - 10 + + - COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 - ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT + ( + col0 ) - CAST( NULL AS SIGNED ) * col2 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT + ( + col0 ) - CAST ( NULL AS INTEGER ) * col2 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + ( COUNT( * ) ) - + 81 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2407
SELECT + ( COUNT ( * ) ) - + 81 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT col0 * - col1 + - - 25 + 26 FROM tab1 AS cor0
----
-374
-4226
-663

query II rowsort
SELECT DISTINCT col2 - - col2 AS col2, col2 * + 1 AS col2 FROM tab0 AS cor0
----
198
99
20
10
94
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) * + col1 + + 3 + + col2 + 6 > NULL
----

query II rowsort
SELECT ALL col0, col1 * + - col0 + 78 FROM tab0
----
15
-1137
87
-1749
97
-19

query I rowsort
SELECT col0 * - + 79 AS col1 FROM tab2
----
-3634
-5056
-5925

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) + - + col0 IN ( + 19, col2, - + col0, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + COUNT( ALL - 13 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2414
SELECT + COUNT ( ALL - 13 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( 57 ) AS col2 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL ( + 60 ) AS col2 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT ALL - COUNT( col0 ) DIV + 66 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - COUNT ( col0 ) / + 66 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT 91 * + 20 / + CAST( NULL AS SIGNED ) + - + 52 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT 91 * + 20 / + CAST ( NULL AS INTEGER ) + - + 52 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT + + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT col2 >= + - 75 * + 27
----

query II rowsort
SELECT ALL col1 * + col0 AS col1, - 32 FROM tab1
----
425
-32
4277
-32
714
-32

query II rowsort
SELECT ALL - col1 * - + 2 AS col0, col2 * - col2 + 56 AS col1 FROM tab1
----
10
-3425
28
-9160
94
-4568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + + col2 + + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + + col2 + + CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ( - + 16 ) AS col0 FROM tab0 AS cor0
----
-16
-16
-16

query II rowsort
SELECT + + 93 * 69 AS col1, - 91 + + + 30 AS col1 FROM tab1 AS cor0
----
6417
-61
6417
-61
6417
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2426
SELECT DISTINCT COUNT( * ) DIV - - 37 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT COUNT ( * ) / - - 37 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT ALL + 93 * CAST( NULL AS SIGNED ) + - + col2 + + col2 / - - 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + 93 * CAST ( NULL AS INTEGER ) + - + col2 + + col2 / - - 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col1 * 62, - 13 AS col2 FROM tab2 AS cor0
----
3162
-13
4154
-13
4774
-13

query I rowsort
SELECT + 82 * + 13 + + - col0 FROM tab1 AS cor0
----
1015
975
981

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 + + + 87 < + + 37
----
-2

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 + + + 87 < + + 37
----
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 * 65 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 15 ) * + col0 FROM tab2
----
1125
690
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT DISTINCT CAST( col1 AS SIGNED ) * + + 38 + + col0 * col2 FROM tab0
----
1668
3783
9641

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + + 38 + + col0 * col2 FROM tab0
----
1668
3783
9641

query I rowsort
SELECT - 6 * + col1 AS col0 FROM tab1
----
-282
-30
-84

query II rowsort
SELECT + - col1 AS col0, 72 FROM tab2 AS cor0
----
-51
72
-67
72
-77
72

query I rowsort
SELECT ALL + - col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < - col0 / - + col0 * + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + COUNT( * ) + - 25 AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2438
SELECT + COUNT ( * ) + - 25 AS col2 FROM tab1
----
-22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 - 89 BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2440
SELECT 0 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT 0 + + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 98 * - + 59 col1 FROM tab1
----
-5841
-5850
-5878

query I rowsort
SELECT - col0 + col1 - + + 90 AS col2 FROM tab2 AS cor0
----
-77
-85
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT 68 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT 68 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - col0 / + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 * - 60 - + col1 AS col2 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT + - ( - 88 ) AS col1 FROM tab0 cor0
----
88
88
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2447
SELECT DISTINCT - MAX( DISTINCT - col1 ) + - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - MAX ( DISTINCT - col1 ) + - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2448
SELECT * FROM tab0 WHERE + 1 BETWEEN NULL AND CAST( NULL AS SIGNED ) * col0 * - + 66
----

skipif mysql # not compatible
query III rowsort label-2448
SELECT * FROM tab0 WHERE + 1 BETWEEN NULL AND CAST ( NULL AS INTEGER ) * col0 * - + 66
----

query II rowsort
SELECT + col1 - + 25 AS col0, col2 + + col0 FROM tab0
----
-24
196
-4
97
56
62

query I rowsort
SELECT DISTINCT 50 + - col1 - + col0 * - + 84 FROM tab0
----
1229
7337
8197

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2451
SELECT * FROM tab0 WHERE NOT + + col1 / CAST( col2 AS SIGNED ) * col0 + - - 3 + + col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2451
SELECT * FROM tab0 WHERE NOT + + col1 / CAST ( col2 AS INTEGER ) * col0 + - - 3 + + col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * 51 AS col0 FROM tab0
----
-4437
-4947
-765

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 2 - + + col2 + - + col2 + ( + ( - col0 ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2454
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 10 BETWEEN - col2 AND ( col1 + - CAST( - 54 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2454
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 10 BETWEEN - col2 AND ( col1 + - CAST ( - 54 AS REAL ) )
----

query I rowsort
SELECT ALL + col1 * - col0 AS col1 FROM tab2 WHERE NULL = - col0
----

query I rowsort
SELECT ALL 69 * + + col2 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT ALL - - 60 * + col0 AS col2 FROM tab1 AS cor0
----
3060
5100
5460

query I rowsort
SELECT DISTINCT - + 61 FROM tab0 cor0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2459
SELECT ALL + CAST( NULL AS DECIMAL ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + CAST ( NULL AS REAL ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - MIN( DISTINCT - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2460
SELECT - MIN ( DISTINCT - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT col0 AS col2, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL - col1 * + ( - CAST( NULL AS SIGNED ) ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - col1 * + ( - CAST ( NULL AS INTEGER ) ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - col2 FROM tab1 WHERE NOT + col2 IS NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT MAX( ALL - + ( - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2464
SELECT MAX ( ALL - + ( - col1 ) ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT DISTINCT 86 DIV - + col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT 86 / - + col2 FROM tab0
----
-1
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab0 WHERE NOT + + col2 IS NULL
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + MIN( + - 52 ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-2467
SELECT + MIN ( + - 52 ) AS col0 FROM tab0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT DISTINCT col1 DIV - + 88 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT col1 / - + 88 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2469
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) = + - col0 + + - col2 + - + col1
----

skipif mysql # not compatible
query III rowsort label-2469
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) = + - col0 + + - col2 + - + col1
----

query I rowsort
SELECT ALL 91 + col1 AS col0 FROM tab0 cor0
----
112
172
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2471
SELECT DISTINCT - + 94 DIV + COUNT( * ) + + ( + 71 ) AS col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT - + 94 / + COUNT ( * ) + + ( + 71 ) AS col1 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT - + MIN( - + 1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT - + MIN ( - + 1 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - col2 IS NULL
----
15
87
97

query I rowsort
SELECT ALL + + 70 AS col0 FROM tab2 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - 74 + - col1 - + col1 col0 FROM tab1 AS cor0
----
-153
-169
-259

query I rowsort
SELECT DISTINCT 42 + 9 * + 69 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-54072
-60292
-9288

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > + 61
----

query I rowsort
SELECT 91 + + 66 FROM tab0 AS cor0
----
157
157
157

query III rowsort
SELECT * FROM tab0 WHERE NOT 74 BETWEEN NULL AND - ( + col0 ) + - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2480
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col2, col0, - + col0, + col2 - - col1 + + + 99 / - + col2 * - CAST( NULL AS SIGNED ) * 30 / - col0 * + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2480
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col2, col0, - + col0, + col2 - - col1 + + + 99 / - + col2 * - CAST ( NULL AS INTEGER ) * 30 / - col0 * + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT DISTINCT - COUNT( * ), - 77 AS col2 FROM tab1
----
-3
-77

skipif mysql # not compatible
query II rowsort label-2481
SELECT DISTINCT - COUNT ( * ), - 77 AS col2 FROM tab1
----
-3
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL - MAX( ALL + + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL - MAX ( ALL + + col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT DISTINCT col1 * + col2 DIV - + col2 col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2483
SELECT DISTINCT col1 * + col2 / - + col2 col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT AVG ( ALL - col0 ) + - + AVG ( - + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + ( - col0 ) * - - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT MAX( + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT MAX ( + col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2487
SELECT DISTINCT 54 AS col0, + 48 + + COUNT( * ) FROM tab1 AS cor0
----
54
51

skipif mysql # not compatible
query II rowsort label-2487
SELECT DISTINCT 54 AS col0, + 48 + + COUNT ( * ) FROM tab1 AS cor0
----
54
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col0 * + - col2 + - + col1 * - col2 * - - col2 * + col0
----

query II rowsort
SELECT ALL - col0, + col1 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-51
-700
-85
-420
-91
-4230

query I rowsort
SELECT - col0 * - - 82 AS col2 FROM tab2 AS cor0
----
-3772
-5248
-6150

query II rowsort
SELECT - + 25, + 43 AS col1 FROM tab1 AS cor0
----
-25
43
-25
43
-25
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT DISTINCT 77 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT 77 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + MAX( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT ALL + col2 * + + CAST( NULL AS SIGNED ) + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL + col2 * + + CAST ( NULL AS INTEGER ) + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + + 78 AS col1 FROM tab0 AS cor0
----
3666
7722
780

query I rowsort
SELECT - + 0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + MIN( - - 82 ) AS col1 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2498
SELECT + MIN ( - - 82 ) AS col1 FROM tab0 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 43 col2 FROM tab1 AS cor0 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2500
SELECT DISTINCT col1 + 74 col0, + col1 + CAST( NULL AS SIGNED ) + col0, + col2 + col1 - + + col0 * col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to 6fc249e121784cff94207e1a084e97e6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2500
SELECT DISTINCT col1 + 74 col0, + col1 + CAST ( NULL AS INTEGER ) + col0, + col2 + col1 - + + col0 * col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to 6fc249e121784cff94207e1a084e97e6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT ALL + - COUNT( - col1 ) + + + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL + - COUNT ( - col1 ) + + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT ALL 20 AS col1, col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - 48 FROM tab2 AS cor0
----
-112
-123
-94

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT ( + + col0 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + COUNT( * ) + + 37 FROM tab2 WHERE ( NOT + 5 IS NOT NULL )
----
37

skipif mysql # not compatible
query I rowsort label-2505
SELECT + COUNT ( * ) + + 37 FROM tab2 WHERE ( NOT + 5 IS NOT NULL )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL - col1 DIV col2 * + - col1 AS col1 FROM tab2
----
102
67
77

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - col1 / col2 * + - col1 AS col1 FROM tab2
----
102
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 49 col2 FROM tab1
----
-2
-35
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + MAX( - + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2508
SELECT + MAX ( - + col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT + 32 DIV + - col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT + 32 / + - col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + MAX( ALL - col1 ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2510
SELECT + MAX ( ALL - col1 ) col0 FROM tab2
----
-51

query I rowsort
SELECT 69 * - + 94 AS col1 FROM tab1 AS cor0
----
-6486
-6486
-6486

query I rowsort
SELECT DISTINCT col0 + - ( - + col1 ) AS col0 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 52 + 88 * 7 col2 FROM tab1 AS cor0
----
668
668
668

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT + + 57 + + MIN( ALL - ( - - col0 ) ) col1 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT DISTINCT + + 57 + + MIN ( ALL - ( - - col0 ) ) col1 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT DISTINCT - ( + 2 ) + - + 31 DIV 67 AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - ( + 2 ) + - + 31 / 67 AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - col0 * col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT 59 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT 59 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + + col0 col1 FROM tab2
----
142
160
171

query I rowsort
SELECT ALL + col2 + col2 * 70 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT 2 * + col0 AS col1 FROM tab0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab0 WHERE - 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * 84 - col0 AS col0 FROM tab2 WHERE 57 IN ( 81 )
----

query I rowsort
SELECT ALL + 80 * 26 FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT + COUNT( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2526
SELECT + COUNT ( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col1 NOT BETWEEN col1 AND + ( - 69 ) / 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL - COUNT( * ) + 35 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - COUNT ( * ) + 35 FROM tab0
----
32

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + col1 ) IN ( - 39 * 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + 14 + - COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 14 + - COUNT ( * ) FROM tab0
----
11

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 58 NOT IN ( + 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2532
SELECT * FROM tab0 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2532
SELECT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 + 31 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL COUNT( DISTINCT ( - col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL COUNT ( DISTINCT ( - col2 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + col2 * col2 = NULL
----

query I rowsort
SELECT col1 * + col1 + - col1 * - col1 FROM tab1 WHERE ( 18 + col1 ) > + 42
----
4418

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col2 BETWEEN - col2 * col0 + - col2 * + 82 AND - ( - col1 )
----
-99

query I rowsort
SELECT 74 AS col1 FROM tab2 WHERE - 10 * col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL MIN( col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL MIN ( col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL + COUNT( * ) - - 12 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + COUNT ( * ) - - 12 FROM tab2
----
15

query I rowsort
SELECT DISTINCT - 86 + 15 FROM tab1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT + 36 * - col2 - - 43 DIV col0 FROM tab0
----
-1690
-3564
-360

skipif mysql # not compatible
query I rowsort label-2543
SELECT + 36 * - col2 - - 43 / col0 FROM tab0
----
-1690
-3564
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT SUM( - 1 ) col2 FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND - col0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2544
SELECT SUM ( - 1 ) col2 FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND - col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - COUNT( * ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2545
SELECT - COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 90 * + 41 FROM tab1 AS cor0
----
3690

query I rowsort
SELECT col1 - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 72 )
----

query I rowsort
SELECT ALL + 54 * col2 AS col2 FROM tab2 cor0
----
1242
2160
3132

query I rowsort
SELECT DISTINCT 56 * ( col0 ) AS col2 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT - col0 + col2 * - col2 AS col0 FROM tab1
----
-3566
-4715
-9267

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 49 * col0 ) > NULL
----

query I rowsort
SELECT ALL + 20 + + col1 FROM tab0
----
101
21
41

query I rowsort
SELECT DISTINCT ( + ( - ( 11 ) ) ) + col1 AS col1 FROM tab2 AS cor0
----
40
56
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT - 95 DIV COUNT( * ) + 96 AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - 95 / COUNT ( * ) + 96 AS col2 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - col2 - - col0 * 85 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT ALL - 2 DIV col1 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - 2 / col1 AS col1 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL + - col2 + - col1 AS col2 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT col1 / - col1 FROM tab2 AS cor0 WHERE + 59 - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 2 * + 89 + - col0 FROM tab0 AS cor0
----
163
81
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - + COUNT( - 76 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2562
SELECT - + COUNT ( - 76 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col1 + + + col2 AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL col2 * - col2 + + 53 AS col1 FROM tab1 WHERE NULL IS NULL
----
-3428
-4571
-9163

query I rowsort
SELECT 95 * + col0 * col1 + - col1 AS col2 FROM tab0
----
115344
173544
9214

query I rowsort
SELECT + col1 + + + 45 AS col1 FROM tab0
----
126
46
66

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col1 * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1 - ( + col1 ) * 26
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL - 37 + + + MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - 37 + + + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - + 80 + col0 + col2 FROM tab2 AS cor0
----
-11
24
53

query III rowsort
SELECT * FROM tab2 WHERE col0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 94 * + ( + 41 ) * - col1 FROM tab1 AS cor0
----
181138
19270
53956

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IS NOT NULL OR - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT SUM( + + 69 ) col0 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT SUM ( + + 69 ) col0 FROM tab2 AS cor0
----
207

query I rowsort
SELECT + + ( - + 47 ) FROM tab1 AS cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 + col0 ) <> ( NULL )
----

query I rowsort
SELECT - ( col2 ) * ( + col0 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT - 84 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-84
23
-84
40
-84
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2580
SELECT - col2 DIV + 70 * + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT - col2 / + 70 * + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT SUM( - 25 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT SUM ( - 25 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT DISTINCT 53 + CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT 53 + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 88 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 20 FROM tab2 WHERE 65 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2587
SELECT ALL col1 AS col1 FROM tab1 WHERE ( - + 82 ) < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL col1 AS col1 FROM tab1 WHERE ( - + 82 ) < CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + col2 * 11 FROM tab1
----
1056
649
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( col0 + + col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( col0 + + col0 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT ALL - 8 DIV - 73 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 8 / - 73 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2592
SELECT MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + ( + 36 ) * - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( + 36 ) * - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
324

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + + + ( - + col0 ) * col0 AND ( + ( 83 ) + + col1 )
----

query I rowsort
SELECT + 38 * - + 65 FROM tab2
----
-2470
-2470
-2470

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col0 ) AND 64
----

query I rowsort
SELECT ALL - + 90 + + - col2 FROM tab0 AS cor0
----
-100
-137
-189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2598
SELECT DISTINCT + col2 DIV + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE ( - 72 ) >= ( + CAST( - col0 AS SIGNED ) )
----
0
99

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT + col2 / + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE ( - 72 ) >= ( + CAST ( - col0 AS INTEGER ) )
----
0
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT DISTINCT + - CAST( + ( - - 6 ) AS SIGNED ) + + - col0 AS col1 FROM tab2 AS cor0
----
-52
-70
-81

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + - CAST ( + ( - - 6 ) AS INTEGER ) + + - col0 AS col1 FROM tab2 AS cor0
----
-52
-70
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 NOT IN ( 59 )
----
-9

skipif mysql # not compatible
query I rowsort label-2601
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 NOT IN ( 59 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT - CAST( NULL AS SIGNED ) * CAST( + col0 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-2602
SELECT - CAST ( NULL AS INTEGER ) * CAST ( + col0 AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 29 AS col0 FROM tab1 WHERE NOT - + 11 * + - 58 NOT BETWEEN + col1 AND - + col0 * col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + 69 + - 93 col0 FROM tab0
----
15
-24
87
-24
97
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT 36 DIV + - 66 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2605
SELECT 36 / + - 66 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ( - COUNT( col2 ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2606
SELECT ( - COUNT ( col2 ) ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + MIN( ALL 58 ) - + COUNT( DISTINCT + 44 ) AS col0 FROM tab2 WHERE NULL IN ( col2 * + 51 + + 25 - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT + MIN ( ALL 58 ) - + COUNT ( DISTINCT + 44 ) AS col0 FROM tab2 WHERE NULL IN ( col2 * + 51 + + 25 - - col1 )
----
NULL

query I rowsort
SELECT ( col2 ) - + col2 + - + col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + - col0 FROM tab1 cor0 WHERE NOT NULL < 88
----

query I rowsort
SELECT ALL + 30 + + 82 AS col0 FROM tab0 cor0
----
112
112
112

query I rowsort
SELECT DISTINCT + - 9 + col1 FROM tab2 cor0
----
42
58
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 * + + 80 col0 FROM tab2
----
5120

query III rowsort
SELECT * FROM tab1 WHERE NOT 79 * - - 29 < ( - 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 22 = - col2 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT COUNT( + 14 ) AS col1, - ( - + 48 ) AS col0 FROM tab1 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-2615
SELECT COUNT ( + 14 ) AS col1, - ( - + 48 ) AS col0 FROM tab1 AS cor0
----
3
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT + COUNT( * ) DIV - 68 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2617
SELECT + COUNT ( * ) / - 68 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT 12 DIV - + col1 AS col1 FROM tab0
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT 12 / - + col1 AS col1 FROM tab0
----
-12
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * 45 col1 FROM tab0
----
3330
3330
3330

query II rowsort
SELECT col2 AS col2, - 43 FROM tab0
----
10
-43
47
-43
99
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2622
SELECT CAST( + ( + - col1 ) AS SIGNED ) col2, + 66 AS col1 FROM tab0
----
-1
66
-21
66
-81
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2622
SELECT CAST ( + ( + - col1 ) AS INTEGER ) col2, + 66 AS col1 FROM tab0
----
-1
66
-21
66
-81
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2623
SELECT 60 DIV - COUNT( * ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2623
SELECT 60 / - COUNT ( * ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT DISTINCT + 80 * + + col2 * - 70 FROM tab2
----
-128800
-224000
-324800

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col1 ) + + col0 + col1 - + ( + + col0 ) * - 45 ) IN ( 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT ALL - 47 DIV + 94 * + SUM( ALL + + col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - 47 / + 94 * + SUM ( ALL + + col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 + - 87 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + - 74 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + 99 ) >= + col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 * col0 + + col0 + + 17 AS col0 FROM tab0 AS cor0
----
-1183
-1723
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT 92 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT 92 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + + - col1 col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT 5 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 * - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2636
SELECT + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 + - + 75 * col0 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
-4804
-6704
-7274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 56 + + - 23 AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - col1 + col1 + - col1 + + - 89 * - + col1 FROM tab2
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT 18 + COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2641
SELECT 18 + COUNT ( * ) AS col2 FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + + col0 col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL col2 - + - col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT col2 - + + ( + - col0 ) + + col1 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT - col1 * col2 * + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT SUM( - CAST( + 86 AS SIGNED ) ) + + + COUNT( * ) AS col1 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-2646
SELECT SUM ( - CAST ( + 86 AS INTEGER ) ) + + + COUNT ( * ) AS col1 FROM tab2
----
-255

query I rowsort
SELECT DISTINCT 87 + - - col2 AS col0 FROM tab1 AS cor0
----
146
155
183

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2648
SELECT - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 / + + 85 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 12 * + + col2 * 99 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT + - CAST( + 5 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif mysql # not compatible
query I rowsort label-2651
SELECT + - CAST ( + 5 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT - ( col2 ) * + - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + MAX( - 48 ) AS col0 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2653
SELECT + MAX ( - 48 ) AS col0 FROM tab2 cor0
----
-48

query I rowsort
SELECT + col2 * 79 - + 30 FROM tab2 AS cor0
----
1787
3130
4552

query II rowsort
SELECT DISTINCT col0 AS col2, 86 FROM tab2 AS cor0
----
46
86
64
86
75
86

query I rowsort
SELECT ALL + col1 * + - col0 * - col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2657
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) / col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-2657
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) / col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL - col0 DIV + 67 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - col0 / + 67 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 72, col2 / + col0, - - col1 )
----

query I rowsort
SELECT DISTINCT - 57 FROM tab2 WHERE NOT NULL <= col1
----

query I rowsort
SELECT ALL + 31 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - ( + col2 ) * + col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 44 IS NULL
----

query I rowsort
SELECT ALL 84 + + 52 AS col0 FROM tab1 AS cor0
----
136
136
136

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 * + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 + col2 AS col2, 53 FROM tab0 AS cor0
----
196
53
62
53
97
53

query I rowsort
SELECT ALL - col2 + + ( - + col1 ) FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + + SUM( + col1 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + + SUM ( + col1 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
198

query I rowsort
SELECT + 70 FROM tab2 WHERE NULL NOT IN ( col0, col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL MAX( + - 85 ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL MAX ( + - 85 ) FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT - MIN( - + 46 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - MIN ( - + 46 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT COUNT( * ) + + - MAX( ALL 32 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-2673
SELECT COUNT ( * ) + + - MAX ( ALL 32 ) FROM tab1
----
-29

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE + col2 NOT IN ( + 58 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 54 - + col1 + - col0 + - ( + 84 ) * col0 * + + col0 = NULL
----

query I rowsort
SELECT + + col1 + - - 80 + + 77 * + - 16 AS col1 FROM tab2 AS cor0
----
-1075
-1085
-1101

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > + + 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT - 39 + - col1 DIV + 93 AS col0 FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-2678
SELECT - 39 + - col1 / + 93 AS col0 FROM tab0 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col0 * + col2
----

query I rowsort
SELECT 72 * - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
4248
4896
6912

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + 31, 40 + + col2 )
----

query I rowsort
SELECT ALL 47 - col2 FROM tab2
----
-11
24
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL MIN( ALL col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL MIN ( ALL col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL COUNT( * ) - - SUM( + col1 ) AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL COUNT ( * ) - - SUM ( + col1 ) AS col0 FROM tab0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT + 98 DIV - col0 - - - col2 - - col2 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-2685
SELECT + 98 / - col0 - - - col2 - - col2 FROM tab0
----
-1
-1
-6

query I rowsort
SELECT ALL - col2 - - col0 * + col0 FROM tab0
----
178
7559
9310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT - - ( - + COUNT( * ) ) DIV ( 35 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT - - ( - + COUNT ( * ) ) / ( 35 ) AS col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT col2 * + + col0 * + + 35 < col2
----
51
67
77

query I rowsort
SELECT + col1 + - 71 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 70 * 54, + 92, + col0 / + 7, + 75, + col2 )
----

query I rowsort
SELECT col2 * - 54 FROM tab1 cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT + ( CAST( + + 80 AS SIGNED ) ) FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2692
SELECT + ( CAST ( + + 80 AS INTEGER ) ) FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT - 22 + + 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2694
SELECT SUM( ALL - col2 ) * 9 AS col0, - 27 + + COUNT( ALL + col2 ) AS col0 FROM tab0
----
-1404
-24

skipif mysql # not compatible
query II rowsort label-2694
SELECT SUM ( ALL - col2 ) * 9 AS col0, - 27 + + COUNT ( ALL + col2 ) AS col0 FROM tab0
----
-1404
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - MIN( ALL + 51 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - MIN ( ALL + 51 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - ( + 27 ) FROM tab2 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL - + 4 * - COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - + 4 * - COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + COUNT( * ) * + MIN( ALL - col0 ) AS col0 FROM tab0 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + COUNT ( * ) * + MIN ( ALL - col0 ) AS col0 FROM tab0 cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL + MAX( + col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT ALL + MAX ( + col2 ) col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL 97 * + col0 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT ( MAX( DISTINCT + - col2 ) ) * + 20 FROM tab1
----
-1180

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT ( MAX ( DISTINCT + - col2 ) ) * + 20 FROM tab1
----
-1180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + 35 * col0 / - col1 * + col1 + + + ( - col2 ) - + - col1 - + col2 + + 52 + - - 75 * + + col0 * 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - ( col0 ) col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT - ( - col2 ) * + 26 - CAST( + ( + + col0 ) AS SIGNED ) FROM tab0
----
1207
173
2477

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - ( - col2 ) * + 26 - CAST ( + ( + + col0 ) AS INTEGER ) FROM tab0
----
1207
173
2477

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL SUM( ALL - col2 ) + MIN( DISTINCT col1 ) AS col1 FROM tab1
----
-218

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL SUM ( ALL - col2 ) + MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + MAX( + - 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + MAX ( + - 91 ) FROM tab1
----
-91

query I rowsort
SELECT - + col1 + - col2 * + col2 - - 95 AS col1 FROM tab2 AS cor0
----
-1582
-3336
-485

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 98 * - 3 * + ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT COUNT( * ) DIV - + 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT COUNT ( * ) / - + 79 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT - - CAST( - 78 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
-101
-118
-136

skipif mysql # not compatible
query I rowsort label-2712
SELECT - - CAST ( - 78 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT 76 - + col2 FROM tab1 AS cor0
----
-20
17
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL + - COUNT( * ) + - 64 AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + - COUNT ( * ) + - 64 AS col0 FROM tab2 AS cor0
----
-67

query II rowsort
SELECT - col0 + col1, col1 * col0 AS col0 FROM tab0 AS cor0
----
-66
1827
-96
97
66
1215

query I rowsort
SELECT - col0 + + ( + - col0 ) + + 30 FROM tab1 AS cor0
----
-140
-152
-72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) = NULL AND - 28 > - + col2
----

query I rowsort
SELECT ALL - col2 + 76 AS col0 FROM tab1 AS cor0
----
-20
17
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT 90 * - + CAST( NULL AS SIGNED ) + + MIN( ALL col2 ) * 86 AS col1 FROM tab0 AS cor0 WHERE + col0 < col0 * col2 / + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT 90 * - + CAST ( NULL AS INTEGER ) + + MIN ( ALL col2 ) * 86 AS col1 FROM tab0 AS cor0 WHERE + col0 < col0 * col2 / + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT 93 + + - COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
90
3

skipif mysql # not compatible
query II rowsort label-2720
SELECT 93 + + - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
90
3

query I rowsort
SELECT + 56 + + - 47 * - + 3 AS col0 FROM tab1
----
197
197
197

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT - 74 + - col2 + col0 DIV + col0 - - 44 FROM tab1
----
-125
-88
-97

skipif mysql # not compatible
query I rowsort label-2722
SELECT - 74 + - col2 + col0 / + col0 - - 44 FROM tab1
----
-125
-88
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + 13 * - col1 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL 30 * COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL 30 * COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-270

query I rowsort
SELECT DISTINCT 48 * + col0 * - + 36 FROM tab2
----
-110592
-129600
-79488

query II rowsort
SELECT ALL 18, + 57 * - + col2 FROM tab2 WHERE NOT + col2 NOT BETWEEN - - col1 * + 42 - + col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2727
SELECT ( + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL - SUM( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - SUM ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 98 * - 99 + col1 FROM tab1 AS cor0
----
-9655
-9688
-9697

query I rowsort
SELECT - col2 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT - + col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2731
SELECT - + col1 / + col1 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT - + SUM( - CAST( + - 47 AS SIGNED ) ) FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-2733
SELECT - + SUM ( - CAST ( + - 47 AS INTEGER ) ) FROM tab1 cor0
----
-141

query I rowsort
SELECT - col0 * + col0 * 48 AS col0 FROM tab2 AS cor0
----
-101568
-196608
-270000

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + + SUM( - 63 ) AS col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2735
SELECT + + SUM ( - 63 ) AS col2 FROM tab0 AS cor0
----
-189

query II rowsort
SELECT ( 70 ) AS col2, - col2 FROM tab1 AS cor0
----
70
-59
70
-68
70
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 90 + + ( + col1 ) FROM tab1 AS cor0
----
104
137
95

query I rowsort
SELECT - 83 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-182
-293
-3890

query I rowsort
SELECT - - col2 + 41 + + col1 AS col2 FROM tab1 AS cor0
----
105
151
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + ( - - COUNT( * ) ) + + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2741
SELECT + ( - - COUNT ( * ) ) + + + COUNT ( * ) FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - + col2 / + - col0 >= - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE - 10 + - 54 IS NULL
----

query I rowsort
SELECT ALL col1 * - ( 43 ) FROM tab2
----
-2193
-2881
-3311

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col0
----

query I rowsort
SELECT + 1 * - 16 FROM tab1
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - col0 col0 FROM tab2
----
3128
4352
5100

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT + 86 DIV 70 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2748
SELECT + 86 / 70 FROM tab1
----
1
1
1

query I rowsort
SELECT ( + 80 ) AS col2 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2750
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2751
SELECT ALL - CAST( NULL AS SIGNED ) * + MIN( 90 ) AS col2, MAX( DISTINCT - ( + 69 ) ) FROM tab1, tab2 AS cor0
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-2751
SELECT ALL - CAST ( NULL AS INTEGER ) * + MIN ( 90 ) AS col2, MAX ( DISTINCT - ( + 69 ) ) FROM tab1, tab2 AS cor0
----
NULL
-69

query I rowsort
SELECT - col1 + + 10 FROM tab1
----
-37
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + ( + - COUNT( * ) ) + 20 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-2753
SELECT + ( + - COUNT ( * ) ) + 20 FROM tab2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT - col0 + + - col0 DIV + col1 FROM tab2 AS cor0
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-2754
SELECT - col0 + + - col0 / + col1 FROM tab2 AS cor0
----
-46
-64
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT - - COUNT( * ) * - COUNT( DISTINCT + col2 ) + - 29 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( DISTINCT + col2 ) + - 29 FROM tab2 AS cor0
----
-38

query II rowsort
SELECT DISTINCT - + col2 AS col1, + 74 AS col0 FROM tab2 AS cor0
----
-23
74
-40
74
-58
74

query II rowsort
SELECT DISTINCT + + col1, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * - 4 col1 FROM tab0
----
-364
-364
-364

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( 17 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + MAX( - col0 ) * 36 FROM tab2
----
-1656

skipif mysql # not compatible
query I rowsort label-2760
SELECT + MAX ( - col0 ) * 36 FROM tab2
----
-1656

query I rowsort
SELECT ALL col2 * - ( - 44 ) FROM tab1
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT COUNT( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT - 62 + - 33 <> - - 22
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT COUNT ( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT - 62 + - 33 <> - - 22
----
0

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 57 + + col2 - - 53 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - 78 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 * - 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL 89 + + col2 FROM tab1
----
148
157
185

query I rowsort
SELECT DISTINCT + 92 + - 97 - - col1 * + col1 + - col2 FROM tab1 AS cor0
----
-39
2136
95

query I rowsort
SELECT ALL - col1 * - col1 - - col0 + col1 AS col2 FROM tab2 AS cor0
----
2698
4631
6070

query II rowsort
SELECT ALL col2, 5 AS col0 FROM tab1 cor0
----
59
5
68
5
96
5

query I rowsort
SELECT DISTINCT + + col0 + + 80 FROM tab2 AS cor0
----
126
144
155

onlyif mysql # DIV for integer division: 
query II rowsort label-2772
SELECT + col2 AS col2, - col2 DIV + 91 + - + 43 FROM tab0 AS cor0
----
10
-43
47
-43
99
-44

skipif mysql # not compatible
query II rowsort label-2772
SELECT + col2 AS col2, - col2 / + 91 + - + 43 FROM tab0 AS cor0
----
10
-43
47
-43
99
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61 * col1 - - col0 col1, - col2 col2 FROM tab2 AS cor0
----
-3065
-23
-4012
-58
-4633
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT - col1 DIV + + 65 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT - col1 / + + 65 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT COUNT( + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT COUNT ( + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2776
SELECT * FROM tab1 WHERE ( NOT ( 35 / + col0 * CAST( col2 AS SIGNED ) + + 41 ) <= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2776
SELECT * FROM tab1 WHERE ( NOT ( 35 / + col0 * CAST ( col2 AS INTEGER ) + + 41 ) <= + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2777
SELECT ALL 97, - col1 * - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN 63 AND CAST( col2 AS SIGNED ) + + CAST( - + ( - col1 ) AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL 97, - col1 * - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN 63 AND CAST ( col2 AS INTEGER ) + + CAST ( - + ( - col1 ) AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - 77 + - COUNT( * ) * + - 54 * + COUNT( ALL - col1 ) AS col0 FROM tab0
----
409

skipif mysql # not compatible
query I rowsort label-2778
SELECT - 77 + - COUNT ( * ) * + - 54 * + COUNT ( ALL - col1 ) AS col0 FROM tab0
----
409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + ( + - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 - - + col1 + - + col2 * + 84 + + col0 AS col0 FROM tab2 AS cor0
----
-139
-662
-844

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT - col1 - - - col0 + + ( col1 ) DIV - + col0 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT - col1 - - - col0 + + ( col1 ) / - + col0 FROM tab1 AS cor0
----
-138
-65
-90

query II rowsort
SELECT 69 AS col2, + 23 * - 35 * - - col0 AS col1 FROM tab1
----
69
-41055
69
-68425
69
-73255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT - col0 * + + CAST( + 48 AS SIGNED ) FROM tab2 AS cor0
----
-2208
-3072
-3600

skipif mysql # not compatible
query I rowsort label-2784
SELECT - col0 * + + CAST ( + 48 AS INTEGER ) FROM tab2 AS cor0
----
-2208
-3072
-3600

query I rowsort
SELECT DISTINCT 73 * col1 * - 91 + - col1 FROM tab2 AS cor0
----
-338844
-445148
-511588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2786
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT - 53 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col0 FROM tab0
----
-103

query II rowsort
SELECT + 49 * + col1, + 0 AS col0 FROM tab0
----
1029
0
3969
0
49
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - col0 / 70 col1 FROM tab2 WHERE NOT + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col0 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - - col1 * + col1 * - col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL - SUM( ALL - 18 ) AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - SUM ( ALL - 18 ) AS col0 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL + 86 * MIN( ALL - + col0 ) + - - 8 + + + 43 FROM tab0 AS cor0
----
-8291

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + 86 * MIN ( ALL - + col0 ) + - - 8 + + + 43 FROM tab0 AS cor0
----
-8291

query III rowsort
SELECT ALL * FROM tab0 WHERE + 65 / col0 + - 50 IN ( + - col1, + 84, + col2 - + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2797
SELECT DISTINCT + - COUNT( * ) + - 1 col2, MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-4
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2797
SELECT DISTINCT + - COUNT ( * ) + - 1 col2, MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-4
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT + 75 + + ( COUNT( + + col0 ) ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT + 75 + + ( COUNT ( + + col0 ) ) FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT - col0 + - 40 * + 71 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-247167
-275577
-42615

skipif mysql # not compatible
query I rowsort label-2799
SELECT - col0 + - 40 * + 71 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-247167
-275577
-42615

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT + - col2 DIV col0 + - col0 col0 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT + - col2 / col0 + - col0 col0 FROM tab0 AS cor0
----
-18
-87
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * col0 + + 83 + + col0 * + - 26 * col2 col0 FROM tab2 AS cor0
----
-110017
-25585
-63917

query I rowsort
SELECT DISTINCT - col0 + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2804
SELECT COUNT( * ) / CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2804
SELECT COUNT ( * ) / CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT COUNT( DISTINCT col1 ) + - 54 FROM tab0 WHERE + col1 >= col1 * col0
----
-54

skipif mysql # not compatible
query I rowsort label-2805
SELECT COUNT ( DISTINCT col1 ) + - 54 FROM tab0 WHERE + col1 >= col1 * col0
----
-54

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 * - - col2 AS col2 FROM tab2
----
-23
-1173
-40
-3080
-58
-3886

query I rowsort
SELECT col2 * - + 72 AS col2 FROM tab2
----
-1656
-2880
-4176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2808
SELECT CAST( NULL AS DECIMAL ) * + ( + COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT CAST ( NULL AS REAL ) * + ( + COUNT ( * ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 * + - 58 * ( + 25 ) + + col2 AS col0 FROM tab0
----
117497
1549
30460

query I rowsort
SELECT 82 - col2 AS col0 FROM tab2 AS cor0
----
24
42
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL - 18 * - + 79 + - COUNT( * ) FROM tab0 AS cor0
----
1419

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL - 18 * - + 79 + - COUNT ( * ) FROM tab0 AS cor0
----
1419

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL - - SUM( DISTINCT 30 ) AS col1 FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - - SUM ( DISTINCT 30 ) AS col1 FROM tab2 cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab2 WHERE + + col2 BETWEEN NULL AND + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2813
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab2 WHERE + + col2 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 63 * - 82 FROM tab0 AS cor0
----
5166
5166
5166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2816
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2816
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 = CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col1 + ( + 36 ) col2 FROM tab0
----
10
57
47
117
99
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT - col0 AS col0, - col0 FROM tab0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query II rowsort label-2818
SELECT - col0 AS col0, - col0 FROM tab0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT col0 / 41 * ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT col0 / 41 * ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL COUNT( - 11 ) * + 24 - + COUNT( * ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL COUNT ( - 11 ) * + 24 - + COUNT ( * ) AS col2 FROM tab2
----
69

query I rowsort
SELECT DISTINCT + + 87 AS col0 FROM tab1 cor0
----
87

query I rowsort
SELECT ALL 92 * + col1 AS col0 FROM tab0 AS cor0
----
1932
7452
92

query I rowsort
SELECT 26 + ( col2 ) AS col1 FROM tab1 AS cor0
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + MAX( ALL 33 ) FROM tab1 WHERE + col0 / - + col1 + - 48 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT + MAX ( ALL 33 ) FROM tab1 WHERE + col0 / - + col1 + - 48 <= NULL
----
NULL

query I rowsort
SELECT col2 + - + col0 AS col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2827
SELECT + - 33, - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2827
SELECT + - 33, - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

query I rowsort
SELECT ALL + col0 * - 51 + - + 8 + col0 FROM tab0 cor0
----
-4358
-4858
-758

query I rowsort
SELECT ALL - + col1 + col1 + + col1 * + ( - - 50 ) * + 24 FROM tab1 AS cor0
----
16800
56400
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT SUM( + col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2830
SELECT SUM ( + col0 ) AS col2 FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT + - col1 * col1 + - col0 FROM tab1 cor0
----
-110
-2300
-247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT + - CAST( + + COUNT( - 50 ) AS SIGNED ) - - + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2832
SELECT + - CAST ( + + COUNT ( - 50 ) AS INTEGER ) - - + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT ALL 26 DIV col2 col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT ALL 26 / col2 col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT 91 + COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-2834
SELECT 91 + COUNT ( * ) FROM tab0
----
94

query I rowsort
SELECT DISTINCT - 56 * 96 - - col0 AS col0 FROM tab1
----
-5285
-5291
-5325

query II rowsort
SELECT - col1 AS col2, + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - col1 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - - ( - - col2 ) + + + col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - + 72 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT DISTINCT SUM( + CAST( + ( + 19 ) AS SIGNED ) ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT SUM ( + CAST ( + ( + 19 ) AS INTEGER ) ) FROM tab0 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) BETWEEN + 57 - - col0 - 18 * - col1 AND - col2 )
----

query I rowsort
SELECT ALL + 14 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT 59 * - col0 * - + col0 FROM tab1 AS cor0
----
153459
426275
488579

query I rowsort
SELECT DISTINCT - + 19 * col1 FROM tab0 AS cor0
----
-1539
-19
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT + col1 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + col1 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 26 ) AS col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - 93 * - col1 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IN ( + col1 )
----

query I rowsort
SELECT DISTINCT 76 * ( - col1 ) FROM tab1
----
-1064
-3572
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT ALL - CAST( - + col1 AS SIGNED ) * - + col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - CAST ( - + col1 AS INTEGER ) * - + col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) + - SUM( col1 ) AS col2 FROM tab0 WHERE NOT - - col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) + - SUM ( col1 ) AS col2 FROM tab0 WHERE NOT - - col1 < NULL
----
NULL

query I rowsort
SELECT DISTINCT - 94 * ( + col1 ) FROM tab0
----
-1974
-7614
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + COUNT( * ) - + 36 * - 54 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
1944

skipif mysql # not compatible
query I rowsort label-2854
SELECT + COUNT ( * ) - + 36 * - 54 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
1944

query I rowsort
SELECT ALL col0 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - 63 - + col1 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - 99 FROM tab0
----
-2079
-8019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL - 14 + + - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2858
SELECT ALL - 14 + + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( + 71 ) col1 FROM tab1
----
-3337
-355
-994

query I rowsort
SELECT col2 + - 38 FROM tab1
----
21
30
58

query I rowsort
SELECT - 48 + + - 65 AS col2 FROM tab2
----
-113
-113
-113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2862
SELECT - CAST( NULL AS DECIMAL ) * - + 94 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT - CAST ( NULL AS REAL ) * - + 94 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + 4 AS col2 FROM tab1 AS cor0
----
-1
-10
-43

query I rowsort
SELECT DISTINCT - 82 * - 17 + + + 33 FROM tab1 AS cor0
----
1427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 + + 93 + + + 27 * + 65 col0 FROM tab1 AS cor0
----
1947
1947
1947

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col0 * + col0 > NULL
----

query I rowsort
SELECT - col0 + + - 22 FROM tab0 AS cor0
----
-109
-119
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( ALL + 76 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( ALL + 76 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 38 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT + col0 * + ( - 33 ) FROM tab1 cor0 WHERE col2 * + - col1 + - col1 + CAST( NULL AS SIGNED ) * + 2 NOT IN ( + col1 / col2 )
----

skipif mysql # not compatible
query I rowsort label-2870
SELECT + col0 * + ( - 33 ) FROM tab1 cor0 WHERE col2 * + - col1 + - col1 + CAST ( NULL AS INTEGER ) * + 2 NOT IN ( + col1 / col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL - 68 * - CAST( - + 68 AS SIGNED ) + + COUNT( ALL - col1 ) FROM tab1
----
-4621

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - 68 * - CAST ( - + 68 AS INTEGER ) + + COUNT ( ALL - col1 ) FROM tab1
----
-4621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - - col2 * 95 * + col1, - 21 col1 FROM tab0
----
1735650
-21
5424975
-21
912285
-21

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + + col2 >= 30 + - + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL COUNT( + 72 ) - 96 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL COUNT ( + 72 ) - 96 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT MIN( + ( + col2 ) ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT MIN ( + ( + col2 ) ) AS col2 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT MIN( - col2 ) - 68 FROM tab1
----
-164

skipif mysql # not compatible
query I rowsort label-2877
SELECT MIN ( - col2 ) - 68 FROM tab1
----
-164

query II rowsort
SELECT DISTINCT col0 * 83 AS col2, + 73 FROM tab0
----
1245
73
7221
73
8051
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT COUNT( + 63 ) FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2879
SELECT COUNT ( + 63 ) FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

query II rowsort
SELECT DISTINCT col1 AS col1, 47 AS col1 FROM tab0 cor0
----
1
47
21
47
81
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 = - col1 / ( + col0 ) / - + 71
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 64 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 57 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT MAX( DISTINCT + - col2 ) * + 23 + + + 35 FROM tab2 cor0
----
-494

skipif mysql # not compatible
query I rowsort label-2884
SELECT MAX ( DISTINCT + - col2 ) * + 23 + + + 35 FROM tab2 cor0
----
-494

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT - COUNT( * ), + 25 AS col1 FROM tab0
----
-3
25

skipif mysql # not compatible
query II rowsort label-2885
SELECT - COUNT ( * ), + 25 AS col1 FROM tab0
----
-3
25

query I rowsort
SELECT DISTINCT - col0 * 30 AS col2 FROM tab0
----
-2610
-2910
-450

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col2 * - - 5 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT 92 * - - COUNT( * ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2888
SELECT 92 * - - COUNT ( * ) FROM tab0
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT - col2 DIV 21 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2889
SELECT - col2 / 21 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2890
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2890
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2891
SELECT - 4 AS col1, + col1 DIV + col0 + - 21 AS col1 FROM tab2
----
-4
-20
-4
-20
-4
-21

skipif mysql # not compatible
query II rowsort label-2891
SELECT - 4 AS col1, + col1 / + col0 + - 21 AS col1 FROM tab2
----
-4
-20
-4
-20
-4
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 + col0 - - 89 col1 FROM tab2
----
48
73
89

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN - col2 + + col0 + - col0 * + col2 * col0 - + 84 * + 79 AND + + ( - 66 )
----

query I rowsort
SELECT + 32 AS col2 FROM tab2 AS cor0 WHERE col0 / + 69 + 64 <= + - col2
----

query I rowsort
SELECT ALL 0 * 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col1
----

query I rowsort
SELECT ALL - col2 + + - col1 * - col0 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT - + 90 + - 87 * + col0 FROM tab1 cor0
----
-4527
-7485
-8007

query I rowsort
SELECT - col0 + - col0 * + + col2 AS col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT + 69 * - col0 + + 57 FROM tab0 AS cor0
----
-5946
-6636
-978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL - SUM( ALL col2 ) + + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - SUM ( ALL col2 ) + + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 69 FROM tab2 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + COUNT( * ) + - ( + + 23 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( * ) + - ( + + 23 ) FROM tab1
----
-20

query I rowsort
SELECT - col2 + - col2 + + - col2 + + + 23 FROM tab2
----
-151
-46
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-2906
SELECT ALL 29 - 23 DIV - col0, col2 + - 66 * + col2 col2 FROM tab1
----
29
-3835
29
-4420
29
-6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2906
SELECT ALL 29 - 23 / - col0, col2 + - 66 * + col2 col2 FROM tab1
----
29
-3835
29
-4420
29
-6240

query II rowsort
SELECT ALL + - col2, col1 - - + col0 AS col2 FROM tab2 AS cor0
----
-23
97
-40
141
-58
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 28 col2 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL - - MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - - MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - + 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2912
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT COUNT( * ), 12 AS col2 FROM tab0 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-2913
SELECT COUNT ( * ), 12 AS col2 FROM tab0 AS cor0
----
3
12

query II rowsort
SELECT + 50 AS col0, + 18 AS col1 FROM tab2 AS cor0
----
50
18
50
18
50
18

query I rowsort
SELECT - 75 * 84 + + col1 AS col2 FROM tab2 AS cor0
----
-6223
-6233
-6249

query I rowsort
SELECT ALL + - 75 AS col2 FROM tab1 cor0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT DISTINCT + 38 AS col1, COUNT( * ) FROM tab1 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-2917
SELECT DISTINCT + 38 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
38
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + col1 NOT BETWEEN + 60 * ( - - col1 ) AND - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 61 / - col1 + - - col2 = + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT CAST( - 40 AS SIGNED ) FROM tab0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-2920
SELECT CAST ( - 40 AS INTEGER ) FROM tab0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2921
SELECT ALL - col1 + + col2 * CAST( NULL AS SIGNED ) col2, 24 FROM tab1 AS cor0
----
NULL
24
NULL
24
NULL
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2921
SELECT ALL - col1 + + col2 * CAST ( NULL AS INTEGER ) col2, 24 FROM tab1 AS cor0
----
NULL
24
NULL
24
NULL
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 72 AS col1, col2 col2 FROM tab1
----
72
59
72
68
72
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT COUNT( * ) * + 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
756

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT COUNT ( * ) * + 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT ALL 62, - col0 AS col2 FROM tab1
----
62
-51
62
-85
62
-91

query I rowsort
SELECT - 6 FROM tab0 WHERE col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT + 36 + - col0 + + col1 / col0 * + - CAST( NULL AS SIGNED ) * + 13 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT + 36 + - col0 + + col1 / col0 * + - CAST ( NULL AS INTEGER ) * + 13 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT - ( + 67 ) * + col2 * - col1 - col1 AS col0 FROM tab0 cor0 WHERE ( NOT col1 * + 5 * - + 84 / - - 79 * + col1 >= - col0 * - col1 * - 81 + 19 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2928
SELECT - ( + 67 ) * + col2 * - col1 - col1 AS col0 FROM tab0 cor0 WHERE ( NOT col1 * + 5 * - + 84 / - - 79 * + col1 >= - col0 * - col1 * - 81 + 19 * - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + + 52 AS col0 FROM tab1 AS cor0
----
103
137
143

query I rowsort
SELECT + col1 * - 48 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2256
-240
-672

query I rowsort
SELECT DISTINCT col1 + + - 58 FROM tab0
----
-37
-57
23

query II rowsort
SELECT ALL - col2 * + 20 AS col0, + ( - 0 ) * + - col2 AS col2 FROM tab0
----
-1980
0
-200
0
-940
0

query I rowsort
SELECT DISTINCT col1 * ( + - col2 ) AS col0 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT + col2 * + col0, - 9 AS col0 FROM tab2
----
1058
-9
2560
-9
4350
-9

query I rowsort
SELECT + 36 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL 95 + - + COUNT( * ) * - 91 * - 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77710

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL 95 + - + COUNT ( * ) * - 91 * - 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77710

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT + 41 DIV - - col2 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 41 / - - col2 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col2 FROM tab1
----
425
4277
714

query II rowsort
SELECT ALL - 74 * col1 + 65 AS col1, + col2 + - col2 + - 1 AS col0 FROM tab0 AS cor0
----
-1489
-1
-5929
-1
-9
-1

query I rowsort
SELECT DISTINCT - 68 + - + col1 AS col2 FROM tab2 cor0
----
-119
-135
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT 42 * + ( + COUNT( DISTINCT + col0 ) ) FROM tab1 cor0
----
126

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT 42 * + ( + COUNT ( DISTINCT + col0 ) ) FROM tab1 cor0
----
126

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL + COUNT( - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + COUNT ( - col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL 5 * col0 + col1 + - col2 + col0 AS col2, - col0 FROM tab0 AS cor0
----
124
-15
484
-97
533
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL - col2 FROM tab1 WHERE NOT ( NULL ) = CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - col2 FROM tab1 WHERE NOT ( NULL ) = CAST ( col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + - col2 col0 FROM tab2
----
-26
-8
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT CAST( - 80 AS SIGNED ) + col2 + - col1 * 47 * - col1 AS col0 FROM tab0
----
20657
308334
66

skipif mysql # not compatible
query I rowsort label-2947
SELECT CAST ( - 80 AS INTEGER ) + col2 + - col1 * 47 * - col1 AS col0 FROM tab0
----
20657
308334
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 51 col0 FROM tab2 cor0
----
-13
-24
5

query I rowsort
SELECT ALL + + col0 + 66 FROM tab1 AS cor0
----
117
151
157

query II rowsort
SELECT DISTINCT - ( - 78 ), 88 AS col1 FROM tab0 AS cor0
----
78
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 81
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT + CAST( - 69 AS SIGNED ) - - col2 - col2 * - col1 FROM tab0 AS cor0
----
129
151
3785

skipif mysql # not compatible
query I rowsort label-2953
SELECT + CAST ( - 69 AS INTEGER ) - - col2 - col2 * - col1 FROM tab0 AS cor0
----
129
151
3785

query I rowsort
SELECT - ( - col2 ) - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * + col1 - - col2 AS col2 FROM tab1 AS cor0
----
-100
-2141
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT - COUNT( ALL - + col2 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2956
SELECT DISTINCT - COUNT ( ALL - + col2 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL + CAST( - - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2957
SELECT ALL + CAST ( - - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT ( - col1 ) ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT ( - col1 ) ) FROM tab0
----
-309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT ALL + 23 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + 23 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT 57 * - - COUNT( * ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2961
SELECT 57 * - - COUNT ( * ) FROM tab2 AS cor0
----
171

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT COUNT( 10 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT COUNT ( 10 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT + 23 DIV 43 + 79 * - COUNT( * ) AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-2964
SELECT + 23 / 43 + 79 * - COUNT ( * ) AS col1 FROM tab0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + 90 DIV 23 + + 12 FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 90 / 23 + + 12 FROM tab0
----
15
15
15

query I rowsort
SELECT - 53 + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) = ( 99 * - 43 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT SUM( + 41 ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2968
SELECT SUM ( + 41 ) AS col0 FROM tab2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT - col1 + - 92 DIV - col1 AS col0 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2969
SELECT - col1 + - 92 / - col1 AS col0 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT - col2 + + ( + col0 ) AS col1 FROM tab1
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 >= ( 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + 55 * - col0 FROM tab0
----
-4775
-5236
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT MIN( ALL - 22 ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-2973
SELECT MIN ( ALL - 22 ) AS col2 FROM tab2
----
-22

query I rowsort
SELECT ALL 74 * col0 AS col2 FROM tab1
----
3774
6290
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT 45 + COUNT( * ) FROM tab1 WHERE ( 23 ) IN ( col1 / + col2 )
----
45

skipif mysql # not compatible
query I rowsort label-2975
SELECT 45 + COUNT ( * ) FROM tab1 WHERE ( 23 ) IN ( col1 / + col2 )
----
45

query I rowsort
SELECT DISTINCT 80 * + ( 78 ) AS col2 FROM tab1
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT MAX( + 14 ) FROM tab2 WHERE 32 IS NOT NULL
----
14

skipif mysql # not compatible
query I rowsort label-2977
SELECT MAX ( + 14 ) FROM tab2 WHERE 32 IS NOT NULL
----
14

query I rowsort
SELECT DISTINCT col0 + ( col2 ) AS col1 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - 14 IN ( - col0 )
----

query I rowsort
SELECT ALL 70 - - col1 FROM tab0
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL + COUNT( * ) col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2981
SELECT ALL + COUNT ( * ) col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + col1 * 86 FROM tab0
----
1806
6966
86

query I rowsort
SELECT ( - ( col2 ) ) + + 65 FROM tab1
----
-3
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT ALL CAST( + 84 AS SIGNED ) col1 FROM tab2 WHERE ( + col2 ) = 88 + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT ALL CAST ( + 84 AS INTEGER ) col1 FROM tab2 WHERE ( + col2 ) = 88 + col0
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2986
SELECT * FROM tab0 WHERE NOT - CAST( + 59 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2986
SELECT * FROM tab0 WHERE NOT - CAST ( + 59 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT - 99 * + COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT - 99 * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
-294

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) NOT IN ( 67 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2989
SELECT col2 * CAST( NULL AS DECIMAL ) + col0 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT col2 * CAST ( NULL AS REAL ) + col0 * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2990
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT col1 + + CAST( ( col1 ) AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT col1 + + CAST ( ( col1 ) AS INTEGER ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + 21 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2992
SELECT + 21 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0 WHERE 22 + - col0 < ( col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0 WHERE 22 + - col0 < ( col0 )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 - 36 col1 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT + 96 + col2 FROM tab2 AS cor0
----
119
136
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + 22 col2 FROM ( tab1 cor0 CROSS JOIN tab0 )
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT col0 + ( + 85 ) AS col2 FROM tab2
----
131
149
160

query I rowsort
SELECT + 48 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + 25 * MAX( DISTINCT - col1 - + 46 ) AS col1 FROM tab1 AS cor0
----
-1275

skipif mysql # not compatible
query I rowsort label-2999
SELECT + 25 * MAX ( DISTINCT - col1 - + 46 ) AS col1 FROM tab1 AS cor0
----
-1275

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 93 IS NOT NULL
----

query I rowsort
SELECT ALL - 4 AS col2 FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT - 66 AS col0 FROM tab2 cor0 WHERE NOT ( 30 ) BETWEEN NULL AND - col2
----
-66
-66
-66

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 WHERE + col1 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3004
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= ( 19 )
----

skipif mysql # not compatible
query III rowsort label-3004
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= ( 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL + MIN( - col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT ALL + MIN ( - col1 ) col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 71 / col0 ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT 34 FROM tab0 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col2 FROM tab0 AS cor0 WHERE NOT 46 * - col2 IN ( col2 )
----
196
62
97

query I rowsort
SELECT 2 FROM tab0 AS cor0 WHERE NOT - col2 * col0 + - ( col2 ) NOT IN ( - 49 * ( - col1 ) + - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - ( - MIN( + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - ( - MIN ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT col1 DIV - - 55 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT col1 / - - 55 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT 66 * - col1 FROM tab1
----
-3102
-330
-924

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT SUM( - - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT SUM ( - - col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) NOT BETWEEN + col1 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - SUM( - - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3017
SELECT - SUM ( - - col1 ) FROM tab2
----
-195

query I rowsort
SELECT DISTINCT 1 - + 17 AS col0 FROM tab0 WHERE ( col2 + col2 * + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col0 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT DISTINCT ( + + 98 ) FROM tab2
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE - 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * + col2 ) >= ( + col1 - - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3023
SELECT + MAX( ALL + 15 ) DIV 40 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT + MAX ( ALL + 15 ) / 40 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + 30 ) <= 73 + col2
----

query I rowsort
SELECT ALL - col1 + + 50 * 99 FROM tab2 AS cor0
----
4873
4883
4899

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 > + col2 + col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 84 BETWEEN ( + + 46 ) AND + 6 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 78 + + + ( + + col2 ) AS col2 FROM tab0 AS cor0
----
125
177
88

query I rowsort
SELECT DISTINCT - + col1 + col0 + 40 + - 32 * 59 FROM tab0 AS cor0
----
-1752
-1782
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT MIN( col1 ) * + 44 AS col1 FROM tab2 AS cor0
----
2244

skipif mysql # not compatible
query I rowsort label-3032
SELECT MIN ( col1 ) * + 44 AS col1 FROM tab2 AS cor0
----
2244

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 62 * + col1 BETWEEN - col1 * + col1 AND col2
----

query I rowsort
SELECT ( - col0 ) * - col1 * + 27 + + col0 FROM tab2 AS cor0
----
133120
135750
63388

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * col1 + - col1 AS col2 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT col2 * + col2 + - 78 * + + ( + 55 ) AS col0 FROM tab1
----
-809
334
4926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - col1 ) + + col1 col2 FROM tab0 WHERE NOT - col1 + + - col2 NOT BETWEEN col0 - col2 AND - col0 AND NULL > - 27
----

query I rowsort
SELECT DISTINCT 88 FROM tab1 WHERE NOT NULL <> ( - + col0 + - + col2 + - 36 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col0 * + col0 + 79 * + 53 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3041
SELECT + ( - - col2 ), ( + - 60 ) DIV + 30 col1 FROM tab2 AS cor0
----
23
-2
40
-2
58
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3041
SELECT + ( - - col2 ), ( + - 60 ) / + 30 col1 FROM tab2 AS cor0
----
23
-2
40
-2
58
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - + COUNT( * ) + - COUNT( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3042
SELECT - + COUNT ( * ) + - COUNT ( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-6

query I rowsort
SELECT + - 56 * + ( - col1 ) FROM tab1 cor0
----
2632
280
784

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + + ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3044
SELECT + + ( + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT DISTINCT - 39 DIV + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - 39 / + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT + SUM( + + 62 ) * - - COUNT( * ) FROM tab0
----
558

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT + SUM ( + + 62 ) * - - COUNT ( * ) FROM tab0
----
558

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3047
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + col0 col0 FROM tab2 WHERE 19 + + col2 NOT BETWEEN + col0 / CAST( NULL AS SIGNED ) AND ( NULL ) OR NOT 28 / + col1 <= ( + col1 / + 80 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3047
SELECT DISTINCT CAST ( NULL AS REAL ) - + col0 col0 FROM tab2 WHERE 19 + + col2 NOT BETWEEN + col0 / CAST ( NULL AS INTEGER ) AND ( NULL ) OR NOT 28 / + col1 <= ( + col1 / + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL ( - MAX( + + 49 ) ) col2 FROM tab1
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3048
SELECT ALL ( - MAX ( + + 49 ) ) col2 FROM tab1
----
-49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 76
----

query I rowsort
SELECT DISTINCT col1 - + ( col2 ) FROM tab1 AS cor0 WHERE NOT + col2 / - col2 = ( + col0 * + + 12 )
----
-21
-54
-82

query II rowsort
SELECT - col1 AS col1, col1 + - - col2 * - 14 FROM tab0 AS cor0
----
-1
-1385
-21
-119
-81
-577

query I rowsort
SELECT col2 - col1 + - 56 FROM tab0 AS cor0 WHERE NOT ( + 2 ) <= col2
----

query II rowsort
SELECT DISTINCT + 65 * - col0 * + + col2, 97 AS col1 FROM tab1 AS cor0
----
-318240
97
-325975
97
-402220
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3054
SELECT + col0 DIV col0 DIV - 64, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-3054
SELECT + col0 / col0 / - 64, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL + COUNT( * ) * + 18 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + COUNT ( * ) * + 18 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75 AS col0, 65 col2 FROM tab0 AS cor0
----
75
65
75
65
75
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT - + CAST( - 50 AS SIGNED ) FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3058
SELECT - + CAST ( - 50 AS INTEGER ) FROM tab1 AS cor0
----
50
50
50

query II rowsort
SELECT ALL + + col2 AS col0, col0 * + - col0 FROM tab1 AS cor0
----
59
-7225
68
-8281
96
-2601

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - col2 * 45 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - - col2
----

query I rowsort
SELECT DISTINCT 98 FROM tab0 WHERE - col0 * - 46 IS NOT NULL
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT ALL + 80, + CAST( - - ( col0 ) AS SIGNED ) * col2 * + - col2 + + col2 AS col1 FROM tab2
----
80
-102360
80
-24311
80
-252242

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL + 80, + CAST ( - - ( col0 ) AS INTEGER ) * col2 * + - col2 + + col2 AS col1 FROM tab2
----
80
-102360
80
-24311
80
-252242

query II rowsort
SELECT ALL col1, - ( - col1 ) * col0 AS col2 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT - - 60 + - 81 AS col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col1 ) AND 12
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3066
SELECT + COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT - + CAST( NULL AS SIGNED ) * - - 17 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT - + CAST ( NULL AS INTEGER ) * - - 17 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + col2 + + col0 FROM tab2
----
1104
2624
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT 76 + - ( + + col0 ) - col1 DIV + - col1 AS col2 FROM tab1
----
-14
-8
26

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 76 + - ( + + col0 ) - col1 / + - col1 AS col2 FROM tab1
----
-14
-8
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE + col0 NOT IN ( + - 12 )
----
3

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE + col0 NOT IN ( + - 12 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - - col0 + col0 + + - col2 + - 89 * + col1 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-108152
-162439
-8538

skipif mysql # not compatible
query I rowsort label-3071
SELECT - - col0 + col0 + + - col2 + - 89 * + col1 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-108152
-162439
-8538

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 55 / - 33 + - + 32 + + col0 - 25 AND 35
----
51
14
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 21 * - 67 ) > ( - col0 * + 18 )
----

query I rowsort
SELECT - + col2 + + + 39 AS col1 FROM tab1 AS cor0
----
-20
-29
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 75 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE 71 * 5 * + col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col0 - - col1 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT col1 * 59 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT + 48 - - col0 AS col1 FROM tab0
----
135
145
63

query I rowsort
SELECT DISTINCT + 45 * - col1 AS col1 FROM tab2
----
-2295
-3015
-3465

query I rowsort
SELECT - 68 * col0 - - col0 AS col2 FROM tab0 AS cor0
----
-1005
-5829
-6499

query I rowsort
SELECT ALL - col2 + - - col0 AS col1 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT + + MAX( CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT - MAX( - 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3085
SELECT - MAX ( - 30 ) FROM tab2
----
30

query I rowsort
SELECT DISTINCT + - 17 FROM tab2 WHERE + ( col2 ) * 19 + + col0 + col2 * - 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 >= ( col1 )
----
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col2 NOT BETWEEN NULL AND - - col2
----

query I rowsort
SELECT ALL - - col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT COUNT( * ) * + + MIN( DISTINCT + col2 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT COUNT ( * ) * + + MIN ( DISTINCT + col2 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - + col1 * - col0 - + col1 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT ALL - 32 * 95 * 95 * - col0 FROM tab1
----
14728800
24548000
26280800

query I rowsort
SELECT - 53 * + col0 * - col1 AS col2 FROM tab2
----
124338
261184
266325

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col1 + - - ( - col1 ) / - col1
----

query I rowsort
SELECT ALL 1 * + col2 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT SUM( + - col0 ) * + + SUM( ALL + 37 ) FROM tab2
----
-20535

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT SUM ( + - col0 ) * + + SUM ( ALL + 37 ) FROM tab2
----
-20535

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * 51 + col2 * - col2 / + col0 * - - col1 NOT BETWEEN 92 * - col2 AND NULL
----

query I rowsort
SELECT - 72 + + col0 AS col0 FROM tab0 WHERE NOT ( 22 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + 5 AS col0 FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE - col0 > - col2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col0 AS col2, - 86 col1 FROM tab1
----
4896
-86
5015
-86
6188
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3103
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3103
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col1 col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT ALL + 76 AS col0, + col1 FROM tab2 cor0
----
76
51
76
67
76
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT DISTINCT + COUNT( * ) col2, - 65 FROM tab2 AS cor0
----
3
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3105
SELECT DISTINCT + COUNT ( * ) col2, - 65 FROM tab2 AS cor0
----
3
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT - 56 AS col2, - 18 * - + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-56
-180

skipif mysql # not compatible
query II rowsort label-3106
SELECT - 56 AS col2, - 18 * - + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-56
-180

query II rowsort
SELECT DISTINCT - col1 + + - col1, col2 FROM tab1 AS cor0
----
-10
59
-28
96
-94
68

query I rowsort
SELECT + ( - + 46 ) - + + ( + + col1 ) - - col2 + - col2 FROM tab0 AS cor0
----
-127
-47
-67

query I rowsort
SELECT ALL - + ( - col2 ) * ( + col2 ) * 6 + col0 + - - 57 FROM tab0 AS cor0
----
13326
58960
744

query I rowsort
SELECT DISTINCT - + 0 - 91 * - col1 AS col2 FROM tab1 AS cor0
----
1274
4277
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 44 col2 FROM tab0 cor0
----
-34
3
55

query I rowsort
SELECT - col0 FROM tab0 WHERE - col2 > NULL
----

query I rowsort
SELECT ALL 59 - - 97 * 95 AS col2 FROM tab2
----
9274
9274
9274

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3114
SELECT DISTINCT + col0 * - CAST( + + col0 AS SIGNED ) - + 52 + + CAST( - - col0 AS SIGNED ) * - col0 / - - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + col0 * - CAST ( + + col0 AS INTEGER ) - + 52 + + CAST ( - - col0 AS INTEGER ) * - col0 / - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT ALL - MAX( DISTINCT - - 87 ) AS col0, + 98 col1 FROM tab1 AS cor0
----
-87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3116
SELECT ALL - MAX ( DISTINCT - - 87 ) AS col0, + 98 col1 FROM tab1 AS cor0
----
-87
98

query II rowsort
SELECT ALL - col2 AS col2, - 92 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + + ( COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + + ( COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 71 * + - col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT + + ( + - MAX( 15 ) ) col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3120
SELECT DISTINCT + + ( + - MAX ( 15 ) ) col1 FROM tab2 AS cor0
----
-15

query II rowsort
SELECT - 40 * col2 * + + col2 AS col0, 75 * - + ( - - col0 ) - - - ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-134560
-5692
-21160
-3501
-64000
-4877

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + - 92 * + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-3122
SELECT + - 92 * + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-279

query II rowsort
SELECT - col2 AS col0, - col1 + + - 52 * + - col2 AS col1 FROM tab1 AS cor0
----
-59
3063
-68
3489
-96
4978

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( - ( + - 86 ) - + + col0, col1 - + - col1 + - - col2 + + 86 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3125
SELECT - + CAST( NULL AS SIGNED ) AS col1, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3125
SELECT - + CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT + col1 * - col2 + - col1 DIV - col2 FROM tab0 AS cor0
----
-208
-3806
-99

skipif mysql # not compatible
query I rowsort label-3126
SELECT + col1 * - col2 + - col1 / - col2 FROM tab0 AS cor0
----
-208
-3806
-99

query I rowsort
SELECT ALL + ( - col1 ) FROM tab2 WHERE NOT ( - - col0 ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL + 78 * + ( - - COUNT( * ) ) * + 40 AS col0 FROM tab2
----
9360

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL + 78 * + ( - - COUNT ( * ) ) * + 40 AS col0 FROM tab2
----
9360

query I rowsort
SELECT DISTINCT + - col0 * - ( + col1 ) + + - col2 FROM tab1 WHERE 23 IS NOT NULL
----
366
4209
618

query I rowsort
SELECT + ( ( - + col0 ) ) * + col1 - ( + 1 ) FROM tab0
----
-1216
-1828
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT ALL col2 DIV col1 DIV - col1 AS col2 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL col2 / col1 / - col1 AS col2 FROM tab1
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT ALL + MAX( DISTINCT - col0 ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL + MAX ( DISTINCT - col0 ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT - col1 col1 FROM tab2 WHERE NOT - col2 BETWEEN ( + col1 + + + ( - 48 ) ) AND 8 + - CAST( + col2 AS SIGNED )
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3133
SELECT - col1 col1 FROM tab2 WHERE NOT - col2 BETWEEN ( + col1 + + + ( - 48 ) ) AND 8 + - CAST ( + col2 AS INTEGER )
----
-51
-67
-77

query I rowsort
SELECT ALL - + col2 * + col2 + col1 FROM tab0 AS cor0
----
-2128
-79
-9800

query I rowsort
SELECT + col0 * - ( + + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col0 AND - col2 / - + col1 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col0 AND - col2 / - + col1 * - col1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL + - COUNT( * ) + + MAX( DISTINCT 55 ) FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + - COUNT ( * ) + + MAX ( DISTINCT 55 ) FROM tab1 cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT col2 + - + 31 DIV + - col1 + - col1 AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3139
SELECT col2 + - + 31 / + - col1 + - col1 AS col1 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + MAX( ALL 6 ) + + + COUNT( * ) col0 FROM tab2 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3140
SELECT + MAX ( ALL 6 ) + + + COUNT ( * ) col0 FROM tab2 cor0
----
9

query I rowsort
SELECT ALL - - 7 + - + col0 * + + 62 + + 99 FROM tab2 AS cor0
----
-2746
-3862
-4544

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + SUM( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + SUM ( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + 48 + - col0 FROM tab1 AS cor0
----
-3
-37
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3144
SELECT ALL col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 59 ) FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT DISTINCT 75 * + col1 + + 46 * + col0 FROM tab0 AS cor0
----
4537
5577
6765

query II rowsort
SELECT ALL 96 - - col1 + + 71 AS col1, + col2 FROM tab1 cor0
----
172
59
181
96
214
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL + 45 - SUM( DISTINCT + col0 ) AS col1 FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + 45 - SUM ( DISTINCT + col0 ) AS col1 FROM tab1
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT COUNT( * ) - + + 19 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT COUNT ( * ) - + + 19 FROM tab0
----
-16

query I rowsort
SELECT + 6 * - col1 - + + col2 AS col0 FROM tab2
----
-329
-460
-502

query I rowsort
SELECT 58 - + ( + col0 ) AS col1 FROM tab2
----
-17
-6
12

query I rowsort
SELECT ALL col0 - col2 - col0 * 5 FROM tab0
----
-107
-358
-487

query I rowsort
SELECT + 65 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 12 AS col0 FROM tab2
----
612
804
924

query I rowsort
SELECT + ( 14 ) * - - 89 FROM tab1
----
1246
1246
1246

query II rowsort
SELECT - - 54 AS col2, + 46 FROM tab0 AS cor0
----
54
46
54
46
54
46

query I rowsort
SELECT 52 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + 52
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL - + CAST( - - COUNT( * ) AS SIGNED ) * + 52 AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - + CAST ( - - COUNT ( * ) AS INTEGER ) * + 52 AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT - CAST( - MIN( ALL - - 44 ) AS SIGNED ) - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-3162
SELECT - CAST ( - MIN ( ALL - - 44 ) AS INTEGER ) - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3163
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( col0 AS SIGNED ) + + col1 * + - col2 AND 39
----

skipif mysql # not compatible
query III rowsort label-3163
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( col0 AS INTEGER ) + + col1 * + - col2 AND 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT + CAST( 48 AS SIGNED ) FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + CAST ( 48 AS INTEGER ) FROM tab2 cor0
----
48

query I rowsort
SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - SUM( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3166
SELECT - SUM ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - - col1 * - - ( - 85 ) * col1 * + col2 * + + 52 AS col0 FROM tab1 AS cor0
----
-6519500
-663937040
-83166720

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT MIN( 0 ) * MIN( DISTINCT col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT MIN ( 0 ) * MIN ( DISTINCT col1 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT col0 * + 98 AS col0 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT ALL - 36 AS col2 FROM tab2 WHERE NULL >= col0
----

query I rowsort
SELECT DISTINCT - ( - - 51 ) + - col1 FROM tab2 AS cor0
----
-102
-118
-128

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> + 53
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN + + col0 * - col2 / col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( - col2 * - 58 * - col2 ) IN ( col1, col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( - col2 * - 58 * - col2 ) IN ( col1, col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT ALL + MAX( col1 ) AS col2, - COUNT( * ) * + - 52 FROM tab1
----
47
156

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL + MAX ( col1 ) AS col2, - COUNT ( * ) * + - 52 FROM tab1
----
47
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3176
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 99 NOT IN ( col2, CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 99 NOT IN ( col2, CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + 15 + - col2 * - col0 AS col2 FROM tab0 cor0
----
720
885
9618

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT - 86 DIV - - col1 + + + 43 - 63 + + + col0 FROM tab2 AS cor0
----
25
43
54

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 86 / - - col1 + + + 43 - 63 + + + col0 FROM tab2 AS cor0
----
25
43
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 85 + - col0 * + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT + col0 FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) * - col0 <> + + col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3180
SELECT + col0 FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) * - col0 <> + + col1
----
51
85
91

query I rowsort
SELECT + 93 + - 72 AS col0 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT DISTINCT - - 66 AS col0 FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
66

query I rowsort
SELECT ALL 54 + - + 54 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3185
SELECT ALL + 47 + - col1 AS col0 FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + 47 + - col1 AS col0 FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT - + ( COUNT( * ) ) * COUNT( - - 35 ) * + COUNT( * ) + COUNT( * ) * + 98 * + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT - + ( COUNT ( * ) ) * COUNT ( - - 35 ) * + COUNT ( * ) + COUNT ( * ) * + 98 * + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT 38 DIV + col0 * - - col0 * + 38 * + - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT 38 / + col0 * - - col0 * + 38 * + - col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, - 9 - col1 AS col0 FROM tab0
----
15
-90
87
-30
97
-10

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL, tab2 AS cor2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT + SUM( ALL - 76 ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT + SUM ( ALL - 76 ) FROM tab1 AS cor0
----
-228

query I rowsort
SELECT DISTINCT - col2 + + 5 * + col2 AS col0 FROM tab1 AS cor0
----
236
272
384

query I rowsort
SELECT - col2 + - 95 AS col2 FROM tab2 AS cor0
----
-118
-135
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT - COUNT( * ) + - 78 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3193
SELECT - COUNT ( * ) + - 78 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 64 * col1 / + col0 - + + ( - - col2 ) + col0 - - + col1 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL - ( - - CAST( - col1 AS SIGNED ) ) * - - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - ( - - CAST ( - col1 AS INTEGER ) ) * - - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * - 96 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 2 * + col1 >= - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3198
SELECT CAST( NULL AS DECIMAL ) / + AVG ( DISTINCT col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT CAST ( NULL AS REAL ) / + AVG ( DISTINCT col0 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 + - + col2 - - 29 * + - col2 AS col1 FROM tab2
----
-1264
-1815
-736

query I rowsort
SELECT col1 + 34 + - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - + col1 AS col1 FROM tab1
----
37
44
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 4 + col1 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT DISTINCT + - ( - COUNT( - col1 ) ) AS col2, + COUNT( * ) + - - COUNT( * ) col1 FROM tab1 AS cor0
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3203
SELECT DISTINCT + - ( - COUNT ( - col1 ) ) AS col2, + COUNT ( * ) + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
3
6

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT col0 * + col0 - - col2 + - + 35 FROM tab1 AS cor0
----
2662
7249
8314

query II rowsort
SELECT ALL - 90, col0 * + - col0 FROM tab0 AS cor0 WHERE NULL <= col1
----

query I rowsort
SELECT - 30 + col0 FROM tab0
----
-15
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + 60 * - 28 + COUNT( * ) AS col1 FROM tab0
----
-1677

skipif mysql # not compatible
query I rowsort label-3208
SELECT + 60 * - 28 + COUNT ( * ) AS col1 FROM tab0
----
-1677

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT - 28 + + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - 28 + + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-19

query I rowsort
SELECT ALL - 73 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ( + + 83 ) FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3212
SELECT ALL + COUNT( + 68 ) DIV 13 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + COUNT ( + 68 ) / 13 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + COUNT( * ) * - 37 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3213
SELECT + COUNT ( * ) * - 37 FROM tab1 AS cor0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT ALL COUNT( * ) DIV 2 AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL COUNT ( * ) / 2 AS col0 FROM tab2 cor0
----
1

query I rowsort
SELECT + + 55 AS col1 FROM tab2 cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT ALL - CAST( NULL AS SIGNED ) / AVG ( ALL + - 99 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - CAST ( NULL AS INTEGER ) / AVG ( ALL + - 99 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 82 AS col0 FROM tab2 cor0
----
82
82
82

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - - col2 + + - col2 + - + col0 BETWEEN 37 AND + - 66 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * col2 + col0 - - - col0 AS col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT + 1 * + 94 AS col0 FROM tab1
----
94
94
94

query I rowsort
SELECT DISTINCT 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
70

query I rowsort
SELECT ALL col0 + - + 71 FROM tab0 AS cor0
----
-56
16
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3223
SELECT ALL 10 AS col2, col1 DIV 76 - - col2 FROM tab1 cor0
----
10
59
10
68
10
96

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL 10 AS col2, col1 / 76 - - col2 FROM tab1 cor0
----
10
59
10
68
10
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3224
SELECT - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + + ( 81 ) FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL COUNT( * ) + SUM( + col0 ) AS col1 FROM tab1 cor0
----
230

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL COUNT ( * ) + SUM ( + col0 ) AS col1 FROM tab1 cor0
----
230

query II rowsort
SELECT ALL col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - COUNT( + 90 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - COUNT ( + 90 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT - 67 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT - 67 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - + col2 - + - 99 * - col1 AS col0 FROM tab2
----
-5021
-6624
-7586

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <= 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 86 * - col2 + - - col2 AS col2 FROM tab2
----
-1955
-3400
-4930

query I rowsort
SELECT DISTINCT col2 + - 49 FROM tab0
----
-2
-39
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3234
SELECT DISTINCT - col1 DIV - col0 + - col0 * - col0 + + col1 col0 FROM tab2 AS cor0
----
2168
4174
5692

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3234
SELECT DISTINCT - col1 / - col0 + - col0 * - col0 + + col1 col0 FROM tab2 AS cor0
----
2168
4174
5692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT + AVG ( col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT + AVG ( col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3236
SELECT * FROM tab1 AS cor0 WHERE 24 + + CAST( NULL AS SIGNED ) + + - 29 * + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3236
SELECT * FROM tab1 AS cor0 WHERE 24 + + CAST ( NULL AS INTEGER ) + + - 29 * + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 52 - + 71 + + col0 AS col2 FROM tab0
----
-108
-26
-36

query III rowsort
SELECT * FROM tab1 WHERE ( ( - 13 ) ) <> + 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( + + 40 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT DISTINCT - COUNT( * ) * 52 AS col1, + 22 col0 FROM tab0 AS cor0
----
-156
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3242
SELECT DISTINCT - COUNT ( * ) * 52 AS col1, + 22 col0 FROM tab0 AS cor0
----
-156
22

query I rowsort
SELECT + 69 * - col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

query I rowsort
SELECT - + 45 AS col1 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT - COUNT( * ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3245
SELECT - COUNT ( * ) / - + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL + - 46 * + SUM( - + 57 ) FROM tab0 AS cor0
----
7866

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + - 46 * + SUM ( - + 57 ) FROM tab0 AS cor0
----
7866

query I rowsort
SELECT col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT ALL + col0 DIV - + col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL + col0 / - + col2 AS col0 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT ALL + col1 AS col1, 76 * - col0 FROM tab1
----
14
-3876
47
-6916
5
-6460

query I rowsort
SELECT 67 * - 12 FROM tab0 AS cor0
----
-804
-804
-804

query I rowsort
SELECT DISTINCT + + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - 93 * + + col0 FROM tab0 AS cor0
----
-1395
-8091
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - 91 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3255
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - 91 ) IS NOT NULL
----
0

query II rowsort
SELECT - col0 AS col0, + 29 + + - ( - + col0 ) * + - col2 AS col2 FROM tab0 AS cor0
----
-15
-676
-87
-841
-97
-9574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3257
SELECT col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-45
23
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3258
SELECT - 59 + - col1 AS col2, col2 DIV 9 FROM tab2 AS cor0
----
-110
2
-126
6
-136
4

skipif mysql # not compatible
query II rowsort label-3258
SELECT - 59 + - col1 AS col2, col2 / 9 FROM tab2 AS cor0
----
-110
2
-126
6
-136
4

query I rowsort
SELECT - 27 + - 22 * 24 FROM tab1 AS cor0
----
-555
-555
-555

query I rowsort
SELECT col2 + + 11 + + col2 * + col1 FROM tab2 AS cor0
----
1207
3131
3955

query I rowsort
SELECT ALL + 59 + 82 FROM tab0 AS cor0
----
141
141
141

query I rowsort
SELECT ALL - 44 + + col1 AS col0 FROM tab2 AS cor0
----
23
33
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 / - 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + + 46 ) + - - col2 - - + col1 * ( + + col0 ) AS col0 FROM tab2 AS cor0
----
2415
5014
5129

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ( - COUNT( * ) ) FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3266
SELECT ( - COUNT ( * ) ) FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT + 17 * + ( - col2 ) FROM tab2
----
-391
-680
-986

query I rowsort
SELECT col2 - - col2 * + col0 * - - 59 FROM tab2
----
151080
256708
62445

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( * ) - COUNT( * ) + - COUNT( * ) * - COUNT( * ) * + 77 + 32 FROM tab0 AS cor0
----
719

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( * ) - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) * + 77 + 32 FROM tab0 AS cor0
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL 81 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL 81 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL - COUNT( * ) * - + MAX( + col0 ) * MAX( ALL + col2 ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
13053

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - COUNT ( * ) * - + MAX ( + col0 ) * MAX ( ALL + col2 ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
13053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT + ( - 58 ) - - CAST( NULL AS SIGNED ) - 90 * - ( - + col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + ( - 58 ) - - CAST ( NULL AS INTEGER ) - 90 * - ( - + col2 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query II rowsort
SELECT + + ( + + 27 ) + + col1 AS col2, + col2 + + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 - col0 IS NULL
----
32
144
41
147
74
159

query I rowsort
SELECT + col1 * - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT ALL + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + - col2 * - + col1 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

query II rowsort
SELECT ALL - col0 AS col1, + 1 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT + + 46 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 31 * - 11 = + 95 + col1 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT + + 46 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 31 * - 11 = + 95 + col1 + + col2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 = - col2 - 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT + - 41 * CAST( - col1 AS SIGNED ) + + col0 AS col0 FROM tab2 cor0
----
2137
2822
3221

skipif mysql # not compatible
query I rowsort label-3281
SELECT + - 41 * CAST ( - col1 AS INTEGER ) + + col0 AS col0 FROM tab2 cor0
----
2137
2822
3221

query I rowsort
SELECT ALL - col0 * 97 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT DISTINCT col2 * col2 * - col2 AS col1 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3284
SELECT ALL + CAST( - 88 AS SIGNED ) DIV 41 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + CAST ( - 88 AS INTEGER ) / 41 AS col2 FROM tab1
----
-2
-2
-2

query II rowsort
SELECT DISTINCT col1 * - col0 AS col1, col0 FROM tab1
----
-425
85
-4277
91
-714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT COUNT( ALL + + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( ALL + + col0 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col2 * - - col0 * - 81 * - 18 + col2, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1027843
15
-1268450
87
-14001075
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col2 FROM tab0 WHERE + + 7 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col2 FROM tab0 WHERE + + 7 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3290
SELECT DISTINCT * FROM tab2 WHERE + CAST( - - col1 AS SIGNED ) * + col2 + - col2 * + + ( + - 85 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3290
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - - col1 AS INTEGER ) * + col2 + - col2 * + + ( + - 85 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL + col2 + - col2 DIV col0 + - + col1 AS col0 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + col2 + - col2 / col0 + - + col1 AS col0 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT DISTINCT 42 * col1, 72 AS col0 FROM tab2 AS cor0
----
2142
72
2814
72
3234
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT COUNT( * ) * ( - - ( + 69 ) ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3293
SELECT COUNT ( * ) * ( - - ( + 69 ) ) FROM tab2
----
207

query I rowsort
SELECT ALL col2 * + + 43 FROM tab0
----
2021
4257
430

query I rowsort
SELECT + 5 AS col1 FROM tab1 WHERE NULL IS NULL
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3296
SELECT DISTINCT - col2 - - CAST( NULL AS DECIMAL ) + col2 + - - col2 * + 0 FROM tab1 WHERE 24 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - col2 - - CAST ( NULL AS REAL ) + col2 + - - col2 * + 0 FROM tab1 WHERE 24 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT ALL - col0 DIV + + 86 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - col0 / + + 86 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( 8 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL + 76 + SUM( ALL - col2 ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + 76 + SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT - + COUNT( DISTINCT - col1 ) + + - 33 + - MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - + COUNT ( DISTINCT - col1 ) + + - 33 + - MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
-132

query I rowsort
SELECT + 88 + + 89 + col2 AS col1 FROM tab1 AS cor0
----
236
245
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + MAX( DISTINCT - col2 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3303
SELECT + MAX ( DISTINCT - col2 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT ALL - + 87 - - + col0 FROM tab0 AS cor0
----
-72
0
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT - col1 + - col0 - 93 * - + col0 - + CAST( NULL AS SIGNED ) * - 62 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-3305
SELECT - col1 + - col0 - 93 * - + col0 - + CAST ( NULL AS INTEGER ) * - 62 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3306
SELECT DISTINCT + col0, CAST( + col0 AS SIGNED ) - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-3306
SELECT DISTINCT + col0, CAST ( + col0 AS INTEGER ) - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT - col1 + - 72 * - 4 AS col0 FROM tab0
----
207
267
287

query I rowsort
SELECT ALL + col1 - - 16 * col0 AS col1 FROM tab1
----
1365
1503
830

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( col0 + + col2 * col2 / - col1 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 82 * + - col2 * - col2 FROM tab1
----
285442
379168
755712

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT DISTINCT + ( - 12 ), ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-12
-3

skipif mysql # not compatible
query II rowsort label-3312
SELECT DISTINCT + ( - 12 ), ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-12
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + 47 * + - MIN( + col0 ) AS col2 FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-3314
SELECT + 47 * + - MIN ( + col0 ) AS col2 FROM tab1
----
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3315
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3315
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT col1 col2 FROM tab1 WHERE NOT + CAST( + col2 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3316
SELECT col1 col2 FROM tab1 WHERE NOT + CAST ( + col2 AS INTEGER ) + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - + ( - - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + MIN( ALL 62 ) + + COUNT( * ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3319
SELECT + MIN ( ALL 62 ) + + COUNT ( * ) FROM tab0 AS cor0
----
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + - 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - MAX( + - col0 ) * + + COUNT( * ) + - + 39 AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - MAX ( + - col0 ) * + + COUNT ( * ) + - + 39 AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT SUM( + col1 ) + + COUNT( * ) FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-3322
SELECT SUM ( + col1 ) + + COUNT ( * ) FROM tab1 cor0
----
69

query I rowsort
SELECT ALL - + col0 * + col0 * + col2 + + 78 * col2 FROM tab0 AS cor0
----
-6909
-74910
-923769

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 11 AND col2 * + col0 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT DISTINCT + - col1 DIV - col0 - + 77 * - + col0 AS col0 FROM tab1 AS cor0
----
3927
6545
7007

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + - col1 / - col0 - + 77 * - + col0 AS col0 FROM tab1 AS cor0
----
3927
6545
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT 4 * + SUM( - col0 ) + - COUNT( * ) + 82 * COUNT( * ) AS col1 FROM tab0
----
-553

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT 4 * + SUM ( - col0 ) + - COUNT ( * ) + 82 * COUNT ( * ) AS col1 FROM tab0
----
-553

query III rowsort
SELECT * FROM tab1 WHERE + + 79 - col0 * 49 * + - col1 + - 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3328
SELECT DISTINCT COUNT( * ) DIV - + COUNT( ( col1 ) ) - COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT COUNT ( * ) / - + COUNT ( ( col1 ) ) - COUNT ( * ) FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT COUNT( * ) - + - COUNT( * ) - 98 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-3329
SELECT COUNT ( * ) - + - COUNT ( * ) - 98 FROM tab2
----
-92

query I rowsort
SELECT - - 44 AS col1 FROM tab2 WHERE + + 54 * col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ( COUNT( * ) ) + + MIN( + - col1 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3331
SELECT ( COUNT ( * ) ) + + MIN ( + - col1 ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + 95 >= NULL
----

query I rowsort
SELECT DISTINCT + + 72 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
72

query I rowsort
SELECT + - 23 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 / col1 * 11 * col2 * - 52 BETWEEN + + col1 AND + 16 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3337
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > - CAST( + ( - ( - col2 ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3337
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > - CAST ( + ( - ( - col2 ) ) AS INTEGER )
----

query I rowsort
SELECT - col1 * - + 59 AS col2 FROM tab1
----
2773
295
826

query I rowsort
SELECT ( - 66 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col0 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT + col2 + + col1 * + col1 FROM tab1
----
2277
292
84

query I rowsort
SELECT ALL - 85 + - col1 FROM tab1 AS cor0
----
-132
-90
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 IS NULL
----

query I rowsort
SELECT + col1 * - - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

query I rowsort
SELECT ALL + + 25 + + - col2 FROM tab1 cor0
----
-34
-43
-71

query I rowsort
SELECT - 4 + + ( col1 ) AS col1 FROM tab2 AS cor0
----
47
63
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT MIN( + col1 ), MIN( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3347
SELECT MIN ( + col1 ), MIN ( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
89

query I rowsort
SELECT ALL - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT + 29 * - 92 FROM tab2
----
-2668
-2668
-2668

query II rowsort
SELECT DISTINCT 3 AS col2, 68 AS col0 FROM tab2
----
3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL 96 * + + COUNT( * ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL 96 * + + COUNT ( * ) AS col1 FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IN ( - col1, + col1 * + + 23 * - 93, - col0, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IN ( - col1, + col1 * + + 23 * - 93, - col0, col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - ( + + COUNT( - col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3354
SELECT - ( + + COUNT ( - col1 ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 + - col2 * + 53 FROM tab0
----
-2476
-443
-5150

query I rowsort
SELECT ALL ( + col1 ) + + - col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - - col1 * ( 37 ) + - col1, + col2 FROM tab1 AS cor0
----
1692
68
180
59
504
96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 IS NULL AND ( NULL ) = - 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 - - col2 col2, - 29 FROM tab2 AS cor0
----
-17
-29
-23
-29
-24
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 71 * col2 * - col2 + col0 col1, col1 AS col2 FROM tab1 AS cor0
----
-247066
5
-328213
47
-654285
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT + 41 DIV 90 + + 6 FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3361
SELECT + 41 / 90 + + 6 FROM tab2
----
6
6
6

query I rowsort
SELECT ALL 21 - + + col2 FROM tab1
----
-38
-47
-75

query I rowsort
SELECT + 57 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 28 - + col1 FROM tab1
----
-33
-42
-75

query I rowsort
SELECT DISTINCT col2 * + 37 * + + 78 FROM tab2
----
115440
167388
66378

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + 1 - MIN( + 42 ) AS col0 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + 1 - MIN ( + 42 ) AS col0 FROM tab2
----
-41

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE - 71 < NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + 32 AS col1 FROM tab1 AS cor0
----
-1632
-2720
-2912

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 68
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL + COUNT( 27 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + COUNT ( 27 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT 40 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT 40 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT + SUM( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3373
SELECT DISTINCT + SUM ( DISTINCT + col2 ) col1 FROM tab1 AS cor0
----
223

query II rowsort
SELECT 87 AS col2, - ( + 52 ) + + col1 + - col2 * - 98 FROM tab2 AS cor0
----
87
2253
87
3945
87
5699

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - SUM( - + 83 ) AS col0 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - SUM ( - + 83 ) AS col0 FROM tab0 AS cor0
----
249

query I rowsort
SELECT - + col1 + - 64 FROM tab0 AS cor0
----
-145
-65
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + 54 + + + MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 54 + + + MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - MIN( - - col0 ) + - 55 AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3378
SELECT - MIN ( - - col0 ) + - 55 AS col1 FROM tab0 AS cor0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - 52 ) + - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT - CAST( - col0 AS SIGNED ) + - ( + 59 ) FROM tab0 cor0
----
-44
28
38

skipif mysql # not compatible
query I rowsort label-3380
SELECT - CAST ( - col0 AS INTEGER ) + - ( + 59 ) FROM tab0 cor0
----
-44
28
38

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ( + MIN( + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3382
SELECT ( + MIN ( + col0 ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT COUNT( * ) * 72 + - 10 AS col0 FROM tab1 AS cor0
----
206

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT COUNT ( * ) * 72 + - 10 AS col0 FROM tab1 AS cor0
----
206

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT 54 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT 54 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3386
SELECT - ( + col2 ) DIV - 27 + ( - col0 ), - CAST( - + 96 AS SIGNED ) + 91 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-14
1402
-87
2014
-94
284

skipif mysql # not compatible
query II rowsort label-3386
SELECT - ( + col2 ) / - 27 + ( - col0 ), - CAST ( - + 96 AS INTEGER ) + 91 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-14
1402
-87
2014
-94
284

query I rowsort
SELECT + col2 * - 93 AS col2 FROM tab1 cor0
----
-5487
-6324
-8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + COUNT( * ) + 80 + + MIN( ALL - CAST( NULL AS SIGNED ) ) * 72 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + COUNT ( * ) + 80 + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 72 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - - 48 - col0 + - 99 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
-102
-96
-136
-59
-142
-68

query I rowsort
SELECT DISTINCT + 41 + - ( - 76 ) FROM tab1 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL COUNT( ALL col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL COUNT ( ALL col2 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col1 AS col0, + 54 FROM tab2
----
51
54
67
54
77
54

query II rowsort
SELECT + col1, - 42 FROM tab1
----
14
-42
47
-42
5
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL - 68 * + + COUNT( + ( col2 ) ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - 68 * + + COUNT ( + ( col2 ) ) FROM tab1
----
-204

query I rowsort
SELECT DISTINCT + col1 * 42 AS col1 FROM tab1
----
1974
210
588

query I rowsort
SELECT ALL 33 * - 88 * - col2 AS col1 FROM tab0
----
136488
287496
29040

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + 41 * - - COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + 41 * - - COUNT ( * ) FROM tab0
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 45 * + col1 col1 FROM tab2
----
117045
202005
266805

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT ALL - 8 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - 8 / 63 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 56 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT + + 98 * + - col2 * + CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
341138
453152
903168

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + + 98 * + - col2 * + CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
341138
453152
903168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT CAST( - 1 AS SIGNED ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3402
SELECT CAST ( - 1 AS INTEGER ) FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 56 + - 37 AS col1, - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
19
-46
19
-64
19
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT - 18 * + - 43 AS col1, - COUNT( * ) AS col0 FROM tab0 cor0
----
774
-3

skipif mysql # not compatible
query II rowsort label-3406
SELECT - 18 * + - 43 AS col1, - COUNT ( * ) AS col0 FROM tab0 cor0
----
774
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 23 * col2 AS col1 FROM tab0 AS cor0
----
1081
2277
230

query II rowsort
SELECT + col1 * + 96 AS col2, col0 * - col1 FROM tab0 AS cor0
----
2016
-1827
7776
-1215
96
-97

query I rowsort
SELECT ALL 70 * - + col2 AS col1 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT + ( - 87 ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT - col2 + col2 + + col1 + + col0 * - + 98 AS col0 FROM tab0
----
-1389
-8505
-9505

query II rowsort
SELECT ALL 52 AS col1, col1 + + - col0 AS col2 FROM tab1
----
52
-37
52
-44
52
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT CAST( + - 63 AS SIGNED ) AS col2 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT CAST ( + - 63 AS INTEGER ) AS col2 FROM tab2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT + + col0 DIV col0 AS col0 FROM tab1 WHERE + + 61 NOT BETWEEN NULL AND + - col0 + + col2
----
1

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + + col0 / col0 AS col0 FROM tab1 WHERE + + 61 NOT BETWEEN NULL AND + - col0 + + col2
----
1

query I rowsort
SELECT - 83 + - col1 AS col2 FROM tab2
----
-134
-150
-160

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT DISTINCT 49 DIV col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT 49 / col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + MAX( + 82 ) + + 29 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3420
SELECT + MAX ( + 82 ) + + 29 FROM tab2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3421
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3421
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 > ( 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 38 ) AS col0 FROM tab0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT ALL 84 DIV col1 + - 59 * col2 FROM tab0
----
-2772
-5757
-586

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL 84 / col1 + - 59 * col2 FROM tab0
----
-2772
-5757
-586

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - SUM( - col1 ) FROM tab0 WHERE - col1 + 85 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT - SUM ( - col1 ) FROM tab0 WHERE - col1 + 85 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT col1 DIV - 19 col0 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3427
SELECT col1 / - 19 col0 FROM tab0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT MIN( col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT DISTINCT MIN ( col0 ) col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + MIN( - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + MIN ( - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT COUNT( * ) + ( + CAST( NULL AS SIGNED ) ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 59 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) IN ( col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3434
SELECT 56 + 78 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) <= ( - CAST( NULL AS DECIMAL ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-3434
SELECT 56 + 78 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) <= ( - CAST ( NULL AS REAL ) * col1 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE 48 + col1 * + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ( + 8 ) * 44 + + col0 FROM tab1
----
403
437
443

query I rowsort
SELECT col2 + - ( - 49 + + 88 ) * 96 AS col0 FROM tab0
----
-3645
-3697
-3734

query I rowsort
SELECT - col2 FROM tab0 WHERE - col0 * col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - ( - col0 ) )
----

query I rowsort
SELECT - col1 * 86 FROM tab1 AS cor0
----
-1204
-4042
-430

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COUNT( * ) * + 60 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COUNT ( * ) * + 60 FROM tab2 AS cor0
----
180

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col1 NOT BETWEEN col2 * + col2 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT - 97 * - MAX( ALL + 67 ) AS col2 FROM tab2 AS cor0
----
6499

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT - 97 * - MAX ( ALL + 67 ) AS col2 FROM tab2 AS cor0
----
6499

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3446
SELECT DISTINCT * FROM tab1 WHERE + CAST( - col0 AS SIGNED ) - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3446
SELECT DISTINCT * FROM tab1 WHERE + CAST ( - col0 AS INTEGER ) - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
query I rowsort label-3447
SELECT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT ALL - 59 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - 59 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3452
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 * CAST( NULL AS DECIMAL ) ) > ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-3452
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 * CAST ( NULL AS REAL ) ) > ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - - COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - - COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3455
SELECT - COUNT( 69 ) * CAST( NULL AS SIGNED ) + - 94 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT - COUNT ( 69 ) * CAST ( NULL AS INTEGER ) + - 94 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

query I rowsort
SELECT - col1 + 44 AS col2 FROM tab0 AS cor0
----
-37
23
43

query I rowsort
SELECT + col1 + - col2 * col1 AS col1 FROM tab2 cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL ( col1 ) * 51 FROM tab0 cor0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3460
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT DISTINCT - 41 DIV - col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - 41 / - col2 FROM tab2
----
0
1

query I rowsort
SELECT ALL + col0 * col1 + + 99 AS col0 FROM tab2
----
2445
5027
5124

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + 3 FROM tab2 WHERE NULL IS NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT 63 * MIN( ALL ( - col0 ) ) FROM tab0 WHERE NULL IS NULL
----
-6111

skipif mysql # not compatible
query I rowsort label-3465
SELECT 63 * MIN ( ALL ( - col0 ) ) FROM tab0 WHERE NULL IS NULL
----
-6111

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL + col2 DIV - 69 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + col2 / - 69 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT col2 DIV - 16 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3467
SELECT col2 / - 16 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT MAX( 20 ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT MAX ( 20 ) AS col1 FROM tab0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3469
SELECT MAX( ALL col1 ) DIV COUNT( col1 ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3469
SELECT MAX ( ALL col1 ) / COUNT ( col1 ) AS col2 FROM tab0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3470
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 56 AS col1 FROM tab2 WHERE ( NULL ) <= ( ( - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT CAST ( NULL AS REAL ) - + 56 AS col1 FROM tab2 WHERE ( NULL ) <= ( ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT - col1 DIV - + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3471
SELECT - col1 / - + col0 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL col1 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT - col1 * + + 29 * - col2 + - col0 FROM tab0 cor0
----
110388
2774
6003

query I rowsort
SELECT ALL + - col2 + - col0 * - col0 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL + MIN( + col0 ) + + 25 AS col0 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + MIN ( + col0 ) + + 25 AS col0 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL > ( col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3477
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL > ( col2 )
----
0

query I rowsort
SELECT col0 * + 51 + - col1 FROM tab1
----
2587
4330
4594

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + 25 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 61 AS col1 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT ALL col0 * - - col0 + 12 * - col2 AS col0 FROM tab2 AS cor0
----
1840
3616
4929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3482
SELECT + + 85 DIV MAX( + col0 ) - MIN( DISTINCT col2 - 58 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3482
SELECT + + 85 / MAX ( + col0 ) - MIN ( DISTINCT col2 - 58 ) FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT ( 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT 44 FROM tab0 cor0 WHERE NOT + col2 * - col1 >= + col1
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 IS NULL OR NOT + col1 BETWEEN col2 AND col0
----
15
81
47
97
1
99

query II rowsort
SELECT ALL + 20 AS col2, col2 AS col0 FROM tab2 AS cor0
----
20
23
20
40
20
58

query II rowsort
SELECT ALL - col2, ( 4 ) * col0 AS col2 FROM tab0 cor0
----
-10
348
-47
60
-99
388

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + 75 FROM tab1 WHERE NOT + + col1 < + - col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT + MAX( 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-3491
SELECT + MAX ( 91 ) FROM tab0
----
91

query I rowsort
SELECT col0 + + 89 AS col2 FROM tab1 WHERE NOT ( col0 * - + col0 ) IS NULL
----
140
174
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col2 AS col0, - col1 col2 FROM tab1
----
-1344
-14
-295
-5
-3196
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + MAX( - + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3494
SELECT + MAX ( - + col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3495
SELECT DISTINCT * FROM tab2 WHERE - + ( + + col1 ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) * + ( col2 * - 84 ) ) AND ( - 47 )
----

skipif mysql # not compatible
query III rowsort label-3495
SELECT DISTINCT * FROM tab2 WHERE - + ( + + col1 ) NOT BETWEEN ( CAST ( NULL AS REAL ) * + ( col2 * - 84 ) ) AND ( - 47 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 93 * - 86 * 89 + col0 / + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + ( + + col1 ) AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - + ( + 51 ) * - 78 FROM tab0 AS cor0
----
3978
3978
3978

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + ( col2 ) + + col0 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT + MIN( col1 ) + - 95 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3501
SELECT + MIN ( col1 ) + - 95 FROM tab1 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT - 72 DIV col1 DIV 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT - 72 / col1 / 96 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = ( col2 * col2 - - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 90 ), col2 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE 33 * - col1 BETWEEN - col2 AND 21
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT ALL - - ( - col1 ) + - - col1 DIV - col2 + + 28 FROM tab1 cor0
----
-19
14
23

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - - ( - col1 ) + - - col1 / - col2 + + 28 FROM tab1 cor0
----
-19
14
23

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col0 * + col2 BETWEEN ( - + col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + col1 + + - 68 + - col0 * + - col2 + ( - col2 ) FROM tab0 AS cor0
----
-1035
-625
9339

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT - col0 * col2 * col1 DIV + 49 FROM tab0 AS cor0
----
-1165
-195
-372

skipif mysql # not compatible
query I rowsort label-3509
SELECT - col0 * col2 * col1 / + 49 FROM tab0 AS cor0
----
-1165
-195
-372

query I rowsort
SELECT + 9 AS col2 FROM tab2 AS cor0 WHERE 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT ALL + col0 DIV + col0 + + col2 * + col2 FROM tab1 cor0
----
3482
4625
9217

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + col0 / + col0 + + col2 * + col2 FROM tab1 cor0
----
3482
4625
9217

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 BETWEEN col1 AND 85 - + 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( * ) + - ( - - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( * ) + - ( - - COUNT ( * ) ) FROM tab2
----
0

query II rowsort
SELECT ALL - col1 AS col1, + 87 * - - 37 FROM tab2
----
-51
3219
-67
3219
-77
3219

query II rowsort
SELECT DISTINCT col0, col2 - + col1 * col1 * + col0 * - col1 FROM tab2
----
46
6101969
64
29218152
75
22557283

query I rowsort
SELECT - col0 * + 19 * + col1 + + - col0 AS col1 FROM tab0
----
-1940
-23100
-34800

query I rowsort
SELECT col0 * 60 AS col0 FROM tab1 WHERE ( ( + col0 * - col1 ) IS NOT NULL )
----
3060
5100
5460

query II rowsort
SELECT DISTINCT - col0 AS col1, 52 * - - 65 AS col0 FROM tab1
----
-51
3380
-85
3380
-91
3380

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 47 * - 72 + + col0 + - - col0, col0 FROM tab0 AS cor0
----
-3190
97
-3210
87
-3354
15

query I rowsort
SELECT DISTINCT - col2 + + col1 - col0 AS col1 FROM tab1 cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - 69 * col2 * - 88 + + col1 AS col1 FROM tab2 AS cor0
----
139707
242957
352243

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT - SUM( + col0 ) + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT - SUM ( + col0 ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 > - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT COUNT( - - 31 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3526
SELECT COUNT ( - - 31 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT COUNT( * ) * + + 61 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3527
SELECT COUNT ( * ) * + + 61 FROM tab0 AS cor0
----
183

query I rowsort
SELECT - col1 * ( + 71 ) AS col0 FROM tab2 AS cor0
----
-3621
-4757
-5467

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( col2 ) * - - 54 * 26 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - MAX( DISTINCT + 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - MAX ( DISTINCT + 8 ) FROM tab2
----
-8

query II rowsort
SELECT ALL + col0 AS col2, - 54 + col1 AS col2 FROM tab0
----
15
27
87
-33
97
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT ( + 43 ) <> 52
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT ( + 43 ) <> 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT + col0 + - CAST( 61 AS SIGNED ) FROM tab1 AS cor0
----
-10
24
30

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT + col0 + - CAST ( 61 AS INTEGER ) FROM tab1 AS cor0
----
-10
24
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT 25 * + SUM( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-3025

skipif mysql # not compatible
query I rowsort label-3534
SELECT 25 * + SUM ( DISTINCT - col2 ) AS col1 FROM tab2 cor0
----
-3025

query I rowsort
SELECT ALL - ( + 70 ) + col0 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT + - 64 + + + col0 AS col2 FROM tab2 AS cor0
----
-18
0
11

query II rowsort
SELECT ALL col0 + + col1 AS col1, col1 AS col2 FROM tab2 AS cor0
----
141
77
142
67
97
51

query I rowsort
SELECT - 70 + + - col0 AS col2 FROM tab0 AS cor0
----
-157
-167
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT DISTINCT - 81 DIV col1 + - col1 * - - col2 FROM tab1 AS cor0
----
-1349
-311
-3197

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT - 81 / col1 + - col1 * - - col2 FROM tab1 AS cor0
----
-1349
-311
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL + MIN( ALL + col2 ) col0 FROM tab2 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3540
SELECT ALL + MIN ( ALL + col2 ) col0 FROM tab2 WHERE NULL >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT SUM( 94 ) AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT SUM ( 94 ) AS col2 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL + COUNT( * ) * 83 - + 75 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + COUNT ( * ) * 83 - + 75 FROM tab1
----
174

query I rowsort
SELECT 75 * - 55 AS col1 FROM tab2
----
-4125
-4125
-4125

query I rowsort
SELECT DISTINCT - col0 * + - ( - - 6 ) - 34 FROM tab0
----
488
548
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3545
SELECT DISTINCT CAST( - - col2 AS SIGNED ) * + col1 * - + ( + - 26 ) AS col0, col2 FROM tab2
----
101036
58
30498
23
80080
40

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) * + col1 * - + ( + - 26 ) AS col0, col2 FROM tab2
----
101036
58
30498
23
80080
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT 83 - - MIN( DISTINCT - + col1 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3546
SELECT 83 - - MIN ( DISTINCT - + col1 ) FROM tab1
----
36

query I rowsort
SELECT - col2 - - 28 AS col2 FROM tab2
----
-12
-30
5

query I rowsort
SELECT col2 - - - col0 * + + col0 FROM tab2
----
-2093
-4056
-5567

query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( + col0 + + 39 + - + col2 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT - col1 DIV - col1 FROM tab0 AS cor0 WHERE + 6 + + 39 + + + 26 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - col1 / - col1 FROM tab0 AS cor0 WHERE + 6 + + 39 + + + 26 IS NOT NULL
----
1

query II rowsort
SELECT DISTINCT + col1 AS col2, 7 AS col1 FROM tab0
----
1
7
21
7
81
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT DISTINCT 84 AS col1, COUNT( * ) AS col0 FROM tab2
----
84
3

skipif mysql # not compatible
query II rowsort label-3553
SELECT DISTINCT 84 AS col1, COUNT ( * ) AS col0 FROM tab2
----
84
3

query I rowsort
SELECT ALL + + 88 * - 24 AS col1 FROM tab2 cor0
----
-2112
-2112
-2112

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 * - + 71 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 81 AS col0, 3 FROM tab2 AS cor0
----
-81
3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
23
40
58

query I rowsort
SELECT + 53 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - 58 AS col1, - col1 AS col1 FROM tab2 cor0
----
-58
-51
-58
-67
-58
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3560
SELECT DISTINCT 63 + + COUNT( * ), + 22 DIV + COUNT( * ) AS col1 FROM tab0
----
66
7

skipif mysql # not compatible
query II rowsort label-3560
SELECT DISTINCT 63 + + COUNT ( * ), + 22 / + COUNT ( * ) AS col1 FROM tab0
----
66
7

query I rowsort
SELECT + col0 * + + 32 FROM tab0 AS cor0 WHERE NOT col1 + + col0 * + col2 IS NULL
----
2784
3104
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 + - + col1 col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT ALL 63 * col0 + + 70 AS col1 FROM tab0 AS cor0
----
1015
5551
6181

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - - col1 BETWEEN NULL AND + + col0
----

query I rowsort
SELECT DISTINCT - col1 * - col1 * ( - + col0 ) * - col1 + col0 FROM tab1
----
10710
139995
9447984

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( + - 14 ) * 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT + MAX( DISTINCT col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3567
SELECT + MAX ( DISTINCT col0 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT - COUNT( ALL + 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3568
SELECT - COUNT ( ALL + 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 86 * - col1 + + col1 + 40 + + col0 FROM tab0
----
-1658
-6830
52

query I rowsort
SELECT - + 3 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT 36 - - col2 AS col2 FROM tab1 cor0
----
104
132
95

query I rowsort
SELECT ALL + ( + 72 ) + - col0 + - + col1 FROM tab2 AS cor0
----
-25
-69
-70

query I rowsort
SELECT DISTINCT - - col0 + + 55 FROM tab2 AS cor0
----
101
119
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - 74 - - + COUNT( * ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - 74 - - + COUNT ( * ) FROM tab1 AS cor0
----
-71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 76 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT + SUM( DISTINCT + col0 ) + - 58 AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + SUM ( DISTINCT + col0 ) + - 58 AS col2 FROM tab0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3577
SELECT DISTINCT - ( - 85 ) col2, col1 + col2 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3577
SELECT DISTINCT - ( - 85 ) col2, col1 + col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
85
NULL

query I rowsort
SELECT ALL 51 - + 89 AS col1 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT ALL - 30 * 56 FROM tab1
----
-1680
-1680
-1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col0 col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col2 - + - col2 AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT + - 14 * 32 FROM tab2 AS cor0
----
-448
-448
-448

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND - col0 NOT BETWEEN - - col1 AND - - 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT + + MAX( ALL - col1 ), + 63 AS col1 FROM tab1 AS cor0
----
-5
63

skipif mysql # not compatible
query II rowsort label-3584
SELECT + + MAX ( ALL - col1 ), + 63 AS col1 FROM tab1 AS cor0
----
-5
63

query I rowsort
SELECT ALL + col2 * + 87 AS col1 FROM tab1 AS cor0
----
5133
5916
8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col2 FROM tab0 AS cor0
----
45
45
45

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3588
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 3 * - - col2 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + - MIN( 42 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-3590
SELECT + - MIN ( 42 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

query I rowsort
SELECT + - 34 * - col2 AS col0 FROM tab0 AS cor0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT + SUM( + 88 ) col0 FROM tab2 cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT DISTINCT + SUM ( + 88 ) col0 FROM tab2 cor0
----
264

query I rowsort
SELECT - col0 * + - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT MIN( ALL - 29 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT MIN ( ALL - 29 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + - col0, - 34 * + + col2, 26 * col1 + 36 )
----

query I rowsort
SELECT DISTINCT - 59 * col2 * - 15 * + col2 FROM tab2 AS cor0 WHERE + col2 + 16 IS NOT NULL
----
1416000
2977140
468165

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT 3 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT 3 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 42 * + col1 FROM tab2
----
2142
2814
3234

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT ( - 44 ) DIV + 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ( - 44 ) / + 87 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT SUM( DISTINCT - + col0 ) * - COUNT( * ) * + 81 FROM tab1
----
55161

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT SUM ( DISTINCT - + col0 ) * - COUNT ( * ) * + 81 FROM tab1
----
55161

query I rowsort
SELECT DISTINCT ( - 96 ) AS col2 FROM tab1 WHERE NOT + 81 IS NOT NULL
----

query I rowsort
SELECT + ( + - ( 55 ) ) FROM tab1
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT ALL + col1 DIV - col1 + - col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + col1 / - col1 + - col0 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE - 84 <= NULL
----

query I rowsort
SELECT 81 + + - col1 FROM tab1
----
34
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + + 30 * MIN( ALL col1 ) * - - COUNT( * ) + + MAX( - col0 ) FROM tab2 AS cor0
----
4544

skipif mysql # not compatible
query I rowsort label-3606
SELECT + + 30 * MIN ( ALL col1 ) * - - COUNT ( * ) + + MAX ( - col0 ) FROM tab2 AS cor0
----
4544

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + + SUM( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3608
SELECT + + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT + 2 DIV col0 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-3609
SELECT + 2 / col0 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT 77 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT 77 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT DISTINCT - 37 * - CAST( + col0 AS SIGNED ) - + col1 * + + 73 + - + col2 AS col1 FROM tab2 cor0
----
-2044
-2174
-3293

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - 37 * - CAST ( + col0 AS INTEGER ) - + col1 * + + 73 + - + col2 AS col1 FROM tab2 cor0
----
-2044
-2174
-3293

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + col2 ) <= - col0 * - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NULL > - - 47 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NULL > - - 47 + - col2
----
0

query I rowsort
SELECT - col1 - 74 + + ( 86 ) + col2 * col2 FROM tab0
----
2140
91
9812

query I rowsort
SELECT ALL - col1 * + 37 - + col2 - - - 89 + - + 57 + - col0 + - + 66 * 36 FROM tab2
----
-4478
-5134
-5475

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT + + 49 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 35, col2 + - col2 AS col0 FROM tab2
----
35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT - ( SUM( DISTINCT + 6 ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3619
SELECT - ( SUM ( DISTINCT + 6 ) ) FROM tab1
----
-6

query I rowsort
SELECT 83 * + 7 AS col2 FROM tab2
----
581
581
581

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - 79 + - MIN( ALL + + 99 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 79 + - MIN ( ALL + + 99 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT SUM( + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3623
SELECT SUM ( + col0 ) AS col0 FROM tab2
----
185

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 43 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT - col2 / - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT + - col2 * - 6 AS col1, - col1 FROM tab2 AS cor0
----
138
-51
240
-77
348
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT + 93 DIV - col0 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3627
SELECT + 93 / - col0 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + - col0 * + - 42 FROM tab1 AS cor0
----
2142
3570
3822

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + MIN( DISTINCT + 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3631
SELECT + MIN ( DISTINCT + 93 ) FROM tab0
----
93

query I rowsort
SELECT ALL + 68 * - 97 FROM tab2
----
-6596
-6596
-6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - + col2 + + + 75 col0, col0 AS col0 FROM tab2
----
-1098
46
-3005
64
-3811
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT + 19 + CAST( - + col1 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-75
-9
9

skipif mysql # not compatible
query I rowsort label-3634
SELECT + 19 + CAST ( - + col1 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-75
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL + COUNT( * ) * - 16 AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + COUNT ( * ) * - 16 AS col0 FROM tab1
----
-48

query I rowsort
SELECT + 50 + + col2 FROM tab2
----
108
73
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT DISTINCT CAST( + 64 AS SIGNED ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT CAST ( + 64 AS INTEGER ) FROM tab0
----
64

query I rowsort
SELECT DISTINCT ( + 35 ) + - + ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 97 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 97 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col2, - col1 * col1 * - col2 AS col2 FROM tab0
----
-15
308367
-87
4410
-97
99

query I rowsort
SELECT 87 + + ( - 82 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 * col0 AS col2 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 + col0 BETWEEN + - 36 AND + col2 * - 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT ALL COUNT( * ), - 42 + + 90 AS col0 FROM tab2 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL COUNT ( * ), - 42 + + 90 AS col0 FROM tab2 AS cor0
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL COUNT( * ) + + MIN( ALL - 5 ) AS col0 FROM tab0 cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL COUNT ( * ) + + MIN ( ALL - 5 ) AS col0 FROM tab0 cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT - col2 + - - 4 AS col1 FROM tab2 cor0
----
-19
-36
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT - + CAST( - col1 AS SIGNED ) + - - 2 - - 93 AS col1 FROM tab2 AS cor0
----
146
162
172

skipif mysql # not compatible
query I rowsort label-3647
SELECT - + CAST ( - col1 AS INTEGER ) + - - 2 - - 93 AS col1 FROM tab2 AS cor0
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + COUNT( DISTINCT ( col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3648
SELECT + COUNT ( DISTINCT ( col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT + 36, COUNT( * ) * + + 8 * + 13 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
36
936

skipif mysql # not compatible
query II rowsort label-3649
SELECT + 36, COUNT ( * ) * + + 8 * + 13 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
36
936

query II rowsort
SELECT + ( col2 ), col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3651
SELECT + CAST( NULL AS DECIMAL ) * + - 30, + ( + 60 ) * - col1 AS col0 FROM tab0
----
NULL
-1260
NULL
-4860
NULL
-60

skipif mysql # not compatible
query II rowsort label-3651
SELECT + CAST ( NULL AS REAL ) * + - 30, + ( + 60 ) * - col1 AS col0 FROM tab0
----
NULL
-1260
NULL
-4860
NULL
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT DISTINCT 43 DIV 2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT 43 / 2 FROM tab2
----
21

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE NOT - col0 IN ( + 39 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3654
SELECT ALL COUNT( col2 ), + ( - + 21 ) DIV + + 52 col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3654
SELECT ALL COUNT ( col2 ), + ( - + 21 ) / + + 52 col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
0
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3655
SELECT DISTINCT + 24 / + CAST( 49 AS DECIMAL ) col1 FROM tab0 WHERE NULL = - ( col1 ) + + 88
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3655
SELECT DISTINCT + 24 / + CAST ( 49 AS REAL ) col1 FROM tab0 WHERE NULL = - ( col1 ) + + 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT + + ( COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT + + ( COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - + 15 + + - MAX( ALL + + 31 ) AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3659
SELECT - + 15 + + - MAX ( ALL + + 31 ) AS col0 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT + col1 + - - col1 AS col1 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT ALL + col0 + + - 69 AS col0 FROM tab1 AS cor0
----
-18
16
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 7 IN ( - - 33 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT - - 91 + + 96 DIV 43 FROM tab1 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-3663
SELECT - - 91 + + 96 / 43 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3664
SELECT - 67 * + CAST( NULL AS SIGNED ) AS col0, col0 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-3664
SELECT - 67 * + CAST ( NULL AS INTEGER ) AS col0, col0 col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 56 ) + - 77 <> NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 98 + + 67 AS col0 FROM tab0
----
-1991
-31
-7871

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT DISTINCT - 85 + COUNT( * ) AS col0, + COUNT( * ) + + COUNT( * ) * + + MAX( DISTINCT + 47 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-82
147

skipif mysql # not compatible
query II rowsort label-3667
SELECT DISTINCT - 85 + COUNT ( * ) AS col0, + COUNT ( * ) + + COUNT ( * ) * + + MAX ( DISTINCT + 47 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-82
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT - col0 DIV + 34 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT - col0 / + 34 FROM tab0 AS cor0
----
-2
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT + 21 - - 72 * + col0 AS col0 FROM tab0 AS cor0
----
1101
6285
7005

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT + 38 * - 0 - - COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + 38 * - 0 - - COUNT ( * ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col1 - 7 AS col0 FROM tab2
----
44
60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + COUNT( * ) * COUNT( * ) + 21 AS col1 FROM tab0 WHERE - col2 <= - 34 / - 28 + + col1
----
30

skipif mysql # not compatible
query I rowsort label-3673
SELECT + COUNT ( * ) * COUNT ( * ) + 21 AS col1 FROM tab0 WHERE - col2 <= - 34 / - 28 + + col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3674
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 71 AS col0, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3674
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 71 AS col0, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT + - ( + col0 ) * + - 77 * + 80 FROM tab0 AS cor0
----
535920
597520
92400

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col2 IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT ( 90 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 46 * - col2 + + 78 + - + col2 * + col0 AS col2 FROM tab1 cor0
----
-2223
-2982
-402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query II rowsort label-3680
SELECT - COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3680
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1
----
-3
-3

query II rowsort
SELECT DISTINCT + col2 AS col2, + ( - + 83 ) AS col1 FROM tab1
----
59
-83
68
-83
96
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT COUNT( * ), MAX( - - col2 ) AS col1 FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-3682
SELECT COUNT ( * ), MAX ( - - col2 ) AS col1 FROM tab0
----
3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT SUM( DISTINCT + + ( 78 ) ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT SUM ( DISTINCT + + ( 78 ) ) AS col2 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - SUM( - + 60 ) AS col0 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3684
SELECT - SUM ( - + 60 ) AS col0 FROM tab0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3685
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - ( - CAST( NULL AS SIGNED ) ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-3685
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - ( - CAST ( NULL AS INTEGER ) ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL - + ( - COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - + ( - COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3687
SELECT - - SUM( + 86 ) DIV - COUNT( * ) - - 86 AS col0 FROM tab0 WHERE NOT + - 16 = - - col2 DIV - - 12 + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT - - SUM ( + 86 ) / - COUNT ( * ) - - 86 AS col0 FROM tab0 WHERE NOT + - 16 = - - col2 / - - 12 + - - col1
----
0

query I rowsort
SELECT ALL + - ( - + 34 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 89 > NULL
----

query II rowsort
SELECT DISTINCT + + 39 + 26 + + col0 AS col2, - 90 AS col2 FROM tab0 AS cor0
----
152
-90
162
-90
80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3690
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 + - 69 FROM tab1 AS cor0
----
-1
-10
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3692
SELECT - CAST( - 81 AS SIGNED ) * 78 - - - col1 DIV + - col1 AS col2 FROM tab0 AS cor0 WHERE - 14 DIV CAST( NULL AS DECIMAL ) * - col2 IS NULL
----
6319
6319
6319

skipif mysql # not compatible
query I rowsort label-3692
SELECT - CAST ( - 81 AS INTEGER ) * 78 - - - col1 / + - col1 AS col2 FROM tab0 AS cor0 WHERE - 14 / CAST ( NULL AS REAL ) * - col2 IS NULL
----
6319
6319
6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col1 * col1 + - 50 col2 FROM tab1 AS cor0
----
103773
2694
75

query I rowsort
SELECT 34 * col0 + 71 AS col2 FROM tab2 cor0
----
1635
2247
2621

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col0 + + 72 - - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - - 45 + 12 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3696
SELECT - - 45 + 12 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
60

query II rowsort
SELECT ALL + 89, + 23 AS col0 FROM tab1
----
89
23
89
23
89
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3698
SELECT - 45 + + col0 + - - CAST( NULL AS SIGNED ), col1 * + 26 AS col2 FROM tab2
----
NULL
1326
NULL
1742
NULL
2002

skipif mysql # not compatible
query II rowsort label-3698
SELECT - 45 + + col0 + - - CAST ( NULL AS INTEGER ), col1 * + 26 AS col2 FROM tab2
----
NULL
1326
NULL
1742
NULL
2002

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3699
SELECT * FROM tab0 WHERE + col1 > - CAST( NULL AS SIGNED ) * - col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-3699
SELECT * FROM tab0 WHERE + col1 > - CAST ( NULL AS INTEGER ) * - col1 + - col1
----

query II rowsort
SELECT DISTINCT + 30, + 91 AS col1 FROM tab0
----
30
91

query I rowsort
SELECT - 85 * - col1 FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3702
SELECT - col1 * 20 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 68 - + col1 - col2 AS col2, + ( + col2 ) * - 75 AS col2, + col2 * - col0 AS col2 FROM tab2
----
9 values hashing to ab50f2ae1fd6162b4f09590b828f7a58

skipif mysql # not compatible
query III rowsort label-3702
SELECT - col1 * 20 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 68 - + col1 - col2 AS col2, + ( + col2 ) * - 75 AS col2, + col2 * - col0 AS col2 FROM tab2
----
9 values hashing to ab50f2ae1fd6162b4f09590b828f7a58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL ( 77 ) - - CAST( NULL AS SIGNED ) * - ( col0 ) * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL ( 77 ) - - CAST ( NULL AS INTEGER ) * - ( col0 ) * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 56 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + - 91 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + COUNT( * ) FROM tab1 WHERE NOT - col2 * + 62 - - col1 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col2 * + 62 - - col1 < + col1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col1 * + - 95 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT - ( - - 95 ) * - SUM( - col2 ), 56 AS col2 FROM tab0 AS cor0
----
-14820
56

skipif mysql # not compatible
query II rowsort label-3709
SELECT - ( - - 95 ) * - SUM ( - col2 ), 56 AS col2 FROM tab0 AS cor0
----
-14820
56

onlyif mysql # DIV for integer division: 
query II rowsort label-3710
SELECT ALL + 34 DIV col1 + - col0 * col2, + col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL + 34 / col1 + - col0 * col2, + col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query II rowsort
SELECT + col1 + - + col2 * - + col0, col0 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - + col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 58 ) col2 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT - 25 * + - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
122400
125375
154700

query I rowsort
SELECT ALL - ( ( - 19 ) ) AS col1 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + COUNT( * ) * - + 75 DIV COUNT( * ) AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3716
SELECT + COUNT ( * ) * - + 75 / COUNT ( * ) AS col2 FROM tab0
----
-75

query I rowsort
SELECT DISTINCT - col1 * + 73 FROM tab2
----
-3723
-4891
-5621

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - ( - 45 ) / - + col1 - - 81
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> col1 + - ( col2 ) + col1 + - - 74
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NOT NULL AND NOT ( NULL ) NOT BETWEEN ( + - col2 ) AND col2
----

query II rowsort
SELECT ALL col1 AS col2, - col0 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT + - 90 + - 73 FROM tab2 AS cor0
----
-163
-163
-163

query III rowsort
SELECT * FROM tab2 cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT DISTINCT 65 * col0 + - + col0 * + + 38 * - col1 * 23 FROM tab0 AS cor0
----
1062885
1602453
91083

query I rowsort
SELECT + col2 * + col2 + col0 * - + 31 * col0 FROM tab2 AS cor0
----
-125376
-171011
-65067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT DISTINCT + CAST( + 55 AS SIGNED ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + CAST ( + 55 AS INTEGER ) FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - + COUNT( + + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3727
SELECT - + COUNT ( + + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT - - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + - - 69 FROM tab0
----
-30
22
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3730
SELECT ( + - COUNT( * ) ) DIV + MAX( col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT ( + - COUNT ( * ) ) / + MAX ( col2 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT 94 * + 13 * + 0 * - + col0 * - col1 * - col2 * + + 74 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 - + + col0 * col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT + 89 AS col2 FROM tab2 WHERE - col0 * 55 IS NOT NULL
----
89
89
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 * + - 14 * + 39 NOT IN ( - 88 + - - col1, - 54 + + 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT + col0 - - + col0 + + 87 DIV + col2 FROM tab0 AS cor0
----
182
194
31

skipif mysql # not compatible
query I rowsort label-3735
SELECT + col0 - - + col0 + + 87 / + col2 FROM tab0 AS cor0
----
182
194
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3736
SELECT - COUNT( - + CAST( - col0 AS SIGNED ) ) + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT - COUNT ( - + CAST ( - col0 AS INTEGER ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE col0 - CAST( NULL AS SIGNED ) + - 75 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE col0 - CAST ( NULL AS INTEGER ) + - 75 IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND - 19
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT + ( + COUNT( DISTINCT - - col1 ) ) AS col2 FROM tab1 WHERE CAST( 80 AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3739
SELECT + ( + COUNT ( DISTINCT - - col1 ) ) AS col2 FROM tab1 WHERE CAST ( 80 AS INTEGER ) < NULL
----
0

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 WHERE + col2 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3741
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT ALL col1 DIV - col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3742
SELECT ALL col1 / - col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT 23 IS NULL
----
51
85
91

query I rowsort
SELECT + 98 * 60 FROM tab2 AS cor0
----
5880
5880
5880

query II rowsort
SELECT DISTINCT - col1, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT DISTINCT col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3747
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0, col2 * + col1 * - 62 FROM tab2 cor0
----
NULL
-190960
NULL
-240932
NULL
-72726

skipif mysql # not compatible
query II rowsort label-3747
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, col2 * + col1 * - 62 FROM tab2 cor0
----
NULL
-190960
NULL
-240932
NULL
-72726

query I rowsort
SELECT ALL - + 84 AS col2 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - ( + COUNT( ( col2 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + 96 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3749
SELECT - ( + COUNT ( ( col2 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + 96 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT ( + + MIN( ALL col0 ) ) * 85 AS col1 FROM tab0 AS cor0
----
1275

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT ( + + MIN ( ALL col0 ) ) * 85 AS col1 FROM tab0 AS cor0
----
1275

query III rowsort
SELECT * FROM tab2 WHERE NOT - 73 <> + + 93 * + + 29
----

query I rowsort
SELECT DISTINCT - col1 * 53 AS col1 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT COUNT( * ) * - 89 AS col1 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3753
SELECT COUNT ( * ) * - 89 AS col1 FROM tab0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL MIN( col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL MIN ( col1 ) AS col1 FROM tab1
----
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 87, - 8, + 14 )
----

query I rowsort
SELECT ALL col2 + - ( - col2 ) + ( - col0 ) FROM tab0 WHERE NULL IS NULL
----
-67
101
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 66 col1 FROM tab0
----
1386
5346
66

query I rowsort
SELECT ALL - - 79 + - col2 - + col1 * - - col0 AS col1 FROM tab1 cor0
----
-405
-4266
-731

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3759
SELECT + - col1 * 52 AS col2, col2 + - - ( + CAST( NULL AS SIGNED ) ) + + col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NULL
----
-2652
NULL
-3484
NULL
-4004
NULL

skipif mysql # not compatible
query II rowsort label-3759
SELECT + - col1 * 52 AS col2, col2 + - - ( + CAST ( NULL AS INTEGER ) ) + + col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NULL
----
-2652
NULL
-3484
NULL
-4004
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3760
SELECT ALL col1 * + 37 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL col1 * + 37 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 / 48
----

query I rowsort
SELECT + ( + - col1 ) + col0 * - col2 * 89 AS col1 FROM tab2 AS cor0
----
-227917
-387217
-94213

query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query II rowsort
SELECT DISTINCT 31, col1 * + col0 AS col2 FROM tab0
----
31
1215
31
1827
31
97

query I rowsort
SELECT ALL - col2 + - - 92 + - col1 - - col2 FROM tab1 cor0
----
45
78
87

query I rowsort
SELECT DISTINCT + - ( + 12 ) + - + col1 + + + col0 AS col0 FROM tab0 AS cor0
----
-78
54
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + 30 + - - COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + 30 + - - COUNT ( * ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT - 60 + col2 * - col2 * - - 50 AS col2 FROM tab2 AS cor0
----
-168260
-26510
-80060

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT col1 + + 91 AS col1 FROM tab1
----
105
138
96

query I rowsort
SELECT ALL col0 - + - col1 FROM tab1
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT col1 + col2 DIV - col2 col2 FROM tab2
----
50
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3772
SELECT col1 + col2 / - col2 col2 FROM tab2
----
50
66
76

query I rowsort
SELECT - col0 * + 79 + - 97 AS col2 FROM tab0
----
-1282
-6970
-7760

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab2 WHERE NOT - col2 NOT BETWEEN - - col1 AND - ( 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab2 WHERE NOT - col2 NOT BETWEEN - - col1 AND - ( 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + SUM( DISTINCT + - ( - 62 ) ) col1 FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT + SUM ( DISTINCT + - ( - 62 ) ) col1 FROM tab2 WHERE + col0 IS NULL
----
NULL

query II rowsort
SELECT ALL + + col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL col1 + + + 4 * - col2 FROM tab2 AS cor0
----
-165
-41
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - + 0 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3779
SELECT - + 0 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3780
SELECT ALL - - MAX( col1 ), COUNT( * ) / - - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL - - MAX ( col1 ), COUNT ( * ) / - - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
81
NULL

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT col1 * - 89 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / - + col1 BETWEEN - col0 AND 13
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 7 + 90 AND - - 2
----

query I rowsort
SELECT col2 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT ( - 75 ) DIV col0 * + col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3786
SELECT ( - 75 ) / col0 * + col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3787
SELECT + 77 DIV ( + - COUNT( * ) ) + - - 27 + - 39 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3787
SELECT + 77 / ( + - COUNT ( * ) ) + - - 27 + - 39 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT ALL col1 * + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - + col0 <= - - col2
----
15
81
47

query I rowsort
SELECT ALL + + col0 * - 75 * ( + col1 ) FROM tab1 AS cor0
----
-31875
-320775
-53550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 72 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3791
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 72 col2 FROM tab2
----
NULL

query II rowsort
SELECT + col2 AS col0, ( - + 91 ) - + col0 AS col2 FROM tab1
----
59
-176
68
-182
96
-142

query I rowsort
SELECT ALL + 9 * - 37 FROM tab1
----
-333
-333
-333

query I rowsort
SELECT + + col1 * + + col0 AS col0 FROM tab0 WHERE NOT + + col0 * + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + + ( 59 ) + + - col1 + - 5 * - + col0 FROM tab0
----
134
494
544

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN - col0 - - - col1 AND NULL
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3797
SELECT - CAST( NULL AS DECIMAL ) AS col2, 89 * + 64 FROM tab1 AS cor0
----
NULL
5696
NULL
5696
NULL
5696

skipif mysql # not compatible
query II rowsort label-3797
SELECT - CAST ( NULL AS REAL ) AS col2, 89 * + 64 FROM tab1 AS cor0
----
NULL
5696
NULL
5696
NULL
5696

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + SUM( ALL - + 66 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3798
SELECT + SUM ( ALL - + 66 ) FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - ( + - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - ( + - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT col0 + 86 FROM tab2
----
132
150
161

query I rowsort
SELECT DISTINCT + - 4 + 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

query I rowsort
SELECT + 42 + - 71 FROM tab2
----
-29
-29
-29

query I rowsort
SELECT ALL + col2 * + + col1 + col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL - COUNT( * ) * COUNT( * ) + - - MAX( + col0 ) - - 30 AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - - MAX ( + col0 ) - - 30 AS col1 FROM tab2 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - ( - col2 )
----

query I rowsort
SELECT col1 / + 36 / 64 AS col0 FROM tab1 AS cor0 WHERE col2 >= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, + 0 AS col2 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT 49 - + - 60 AS col0 FROM tab0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT - 53 * - 65 + + - col0 AS col1 FROM tab2 WHERE NOT - - col2 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 53 * - 65 + + - col0 AS col1 FROM tab2 WHERE NOT - - col2 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT - col2 FROM tab2 WHERE CAST( + + col1 AS SIGNED ) * - - col1 IN ( - ( - col0 ), + col2 )
----

skipif mysql # not compatible
query I rowsort label-3811
SELECT - col2 FROM tab2 WHERE CAST ( + + col1 AS INTEGER ) * - - col1 IN ( - ( - col0 ), + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - col0 + - - col1 * + col0 * col1, 45 col0 FROM tab0
----
-1
45
38259
45
98319
45

query I rowsort
SELECT - 82 - col2 FROM tab1
----
-141
-150
-178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 51, col1 col1 FROM tab0
----
51
1
51
21
51
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT col1 + - 10 * col2 DIV + + col2 FROM tab1
----
-5
37
4

skipif mysql # not compatible
query I rowsort label-3815
SELECT col1 + - 10 * col2 / + + col2 FROM tab1
----
-5
37
4

query I rowsort
SELECT - 49 * col0 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT + MAX( ALL + 92 ) * + + 97 AS col0 FROM tab0 AS cor0
----
8924

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + MAX ( ALL + 92 ) * + + 97 AS col0 FROM tab0 AS cor0
----
8924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL + - MAX( - + 66 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + - MAX ( - + 66 ) FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL SUM( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL SUM ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3821
SELECT ALL - 53 AS col1, col2 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-53
NULL
-53
NULL
-53
NULL

skipif mysql # not compatible
query II rowsort label-3821
SELECT ALL - 53 AS col1, col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-53
NULL
-53
NULL
-53
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab1 AS cor0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT COUNT( * ) + + 40 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col1 * - - 18
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT COUNT ( * ) + + 40 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col1 * - - 18
----
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT - 82 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT DISTINCT + MAX( - 3 ) AS col2, - 31 AS col1 FROM tab2 AS cor0
----
-3
-31

skipif mysql # not compatible
query II rowsort label-3827
SELECT DISTINCT + MAX ( - 3 ) AS col2, - 31 AS col1 FROM tab2 AS cor0
----
-3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - + MIN( + - col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3828
SELECT - + MIN ( + - col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT col1 DIV - col2 * 7 DIV 46 * + col0 * col2 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3829
SELECT col1 / - col2 * 7 / 46 * + col0 * col2 col1 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT 88 + + 99 AS col1, + ( - col1 ) AS col2 FROM tab2
----
187
-51
187
-67
187
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT ( - 38 ) + + COUNT( + 68 ) FROM tab2 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT ( - 38 ) + + COUNT ( + 68 ) FROM tab2 cor0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3832
SELECT CAST( COUNT( * ) AS SIGNED ) * - - ( COUNT( * ) ) DIV + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3832
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - - ( COUNT ( * ) ) / + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3834
SELECT - 40 + - + col1 DIV + + col0, + 74 AS col2 FROM tab0 AS cor0
----
-40
74
-40
74
-45
74

skipif mysql # not compatible
query II rowsort label-3834
SELECT - 40 + - + col1 / + + col0, + 74 AS col2 FROM tab0 AS cor0
----
-40
74
-40
74
-45
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3835
SELECT + + COUNT( - CAST( NULL AS SIGNED ) ) + - SUM( ALL - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3835
SELECT + + COUNT ( - CAST ( NULL AS INTEGER ) ) + - SUM ( ALL - col1 ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) + - 16 > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0 WHERE ( - col2 ) + - 16 > + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + 24 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 24 IS NULL
----
0

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE 33 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT + 21 - + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + 21 - + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT + + col1 + - + ( - col2 ) * + - 11 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT + + col1 + - + ( - col2 ) * + - 11 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 42 + - col2 + - 27 FROM tab1
----
-44
-53
-81

query I rowsort
SELECT - ( + + 55 ) FROM tab2
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - ( MAX( + col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3843
SELECT - ( MAX ( + col0 ) ) FROM tab0
----
-97

query I rowsort
SELECT ( col2 ) * + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3845
SELECT + CAST( NULL AS SIGNED ) * col2 col0, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3845
SELECT + CAST ( NULL AS INTEGER ) * col2 col0, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT - - 44 * - col0 * + - col1 FROM tab0 cor0
----
4268
53460
80388

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <= + col0 + - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT COUNT( - + 94 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3848
SELECT COUNT ( - + 94 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT + MIN( + + ( + + 18 ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-3849
SELECT + MIN ( + + ( + + 18 ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - - 12 * + - COUNT( * ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3850
SELECT - - 12 * + - COUNT ( * ) FROM tab2 AS cor0
----
-36

query II rowsort
SELECT DISTINCT col0, ( + col1 ) FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT DISTINCT - 11 AS col2, col1 FROM tab1
----
-11
14
-11
47
-11
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL - COUNT( * ) + + 63 AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - COUNT ( * ) + + 63 AS col0 FROM tab0
----
60

query II rowsort
SELECT 22 AS col2, ( + col0 ) FROM tab1
----
22
51
22
85
22
91

query III rowsort
SELECT * FROM tab0 WHERE + col2 = - 8
----

query I rowsort
SELECT ALL - col0 + - - col2 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT ALL 11 DIV + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL 11 / + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT ALL + + 16 * - + CAST( - 5 AS SIGNED ) * + col0 + col1 - + col0 AS col0, col0 col2 FROM tab2 AS cor0
----
3685
46
5133
64
5992
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3858
SELECT ALL + + 16 * - + CAST ( - 5 AS INTEGER ) * + col0 + col1 - + col0 AS col0, col0 col2 FROM tab2 AS cor0
----
3685
46
5133
64
5992
75

query I rowsort
SELECT - col2 * 20 + - 18 FROM tab1 AS cor0
----
-1198
-1378
-1938

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT + 74 * 71 + - + COUNT( * ) AS col0, 14 FROM tab1
----
5251
14

skipif mysql # not compatible
query II rowsort label-3860
SELECT + 74 * 71 + - + COUNT ( * ) AS col0, 14 FROM tab1
----
5251
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL 27 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL 27 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3864
SELECT 20 DIV - - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3864
SELECT 20 / - - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * + - ( - col0 ) * 53 FROM tab2 AS cor0
----
135680
230550
56074

query I rowsort
SELECT - col1 + - ( col2 ) FROM tab0 AS cor0 WHERE - 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT + + AVG ( DISTINCT - 44 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + + AVG ( DISTINCT - 44 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 53 - ( + - 50 ) + - 8 + col0 AS col2 FROM tab0 cor0
----
110
182
192

onlyif mysql # DIV for integer division: 
query II rowsort label-3869
SELECT col1 AS col2, 13 DIV - + col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3869
SELECT col1 AS col2, 13 / - + col0 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT ALL col0 * - + 1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + 25 * + 39 / 44 AS col1 FROM tab2 WHERE NOT - + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT - col2 * - CAST( + col0 AS SIGNED ) col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3872
SELECT DISTINCT - col2 * - CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN 47 * col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT 89 * + COUNT( ALL + col1 ) AS col2 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT 89 * + COUNT ( ALL + col1 ) AS col2 FROM tab2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT 57 * - 3 + SUM( ALL - + col2 ) FROM tab0 AS cor0
----
-327

skipif mysql # not compatible
query I rowsort label-3875
SELECT 57 * - 3 + SUM ( ALL - + col2 ) FROM tab0 AS cor0
----
-327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT DISTINCT - COUNT( * ) DIV + 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - COUNT ( * ) / + 91 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT ALL + - 77 DIV + 43 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + - 77 / + 43 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT ( 35 ) + col0 DIV col1 FROM tab2
----
35
36

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT ( 35 ) + col0 / col1 FROM tab2
----
35
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND + col1
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 WHERE + 94 NOT BETWEEN 62 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 94 NOT BETWEEN 62 AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3882
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) NOT BETWEEN ( CAST( col1 AS SIGNED ) + col2 ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3882
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) NOT BETWEEN ( CAST ( col1 AS INTEGER ) + col2 ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT CAST( + 0 AS SIGNED ) + col2 * 96 AS col2 FROM tab2
----
2208
3840
5568

skipif mysql # not compatible
query I rowsort label-3883
SELECT CAST ( + 0 AS INTEGER ) + col2 * 96 AS col2 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT 86 * - 94 + 3 FROM tab1
----
-8081
-8081
-8081

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE col2 - 94 * col0 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE col2 - 94 * col0 IN ( col0 )
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - 53 = 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 35 * 1 col2 FROM tab0
----
134
45
82

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE + col0 / - col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT 22 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT 22 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 * - col1 FROM tab1 WHERE NOT ( + ( col0 ) ) = ( - col1 ) + 8
----
-1232
-4136
-440

query I rowsort
SELECT - 9 + col2 FROM tab0
----
1
38
90

query I rowsort
SELECT DISTINCT 20 * - col2 AS col2 FROM tab2
----
-1160
-460
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT MIN( ALL col0 ) FROM tab0 WHERE NOT - 43 <= 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT MIN ( ALL col0 ) FROM tab0 WHERE NOT - 43 <= 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT COUNT( * ) + - 79 AS col1 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-3895
SELECT COUNT ( * ) + - 79 AS col1 FROM tab0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT MAX( + col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3896
SELECT MAX ( + col0 ) col0 FROM tab1
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3897
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + CAST ( NULL AS REAL ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + ( + MIN( + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3899
SELECT + ( + MIN ( + col2 ) ) FROM tab0
----
10

query I rowsort
SELECT col1 * col2 + + col0 AS col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL COUNT( DISTINCT - 71 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL COUNT ( DISTINCT - 71 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - ( - ( - COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3902
SELECT - ( - ( - COUNT ( * ) ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT COUNT( col2 ) DIV + MAX( ALL 25 + - col2 ) - + 38 * - MAX( DISTINCT - ( - col1 ) ) AS col2 FROM tab1
----
1786

skipif mysql # not compatible
query I rowsort label-3903
SELECT COUNT ( col2 ) / + MAX ( ALL 25 + - col2 ) - + 38 * - MAX ( DISTINCT - ( - col1 ) ) AS col2 FROM tab1
----
1786

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT 0 - col1 DIV - 52 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3904
SELECT 0 - col1 / - 52 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL + 97 * + 67 + + col1 AS col0 FROM tab0
----
6500
6520
6580

query I rowsort
SELECT DISTINCT + 13 + 67 FROM tab1
----
80

query I rowsort
SELECT 74 * 9 FROM tab0
----
666
666
666

query I rowsort
SELECT + col0 * col1 AS col0 FROM tab1 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 12 * + COUNT( * ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3909
SELECT 12 * + COUNT ( * ) AS col1 FROM tab1
----
36

query I rowsort
SELECT ALL col1 * col1 FROM tab0 WHERE NULL IS NULL
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT ALL - 15 + - SUM( ALL + 67 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - 15 + - SUM ( ALL + 67 ) / - COUNT ( * ) FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( ALL col0 ) + 91 AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( ALL col0 ) + 91 AS col2 FROM tab2 AS cor0
----
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT col1 DIV + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT col1 / + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 8 col2 FROM tab1 AS cor0
----
-59
-93
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - MIN( DISTINCT 6 ) col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3916
SELECT - MIN ( DISTINCT 6 ) col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - col2 - - 15 FROM tab2 AS cor0
----
-25
-43
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 - + col1 col1 FROM tab2
----
10
20
36

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT DISTINCT + col1 + + 98 FROM tab1 WHERE - 20 - col2 >= ( - ( CAST( NULL AS SIGNED ) ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + col1 + + 98 FROM tab1 WHERE - 20 - col2 >= ( - ( CAST ( NULL AS INTEGER ) ) * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT DISTINCT + 93 - 72 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + 93 - 72 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ( + 54 ) * - 99 AS col1 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL - 74 + COUNT( * ) * 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
304

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 74 + COUNT ( * ) * 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT - COUNT( ALL 34 ) - - 95 AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - COUNT ( ALL 34 ) - - 95 AS col0 FROM tab2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL - 36 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT - CAST( 52 AS SIGNED ) + 41 / col2 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - 36 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - CAST ( 52 AS INTEGER ) + 41 / col2 NOT IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT MAX( ( - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT MAX ( ( - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT - 86 DIV - COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 86 / - COUNT ( * ) FROM tab0 AS cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL + SUM( DISTINCT 6 ) AS col0 FROM tab0 AS cor0 WHERE 21 + - 71 NOT IN ( col1 )
----
6

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + SUM ( DISTINCT 6 ) AS col0 FROM tab0 AS cor0 WHERE 21 + - 71 NOT IN ( col1 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3930
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 >= ( NULL )
----

query I rowsort
SELECT 60 * col0 AS col1 FROM tab2 AS cor0
----
2760
3840
4500

query I rowsort
SELECT col1 * - - col1 * 88 AS col0 FROM tab1
----
17248
194392
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL + COUNT( ALL col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL + COUNT ( ALL col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL col2 + - 59 FROM tab2 WHERE + col1 IS NOT NULL
----
-1
-19
-36

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND col2 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 37 * + ( + col0 ) AS col1 FROM tab0
----
-3219
-3589
-555

query I rowsort
SELECT DISTINCT + - 30 AS col1 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - - 37 AS col2 FROM tab0 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col2 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - MAX( ALL - 56 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
56

skipif mysql # not compatible
query I rowsort label-3943
SELECT - MAX ( ALL - 56 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
56

query I rowsort
SELECT ALL 64 * - col1 + col0 FROM tab0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT 61 FROM tab2 WHERE NOT - col1 * 21 BETWEEN - col1 AND ( NULL )
----
61
61
61

query I rowsort
SELECT - 67 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 84 AS col0, - ( - - 94 ) col1 FROM tab1
----
84
-94
84
-94
84
-94

query I rowsort
SELECT + col2 + - col2 * - - col0 * - col0 FROM tab0
----
10622
75700
931590

query I rowsort
SELECT DISTINCT - ( - 47 ) + - + col0 FROM tab0 AS cor0
----
-40
-50
32

query I rowsort
SELECT + ( col1 ) + - col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 68 + - + 92 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT col1 * - CAST( + col0 AS SIGNED ) + + 69 FROM tab1 AS cor0
----
-356
-4208
-645

skipif mysql # not compatible
query I rowsort label-3952
SELECT col1 * - CAST ( + col0 AS INTEGER ) + + 69 FROM tab1 AS cor0
----
-356
-4208
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT + CAST( NULL AS SIGNED ) + + ( + col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT + CAST ( NULL AS INTEGER ) + + ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 + col1 + + col0 AS col0 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT col1 DIV col2 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT col1 / col2 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - ( MAX( - 30 ) ) AS col2 FROM tab2 cor0 WHERE 0 - col2 * + col2 < col2
----
30

skipif mysql # not compatible
query I rowsort label-3956
SELECT - ( MAX ( - 30 ) ) AS col2 FROM tab2 cor0 WHERE 0 - col2 * + col2 < col2
----
30

query II rowsort
SELECT - 83, - col2 AS col1 FROM tab2 AS cor0
----
-83
-23
-83
-40
-83
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + 61 * - - COUNT( * ) + - - 30 - + 44 * COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3958
SELECT + 61 * - - COUNT ( * ) + - - 30 - + 44 * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-183

query I rowsort
SELECT DISTINCT + ( + - col0 ) + ( - col0 ) - 56 * + col2 FROM tab0 cor0
----
-2662
-5738
-734

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( - 9 )
----

query I rowsort
SELECT col0 * 36 FROM tab2
----
1656
2304
2700

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + 60 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + + col0 * col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT ALL + 64 * 50 DIV - + col1 FROM tab2
----
-41
-47
-62

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + 64 * 50 / - + col1 FROM tab2
----
-41
-47
-62

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + ( + col0 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3968
SELECT - COUNT( * ) DIV COUNT( * ) AS col2, 26 FROM tab0
----
-1
26

skipif mysql # not compatible
query II rowsort label-3968
SELECT - COUNT ( * ) / COUNT ( * ) AS col2, 26 FROM tab0
----
-1
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT DISTINCT col1 * + col1 FROM tab1 WHERE + 93 * + + CAST( NULL AS SIGNED ) * - ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT col1 * + col1 FROM tab1 WHERE + 93 * + + CAST ( NULL AS INTEGER ) * - ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT COUNT( * ) * - COUNT( * ) - - + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3970
SELECT COUNT ( * ) * - COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT col0 - + - 18 * - col0 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT DISTINCT ( - 81 ) AS col2 FROM tab1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3973
SELECT * FROM tab2 AS cor0 WHERE + col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3973
SELECT * FROM tab2 AS cor0 WHERE + col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 72 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
72

query I rowsort
SELECT DISTINCT + col1 * + - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NOT + + col2 IS NULL )
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE + - col1 BETWEEN ( + - col0 * + col2 + + 59 ) AND NULL
----

query I rowsort
SELECT - 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT - + 12 * + - 97 + - 40 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 25 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT 77 FROM tab0 AS cor0 WHERE + col2 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 77 FROM tab0 AS cor0 WHERE + col2 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - - MIN( - - 76 ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - - MIN ( - - 76 ) AS col2 FROM tab0 AS cor0
----
76

query I rowsort
SELECT + ( + + 3 ) AS col0 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3985
SELECT DISTINCT - 19 + col0 FROM tab2 AS cor0 WHERE NULL >= - 12 + + CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - 19 + col0 FROM tab2 AS cor0 WHERE NULL >= - 12 + + CAST ( NULL AS REAL ) + + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> - + col2 * 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT ALL - COUNT( * ) col0, - 63 * + 66 AS col1 FROM tab0
----
-3
-4158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3987
SELECT ALL - COUNT ( * ) col0, - 63 * + 66 AS col1 FROM tab0
----
-3
-4158

query II rowsort
SELECT ALL col2 AS col2, 77 - - + col0 + + 72 * - + col1 FROM tab0
----
10
-1348
47
-5740
99
102

query II rowsort
SELECT DISTINCT + col2 AS col2, - 90 FROM tab2
----
23
-90
40
-90
58
-90

query II rowsort
SELECT + col2 AS col0, 33 AS col2 FROM tab2
----
23
33
40
33
58
33

query II rowsort
SELECT - col1 AS col1, 77 * col1 FROM tab0
----
-1
77
-21
1617
-81
6237

query I rowsort
SELECT ALL - 62 - - 61 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - col1 + - col1 * - col0 + + - col1 FROM tab2 AS cor0
----
2244
4774
4891

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + - ( + - col2 ) BETWEEN + + 50 AND - col2 * + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - MAX( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3995
SELECT - MAX ( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
10

query I rowsort
SELECT DISTINCT col0 * + 34 FROM tab2 AS cor0
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT 86 * SUM( ALL - col1 ) * - 92 AS col0 FROM tab0
----
814936

skipif mysql # not compatible
query I rowsort label-3997
SELECT 86 * SUM ( ALL - col1 ) * - 92 AS col0 FROM tab0
----
814936

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT - 34 + SUM( + - col0 ) AS col2 FROM tab0 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - 34 + SUM ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-233

query I rowsort
SELECT DISTINCT - - 75 + 83 AS col2 FROM tab0 cor0
----
158

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE - 42 > ( ( + - 40 ) )
----

query I rowsort
SELECT DISTINCT - 75 + - 70 * 69 * col2 AS col2 FROM tab2 cor0
----
-111165
-193275
-280215

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 IN ( col1, col1 )
----

query I rowsort
SELECT - - col0 + - - col2 + col0 AS col0 FROM tab0 AS cor0
----
184
293
77

query I rowsort
SELECT ALL - 31 - - - col0 + + 12 FROM tab1 AS cor0
----
-104
-110
-70

query I rowsort
SELECT + + ( + - 18 ) + + col1 * + col2 AS col1 FROM tab1 cor0
----
1326
277
3178

query I rowsort
SELECT 83 + - 84 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col1 + - 6 FROM tab0
----
-27
-7
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - 70 + SUM( - 4 ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - 70 + SUM ( - 4 ) AS col0 FROM tab0
----
-82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + - 66 * + 45 ) NOT IN ( 70 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 29 + - col2 + + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 71 IS NULL
----

query I rowsort
SELECT - col1 * col1 FROM tab2 WHERE + - col1 * + ( + col0 ) * + col2 IN ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT MAX( DISTINCT + 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT MAX ( DISTINCT + 80 ) FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT - 67 + - col1 FROM tab1
----
-114
-72
-81

query II rowsort
SELECT ALL 87 AS col1, + col1 + - ( - - col0 ) FROM tab1
----
87
-37
87
-44
87
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 82 * + + col2 + col2 * ( - col0 ) col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + col0 + - 24 / + - 38 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT col1 DIV - 75 + - 92 + + ( + + col2 ) FROM tab0 AS cor0
----
-46
-82
7

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT col1 / - 75 + - 92 + + ( + + col2 ) FROM tab0 AS cor0
----
-46
-82
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT ALL - - 4 + + col2 + - 2 - + 18 + 66 / - - CAST( - col1 AS SIGNED ) * col0 - + col0 / + 5 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - - 4 + + col2 + - 2 - + 18 + 66 / - - CAST ( - col1 AS INTEGER ) * col0 - + col0 / + 5 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4021
SELECT DISTINCT COUNT( * ) * + + 80 * + - CAST( NULL AS DECIMAL ) + - - 57 / - + MAX( ALL + col1 ) + - 22 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT COUNT ( * ) * + + 80 * + - CAST ( NULL AS REAL ) + - - 57 / - + MAX ( ALL + col1 ) + - 22 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 34 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT - 36 * + - 75 + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
2709

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT - 36 * + - 75 + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
2709

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 28 * 9 + + + col0 - + col2 < 87 * + - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 17 AS col0 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT DISTINCT + col0 DIV col1 + col2 FROM tab0 AS cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + col0 / col1 + col2 FROM tab0 AS cor0
----
14
196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT 50 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
50

skipif mysql # not compatible
query I rowsort label-4027
SELECT 50 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT ALL + + ( 23 ) DIV 49 DIV + col2 * + - 98 + + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + + ( 23 ) / 49 / + col2 * + - 98 + + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab0
----
63

query II rowsort
SELECT ALL col2 AS col1, - 22 AS col0 FROM tab0
----
10
-22
47
-22
99
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT + 61 AS col2, - MIN( + col1 ) AS col0 FROM tab1
----
61
-5

skipif mysql # not compatible
query II rowsort label-4033
SELECT + 61 AS col2, - MIN ( + col1 ) AS col0 FROM tab1
----
61
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + COUNT( - + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4034
SELECT + COUNT ( - + col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 * + ( + col2 ) + + - col2 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

query I rowsort
SELECT DISTINCT col2 + + ( + col2 ) + + 61 FROM tab2 cor0
----
107
141
177

query I rowsort
SELECT 75 + 83 FROM tab0
----
158
158
158

query I rowsort
SELECT DISTINCT 91 + + - col2 FROM tab0
----
-8
44
81

query I rowsort
SELECT - 33 + col2 - + col0 FROM tab1 AS cor0
----
-56
-59
12

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab2 cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT COUNT( DISTINCT + 14 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4041
SELECT COUNT ( DISTINCT + 14 ) col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT + - ( - 14 ), col0 FROM tab0 AS cor0 WHERE 55 IS NOT NULL
----
14
15
14
87
14
97

query I rowsort
SELECT ALL + 53 - - 28 * - col0 - col2 AS col2 FROM tab2 AS cor0
----
-1258
-1779
-2105

query I rowsort
SELECT DISTINCT - 51 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - + col2 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL + - COUNT( * ) * 37 * 28 AS col0 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + - COUNT ( * ) * 37 * 28 AS col0 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) < NULL
----
0

query I rowsort
SELECT - col1 - - col0 AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - COUNT( * ) - - 88 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4048
SELECT - COUNT ( * ) - - 88 FROM tab0
----
85

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( - 92 ) IS NOT NULL
----

query I rowsort
SELECT + 13 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL >= col2 + + + col2 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL >= col2 + + + col2 + + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT 65 DIV + col0 col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT 65 / + col0 col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + + col1 * + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL + CAST( - + COUNT( ALL 62 ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL + CAST ( - + COUNT ( ALL 62 ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 6 * + 61 * - + 52 FROM tab2 cor0
----
-19032
-19032
-19032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT ALL - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 96 * + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4059
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + 62, - 28 + - CAST( NULL AS SIGNED ) - + col0 )
----

skipif mysql # not compatible
query III rowsort label-4059
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + 62, - 28 + - CAST ( NULL AS INTEGER ) - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT + - 20 DIV col1 FROM tab0 AS cor0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT + - 20 / col1 FROM tab0 AS cor0
----
-20
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT - 95 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 95 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0, 13 AS col1 FROM tab2 AS cor0
----
46
13
64
13
75
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col1 * - ( 98 ) * + col0 + - - col1 FROM tab0
----
119151
179067
9507

query I rowsort
SELECT ( 96 ) AS col0 FROM tab0
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4066
SELECT + 89 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4066
SELECT + 89 / col0 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 BETWEEN + + col1 AND NULL
----

query II rowsort
SELECT + 7 + - + col0, - 86 * + ( + 73 ) + + 37 FROM tab1 WHERE NOT ( + col2 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col1 ) * + - 0 + + + ( - + col2 ) > - ( + col1 ) / col0 * - - col1 * + col2 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 60 FROM tab1 WHERE NOT NULL IS NOT NULL
----
60

query I rowsort
SELECT DISTINCT - col1 * + + col1 AS col2 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN + 88 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - ( + col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4075
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) BETWEEN - col2 AND + + 82 * - 96
----

skipif mysql # not compatible
query III rowsort label-4075
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) BETWEEN - col2 AND + + 82 * - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT ALL + col1, - col2 + + - col2 FROM tab0
----
1
-198
21
-20
81
-94

query I rowsort
SELECT ALL - col1 * + ( col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
-420
-6480
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT - SUM( DISTINCT + 17 ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - SUM ( DISTINCT + 17 ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL + - 4 FROM tab2 AS cor0 WHERE ( col0 ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT DISTINCT - 5 + 85 DIV + col2 AS col0 FROM tab2 cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - 5 + 85 / + col2 AS col0 FROM tab2 cor0
----
-2
-3
-4

query I rowsort
SELECT - + ( - col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - col0 + + - 70 AS col1 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT ALL + col0 * + 43 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
2097
3596
3845

query I rowsort
SELECT DISTINCT + - 88 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-41
-74
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * 78 + 28 col1 FROM tab0 AS cor0
----
-5042

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - SUM( + - 58 ) + 72 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-4087
SELECT - SUM ( + - 58 ) + 72 FROM tab0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + + 23 + + - col2 * + + col1 FROM tab2
----
-1104
-2993
-3788

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT - ( - COUNT( * ) ) * + + SUM( DISTINCT col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT - ( - COUNT ( * ) ) * + + SUM ( DISTINCT col0 ) FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT DISTINCT COUNT( * ) * + 68 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT COUNT ( * ) * + 68 FROM tab1
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * + col2 col0 FROM tab0
----
-3525
-7425
-750

query II rowsort
SELECT ALL - col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4094
SELECT * FROM tab0 WHERE CAST( + 48 AS DECIMAL ) IN ( col1 * 64 + - ( - - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4094
SELECT * FROM tab0 WHERE CAST ( + 48 AS REAL ) IN ( col1 * 64 + - ( - - col1 ) )
----

query I rowsort
SELECT DISTINCT - col2 * - 96 AS col2 FROM tab2
----
2208
3840
5568

query II rowsort
SELECT ALL col2 AS col2, + col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT + SUM( - ( + + CAST( - 66 AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + SUM ( - ( + + CAST ( - 66 AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 BETWEEN NULL AND NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL <> + col1 * + 81 )
----

query I rowsort
SELECT 49 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - ( col1 ) NOT BETWEEN + col0 / + 59 AND - 87 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT - col1 DIV ( col2 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4100
SELECT - col1 / ( col2 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4101
SELECT 88 DIV - MIN( ALL col0 ) - ( 63 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4101
SELECT 88 / - MIN ( ALL col0 ) - ( 63 ) FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT CAST( + + ( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4102
SELECT CAST ( + + ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 52 * col2 + - 73 FROM tab1 AS cor0
----
2995
3463
4919

query II rowsort
SELECT - col0 * col2, col2 AS col0 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) * + 11 FROM tab2
----
3
33

skipif mysql # not compatible
query II rowsort label-4105
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) * + 11 FROM tab2
----
3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT MIN( DISTINCT + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT MIN ( DISTINCT + col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 92 * + 35 * - 77 AS col0 FROM tab1
----
247940

query I rowsort
SELECT DISTINCT - col2 * 95 AS col0 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT + 35 * + - 74 FROM tab0, tab1 AS cor0
----
9 values hashing to e0c1179893717316496d4a2bd392f9aa

query I rowsort
SELECT ALL col1 * + 86 FROM tab0
----
1806
6966
86

query I rowsort
SELECT DISTINCT + 66 * + - 95 FROM tab2
----
-6270

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT ALL 52 DIV - 7 AS col1 FROM tab1
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL 52 / - 7 AS col1 FROM tab1
----
-7
-7
-7

query II rowsort
SELECT DISTINCT - col0 + col2 + + 18 AS col1, col2 AS col1 FROM tab0
----
-59
10
20
99
50
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT - 19 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-4114
SELECT - 19 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-19
3

query I rowsort
SELECT ALL + + 44 + - 98 - col2 AS col1 FROM tab2 AS cor0
----
-112
-77
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT ( CAST( ( + 6 ) AS SIGNED ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + + 72
----

skipif mysql # not compatible
query I rowsort label-4116
SELECT ( CAST ( ( + 6 ) AS INTEGER ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + + 72
----

query I rowsort
SELECT - col1 + - 73 AS col2 FROM tab0
----
-154
-74
-94

query II rowsort
SELECT 47 * - col1, col2 FROM tab0
----
-3807
47
-47
99
-987
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + MAX( col1 ) * - 37 FROM tab2 AS cor0
----
-2849

skipif mysql # not compatible
query I rowsort label-4119
SELECT + MAX ( col1 ) * - 37 FROM tab2 AS cor0
----
-2849

query I rowsort
SELECT DISTINCT col2 * - ( + 72 ) + + 66 * - + ( - 91 ) + 74 FROM tab0 AS cor0
----
-1048
2696
5360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4121
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 99 * - 78 * + - 42 * col2 FROM tab0 AS cor0
----
-15243228
-32108076
-3243240

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + + col1 * + - 62 * col1 BETWEEN + col0 AND + col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4124
SELECT ALL - col1 - + CAST( NULL AS SIGNED ), + 7 col1 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4124
SELECT ALL - col1 - + CAST ( NULL AS INTEGER ), + 7 col1 FROM tab1 AS cor0
----
NULL
7
NULL
7
NULL
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT - COUNT( * ) + MIN( + col1 ) - - AVG ( col0 ) * + COUNT( - col1 ) col0, - SUM( + col1 ) col2 FROM tab1 AS cor0 WHERE - col1 <= NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4125
SELECT - COUNT ( * ) + MIN ( + col1 ) - - AVG ( col0 ) * + COUNT ( - col1 ) col0, - SUM ( + col1 ) col2 FROM tab1 AS cor0 WHERE - col1 <= NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 59 - col1 AS col1 FROM tab0
----
-140
-60
-80

query II rowsort
SELECT 35 AS col1, 22 - - col0 FROM tab2
----
35
68
35
86
35
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + MAX ( - + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - SUM( DISTINCT + + col1 ) * + COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4129
SELECT - SUM ( DISTINCT + + col1 ) * + COUNT ( * ) FROM tab1
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT 59 DIV - - col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4130
SELECT 59 / - - col2 AS col0 FROM tab0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - + MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4131
SELECT - + MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IN ( - col0 - - col0, 39 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4132
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IN ( - col0 - - col0, 39 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT DISTINCT - + 23 AS col1, - 7 * COUNT( * ) * + SUM( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
-23
-3885

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4133
SELECT DISTINCT - + 23 AS col1, - 7 * COUNT ( * ) * + SUM ( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
-23
-3885

query I rowsort
SELECT - col2 * - + 20 AS col0 FROM tab2
----
1160
460
800

query I rowsort
SELECT ALL col2 * + - col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4136
SELECT - - col2 / 84 / ( CAST( NULL AS SIGNED ) ) + 10, - col0 FROM tab2 WHERE NOT col0 * col2 + + + 11 - - - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4136
SELECT - - col2 / 84 / ( CAST ( NULL AS INTEGER ) ) + 10, - col0 FROM tab2 WHERE NOT col0 * col2 + + + 11 - - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + + MAX( DISTINCT + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4137
SELECT + + MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 col1 FROM tab1 cor0
----
-98
-98
-98

query I rowsort
SELECT ALL col0 + + col1 * - col0 AS col1 FROM tab2 cor0
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - 11
----

query I rowsort
SELECT DISTINCT + col1 * + - col2 + + 74 AS col0 FROM tab2 AS cor0
----
-1099
-3006
-3812

query I rowsort
SELECT DISTINCT 56 + - + col2 + + col2 + - 21 * + col0 * ( 78 ) FROM tab1 AS cor0
----
-139174
-149002
-83482

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 26 <= NULL
----

query I rowsort
SELECT + ( + col1 ) * - 42 AS col1 FROM tab1 AS cor0
----
-1974
-210
-588

query I rowsort
SELECT ALL 63 * col2 FROM tab0 AS cor0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT DISTINCT 62 * - 66 AS col2, - COUNT( * ) * + + 76 AS col1 FROM tab2
----
-4092
-228

skipif mysql # not compatible
query II rowsort label-4146
SELECT DISTINCT 62 * - 66 AS col2, - COUNT ( * ) * + + 76 AS col1 FROM tab2
----
-4092
-228

query I rowsort
SELECT DISTINCT ( - - ( + col0 ) ) + 78 AS col1 FROM tab0
----
165
175
93

query I rowsort
SELECT + 38 + + + col0 FROM tab0 WHERE NULL IS NULL
----
125
135
53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 25 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 69 * col1 + col2 * - col0 FROM tab0
----
-9534
4884
579

query I rowsort
SELECT DISTINCT + 71 + + 81 FROM tab0 AS cor0
----
152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + - 52 / - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT + ( + col1 ) - + col2 - CAST( - 29 AS SIGNED ) FROM tab2
----
38
57
66

skipif mysql # not compatible
query I rowsort label-4153
SELECT + ( + col1 ) - + col2 - CAST ( - 29 AS INTEGER ) FROM tab2
----
38
57
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT DISTINCT SUM( DISTINCT - CAST( col0 AS SIGNED ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT SUM ( DISTINCT - CAST ( col0 AS INTEGER ) ) FROM tab0
----
-199

query I rowsort
SELECT ALL col0 * col2 + + - ( - col0 ) + + 56 FROM tab1 AS cor0
----
5003
5156
6335

query I rowsort
SELECT ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + - 78 AS col2 FROM tab1 AS cor0
----
-125
-83
-92

query I rowsort
SELECT - 97 AS col2 FROM tab2 AS cor0 WHERE col2 * - ( - col1 ) + - 27 <= - - col1 * + col0 + col2 + + 73 * - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - 51 + + - COUNT( * ) AS col2 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4159
SELECT - 51 + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + COUNT( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4161
SELECT + COUNT ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT ALL - 88 DIV + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 88 / + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT DISTINCT + - 93 DIV + + col0 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + - 93 / + + col0 FROM tab2 cor0
----
-1
-2

query II rowsort
SELECT ALL - 81, - 2 AS col1 FROM tab1 AS cor0
----
-81
-2
-81
-2
-81
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - 36 + 29 * - col2 <= + col0
----
15
81
47
97
1
99

query I rowsort
SELECT + 25 * + col1 * 31 FROM tab0 AS cor0
----
16275
62775
775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4168
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col1 <= ( - 8 + - + CAST( - 66 AS SIGNED ) + CAST( - ( col1 ) AS SIGNED ) - - 4 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-4168
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col1 <= ( - 8 + - + CAST ( - 66 AS INTEGER ) + CAST ( - ( col1 ) AS INTEGER ) - - 4 )
----
15
81
47
87
21
10

query I rowsort
SELECT + ( + col0 ) * + col2 * - + 65 + + + col2 + - 67 FROM tab2
----
-166427
-282759
-68814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 cor0 WHERE col2 * - 68 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - 68 AS col2 FROM tab0 AS cor0
----
1428
5508
68

query I rowsort
SELECT - - col2 + - + 50 AS col1 FROM tab0 AS cor0
----
-3
-40
49

query I rowsort
SELECT col2 + - - 70 AS col0 FROM tab1 cor0
----
129
138
166

query I rowsort
SELECT ALL - 68 * - + col2 FROM tab2 AS cor0
----
1564
2720
3944

query I rowsort
SELECT ALL + col0 * - col0 * - col2 + 47 AS col1 FROM tab0 AS cor0
----
10622
75737
931538

query I rowsort
SELECT col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - 74 * - + 32 AS col1 FROM tab1 AS cor0
----
2368

query I rowsort
SELECT DISTINCT - - 57 * 77 AS col1 FROM tab1 AS cor0
----
4389

query I rowsort
SELECT + 36 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col2 AS col0, + col0 * + 68 + + 71 FROM tab0
----
-10
5987
-47
1091
-99
6667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT ALL - col2 * + - 78 DIV - + 39 + + col1 FROM tab1
----
-113
-178
-89

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL - col2 * + - 78 / - + 39 + + col1 FROM tab1
----
-113
-178
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT 12 * - COUNT( * ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4183
SELECT 12 * - COUNT ( * ) AS col1 FROM tab0
----
-36

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col1 * + 88 IS NULL
----

query II rowsort
SELECT ALL col1, - col2 + col2 FROM tab1
----
14
0
47
0
5
0

query II rowsort
SELECT 25, 23 / + col1 FROM tab1 WHERE NULL = 99
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4187
SELECT ALL - 99 * - 51 * - COUNT( * ) + - MAX( - - CAST( + col0 AS SIGNED ) ), - COUNT( * ) col0 FROM tab0
----
-15244
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4187
SELECT ALL - 99 * - 51 * - COUNT ( * ) + - MAX ( - - CAST ( + col0 AS INTEGER ) ), - COUNT ( * ) col0 FROM tab0
----
-15244
-3

query I rowsort
SELECT + col2 + - 87 * - + 78 + col2 + col2 FROM tab1 cor0
----
6963
6990
7074

query I rowsort
SELECT - - col2 + - + col0 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT col0 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT col0 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL COUNT( + - col2 ) * - 30 AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL COUNT ( + - col2 ) * - 30 AS col0 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT + 70 * 39 - SUM( ALL - 30 ) FROM tab2 AS cor0
----
2820

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + 70 * 39 - SUM ( ALL - 30 ) FROM tab2 AS cor0
----
2820

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col0 * - - col0 NOT BETWEEN - 76 AND ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT + - COUNT( * ) col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4196
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT + COUNT( * ) col2, + 36 FROM tab0
----
3
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4197
SELECT + COUNT ( * ) col2, + 36 FROM tab0
----
3
36

query I rowsort
SELECT + ( 9 ) AS col0 FROM tab1 WHERE NOT - 17 IS NOT NULL
----

query I rowsort
SELECT - ( + - 52 ) FROM tab2
----
52
52
52

query I rowsort
SELECT - ( + 66 ) FROM tab0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4201
SELECT DISTINCT CAST( NULL AS SIGNED ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4201
SELECT DISTINCT CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT ALL - col2 DIV + 3 FROM tab1
----
-19
-22
-32

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - col2 / + 3 FROM tab1
----
-19
-22
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL COUNT( + col1 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL COUNT ( + col1 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - - 70 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT + + col1 + - 50 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3
-36
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-4206
SELECT 71 * - 19 AS col1, - 32 DIV - col2 FROM tab2
----
-1349
0
-1349
0
-1349
1

skipif mysql # not compatible
query II rowsort label-4206
SELECT 71 * - 19 AS col1, - 32 / - col2 FROM tab2
----
-1349
0
-1349
0
-1349
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4207
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4207
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL + COUNT( * ) + - 30 AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + COUNT ( * ) + - 30 AS col0 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT col2 - + + 23 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 79 IS NULL
----

query I rowsort
SELECT 36 * - + 46 + + col0 AS col2 FROM tab0
----
-1559
-1569
-1641

query I rowsort
SELECT DISTINCT 56 * + - 24 FROM tab2
----
-1344

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4213
SELECT - 38 - - - 23 FROM tab1 WHERE ( NOT CAST( col1 AS SIGNED ) NOT IN ( - + CAST( 56 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 38 - - - 23 FROM tab1 WHERE ( NOT CAST ( col1 AS INTEGER ) NOT IN ( - + CAST ( 56 AS REAL ) ) )
----

query I rowsort
SELECT ALL + 17 + + - 18 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( 1 )
----

query II rowsort
SELECT - - 80, + col2 FROM tab2 AS cor0
----
80
23
80
40
80
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 >= - - col1 + - 42 + - col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - ( + ( 93 ) ) AS col0 FROM tab2
----
4743
6231
7161

query I rowsort
SELECT DISTINCT - col1 * + col1 + col0 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT - CAST( NULL AS SIGNED ) * + 0 * + 86 * - 12 * - ( + 48 ) + - COUNT( * ) + - MAX( DISTINCT 9 ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT - CAST ( NULL AS INTEGER ) * + 0 * + 86 * - 12 * - ( + 48 ) + - COUNT ( * ) + - MAX ( DISTINCT 9 ) col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 IS NULL )
----

query I rowsort
SELECT DISTINCT - col2 * 99 FROM tab0 cor0
----
-4653
-9801
-990

query I rowsort
SELECT 2 * - col0 FROM tab2 AS cor0
----
-128
-150
-92

query II rowsort
SELECT ALL + - 21 AS col2, 74 FROM tab2 AS cor0
----
-21
74
-21
74
-21
74

query I rowsort
SELECT DISTINCT + 94 + + 29 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT - - COUNT( * ) AS col0, 31 FROM tab2 AS cor0
----
3
31

skipif mysql # not compatible
query II rowsort label-4227
SELECT - - COUNT ( * ) AS col0, 31 FROM tab2 AS cor0
----
3
31

query II rowsort
SELECT ALL - col0 AS col2, 26 FROM tab2 AS cor0
----
-46
26
-64
26
-75
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 BETWEEN + col1 AND - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, - col0 * + + 51 FROM tab2 cor0
----
46
-2346
64
-3264
75
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT - + SUM( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - + SUM ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT + 54 DIV + col2 AS col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 54 / + col2 AS col0 FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4233
SELECT ALL 99 + + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE - col1 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 99 + + - CAST ( NULL AS REAL ) FROM tab0 WHERE - col1 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 32 col1 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT ALL 75 * + col2 * + 73 FROM tab1
----
323025
372300
525600

query I rowsort
SELECT - ( 46 ) AS col1 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT col1 * + + 93 AS col1 FROM tab0 cor0
----
1953
7533
93

query II rowsort
SELECT - col2 * col1 AS col2, - ( - col1 ) FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + + COUNT( * ) col1 FROM tab2 WHERE NOT ( NOT col1 * + 50 > NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4239
SELECT + + COUNT ( * ) col1 FROM tab2 WHERE NOT ( NOT col1 * + 50 > NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 54 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT 46 + + 73 + + COUNT( * ) * + - 36 AS col2 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-4241
SELECT 46 + + 73 + + COUNT ( * ) * + - 36 AS col2 FROM tab2 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + 29 + + 17 + COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + 29 + + 17 + COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 84, col1 col0 FROM tab1 cor0
----
84
14
84
47
84
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - + MIN( - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4246
SELECT - + MIN ( - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - col1 + col2 + + col2 FROM tab1 AS cor0
----
113
178
89

query I rowsort
SELECT + col0 + - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL - - COUNT( * ) + + 73 AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - - COUNT ( * ) + + 73 AS col2 FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT 32 - 70 + + col1 AS col2 FROM tab0
----
-17
-37
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT col1 - col0 - + + col2 + 65 + - col1 DIV + - 9 AS col0 FROM tab1
----
-42
-67
-74

skipif mysql # not compatible
query I rowsort label-4251
SELECT col1 - col0 - + + col2 + 65 + - col1 / + - 9 AS col0 FROM tab1
----
-42
-67
-74

query I rowsort
SELECT 83 + - - col1 AS col1 FROM tab2
----
134
150
160

query I rowsort
SELECT + 33 + 88 FROM tab1
----
121
121
121

query I rowsort
SELECT ALL + - 90 + col2 + - - col1 FROM tab1 AS cor0
----
-26
20
25

query II rowsort
SELECT ALL + + col1 + 76 + - 32 + - - col1, 29 AS col1 FROM tab0 AS cor0
----
206
29
46
29
86
29

query I rowsort
SELECT ALL - 75 + - + col1 - + col2 + ( - - 98 ) FROM tab0 cor0
----
-105
-77
-8

query I rowsort
SELECT ALL + - 18 AS col0 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - 23 * + col2 FROM tab2
----
-1334
-529
-920

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 45 NOT BETWEEN NULL AND 46 * - 87 + - 34
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 55 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - COUNT( * ) * + - COUNT( * ) + + - 1 * COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4261
SELECT - COUNT ( * ) * + - COUNT ( * ) + + - 1 * COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - - 84, + 63 AS col0 FROM tab1 AS cor0
----
84
63
84
63
84
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - MIN( ALL - + col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4263
SELECT - MIN ( ALL - + col1 ) AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT - 66 * - col0 * - + 67 + + col1 FROM tab1 AS cor0
----
-225508
-375865
-402355

query II rowsort
SELECT ALL col0 AS col0, - 62 FROM tab2
----
46
-62
64
-62
75
-62

query I rowsort
SELECT + col0 * - 9 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - 11 FROM tab0
----
-1089
-110
-517

query II rowsort
SELECT col0 AS col2, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4270
SELECT * FROM tab1 WHERE NOT ( + CAST( - 86 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4270
SELECT * FROM tab1 WHERE NOT ( + CAST ( - 86 AS INTEGER ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT 74 DIV - col2 AS col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-4271
SELECT 74 / - col2 AS col1 FROM tab2
----
-1
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT DISTINCT + ( - - col1 ) DIV col2 * ( - + col0 ) FROM tab2
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT + ( - - col1 ) / col2 * ( - + col0 ) FROM tab2
----
-64
-75
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL 85 + + + COUNT( ALL + + col1 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL 85 + + + COUNT ( ALL + + col1 ) FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - SUM( col0 ) + - COUNT( * ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-4274
SELECT - SUM ( col0 ) + - COUNT ( * ) FROM tab1
----
-230

query I rowsort
SELECT ALL - 21 + + col2 FROM tab0 cor0
----
-11
26
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT ALL + col1 + - + 45 + + + 12 + - - CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + col1 + - + 45 + + + 12 + - - CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + ( - 46 ) AS col1 FROM tab1 AS cor0
----
39
45
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 79 col1 FROM tab0 AS cor0
----
-1659
-6399
-79

query I rowsort
SELECT ALL 14 * + col1 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT ( - + 38 ) FROM tab0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * + col2 col0 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT + 86 * 79 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8e3c26cd893265aa32c4c9c0043bbb8e

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE + col1 * + col2 IS NOT NULL
----
59
68
96

query II rowsort
SELECT 15 AS col2, col0 + - + col0 - + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( 54 ) FROM tab2 AS cor0 WHERE col2 * + 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4286
SELECT ALL 80 + + col2, col2 * + - col1 + - - 69 DIV + 43 AS col1 FROM tab1 AS cor0
----
139
-294
148
-3195
176
-1343

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL 80 + + col2, col2 * + - col1 + - - 69 / + 43 AS col1 FROM tab1 AS cor0
----
139
-294
148
-3195
176
-1343

query I rowsort
SELECT DISTINCT + ( ( - + col0 ) ) + + 22 + + 26 * col1 AS col1 FROM tab0 AS cor0
----
-49
2113
481

query I rowsort
SELECT + + 53 + + + col2 AS col1 FROM tab2 AS cor0
----
111
76
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 - + col0 col1 FROM tab2 AS cor0
----
-119
-137
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL col1 + + col1 + - 63 DIV - + 41 FROM tab2
----
103
135
155

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL col1 + + col1 + - 63 / - + 41 FROM tab2
----
103
135
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT ALL col0 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL col0 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT - + CAST( col2 AS SIGNED ) AS col0 FROM tab0 WHERE ( - + ( - 59 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4292
SELECT - + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 WHERE ( - + ( - 59 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL SUM( ALL - 13 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL SUM ( ALL - 13 ) FROM tab0 AS cor0
----
-39

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 69 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query II rowsort label-4295
SELECT ALL col1 * 68 DIV + ( + ( - + col2 ) ), ( col2 ) FROM tab1
----
-47
68
-5
59
-9
96

skipif mysql # not compatible
query II rowsort label-4295
SELECT ALL col1 * 68 / + ( + ( - + col2 ) ), ( col2 ) FROM tab1
----
-47
68
-5
59
-9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 24 col0 FROM tab0 cor0
----
-1128
-2376
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col1 ) col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col2 * - col2 + ( col1 ) + 55 FROM tab2 AS cor0
----
-1468
-3242
-423

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + col1 BETWEEN - col0 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT 95 * MIN( ALL ( + col1 ) ) col1 FROM tab2
----
4845

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4300
SELECT DISTINCT 95 * MIN ( ALL ( + col1 ) ) col1 FROM tab2
----
4845

query I rowsort
SELECT ALL ( + 8 ) AS col0 FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT + COUNT( DISTINCT - 17 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4302
SELECT + COUNT ( DISTINCT - 17 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT + COUNT( * ) * - 51 + - COUNT( * ) DIV + + MIN( 69 ) AS col0 FROM tab0 cor0 WHERE + 48 < col2 - - col0
----
-153

skipif mysql # not compatible
query I rowsort label-4303
SELECT + COUNT ( * ) * - 51 + - COUNT ( * ) / + + MIN ( 69 ) AS col0 FROM tab0 cor0 WHERE + 48 < col2 - - col0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT + 94, - 26 AS col2 FROM tab0 cor0
----
94
-26
94
-26
94
-26

query I rowsort
SELECT DISTINCT 67 + - ( + 92 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT + - SUM( ALL + + col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4307
SELECT + - SUM ( ALL + + col1 ) AS col0 FROM tab0 cor0
----
-103

query II rowsort
SELECT + 32, col2 AS col1 FROM tab1 AS cor0
----
32
59
32
68
32
96

query I rowsort
SELECT DISTINCT - 85 + col2 + + + 86 AS col0 FROM tab2 cor0
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 col1, - col0 * - col1 FROM tab1 AS cor0
----
73
425
73
4277
73
714

query I rowsort
SELECT DISTINCT - 31 + + 81 FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT COUNT( * ) AS col1 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4312
SELECT COUNT ( * ) AS col1 FROM tab0, tab1 cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL COUNT( * ) + - + 72 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL COUNT ( * ) + - + 72 FROM tab2
----
-69

query I rowsort
SELECT col1 - - - 53 * col2 AS col1 FROM tab2
----
-1168
-2043
-3007

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT ALL + 50 - - COUNT( ALL + col0 ) AS col2, + SUM( DISTINCT + + col2 ) col1 FROM tab1
----
53
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4316
SELECT ALL + 50 - - COUNT ( ALL + col0 ) AS col2, + SUM ( DISTINCT + + col2 ) col1 FROM tab1
----
53
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - col1 * + - 8 AS col0 FROM tab1
----
112
376
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL ( + CAST( col0 AS SIGNED ) ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL ( + CAST ( col0 AS INTEGER ) ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT - COUNT( DISTINCT - - 68 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - COUNT ( DISTINCT - - 68 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 + - - CAST( NULL AS SIGNED ) AND - 89
----

skipif mysql # not compatible
query III rowsort label-4321
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 + - - CAST ( NULL AS INTEGER ) AND - 89
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - 37 * - - col2 - - col0 - + 91 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 BETWEEN NULL AND 80 )
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 * ( + + 78 ) = NULL )
----

query I rowsort
SELECT - - 84 AS col1 FROM tab1 AS cor0
----
84
84
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) NOT IN ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4327
SELECT ALL col0 * + + col1 AS col0, col0 DIV col2 FROM tab2
----
2346
2
4928
1
5025
1

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL col0 * + + col1 AS col0, col0 / col2 FROM tab2
----
2346
2
4928
1
5025
1

query I rowsort
SELECT - 64 * ( 28 ) FROM tab1
----
-1792
-1792
-1792

query I rowsort
SELECT ( + 88 ) * + 82 AS col2 FROM tab2
----
7216
7216
7216

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT COUNT( 54 ) + - - MIN( 46 ) + COUNT( * ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-4330
SELECT COUNT ( 54 ) + - - MIN ( 46 ) + COUNT ( * ) FROM tab2
----
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - col2
----

query II rowsort
SELECT col2 * - + 64 + ( + - col2 ) - - col0, - col0 + + - col2 * - col0 * - col1 AS col0 FROM tab1
----
-3750
-25160
-4329
-290927
-6189
-68595

query I rowsort
SELECT ALL + col2 + + col0 + - + col2 + + 4 * - + ( 50 ) * - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
1026
2755
9423

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT COUNT( + - col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4334
SELECT COUNT ( + - col2 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col2 + - 41 FROM tab0 AS cor0
----
-140
-51
-88

query I rowsort
SELECT DISTINCT 24 * 91 / + - col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 47 < + + 37
----

query I rowsort
SELECT ALL + + 57 * + col2 AS col1 FROM tab1 cor0
----
3363
3876
5472

query I rowsort
SELECT 58 + + col1 FROM tab0 AS cor0
----
139
59
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 - + - col1 - - 21 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + + 93 AS col0 FROM tab0 AS cor0
----
103
140
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 83 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT ALL col0 DIV - col1 + + col2 + 24 AS col1 FROM tab2 AS cor0
----
47
64
81

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL col0 / - col1 + + col2 + 24 AS col1 FROM tab2 AS cor0
----
47
64
81

query I rowsort
SELECT DISTINCT - 17 - 91 FROM tab0
----
-108

query II rowsort
SELECT DISTINCT col2 AS col1, - 68 * + 65 FROM tab2
----
23
-4420
40
-4420
58
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + COUNT( 97 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT + COUNT ( 97 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT - 53 AS col0, - ( - COUNT( * ) ) + - + COUNT( * ) - + - ( - 0 ) FROM tab1
----
-53
0

skipif mysql # not compatible
query II rowsort label-4347
SELECT - 53 AS col0, - ( - COUNT ( * ) ) + - + COUNT ( * ) - + - ( - 0 ) FROM tab1
----
-53
0

query I rowsort
SELECT ALL ( - 47 ) FROM tab2
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( 13 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 < - 71 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT MAX( ALL + col0 ) col1 FROM tab1 WHERE NULL IN ( - col0 + col2, + col2, col1, 75 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4351
SELECT DISTINCT MAX ( ALL + col0 ) col1 FROM tab1 WHERE NULL IN ( - col0 + col2, + col2, col1, 75 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT - - 63 + + 32 AS col2, col0 * - col1 AS col2 FROM tab0 AS cor0
----
95
-1215
95
-1827
95
-97

query I rowsort
SELECT col1 + + 4 FROM tab1 AS cor0
----
18
51
9

query I rowsort
SELECT DISTINCT - 92 + + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 54 + - - col1 FROM tab1 AS cor0
----
101
59
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * ( col1 ) BETWEEN col1 AND - + 98 * + col1
----

query I rowsort
SELECT ALL - col2 + + 85 * + + 15 - + 94 AS col0 FROM tab2 AS cor0
----
1123
1141
1158

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL COUNT( * ) + 4 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL COUNT ( * ) + 4 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
7

query I rowsort
SELECT + col0 * 85 AS col2 FROM tab2 AS cor0
----
3910
5440
6375

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT - ( + CAST( NULL AS SIGNED ) ) * 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT - ( + CAST ( NULL AS INTEGER ) ) * 70 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 3 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT DISTINCT + CAST( - 69 AS SIGNED ) AS col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + CAST ( - 69 AS INTEGER ) AS col2 FROM tab1
----
-69

query I rowsort
SELECT DISTINCT 41 + + col2 + + col1 * + col1 * - 42 AS col1 FROM tab0
----
-18471
-275474
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab2
----
-3

query I rowsort
SELECT 53 * + 47 AS col0 FROM tab1
----
2491
2491
2491

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 63 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + 39 <= + 53 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT COUNT( * ) * COUNT( + 57 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT COUNT ( * ) * COUNT ( + 57 ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT - CAST( - col0 AS SIGNED ) - - 91 FROM tab0
----
106
178
188

skipif mysql # not compatible
query I rowsort label-4374
SELECT - CAST ( - col0 AS INTEGER ) - - 91 FROM tab0
----
106
178
188

query I rowsort
SELECT ALL col0 - + 67 AS col0 FROM tab1
----
-16
18
24

query I rowsort
SELECT ( - 20 ) FROM tab0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 87 / col2 <= col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 85 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4380
SELECT ALL + col0 + + col0 col1 FROM tab1 WHERE NOT ( - CAST( NULL AS DECIMAL ) * 69 ) NOT BETWEEN 28 AND ( + 78 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4380
SELECT ALL + col0 + + col0 col1 FROM tab1 WHERE NOT ( - CAST ( NULL AS REAL ) * 69 ) NOT BETWEEN 28 AND ( + 78 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 4 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 9 FROM tab2 AS cor0 WHERE NOT NULL <> - col2 / col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT DISTINCT + col1 DIV + ( + 70 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT + col1 / + ( + 70 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 * 50 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col0 * - 6 + - 26 FROM tab2 WHERE ( + col0 ) BETWEEN - 54 AND + 55
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT COUNT( - 63 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT COUNT ( - 63 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4388
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4388
SELECT + CAST ( NULL AS REAL ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 81 + + col1 FROM tab1 AS cor0
----
-34
-67
-76

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE ( - 36 ) IN ( col2 )
----

query I rowsort
SELECT ALL 99 + col2 AS col2 FROM tab1 AS cor0
----
158
167
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab0 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT 7 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * 28 IS NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( col1 )
----

query I rowsort
SELECT col0 * col1 FROM tab2 AS cor0 WHERE + col0 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT ALL + CAST( col1 AS SIGNED ) col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4398
SELECT ALL + CAST ( col1 AS INTEGER ) col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT DISTINCT + - col2 DIV + col1 + col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + - col2 / + col1 + col1 FROM tab0 AS cor0
----
-98
21
81

query I rowsort
SELECT DISTINCT col1 * + col1 + + 56 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - + col1 * col0 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT 89 FROM tab0 AS cor0 WHERE ( 17 ) + - ( col1 ) IS NOT NULL
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT - COUNT( col0 ) * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - COUNT ( col0 ) * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE col2 <> ( col1 )
----
-14
-47
-5

query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab1
----
4345
484
810

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND 49 / - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 - col2 * 22 col0 FROM tab0
----
-1002
-2176
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT 7 + 18 + - COUNT( * ) col0 FROM tab0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4408
SELECT 7 + 18 + - COUNT ( * ) col0 FROM tab0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 * + col2 col1 FROM tab0
----
-2585
-5445
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT ALL - 50 DIV - 4 FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - 50 / - 4 FROM tab2
----
12
12
12

query I rowsort
SELECT ALL 90 AS col2 FROM tab0 WHERE NOT - col1 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT ALL col1 DIV + col0 - - 8 FROM tab2 WHERE NOT NULL IS NOT NULL
----
8
9
9

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL col1 / + col0 - - 8 FROM tab2 WHERE NOT NULL IS NOT NULL
----
8
9
9

query I rowsort
SELECT - col1 + + + 75 FROM tab1
----
28
61
70

query I rowsort
SELECT col0 + + col0 * + 53 FROM tab1
----
2754
4590
4914

query III rowsort
SELECT * FROM tab2 WHERE col0 + + col2 NOT BETWEEN ( 40 ) AND NULL
----

query I rowsort
SELECT + col0 + + col0 * 19 FROM tab1
----
1020
1700
1820

query I rowsort
SELECT + col0 + + - ( - ( col2 ) ) - - 99 * + 44 * 34 AS col2 FROM tab0
----
148166
148201
148300

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + 51 + + col1 + ( - col2 + - 33 ) AS col0 FROM tab1
----
-3
-36
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT ( + col2 + 60 * - col2 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT - COUNT( * ) * - 62 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - COUNT ( * ) * - 62 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT - 57 + - 80 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - 57 + - 80 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT - 95 + - col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-146
-180
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT COUNT( DISTINCT - col1 ) + MAX( - col0 ) * COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT COUNT ( DISTINCT - col1 ) + MAX ( - col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
-135

query I rowsort
SELECT 84 - col1 * - 60 AS col2 FROM tab1
----
2904
384
924

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4429
SELECT ALL - 11 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - 11 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 67 AS col0 FROM tab0 AS cor0
----
67
67
67

query II rowsort
SELECT ALL + col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <> + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2, + col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - - COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + - 66 AS col2, col1 FROM tab1 AS cor0
----
-66
14
-66
47
-66
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab0 WHERE NULL = - + 91
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 43 * + col2 * col2 + + 42 BETWEEN 41 + + col0 AND - 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * 28 AS col0 FROM tab1
----
1652
1904
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT 29 * + - MAX( DISTINCT col2 ) FROM tab0
----
-2871

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT 29 * + - MAX ( DISTINCT col2 ) FROM tab0
----
-2871

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + - col0 > ( col1 * ( col0 * - col2 ) )
----

query I rowsort
SELECT 60 FROM tab1 WHERE NOT ( - 84 - + + ( 92 ) ) IS NOT NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 31 BETWEEN ( col0 ) AND col0 / 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT - - 94 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
1316
4418
470

skipif mysql # not compatible
query I rowsort label-4445
SELECT - - 94 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
1316
4418
470

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col1 * - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) + - COUNT( - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - COUNT ( - col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4448
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + - col0, + col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-4448
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + - col0, + col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT DISTINCT + col0 + + 37 + - 20 AS col2 FROM tab2 AS cor0
----
63
81
92

query I rowsort
SELECT ALL - + col0 + - col0 - + ( + - 96 ) * - + col1 FROM tab1 AS cor0
----
-1446
-4694
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL COUNT( * ) * - ( - + 40 ) - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL COUNT ( * ) * - ( - + 40 ) - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
117

query I rowsort
SELECT - col0 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - ( - 91 ) FROM tab1 cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL - COUNT( * ) + + 19 AS col1 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - COUNT ( * ) + + 19 AS col1 FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT COUNT( * ) + - 18 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT COUNT ( * ) + - 18 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT SUM( DISTINCT 76 ) * ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT SUM ( DISTINCT 76 ) * ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-228

query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 AS col0 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT DISTINCT + col0 + + + 11 FROM tab1 WHERE NOT ( NOT NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + COUNT( * ) * - - 84 - - - MAX( + 44 ) FROM tab2
----
208

skipif mysql # not compatible
query I rowsort label-4460
SELECT + COUNT ( * ) * - - 84 - - - MAX ( + 44 ) FROM tab2
----
208

query I rowsort
SELECT ALL 48 + - - col1 FROM tab1
----
53
62
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4462
SELECT DISTINCT col1 + + col0 AS col1, + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
138
91
65
51
90
85

skipif mysql # not compatible
query II rowsort label-4462
SELECT DISTINCT col1 + + col0 AS col1, + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
138
91
65
51
90
85

query II rowsort
SELECT DISTINCT + + col1 AS col0, col0 + + 25 AS col0 FROM tab1 AS cor0
----
14
76
47
116
5
110

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 77 - col2 NOT BETWEEN - 55 AND + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT ( + col0 ) DIV - 51 + col2 AS col1 FROM tab2 AS cor0
----
23
39
57

skipif mysql # not compatible
query I rowsort label-4465
SELECT ( + col0 ) / - 51 + col2 AS col1 FROM tab2 AS cor0
----
23
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL + - MIN( ALL + + col2 ) - + ( - 54 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + - MIN ( ALL + + col2 ) - + ( - 54 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL + MAX( + + col0 ) + - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE 72 IN ( + - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + MAX ( + + col0 ) + - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE 72 IN ( + - 22 )
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col1 * - + 4 FROM tab1 AS cor0
----
-105
-107
-279

query I rowsort
SELECT DISTINCT - 78 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-78

query I rowsort
SELECT col1 * + 87 AS col0 FROM tab1 cor0
----
1218
4089
435

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - col0 * - - 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + col0 / + - col1
----

query I rowsort
SELECT ALL 66 * - + 32 AS col1 FROM tab0
----
-2112
-2112
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT - COUNT( * ) + 39 * MIN( col1 ) AS col2 FROM tab1 WHERE col1 IN ( 7 + - - col0 ) OR ( - 53 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT - COUNT ( * ) + 39 * MIN ( col1 ) AS col2 FROM tab1 WHERE col1 IN ( 7 + - - col0 ) OR ( - 53 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT + 39 AS col0, - COUNT( * ) FROM tab2
----
39
-3

skipif mysql # not compatible
query II rowsort label-4476
SELECT + 39 AS col0, - COUNT ( * ) FROM tab2
----
39
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT - ( + - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4477
SELECT - ( + - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT ALL col2 * - + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL col2 * - + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + + col2
----

query II rowsort
SELECT + col1 AS col2, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT + - col1 * 48 FROM tab0 WHERE NULL IS NULL
----
-1008
-3888
-48

query I rowsort
SELECT DISTINCT col1 + col0 + - 82 FROM tab2 AS cor0
----
15
59
60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 + col1 NOT IN ( + col1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4484
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4485
SELECT - - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT MIN( DISTINCT + ( + 14 ) ) AS col1 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT MIN ( DISTINCT + ( + 14 ) ) AS col1 FROM tab0
----
14

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1 WHERE - 92 + - 16 BETWEEN col2 AND + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT - - COUNT( * ) + + 50 FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - - COUNT ( * ) + + 50 FROM tab2 cor0
----
53

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - col0 + + col1 + - + col1 AS col1 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT + ( + 58 ) + + - col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT col2 + - + 6 AS col1 FROM tab1
----
53
62
90

query I rowsort
SELECT ALL + col2 - + - 40 AS col1 FROM tab2
----
63
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - MIN( DISTINCT + - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) AS col0 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT - - col0 DIV + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT - - col0 / + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab1 AS cor0 WHERE NOT + 64 * + col2 NOT BETWEEN - col1 AND ( - ( - col2 ) * + + ( + col1 ) - 66 )
----

query I rowsort
SELECT DISTINCT + 14 - 27 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE col0 / + col1 IN ( - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL + 30 * - COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + 30 * - COUNT ( * ) FROM tab1 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / - - col2 * 58 + - 23 * col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT ALL + col1 DIV + 86 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + col1 / + 86 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT DISTINCT MAX( ALL + - col2 ), + COUNT( - col0 ) * 86 AS col2 FROM tab1
----
-59
258

skipif mysql # not compatible
query II rowsort label-4503
SELECT DISTINCT MAX ( ALL + - col2 ), + COUNT ( - col0 ) * 86 AS col2 FROM tab1
----
-59
258

query I rowsort
SELECT ALL - - col1 * + 76 + - + col1 FROM tab1 AS cor0
----
1050
3525
375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 4 ) BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4507
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 20 ) + - - col2 > - + col2 DIV + - 25 * + + col0 - + + 88 + - col2
----

skipif mysql # not compatible
query III rowsort label-4507
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 20 ) + - - col2 > - + col2 / + - 25 * + + col0 - + + 88 + - col2
----

query I rowsort
SELECT ALL col2 * + - 77 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4509
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - 66 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT CAST ( NULL AS REAL ) - - 66 FROM tab0, tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 53 * - col1 ) < + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 26 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT - 53 AS col0 FROM tab2 AS cor0 WHERE NULL <> col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT ALL ( 77 ) + - 73 AS col1 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - col1 + 93 AS col0 FROM tab2
----
16
26
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4516
SELECT - - 50 DIV - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4516
SELECT - - 50 / - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT DISTINCT col2 + - + col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT COUNT( ( - - col0 ) ) FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT COUNT ( ( - - col0 ) ) FROM tab2 cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / 51 * + col0 BETWEEN col2 AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4520
SELECT 50, - CAST( + col0 AS SIGNED ) + + + col2 DIV - - col0 AS col1 FROM tab0 AS cor0
----
50
-12
50
-87
50
-96

skipif mysql # not compatible
query II rowsort label-4520
SELECT 50, - CAST ( + col0 AS INTEGER ) + + + col2 / - - col0 AS col1 FROM tab0 AS cor0
----
50
-12
50
-87
50
-96

query I rowsort
SELECT DISTINCT - 76 - - + 35 AS col1 FROM tab2 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * - 22 - + + 17 col0 FROM tab1 AS cor0
----
-853
-853
-853

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( - - 4 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL + MAX( col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + MAX ( col0 ) AS col2 FROM tab2
----
75

query I rowsort
SELECT col0 * + col2 * col1 - 46 AS col1 FROM tab0
----
18224
57059
9557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col2 FROM tab1
----
25

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4528
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + MAX( ALL 45 ) + 55 AS col0 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + MAX ( ALL 45 ) + 55 AS col0 FROM tab2 AS cor0
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ALL - ( + - 63 ) * - - 44 * COUNT( * ) DIV ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2772

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - ( + - 63 ) * - - 44 * COUNT ( * ) / ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2772

query I rowsort
SELECT - ( - 13 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT 33 * + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
288

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT 33 * + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL - 41 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - 41 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-123

query I rowsort
SELECT DISTINCT - + 80 * - col2 FROM tab1 cor0
----
4720
5440
7680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4536
SELECT ALL - ( + COUNT( ALL col2 ) ) DIV - 97 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - ( + COUNT ( ALL col2 ) ) / - 97 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4538
SELECT - col2 / CAST( + col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) / + col0 + + col2 + + + col2 * - col2 / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col2 / CAST ( + col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / + col0 + + col2 + + + col2 * - col2 / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + + col1 * ( 54 ) + + - 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - MAX( - + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4540
SELECT - MAX ( - + col0 ) col2 FROM tab1
----
51

query I rowsort
SELECT ALL - col0 * + 32 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL MAX( DISTINCT + 49 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL MAX ( DISTINCT + 49 ) FROM tab2
----
49

query I rowsort
SELECT DISTINCT + 78 * + col2 * - col0 FROM tab1
----
-381888
-391170
-482664

query II rowsort
SELECT + col0, - 18 FROM tab2
----
46
-18
64
-18
75
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4545
SELECT ALL * FROM tab2 WHERE NOT - - 1 BETWEEN + - CAST( NULL AS DECIMAL ) AND 39
----

skipif mysql # not compatible
query III rowsort label-4545
SELECT ALL * FROM tab2 WHERE NOT - - 1 BETWEEN + - CAST ( NULL AS REAL ) AND 39
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IS NOT NULL AND NULL >= - 96
----

query I rowsort
SELECT col1 + 4 * col2 AS col2 FROM tab2
----
143
237
299

query II rowsort
SELECT ALL col0 AS col2, + col1 * + col2 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - COUNT( * ) + - 8 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - COUNT ( * ) + - 8 FROM tab2
----
-11

query I rowsort
SELECT + + col2 + - 54 AS col1 FROM tab1 AS cor0
----
14
42
5

query I rowsort
SELECT col2 * + ( col0 ) * + col0 * - - col0 + + col2 - - col1 * - + col1 AS col2 FROM tab1
----
12734396
36233409
51240687

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 64 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col1 * - col0 NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) >= - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT MIN( ALL - col0 ) FROM tab0 AS cor0 WHERE 91 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT MIN ( ALL - col0 ) FROM tab0 AS cor0 WHERE 91 IS NULL
----
NULL

query I rowsort
SELECT - 42 * 30 + - col2 AS col2 FROM tab1 AS cor0
----
-1319
-1328
-1356

query II rowsort
SELECT ALL - col0 + - col1 + + col1 AS col1, + col0 * col2 + - - col1 FROM tab1 AS cor0
----
-51
4910
-85
5020
-91
6235

query I rowsort
SELECT + 60 * - - 41 + + 34 FROM tab1 AS cor0
----
2494
2494
2494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 20 + - - col0 * - col1 col1 FROM tab0 AS cor0
----
-118
-1316
-1868

query I rowsort
SELECT DISTINCT col0 - + 58 FROM tab2 AS cor0
----
-12
17
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT DISTINCT MIN( - col1 ) - + SUM( 10 ) + CAST( NULL AS SIGNED ) / COUNT( * ) * - - 78 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT DISTINCT MIN ( - col1 ) - + SUM ( 10 ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) * - - 78 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4563
SELECT COUNT( * ), 81 * + - 46 AS col1 FROM tab2
----
3
-3726

skipif mysql # not compatible
query II rowsort label-4563
SELECT COUNT ( * ), 81 * + - 46 AS col1 FROM tab2
----
3
-3726

query II rowsort
SELECT DISTINCT + ( - col2 ) * + col1, - col1 AS col1 FROM tab1
----
-1344
-14
-295
-5
-3196
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4565
SELECT DISTINCT + col1 DIV + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT + col1 / + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT ALL - 83 / - 32 + - col1 * - 27 - + col0 AS col0, + col2 AS col0 FROM tab1 cor0 WHERE NOT + col0 BETWEEN + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + - COUNT( * ) * - - 82 * + + MAX( ALL - + ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14514

skipif mysql # not compatible
query I rowsort label-4567
SELECT + - COUNT ( * ) * - - 82 * + + MAX ( ALL - + ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14514

onlyif mysql # DIV for integer division: 
query II rowsort label-4568
SELECT 18 * col0 DIV - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-156
-10
-17
-99
-5
-47

skipif mysql # not compatible
query II rowsort label-4568
SELECT 18 * col0 / - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-156
-10
-17
-99
-5
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL CAST( - col1 AS SIGNED ) * - ( + + col2 ) FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL CAST ( - col1 AS INTEGER ) * - ( + + col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4570
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) / col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - ( + CAST ( NULL AS REAL ) ) / col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4571
SELECT + MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + 70 * + 61 AS col2 FROM tab1 AS cor0
----
4270
4270
4270

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT ALL + 54 DIV + 9 col2 FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4573
SELECT ALL + 54 / + 9 col2 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4574
SELECT + + 85 DIV col1, + col2 FROM tab1 cor0
----
1
68
17
59
6
96

skipif mysql # not compatible
query II rowsort label-4574
SELECT + + 85 / col1, + col2 FROM tab1 cor0
----
1
68
17
59
6
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT - - MAX( + CAST( - 5 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4575
SELECT - - MAX ( + CAST ( - 5 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL + COUNT( * ) * - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * + 77 * + - ( + 35 ) + + 53 + - + col1 AND + - col1 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * + 77 * + - ( + 35 ) + + 53 + - + col1 AND + - col1 + + col2
----
0

query I rowsort
SELECT DISTINCT + + 62 AS col2 FROM tab2 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT COUNT( * ) * + 32 AS col2 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT COUNT ( * ) * + 32 AS col2 FROM tab0
----
96

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT 82 FROM tab1 WHERE - + col1 > + + ( + + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT CAST( 90 AS SIGNED ) FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4581
SELECT CAST ( 90 AS INTEGER ) FROM tab0
----
90
90
90

query III rowsort
SELECT * FROM tab2 WHERE 28 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + - ( 99 ) + 58 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 5 col0 FROM tab0 AS cor0
----
-26
-6
-86

query I rowsort
SELECT ALL col1 * - ( - col0 ) * ( - + ( - col1 ) ) + col0 FROM tab0 AS cor0
----
194
38454
98430

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT COUNT( * ) + SUM( ALL - + col2 ) col1 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4586
SELECT COUNT ( * ) + SUM ( ALL - + col2 ) col1 FROM tab1 AS cor0
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4587
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST( + 61 AS SIGNED ) + 70 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4587
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( + 61 AS INTEGER ) + 70 IS NOT NULL
----

query II rowsort
SELECT 53 AS col0, col2 FROM tab2 AS cor0
----
53
23
53
40
53
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - 78 * COUNT( * ) AS col1 FROM tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 78 * COUNT ( * ) AS col1 FROM tab1 cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL 50 + + - CAST( + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-37
-47
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4590
SELECT ALL 50 + + - CAST ( + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-37
-47
35

query I rowsort
SELECT DISTINCT + col1 - + ( - 89 ) + 51 FROM tab1 AS cor0
----
145
154
187

query I rowsort
SELECT - col2 - col0 + - col1 - col1 + col2 * + - col1 * - col2 * - + col1 * col2 FROM tab2 AS cor0
----
-31646538
-379456258
-875858035

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL - MAX( ALL + col0 ) + + 96 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - MAX ( ALL + col0 ) + + 96 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 * + col0 * col0 >= + col1 / + col1 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 47 * + col2 FROM tab0
----
-2209
-4653
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL + COUNT( + - 43 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + COUNT ( + - 43 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT + + col1 + - - col2 + - + 92 + - 57, col0 AS col2 FROM tab2 WHERE NOT + - col0 * 78 IS NULL
----
-24
75
-32
64
-75
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT - 19 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4598
SELECT - 19 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - - 2 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - + SUM( ALL + 19 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4600
SELECT - + SUM ( ALL + 19 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ( - - 96 ) AS col0 FROM tab1
----
96
96
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 15 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 + - 63 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 + - 63 <> NULL
----
0

query I rowsort
SELECT ALL - 24 * + 60 AS col0 FROM tab0 AS cor0
----
-1440
-1440
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT + 20 + 82 DIV col2 FROM tab0
----
20
21
28

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 20 + 82 / col2 FROM tab0
----
20
21
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4606
SELECT DISTINCT col2 DIV - col2 AS col1, + col0 * + col0 * - + ( + col2 ) AS col0 FROM tab1
----
-1
-249696
-1
-426275
-1
-563108

skipif mysql # not compatible
query II rowsort label-4606
SELECT DISTINCT col2 / - col2 AS col1, + col0 * + col0 * - + ( + col2 ) AS col0 FROM tab1
----
-1
-249696
-1
-426275
-1
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 88 + COUNT( * ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4607
SELECT 88 + COUNT ( * ) FROM tab2
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - ( col0 ) col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ( 38 ) FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4610
SELECT DISTINCT CAST( - col0 AS SIGNED ) col2, col1 FROM tab0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4610
SELECT DISTINCT CAST ( - col0 AS INTEGER ) col2, col1 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ALL - 70 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + - col0 - - col2 DIV + 56 + + - col0 FROM tab1 AS cor0
----
-101
-169
-181

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + - col0 - - col2 / + 56 + + - col0 FROM tab1 AS cor0
----
-101
-169
-181

query I rowsort
SELECT - 99 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 10
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37 col0, col1 AS col1 FROM tab2 cor0
----
37
51
37
67
37
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - - SUM( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - - SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

query II rowsort
SELECT col2, 67 AS col2 FROM tab2
----
23
67
40
67
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT - CAST( + col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4620
SELECT - CAST ( + col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4621
SELECT DISTINCT + col0 AS col2, + CAST( - ( + + col1 ) AS SIGNED ) FROM tab0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-4621
SELECT DISTINCT + col0 AS col2, + CAST ( - ( + + col1 ) AS INTEGER ) FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4622
SELECT DISTINCT ( - col2 ) AS col0, ( - 9 ) DIV - 13 * col2 FROM tab0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-4622
SELECT DISTINCT ( - col2 ) AS col0, ( - 9 ) / - 13 * col2 FROM tab0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( + 75 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL - 61 * SUM( + + col0 ) FROM tab1 WHERE - col2 + + + 93 + 18 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - 61 * SUM ( + + col0 ) FROM tab1 WHERE - col2 + + + 93 + 18 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - + 97 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col1 * - col1 col1 FROM tab2 cor0
----
-51
-2601
-67
-4489
-77
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - - ( - + MAX( 3 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4628
SELECT - - ( - + MAX ( 3 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT + COUNT( * ) DIV 57 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT + COUNT ( * ) / 57 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 91 * + + col1 * + 56 FROM tab2 AS cor0
----
259896
341432
392392

query I rowsort
SELECT DISTINCT - + col1 * - + 87 + - 92 FROM tab0 AS cor0
----
-5
1735
6955

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - 81 * COUNT( * ) FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 81 * COUNT ( * ) FROM tab0 cor0
----
-243

query II rowsort
SELECT 98 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
98
-51
98
-85
98
-91

query I rowsort
SELECT - - col0 AS col1 FROM tab1 WHERE NOT + - col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL + COUNT( ALL - 72 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT ALL + COUNT ( ALL - 72 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT COUNT( * ) * 57 * + 6 FROM tab2, tab0 AS cor0
----
3078

skipif mysql # not compatible
query I rowsort label-4636
SELECT COUNT ( * ) * 57 * + 6 FROM tab2, tab0 AS cor0
----
3078

query I rowsort
SELECT - + 33 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 72 BETWEEN + col1 * - + col2 AND 20
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL 33 + + - MIN( DISTINCT - CAST( - + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL 33 + + - MIN ( DISTINCT - CAST ( - + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT - COUNT( ALL + ( col2 ) ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - COUNT ( ALL + ( col2 ) ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-3

query II rowsort
SELECT + col0 * - col0 + + 28, - col2 AS col1 FROM tab1 AS cor0
----
-2573
-96
-7197
-59
-8253
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 81 col1 FROM tab2 AS cor0 WHERE col1 > - - col2 / col2
----
3726
5184
6075

query I rowsort
SELECT ALL - + 12 + - col1 AS col1 FROM tab0 AS cor0
----
-13
-33
-93

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col1 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 BETWEEN 21 AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 + col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL + - COUNT( * ) * - + MAX( DISTINCT + 16 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + - COUNT ( * ) * - + MAX ( DISTINCT + 16 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - ( + 20 ) FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT COUNT( * ) - - 79 + 14 DIV - + ( + COUNT( * ) ) AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4650
SELECT COUNT ( * ) - - 79 + 14 / - + ( + COUNT ( * ) ) AS col0 FROM tab1
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 BETWEEN - 18 + + 87 + - 24 + 6 / - + ( + 44 ) AND col2
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT DISTINCT 12 DIV - col2 * 36 + + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT 12 / - col2 * 36 + + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + ( col2 ) FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4654
SELECT - ( col1 ) + - col2 + - col0 / + + CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT - ( col1 ) + - col2 + - col0 / + + CAST ( NULL AS REAL ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 51 * col2 + + col2 + 7 AS col1 FROM tab0 AS cor0
----
-2343
-493
-4943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) + - + 43 NOT IN ( + ( 46 ), col0 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4656
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) + - + 43 NOT IN ( + ( 46 ), col0 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL - COUNT( * ) - + 26 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - COUNT ( * ) - + 26 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT ALL + col0 - + + 81 AS col2 FROM tab0
----
-66
16
6

query I rowsort
SELECT DISTINCT + - 46 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - - 91 * + COUNT( * ) FROM tab0 cor0
----
273

skipif mysql # not compatible
query I rowsort label-4660
SELECT - - 91 * + COUNT ( * ) FROM tab0 cor0
----
273

query I rowsort
SELECT - 18 * - col0 AS col1 FROM tab2 AS cor0
----
1152
1350
828

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 43
----

query I rowsort
SELECT + 98 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL ( MIN( ALL + - col1 ) ) AS col2 FROM tab1 WHERE 10 <= col1
----
-47

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL ( MIN ( ALL + - col1 ) ) AS col2 FROM tab1 WHERE 10 <= col1
----
-47

query II rowsort
SELECT ALL + col1, + 7 AS col2 FROM tab1
----
14
7
47
7
5
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT ALL - CAST( + - 68 AS SIGNED ) * + SUM( ALL + col2 ) FROM tab2
----
8228

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - CAST ( + - 68 AS INTEGER ) * + SUM ( ALL + col2 ) FROM tab2
----
8228

query I rowsort
SELECT + 89 * - col2 AS col1 FROM tab2
----
-2047
-3560
-5162

query I rowsort
SELECT + 33 FROM tab0 cor0 WHERE NOT NULL >= 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4669
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + col0 + - - 29, - ( - CAST( NULL AS SIGNED ) ), ( - col2 ) * ( - + 41 ), + col2 / + - 68 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-4669
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + col0 + - - 29, - ( - CAST ( NULL AS INTEGER ) ), ( - col2 ) * ( - + 41 ), + col2 / + - 68 * - col2 )
----

query I rowsort
SELECT + - col0 * + - col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL + COUNT( + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL + COUNT ( + - col0 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89 col2, + col0 + col2 + - 24 * 66 * - col0 AS col1 FROM tab1
----
-89
134784
-89
144303
-89
80931

query I rowsort
SELECT ALL - 86 AS col1 FROM tab2
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4674
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - col0, 78, + 67, - col1 * - + col1, CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4674
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - col0, 78, + 67, - col1 * - + col1, CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT MAX( DISTINCT - 78 ) AS col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT MAX ( DISTINCT - 78 ) AS col2 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL - + ( + col2 ) + - + 64 AS col0 FROM tab1 AS cor0
----
-123
-132
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT - 41 * - 99 + + - 26 DIV + col1 + col2 * - 68 AS col0 FROM tab0 AS cor0
----
-2699
3378
863

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 41 * - 99 + + - 26 / + col1 + col2 * - 68 AS col0 FROM tab0 AS cor0
----
-2699
3378
863

query I rowsort
SELECT ALL col1 + - + col1 + - 70 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL MIN( + 19 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL MIN ( + 19 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT - ( + COUNT( - col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - ( + COUNT ( - col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 * + + col2 + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT 31 + col1 - + col2 FROM tab0
----
-67
42
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT ALL ( - 28 ) AS col0, COUNT( * ) AS col1 FROM tab1
----
-28
3

skipif mysql # not compatible
query II rowsort label-4683
SELECT ALL ( - 28 ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
-28
3

query II rowsort
SELECT - col2 + - 68, col0 * 6 AS col0 FROM tab1
----
-127
510
-136
546
-164
306

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 16 = + 19 + - 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 73 - - 36 AS col0 FROM tab1
----
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 + + col0 col1, 80 FROM tab1
----
104
80
64
80
98
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + + col2 col1 FROM tab0
----
119
171
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT - 15 DIV SUM( DISTINCT + + col1 ) + + - COUNT( ALL - 82 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4689
SELECT - 15 / SUM ( DISTINCT + + col1 ) + + - COUNT ( ALL - 82 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT - CAST( - AVG ( DISTINCT 55 ) AS SIGNED ) AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - CAST ( - AVG ( DISTINCT 55 ) AS INTEGER ) AS col1 FROM tab0
----
55

query I rowsort
SELECT 80 + + col1 AS col1 FROM tab1
----
127
85
94

query I rowsort
SELECT + 12 - + col1 - + 41 FROM tab2 AS cor0
----
-106
-80
-96

query I rowsort
SELECT + - col1 - - - col0 FROM tab1 AS cor0
----
-138
-65
-90

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL <= 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - COUNT( * ) * - 63 col1 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4695
SELECT - COUNT ( * ) * - 63 col1 FROM tab0 AS cor0
----
189

query I rowsort
SELECT DISTINCT - - col2 * 1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT - - col2 DIV + 53 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-4697
SELECT - - col2 / + 53 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-96

query I rowsort
SELECT + col1 * + 78 AS col1 FROM tab2 AS cor0
----
3978
5226
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT - col1 DIV - 42 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4699
SELECT - col1 / - 42 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT DISTINCT + 95 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + 95 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
31

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 + + col1 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col2 * - + 89 FROM tab2 AS cor0
----
-2047
-3560
-5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 27 + - col2 FROM tab1 AS cor0
----
59
-32
68
-41
96
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4704
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 93 ) + CAST( - - 27 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4704
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 93 ) + CAST ( - - 27 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ( - - 52 ) AS col0 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT - 37 * + col0 FROM tab2 AS cor0
----
-1702
-2368
-2775

query I rowsort
SELECT + col0 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * 4 * col2 IS NULL
----
0
0
0

query I rowsort
SELECT col1 * + col1 * + col0 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT - ( + - 12 ) + - col1 AS col0 FROM tab2
----
-39
-55
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - - MAX( DISTINCT - 71 ) AS col1 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - - MAX ( DISTINCT - 71 ) AS col1 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL + + 50 + 82 FROM tab0 AS cor0
----
132
132
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT + 26 DIV - - 45 * - COUNT( * ) + - 89 AS col2 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + 26 / - - 45 * - COUNT ( * ) + - 89 AS col2 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT + COUNT( * ) DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4713
SELECT + COUNT ( * ) / + COUNT ( * ) col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 26 FROM tab1 AS cor0 WHERE ( NULL ) < + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 72 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * - col2 + - - 32 <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL - CAST( + MAX( + 34 ) AS SIGNED ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - CAST ( + MAX ( + 34 ) AS INTEGER ) FROM tab1
----
-34

query I rowsort
SELECT + ( + 19 ) - - col0 FROM tab2
----
65
83
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4720
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4720
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT 49 + col2 FROM tab2
----
107
72
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT col0 FROM tab1 WHERE + 83 * - col1 NOT BETWEEN - col2 + 77 + + + col1 * - - CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-4722
SELECT col0 FROM tab1 WHERE + 83 * - col1 NOT BETWEEN - col2 + 77 + + + col1 * - - CAST ( NULL AS INTEGER ) AND - col2
----

query I rowsort
SELECT DISTINCT col1 * - 83 + + col0 * - - ( + - col2 ) FROM tab1 AS cor0
----
-10089
-5430
-6058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT + col0 + + col2 + ( + CAST( + col0 AS SIGNED ) ) * - - 99 FROM tab2 AS cor0
----
4623
6440
7558

skipif mysql # not compatible
query I rowsort label-4724
SELECT + col0 + + col2 + ( + CAST ( + col0 AS INTEGER ) ) * - - 99 FROM tab2 AS cor0
----
4623
6440
7558

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col2 IS NULL
----

query I rowsort
SELECT - 71 * col1 + col1 + + col1 + - col2 FROM tab2 AS cor0
----
-3542
-4681
-5353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76 * - 98 AS col0, - 94 col0 FROM tab2
----
-7448
-94
-7448
-94
-7448
-94

query I rowsort
SELECT DISTINCT - 75 * col0 AS col1 FROM tab2
----
-3450
-4800
-5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 98 IS NOT NULL
----

query I rowsort
SELECT ( + 85 ) * + - 51 + + - col0 FROM tab0 AS cor0
----
-4350
-4422
-4432

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT col1 * col2 AS col1, - ( col2 ) DIV + 63 AS col0 FROM tab0 AS cor0
----
210
0
3807
0
99
-1

skipif mysql # not compatible
query II rowsort label-4731
SELECT col1 * col2 AS col1, - ( col2 ) / + 63 AS col0 FROM tab0 AS cor0
----
210
0
3807
0
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT ALL 80 DIV - 65 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL 80 / - 65 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT COUNT( * ), 21 + - 17 AS col1 FROM tab2
----
3
4

skipif mysql # not compatible
query II rowsort label-4734
SELECT COUNT ( * ), 21 + - 17 AS col1 FROM tab2
----
3
4

query I rowsort
SELECT DISTINCT col0 * + ( - 47 ) * + 29 * + 26 FROM tab0
----
-3083106
-3437486
-531570

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + - COUNT( * ) col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT ALL + - COUNT ( * ) col0 FROM tab0 WHERE + - col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT MIN( ALL - - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4737
SELECT MIN ( ALL - - col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL - col0 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - col0 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT + 9 DIV COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + 9 / COUNT ( * ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( 33 * 72 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + COUNT( * ) col0 FROM tab2 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-4742
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 * + - col0 * - col0 AS col1, 20 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
204363
20
254043
20
6075
20

query I rowsort
SELECT DISTINCT - col1 + - 12 FROM tab1 cor0
----
-17
-26
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL COUNT( * ) + + 45 col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4745
SELECT ALL COUNT ( * ) + + 45 col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL + 5 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + 5 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 93 * + col1 * + - 24 * + 98 + + 16 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT DISTINCT + ( + MAX( - 49 ) ) + - - 12 + 28 * - 74 AS col1 FROM tab2 AS cor0
----
-2109

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + ( + MAX ( - 49 ) ) + - - 12 + 28 * - 74 AS col1 FROM tab2 AS cor0
----
-2109

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + 37 + - - 88 AS col1 FROM tab2 cor0
----
125
125
125

query I rowsort
SELECT + col1 + col0 * - + 45 FROM tab0
----
-3894
-4364
-594

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 20 IS NOT NULL
----

query I rowsort
SELECT + 33 * - col1 * - + col0 FROM tab0
----
3201
40095
60291

query I rowsort
SELECT - 99 * - col0 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL + 39 * + COUNT( * ) + 47 FROM tab2 AS cor0
----
164

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + 39 * + COUNT ( * ) + 47 FROM tab2 AS cor0
----
164

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + 87 * - 19
----

query II rowsort
SELECT ALL + 53 AS col2, 60 + - 99 + - + col2 - col2 AS col0 FROM tab2 AS cor0
----
53
-119
53
-155
53
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL + col0 * - + CAST( + - col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + col0 * - + CAST ( + - col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4760
SELECT ALL CAST( NULL AS SIGNED ), - 2 * - col1 * + 83 * col0 col0 FROM tab0 AS cor0
----
NULL
16102
NULL
201690
NULL
303282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4760
SELECT ALL CAST ( NULL AS INTEGER ), - 2 * - col1 * + 83 * col0 col0 FROM tab0 AS cor0
----
NULL
16102
NULL
201690
NULL
303282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - ( col2 ) AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT ALL 4 * - COUNT( * ), - 88 AS col2 FROM tab2
----
-12
-88

skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL 4 * - COUNT ( * ), - 88 AS col2 FROM tab2
----
-12
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT DISTINCT + 36 DIV + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + 36 / + col2 AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - ( + 93 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col0 BETWEEN + - ( - 71 ) + col1 * col2 * - + 78 AND NULL
----

query I rowsort
SELECT ALL 71 * col1 FROM tab2
----
3621
4757
5467

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 41 + + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + + ( + col1 ) AND + 96
----

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col1, - 52 FROM tab0
----
-705
-52
-870
-52
-9603
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + ( + + ( - MIN( col0 ) ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4771
SELECT + ( + + ( - MIN ( col0 ) ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + ( + ( + + col0 ) ) + + - col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 60 ) + - + 82 col2 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + col1 * - 97 FROM tab0
----
-2037
-7857
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT CAST( ( + col2 ) AS SIGNED ) * 81 AS col2 FROM tab0
----
3807
8019
810

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CAST ( ( + col2 ) AS INTEGER ) * 81 AS col2 FROM tab0
----
3807
8019
810

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT ALL 44 DIV + - 9 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL 44 / + - 9 FROM tab2
----
-4
-4
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT + col1 >= NULL ) )
----

query I rowsort
SELECT ALL - - col1 + - 12 + + 65 AS col0 FROM tab2 AS cor0
----
104
120
130

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 73 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + col0 - - - col2 + col0 FROM tab2
----
-2093
-4072
-5608

query I rowsort
SELECT DISTINCT ( + - col0 ) - - 18 FROM tab0
----
-69
-79
3

query I rowsort
SELECT - 50 - + - col2 FROM tab0
----
-3
-40
49

query II rowsort
SELECT ALL - 15 - - col2, - col1 + - col2 AS col1 FROM tab1
----
44
-64
53
-115
81
-110

query I rowsort
SELECT - col2 * - ( col0 ) AS col2 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT ALL col0, + 13 * ( + + col1 ) FROM tab0 cor0 WHERE NOT col1 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT - + ( CAST( - - col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4786
SELECT - + ( CAST ( - - col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + col2 * + - 77 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, ( - - 10 ) * - col1 AS col1 FROM tab0 AS cor0 WHERE col0 * + + 34 < NULL
----

query I rowsort
SELECT ALL + 80 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query II rowsort
SELECT ALL + - 28 AS col0, + ( + 89 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 44e1108dbd08a8f725c4c469fd69afe0

query I rowsort
SELECT + 10 * + + col2 AS col1 FROM tab0 AS cor0
----
100
470
990

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - 52 AND NULL
----

query I rowsort
SELECT - - 80 * - col0 FROM tab0 AS cor0
----
-1200
-6960
-7760

query I rowsort
SELECT DISTINCT + + col1 * + - col0 - + col0 - + + col0 AS col0 FROM tab1 AS cor0
----
-4459
-595
-816

query I rowsort
SELECT - + col0 * + ( - + col0 ) AS col0 FROM tab2 WHERE NOT - + ( 39 ) BETWEEN + col1 + 58 * col1 * - ( - 58 ) * col0 AND + ( - + col0 )
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT ALL - 14 AS col0, COUNT( * ) AS col2 FROM tab2
----
-14
3

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL - 14 AS col0, COUNT ( * ) AS col2 FROM tab2
----
-14
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT col2 * 14 * - - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT col2 * 14 * - - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT col2 DIV + col1 + col1 AS col1 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-4798
SELECT col2 / + col1 + col1 AS col1 FROM tab1
----
16
20
48

query I rowsort
SELECT ALL col0 * col1 + 8 * - - col2 FROM tab0
----
1591
1907
889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55, col2 col2 FROM tab1
----
55
59
55
68
55
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 16 BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT - 80 + COUNT( + 48 ) - COUNT( * ), - 1 * + - MIN( + + col2 ) col0 FROM tab1 AS cor0
----
-80
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4802
SELECT - 80 + COUNT ( + 48 ) - COUNT ( * ), - 1 * + - MIN ( + + col2 ) col0 FROM tab1 AS cor0
----
-80
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col0 + + 5 FROM tab1 AS cor0
----
-46
-80
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT col2 * - CAST( + col2 AS SIGNED ) FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4805
SELECT col2 * - CAST ( + col2 AS INTEGER ) FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT 26 - - 82 + - col1 FROM tab1
----
103
61
94

query I rowsort
SELECT + col2 * + - col2 - - col1 * - + 45 + - col0 * - + col1 * col1 AS col2 FROM tab2
----
116822
330296
374391

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT - 80 DIV col1 * + col0 * col1 - 87 + - col1 - col2 * + + 80 FROM tab1
----
-11351
-11612
-9851

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 80 / col1 * + col0 * col1 - 87 + - col1 - col2 * + + 80 FROM tab1
----
-11351
-11612
-9851

query I rowsort
SELECT DISTINCT + 4 + - + col1 AS col2 FROM tab0 AS cor0
----
-17
-77
3

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE 49 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 86 - - col0 col1 FROM tab1 AS cor0
----
137
171
177

query I rowsort
SELECT DISTINCT + 96 + - col2 + - - 1 * + col2 AS col0 FROM tab2 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT + col0 * CAST( NULL AS SIGNED ) - ( + ( + col2 ) ) + - - col2 + + + col2 + - col0 * + 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT + col0 * CAST ( NULL AS INTEGER ) - ( + ( + col2 ) ) + - - col2 + + + col2 + - col0 * + 39 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL > - col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT + ( + + SUM( ALL col1 ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT + ( + + SUM ( ALL col1 ) ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + 15 - + 12 AS col1 FROM tab1 WHERE col0 - + 89 NOT BETWEEN CAST( - col0 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + 15 - + 12 AS col1 FROM tab1 WHERE col0 - + 89 NOT BETWEEN CAST ( - col0 AS INTEGER ) AND + col2
----

query II rowsort
SELECT ALL + ( - + ( + col1 ) ), - col2 AS col0 FROM tab1
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT + COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4819
SELECT + COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT 75 * COUNT( * ) AS col1 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-4820
SELECT 75 * COUNT ( * ) AS col1 FROM tab1 cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + SUM( + + 54 ) AS col2 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4821
SELECT + SUM ( + + 54 ) AS col2 FROM tab0 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + ( + COUNT( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4822
SELECT + ( + COUNT ( + col1 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 28 ) = ( + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = ( - 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= ( col0 - + 76 * + ( 4 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - MIN( 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - MIN ( 25 ) FROM tab2
----
-25

query I rowsort
SELECT + col2 + + 11 FROM tab2
----
34
51
69

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col2 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4829
SELECT ALL ( - ( 96 ) ) * COUNT( * ) + - 76 FROM tab1 WHERE CAST( NULL AS DECIMAL ) IN ( col0 / + 90 )
----
-76

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL ( - ( 96 ) ) * COUNT ( * ) + - 76 FROM tab1 WHERE CAST ( NULL AS REAL ) IN ( col0 / + 90 )
----
-76

query I rowsort
SELECT col2 * 57 AS col0 FROM tab2
----
1311
2280
3306

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 45 - + col0 AS col2 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT 0 + - col0 * - 97 FROM tab2
----
4462
6208
7275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4835
SELECT DISTINCT * FROM tab1 WHERE ( - 49 ) NOT BETWEEN ( NULL ) AND + ( + CAST( - col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4835
SELECT DISTINCT * FROM tab1 WHERE ( - 49 ) NOT BETWEEN ( NULL ) AND + ( + CAST ( - col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 2 )
----

query I rowsort
SELECT - 37 AS col0 FROM tab0 WHERE - col1 IS NOT NULL
----
-37
-37
-37

query I rowsort
SELECT + 97 + col1 FROM tab2
----
148
164
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + 14 * - COUNT( * ) + - 79 * + MAX( ALL 76 ) AS col1 FROM tab1
----
-6046

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 14 * - COUNT ( * ) + - 79 * + MAX ( ALL 76 ) AS col1 FROM tab1
----
-6046

query I rowsort
SELECT ALL col2 * - 92 FROM tab2 WHERE NOT col0 * + 96 IN ( 65 )
----
-2116
-3680
-5336

query III rowsort
SELECT * FROM tab0 WHERE col1 * - 88 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4842
SELECT ALL + col2 DIV ( col1 ) + + col0 col1 FROM tab2 WHERE ( + 24 * 14 + + col1 ) <> ( CAST( col1 AS SIGNED ) )
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4842
SELECT ALL + col2 / ( col1 ) + + col0 col1 FROM tab2 WHERE ( + 24 * 14 + + col1 ) <> ( CAST ( col1 AS INTEGER ) )
----
46
64
75

query I rowsort
SELECT DISTINCT - 91 * col0 AS col2 FROM tab1
----
-4641
-7735
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL 72 * COUNT( * ) + 83 FROM tab0 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL 72 * COUNT ( * ) + 83 FROM tab0 AS cor0
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT 42 + + 50 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4845
SELECT 42 + + 50 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 60 - col2 * - col2
----

query I rowsort
SELECT col2 + - col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT - col0 + + col1 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT - col0 + + col1 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + 91 IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE 17 NOT IN ( 1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * 0 AS col2 FROM tab1
----
0

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND ( ( col0 ) * 24 )
----

query I rowsort
SELECT ALL 51 + col0 AS col1 FROM tab2
----
115
126
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) + - COUNT( 78 + 15 / + col0 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) + - COUNT ( 78 + 15 / + col0 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col2 * col2 - 92 FROM tab2 AS cor0
----
-1692
-3456
-621

query I rowsort
SELECT col1 - 6 * + col2 AS col2 FROM tab2 AS cor0
----
-163
-281
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + + MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4858
SELECT + + MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT ALL + - 15 DIV + col1 FROM tab0 AS cor0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + - 15 / + col1 FROM tab0 AS cor0
----
-15
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 68 NOT IN ( col2 / col2 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN ( + 87 * 76 ) AND NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT ( + + MAX( - 21 ) ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT ( + + MAX ( - 21 ) ) FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL MIN( + 96 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL MIN ( + 96 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT 24 * - + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT 24 * - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
72

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col1 * + col0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT DISTINCT + col1 DIV - + 71 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT + col1 / - + 71 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + ( - - col0 ) * - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT - MIN( DISTINCT - ( + col1 ) ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4868
SELECT DISTINCT - MIN ( DISTINCT - ( + col1 ) ) col0 FROM tab2
----
77

query I rowsort
SELECT - 21 * + col2 * 10 AS col0 FROM tab2 AS cor0
----
-12180
-4830
-8400

query I rowsort
SELECT ALL - + col1 * - + 71 FROM tab2 AS cor0
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 44 * - COUNT( ALL + col0 ) AS col1 FROM tab2 cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 44 * - COUNT ( ALL + col0 ) AS col1 FROM tab2 cor0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab1 cor0
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT - + col2 DIV + 94 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - + col2 / + 94 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + 56 >= ( NULL ) )
----

query I rowsort
SELECT ALL + 21 AS col2 FROM tab0 WHERE - col0 + - ( - col0 ) >= 86 / col2 + - col0
----
21
21
21

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - col2 * - col1 ) >= NULL )
----

query I rowsort
SELECT DISTINCT + 49 * + col0 + + col1 FROM tab1
----
2513
4170
4506

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + - 64 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-576

skipif mysql # not compatible
query I rowsort label-4880
SELECT + - 64 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT + MIN( + col0 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4881
SELECT + MIN ( + col0 ) AS col2 FROM tab2 cor0
----
46

query II rowsort
SELECT DISTINCT + col1, ( + col0 ) FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + - ( + + col0 ) + + 21 FROM tab0 AS cor0
----
-66
-76
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - 14 )
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - col1 * + 88 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 72 * col0 FROM tab2 AS cor0 WHERE NULL IN ( - col1 )
----

query II rowsort
SELECT DISTINCT + 86, ( + col2 ) AS col2 FROM tab1 AS cor0
----
86
59
86
68
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT + 81 DIV col1 * + 82 + col2 FROM tab2 AS cor0
----
105
122
140

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 81 / col1 * + 82 + col2 FROM tab2 AS cor0
----
105
122
140

query II rowsort
SELECT col1 + + 67, + ( col1 ) AS col1 FROM tab2
----
118
51
134
67
144
77

query I rowsort
SELECT - + ( - col0 ) FROM tab1 WHERE NULL <= - + 95
----

query I rowsort
SELECT col2 + + col1 * + col1 * + col2 FROM tab1
----
150280
1534
18912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT CAST( NULL AS SIGNED ) + - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT CAST ( NULL AS INTEGER ) + - - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 + + col0 FROM tab2
----
39
57
68

query I rowsort
SELECT col0 + + - 24 * + col1 FROM tab1
----
-1037
-285
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT 75 * + - COUNT( * ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT 75 * + - COUNT ( * ) FROM tab0
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT DISTINCT + ( + MIN( + - CAST( - 46 AS SIGNED ) ) ) + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + ( + MIN ( + - CAST ( - 46 AS INTEGER ) ) ) + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL 74 FROM tab1 AS cor0 WHERE ( NULL ) >= col2 - + + 5
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 - - 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL - col1 - - + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - col1 - - + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * + ( + 11 ) * + + 39 * + ( 46 ) + - col2 - + col2 AS col0 FROM tab0
----
-1953864
-197360
-927592

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT + 81 * ( + COUNT( * ) ) AS col1 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + 81 * ( + COUNT ( * ) ) AS col1 FROM tab1
----
243

onlyif mysql # DIV for integer division: 
query II rowsort label-4902
SELECT ALL 75 AS col0, + col0 DIV - col2 FROM tab2 AS cor0
----
75
-1
75
-1
75
-2

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL 75 AS col0, + col0 / - col2 FROM tab2 AS cor0
----
75
-1
75
-1
75
-2

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT + - COUNT( * ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4905
SELECT + - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - - ( 72 ) AS col0 FROM tab1 AS cor0
----
72

query II rowsort
SELECT DISTINCT - 47, col2 AS col2 FROM tab0 AS cor0
----
-47
10
-47
47
-47
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * col0 / - - col1 NOT BETWEEN col2 * + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 AS col2, - 87 AS col1 FROM tab2
----
23
-87
40
-87
58
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + + COUNT( * ) * 73 col0 FROM tab1 WHERE NOT 55 IS NULL
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4910
SELECT + + COUNT ( * ) * 73 col0 FROM tab1 WHERE NOT 55 IS NULL
----
219

query I rowsort
SELECT col1 * + - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT ALL - 55 AS col2, - 76 FROM tab0 cor0
----
-55
-76
-55
-76
-55
-76

query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - - col2 + - + 9 FROM tab0 AS cor0
----
1
38
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4915
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / - - ( ( + 73 ) ) > + 32
----

skipif mysql # not compatible
query III rowsort label-4915
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - - ( ( + 73 ) ) > + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 60 col0 FROM tab0
----
147
157
75

query I rowsort
SELECT - col2 + - - col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT 88 * - + col0 + + col1 + + 38 AS col0 FROM tab2 AS cor0
----
-3959
-5517
-6495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4919
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col0 <> - CAST( CAST( col2 AS DECIMAL ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 <> - CAST ( CAST ( col2 AS REAL ) AS INTEGER )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT DISTINCT + + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT CAST( NULL AS SIGNED ) * + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT CAST ( NULL AS INTEGER ) * + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - 43 + + - ( - COUNT( * ) ) * + 26 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - 43 + + - ( - COUNT ( * ) ) * + 26 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - COUNT( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4923
SELECT - COUNT ( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT - 25 * + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-72
2010
438

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT DISTINCT + - 61 * + ( + + col2 ) + - col1 * - col2 + col0 - - col2 + ( - col2 ) DIV - col0 + 23 AS col1 FROM tab0 AS cor0
----
-280
-5720
1028

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT + - 61 * + ( + + col2 ) + - col1 * - col2 + col0 - - col2 + ( - col2 ) / - col0 + 23 AS col1 FROM tab0 AS cor0
----
-280
-5720
1028

query I rowsort
SELECT DISTINCT + col2 * - - 48 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT col1 * - + 32 + - col1 FROM tab1 AS cor0
----
-1551
-165
-462

query I rowsort
SELECT col0 * col0 * col2 * 63 FROM tab2
----
10321920
20553750
3066084

query III rowsort
SELECT * FROM tab2 WHERE + + col2 / - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 74 * 90 + + col0 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 - 62 + + ( - col1 ) ) IS NULL
----

query I rowsort
SELECT - col1 + - + 96 AS col0 FROM tab0
----
-117
-177
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4933
SELECT DISTINCT * FROM tab0 WHERE ( - ( + CAST( NULL AS SIGNED ) ) * - 9 / - 85 * + + col2 * - + col0 - col0 ) NOT IN ( col2 * + ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4933
SELECT DISTINCT * FROM tab0 WHERE ( - ( + CAST ( NULL AS INTEGER ) ) * - 9 / - 85 * + + col2 * - + col0 - col0 ) NOT IN ( col2 * + ( + col0 ) )
----

query II rowsort
SELECT col2 * - col2 + + col1, + col1 FROM tab0
----
-2128
81
-79
21
-9800
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT + - col2 DIV + col0 * - - 84 * col2 + col0 * 17 FROM tab2 AS cor0
----
1088
1275
782

skipif mysql # not compatible
query I rowsort label-4935
SELECT + - col2 / + col0 * - - 84 * col2 + col0 * 17 FROM tab2 AS cor0
----
1088
1275
782

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT + 18 + + SUM( + col0 ) + - - SUM( ALL + 28 ) col0, + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
287
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4936
SELECT + 18 + + SUM ( + col0 ) + - - SUM ( ALL + 28 ) col0, + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
287
3

query I rowsort
SELECT ALL 76 - - + 54 * + col2 * + col0 FROM tab0 AS cor0
----
38146
47056
518638

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT - SUM( + ( - - col0 ) ) - + - COUNT( ALL + + ( + - col1 ) ) * - COUNT( DISTINCT col2 ) FROM tab0 cor0
----
-208

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - SUM ( + ( - - col0 ) ) - + - COUNT ( ALL + + ( + - col1 ) ) * - COUNT ( DISTINCT col2 ) FROM tab0 cor0
----
-208

query II rowsort
SELECT DISTINCT 39 * col0, col1 AS col1 FROM tab1 WHERE NOT - 60 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4940
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + CAST( col0 AS SIGNED ) >= 93
----

skipif mysql # not compatible
query III rowsort label-4940
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + CAST ( col0 AS INTEGER ) >= 93
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT CAST( COUNT( * ) AS SIGNED ) * - + COUNT( ALL 36 ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4942
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - + COUNT ( ALL 36 ) AS col1 FROM tab2 cor0
----
-9

query I rowsort
SELECT + - 16 AS col1 FROM tab0 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT col2 / 88 + - col0 FROM tab0 AS cor0 WHERE - 99 * - - CAST( - 71 AS SIGNED ) + col1 + + 68 - - col1 BETWEEN NULL AND - col0 OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT col2 / 88 + - col0 FROM tab0 AS cor0 WHERE - 99 * - - CAST ( - 71 AS INTEGER ) + col1 + + 68 - - col1 BETWEEN NULL AND - col0 OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT MIN( 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4946
SELECT MIN ( 84 ) FROM tab2
----
84

query I rowsort
SELECT ALL 76 * - col0 AS col1 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + MIN( + 77 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4948
SELECT + MIN ( + 77 ) FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - COUNT( * ) * 33 * - 4 * - 21 AS col1 FROM tab0
----
-8316

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - COUNT ( * ) * 33 * - 4 * - 21 AS col1 FROM tab0
----
-8316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT 64 DIV MAX( DISTINCT + ( 46 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT 64 / MAX ( DISTINCT + ( 46 ) ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT - col1 FROM tab1 WHERE NOT NULL IN ( + + CAST( NULL AS SIGNED ) + + 16 - col2 + + - col2 * - 3 )
----

skipif mysql # not compatible
query I rowsort label-4951
SELECT - col1 FROM tab1 WHERE NOT NULL IN ( + + CAST ( NULL AS INTEGER ) + + 16 - col2 + + - col2 * - 3 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT DISTINCT CAST( + SUM( ALL col0 ) AS SIGNED ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT CAST ( + SUM ( ALL col0 ) AS INTEGER ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL - 97 * - COUNT( * ) + + COUNT( * ) - - SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - 97 * - COUNT ( * ) + + COUNT ( * ) - - SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4954
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 / + col1 + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 / + col1 + - CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + - col1 + - 23 col0 FROM tab0 cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL - COUNT( * ) * - + SUM( - 55 ) FROM tab1 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL - COUNT ( * ) * - + SUM ( - 55 ) FROM tab1 AS cor0
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT - COUNT( * ) DIV 45 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT - COUNT ( * ) / 45 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE 32 - + col0 + + col1 - + col0 * - ( col2 ) IN ( - 78 )
----

query I rowsort
SELECT + + 94 AS col0 FROM tab0 WHERE NULL IN ( col0, col1 + - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL ( CAST( - + col1 AS SIGNED ) ) col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4960
SELECT ALL ( CAST ( - + col1 AS INTEGER ) ) col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT SUM( ALL - 88 ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT SUM ( ALL - 88 ) FROM tab2
----
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + - col0 col0 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col1, col1 FROM tab0 AS cor0
----
-98
1
11
21
34
81

query I rowsort
SELECT DISTINCT - col1 + - - col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col2 col1 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL + 6 / + + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + 6 / + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT + 94 + ( - CAST( + + col1 AS SIGNED ) ) FROM tab2 cor0
----
17
27
43

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 94 + ( - CAST ( + + col1 AS INTEGER ) ) FROM tab2 cor0
----
17
27
43

query I rowsort
SELECT DISTINCT + 56 + + - col1 * - col2 + + col0 AS col1 FROM tab0 cor0
----
252
353
3878

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 69 / - 82 > + ( + 4 ) * - - 63 * - - ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 33 * - col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4971
SELECT DISTINCT - col0 + col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-4971
SELECT DISTINCT - col0 + col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT - ( col2 ) DIV - col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4972
SELECT - ( col2 ) / - col0 FROM tab0
----
0
1
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 93 >= + col0 - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL + CAST( NULL AS SIGNED ) * + 49 - - - col1 + - col2 * 72 + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + CAST ( NULL AS INTEGER ) * + 49 - - - col1 + - col2 * 72 + 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 - + col1 AS col2, col0 FROM tab1 AS cor0
----
-110
51
-115
91
-64
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 57 AS col2, - col0 * - 84 AS col1 FROM tab2
----
57
3864
57
5376
57
6300

onlyif mysql # DIV for integer division: 
query II rowsort label-4978
SELECT ALL 47 AS col1, + 40 DIV + ( + - col1 ) AS col0 FROM tab1
----
47
-2
47
-8
47
0

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL 47 AS col1, + 40 / + ( + - col1 ) AS col0 FROM tab1
----
47
-2
47
-8
47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT + 48 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + 48 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
432

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col2 > NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 >= - 97
----

query I rowsort
SELECT + - col0 * + 56 FROM tab0 AS cor0
----
-4872
-5432
-840

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col1 + + 57
----

query II rowsort
SELECT - + col1 * - + col0 - + 72 AS col0, - col2 - - ( - + col2 ) FROM tab1 cor0
----
353
-118
4205
-136
642
-192

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( col1, col1, col2 )
----

query I rowsort
SELECT ALL + 93 * 1 AS col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4987
SELECT ALL CAST( - col0 AS DECIMAL ) / + ( - + 81 ) + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL >= - + 16 )
----

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL CAST ( - col0 AS REAL ) / + ( - + 81 ) + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL >= - + 16 )
----

query I rowsort
SELECT DISTINCT 69 * col2 AS col1 FROM tab2 AS cor0
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - ( MIN( col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4989
SELECT - ( MIN ( col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + COUNT( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT - col0 * - - col2 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + COUNT( * ) + 62 AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + COUNT ( * ) + 62 AS col2 FROM tab1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT DISTINCT - 78 AS col0 FROM tab1 WHERE + 47 * - col0 <= + CAST( NULL AS SIGNED ) * 30 + col2
----

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - 78 AS col0 FROM tab1 WHERE + 47 * - col0 <= + CAST ( NULL AS INTEGER ) * 30 + col2
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT - ( col0 ) AS col1, - col0 * 76 * - 98 FROM tab1 AS cor0
----
-51
379848
-85
633080
-91
677768

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4996
SELECT ( + + CAST( NULL AS SIGNED ) ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4996
SELECT ( + + CAST ( NULL AS INTEGER ) ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL - ( + 13 ) FROM tab1
----
-13
-13
-13

query I rowsort
SELECT ( + 76 ) AS col0 FROM tab1 WHERE ( ( - - col2 + 61 IS NOT NULL ) )
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT ALL + CAST( + 54 AS SIGNED ) * + - 1 + - 17 FROM tab1 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL + CAST ( + 54 AS INTEGER ) * + - 1 + - 17 FROM tab1 AS cor0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5001
SELECT - CAST( NULL AS SIGNED ) AS col2, 65 AS col0 FROM tab2 AS cor0
----
NULL
65
NULL
65
NULL
65

skipif mysql # not compatible
query II rowsort label-5001
SELECT - CAST ( NULL AS INTEGER ) AS col2, 65 AS col0 FROM tab2 AS cor0
----
NULL
65
NULL
65
NULL
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT + + col1 * - col1 + col1 + col1 DIV col0 - col0 col1 FROM tab1 AS cor0
----
-105
-2253
-233

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5002
SELECT + + col1 * - col1 + col1 + col1 / col0 - col0 col1 FROM tab1 AS cor0
----
-105
-2253
-233

query I rowsort
SELECT ALL - 99 + + - col2 AS col2 FROM tab1 cor0
----
-158
-167
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5004
SELECT * FROM tab1 WHERE + col2 + + 8 IN ( 80, - CAST( col1 AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-5004
SELECT * FROM tab1 WHERE + col2 + + 8 IN ( 80, - CAST ( col1 AS INTEGER ) + col1 )
----

query I rowsort
SELECT ALL col1 * - col1 * - 4 * + col0 AS col1 FROM tab1
----
39984
804076
8500

query II rowsort
SELECT ALL + col2, + col1 + + ( + + 39 ) FROM tab1
----
59
44
68
86
96
53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5007
SELECT ALL CAST( NULL AS DECIMAL ) col1, col1 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-5007
SELECT ALL CAST ( NULL AS REAL ) col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT MIN( ALL col0 ) + - 86 * 33 + - - 86 * 23 + + - 21 * 99 AS col1 FROM tab1
----
-2888

skipif mysql # not compatible
query I rowsort label-5008
SELECT MIN ( ALL col0 ) + - 86 * 33 + - - 86 * 23 + + - 21 * 99 AS col1 FROM tab1
----
-2888

query I rowsort
SELECT - col0 * ( - 94 ) AS col1 FROM tab0 AS cor0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL COUNT( * ) * + 45 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL COUNT ( * ) * + 45 FROM tab0 AS cor0
----
135

query I rowsort
SELECT 84 FROM tab1 cor0 WHERE NOT NULL BETWEEN + 87 + - col2 / 34 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5013
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 - col0 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5013
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 - col0 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5014
SELECT + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( ( - 22 ) ) AS col0 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT - 22 AS col0, COUNT( * ) FROM tab1
----
-22
3

skipif mysql # not compatible
query II rowsort label-5016
SELECT - 22 AS col0, COUNT ( * ) FROM tab1
----
-22
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT - 89 DIV col1 + col2 DIV + col1 AS col2 FROM tab1
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT - 89 / col1 + col2 / + col1 AS col2 FROM tab1
----
-6
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT ALL COUNT( * ) AS col2, - MIN( col0 ) FROM tab1
----
3
-51

skipif mysql # not compatible
query II rowsort label-5018
SELECT ALL COUNT ( * ) AS col2, - MIN ( col0 ) FROM tab1
----
3
-51

query I rowsort
SELECT + 71 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 < + + 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2, - col2, col2 * + - col2 col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 52 + - 85 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT - - COUNT( * ) + - 10 * + - COUNT( ALL col0 ) * + - SUM( - col0 ) + 28 AS col1 FROM tab2 AS cor0
----
5581

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - - COUNT ( * ) + - 10 * + - COUNT ( ALL col0 ) * + - SUM ( - col0 ) + 28 AS col1 FROM tab2 AS cor0
----
5581

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ( + + MAX( DISTINCT + col2 ) ) * 84 col0 FROM tab2
----
4872

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT ( + + MAX ( DISTINCT + col2 ) ) * 84 col0 FROM tab2
----
4872

query I rowsort
SELECT col1 * + 65 AS col2 FROM tab2
----
3315
4355
5005

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 - + col1 <= - 68
----

query I rowsort
SELECT ALL - col2 * + col1 * + 41 FROM tab2 AS cor0
----
-126280
-159326
-48093

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5028
SELECT DISTINCT 20 DIV + + 86 + - MIN( ALL + 33 ) AS col1, 2 AS col0 FROM tab1 AS cor0
----
-33
2

skipif mysql # not compatible
query II rowsort label-5028
SELECT DISTINCT 20 / + + 86 + - MIN ( ALL + 33 ) AS col1, 2 AS col0 FROM tab1 AS cor0
----
-33
2

query I rowsort
SELECT ALL 54 + col1 FROM tab0 AS cor0
----
135
55
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT + + COUNT( * ) * + - COUNT( * ) - - - 78 - ( + 18 ) AS col2 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + + COUNT ( * ) * + - COUNT ( * ) - - - 78 - ( + 18 ) AS col2 FROM tab2 AS cor0
----
-105

query II rowsort
SELECT DISTINCT 42 - + + ( + 94 ), - col0 AS col1 FROM tab2
----
-52
-46
-52
-64
-52
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - MAX( - 77 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5033
SELECT - MAX ( - 77 ) col0 FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-5034
SELECT col0, + col2 DIV col1 * - + 55 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5034
SELECT col0, + col2 / col1 * - + 55 FROM tab2
----
46
0
64
0
75
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / + + col0 >= - ( - + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 90 * + ( col1 ) * + col1 AS col2 FROM tab1
----
17640
198810
2250

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5037
SELECT ALL * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5037
SELECT ALL * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + - 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 68 * + - 3 AS col1 FROM tab0 AS cor0
----
204
204
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT + MAX( + + 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5040
SELECT + MAX ( + + 62 ) FROM tab2 AS cor0
----
62

query II rowsort
SELECT DISTINCT - col1 AS col1, 9 AS col1 FROM tab2
----
-51
9
-67
9
-77
9

query I rowsort
SELECT col1 / - + 20 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL col2 DIV + + col2 + + col2 - - - 55 FROM tab2 cor0
----
-14
-31
4

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL col2 / + + col2 + + col2 - - - 55 FROM tab2 cor0
----
-14
-31
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5044
SELECT + 34 AS col0, + CAST( NULL AS SIGNED ) / + col2 * - col1 * - + col0 AS col1 FROM tab0 AS cor0
----
34
NULL
34
NULL
34
NULL

skipif mysql # not compatible
query II rowsort label-5044
SELECT + 34 AS col0, + CAST ( NULL AS INTEGER ) / + col2 * - col1 * - + col0 AS col1 FROM tab0 AS cor0
----
34
NULL
34
NULL
34
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5045
SELECT DISTINCT + + col0, CAST( NULL AS SIGNED ) + col0 + + - 23 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5045
SELECT DISTINCT + + col0, CAST ( NULL AS INTEGER ) + col0 + + - 23 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL COUNT( + + col2 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5046
SELECT ALL COUNT ( + + col2 ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - + COUNT( + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5047
SELECT - + COUNT ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 84 IS NOT NULL
----

query I rowsort
SELECT ALL 54 + 69 FROM tab0 AS cor0
----
123
123
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5050
SELECT ALL + - COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5050
SELECT ALL + - COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT col1 DIV + + col1 + 37 AS col1 FROM tab0 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5052
SELECT col1 / + + col1 + 37 AS col1 FROM tab0 AS cor0
----
38
38
38

query II rowsort
SELECT ALL + 34 AS col1, ( col0 ) AS col1 FROM tab2 AS cor0
----
34
46
34
64
34
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5054
SELECT CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - 34 * + ( SUM( ALL - col1 ) ) + - - 43 FROM tab1 AS cor0
----
2287

skipif mysql # not compatible
query I rowsort label-5055
SELECT - 34 * + ( SUM ( ALL - col1 ) ) + - - 43 FROM tab1 AS cor0
----
2287

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT - MIN( 48 ) * - COUNT( * ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - MIN ( 48 ) * - COUNT ( * ) FROM tab1 AS cor0
----
144

query I rowsort
SELECT + 39 * 40 FROM tab1 cor0
----
1560
1560
1560

query III rowsort
SELECT * FROM tab2 WHERE NOT - 41 + + - col1 = - - col0 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT + col0 DIV + 60 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5059
SELECT + col0 / + 60 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL 91 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT COUNT( * ) * - + COUNT( * ) * - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5061
SELECT COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT - col0 DIV col1 + 77 col1 FROM tab1 AS cor0
----
60
74
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5063
SELECT - col0 / col1 + 77 col1 FROM tab1 AS cor0
----
60
74
76

query I rowsort
SELECT + 36 * 30 AS col1 FROM tab2 AS cor0
----
1080
1080
1080

query I rowsort
SELECT 89 AS col0 FROM tab0 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT - COUNT( * ) * + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5066
SELECT - COUNT ( * ) * + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col1 * - 3 AS col1 FROM tab0 AS cor0
----
-243
-3
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-5068
SELECT DISTINCT + col2 + col2 DIV + + col1 AS col0, + col2 FROM tab1 cor0
----
102
96
69
68
70
59

skipif mysql # not compatible
query II rowsort label-5068
SELECT DISTINCT + col2 + col2 / + + col1 AS col0, + col2 FROM tab1 cor0
----
102
96
69
68
70
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT - COUNT( ALL + - ( col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - COUNT ( ALL + - ( col0 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + ( - col2 ) + + ( - + 53 ) * + col0 FROM tab2 WHERE - + col1 NOT IN ( - 84, 37, - 41, - + col0 )
----
-2461
-3432
-4033

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT SUM( - 35 ) * 57 FROM tab2
----
-5985

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT SUM ( - 35 ) * 57 FROM tab2
----
-5985

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - ( + + COUNT( * ) ) * + COUNT( * ) + 30 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5072
SELECT - ( + + COUNT ( * ) ) * + COUNT ( * ) + 30 FROM tab1
----
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5074
SELECT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + col2 * + 13 FROM tab1
----
1248
767
884

query I rowsort
SELECT ALL 36 * - 51 FROM tab1 AS cor0
----
-1836
-1836
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 86 + 78 * col0 col1, col2 FROM tab1 AS cor0
----
3892
96
6544
59
7012
68

query II rowsort
SELECT ALL + col0 + - + col2 / - - col0 + + col2, col1 * + 35 / - - col1 + + + 5 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col0 + - col0 * 52 * + col0 FROM tab0 AS cor0
----
-11685
-393501
-489171

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT 91 * MAX( 84 ) AS col2 FROM tab2
----
7644

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT 91 * MAX ( 84 ) AS col2 FROM tab2
----
7644

query I rowsort
SELECT 67 + + col2 AS col2 FROM tab2
----
107
125
90

query III rowsort
SELECT * FROM tab0 WHERE - col2 >= + 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT ALL + col2 DIV col2 * - - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + col2 / col2 * - - col0 FROM tab1
----
51
85
91

query I rowsort
SELECT 90 + + col2 * + + col2 * + col1 FROM tab1
----
129114
17495
217418

query I rowsort
SELECT 11 * + col2 + col1 FROM tab1
----
1070
654
795

query I rowsort
SELECT 97 + col1 AS col2 FROM tab2
----
148
164
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT + - ( + 86 ) FROM tab1 WHERE - + 72 / - CAST( NULL AS SIGNED ) + - col1 IS NULL
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - ( + 86 ) FROM tab1 WHERE - + 72 / - CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT ( + 69 ), COUNT( * ) AS col0 FROM tab1
----
69
3

skipif mysql # not compatible
query II rowsort label-5089
SELECT ( + 69 ), COUNT ( * ) AS col0 FROM tab1
----
69
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5090
SELECT DISTINCT col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT + MAX( DISTINCT 4 ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5091
SELECT + MAX ( DISTINCT 4 ) AS col0 FROM tab0 AS cor0
----
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 18 FROM tab2 AS cor0
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + + MAX( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + + MAX ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5095
SELECT ( CAST( NULL AS DECIMAL ) ) AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5095
SELECT ( CAST ( NULL AS REAL ) ) AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - 29 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5097
SELECT CAST( - MIN( DISTINCT - col0 ) AS SIGNED ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-5097
SELECT CAST ( - MIN ( DISTINCT - col0 ) AS INTEGER ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
75
3

query I rowsort
SELECT DISTINCT - - 3 AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 55, - col2 AS col1 FROM tab1
----
55
-59
55
-68
55
-96

query I rowsort
SELECT ALL - col1 * + + 4 FROM tab0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT DISTINCT 9 AS col0, + MIN( ( - ( col0 ) ) ) FROM tab1
----
9
-91

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT 9 AS col0, + MIN ( ( - ( col0 ) ) ) FROM tab1
----
9
-91

query I rowsort
SELECT ALL + 77 * + col0 + - col0 / ( - 3 ) / - + 22 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + 31 <> 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 44 * col2 * - 80 col2, - 95 FROM tab0 cor0
----
-165440
-95
-348480
-95
-35200
-95

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 44 * - col2 IS NOT NULL
----

query I rowsort
SELECT + + 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 90 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5108
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * + + 83 + + + col2 NOT IN ( - 9, + 33 )
----

query I rowsort
SELECT 54 + - col0 + 99 FROM tab2
----
107
78
89

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT ALL + 97 + + col1 FROM tab0 cor0
----
118
178
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT + MAX( DISTINCT 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + MAX ( DISTINCT 65 ) FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + MIN( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5114
SELECT + MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) = - col2
----

query I rowsort
SELECT + col2 * 69 * - 61 FROM tab1 AS cor0
----
-248331
-286212
-404064

query I rowsort
SELECT ALL + 49 * - + 57 * + - col0 FROM tab0 AS cor0
----
242991
270921
41895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5118
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * + - ( - + col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL - - col2 * 95 AS col0 FROM tab0 AS cor0
----
4465
9405
950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - ( - - COUNT( ALL + 6 ) ) FROM tab1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - ( - - COUNT ( ALL + 6 ) ) FROM tab1 WHERE NOT NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + - col2 / + 47 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL BETWEEN ( - - 59 ) AND ( 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col0 col2 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5127
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-5127
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + 87 <= NULL
----

query I rowsort
SELECT ALL - col1 + + + col1 - + + 87 AS col2 FROM tab2
----
-87
-87
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE - CAST( - col0 AS DECIMAL ) < + col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - col0 AS REAL ) < + col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT ALL + + 34 DIV + - 28 + col0 * - + col1 FROM tab2 AS cor0
----
-2347
-4929
-5026

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + + 34 / + - 28 + col0 * - + col1 FROM tab2 AS cor0
----
-2347
-4929
-5026

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - 81 * + SUM( + - col1 ) FROM tab2 AS cor0
----
15795

skipif mysql # not compatible
query I rowsort label-5133
SELECT - 81 * + SUM ( + - col1 ) FROM tab2 AS cor0
----
15795

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5134
SELECT col2, + CAST( + col2 AS SIGNED ) * - - col2 AS col1 FROM tab0 cor0
----
10
100
47
2209
99
9801

skipif mysql # not compatible
query II rowsort label-5134
SELECT col2, + CAST ( + col2 AS INTEGER ) * - - col2 AS col1 FROM tab0 cor0
----
10
100
47
2209
99
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT + MIN( ALL + ( col0 ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + MIN ( ALL + ( col0 ) ) FROM tab1 cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 24 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT - MIN( + 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-5138
SELECT - MIN ( + 8 ) FROM tab2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT + CAST( + MIN( + 19 ) AS SIGNED ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5139
SELECT + CAST ( + MIN ( + 19 ) AS INTEGER ) AS col1 FROM tab2
----
19

query I rowsort
SELECT ALL 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 85 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 85 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT + 32 + + MIN( DISTINCT + 10 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + 32 + + MIN ( DISTINCT + 10 ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT - 54 + - - col1 * col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col0 + - + 19 FROM tab0 AS cor0
----
-106
-116
-34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 - 49 * - ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 - - col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5148
SELECT DISTINCT 63, CAST( - + 99 AS SIGNED ) * + CAST( NULL AS SIGNED ) + col1 FROM tab0 WHERE NOT ( - col2 * + col1 ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-5148
SELECT DISTINCT 63, CAST ( - + 99 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + col1 FROM tab0 WHERE NOT ( - col2 * + col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT 44 + + 4 AS col1 FROM tab0 WHERE + ( - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 * col1 IN ( + 2 - + + col0, 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + 42 * + col1 AS col2 FROM tab2
----
109242
188538
249018

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT DISTINCT - MIN( - + col2 ) + + ( - SUM( + CAST( - col1 AS SIGNED ) ) ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - MIN ( - + col2 ) + + ( - SUM ( + CAST ( - col1 AS INTEGER ) ) ) FROM tab1 AS cor0
----
162

query I rowsort
SELECT DISTINCT + col0 + 89 AS col0 FROM tab1 AS cor0
----
140
174
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT COUNT( DISTINCT col1 ) - COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT COUNT ( DISTINCT col1 ) - COUNT ( * ) AS col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 <> NULL
----

query I rowsort
SELECT col0 + col2 * col0 * - - 84 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR ( NOT NULL IS NULL )
----
411315
421345
519883

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * + 68 / + col1 = - + 26
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * + 68 / + col1 = - + 26
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL - - AVG ( ALL - 55 ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - - AVG ( ALL - 55 ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL - - 63 / CAST( NULL AS SIGNED ) + + - 19 + - 9 * + 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-5160
SELECT ALL - - 63 / CAST ( NULL AS INTEGER ) + + - 19 + - 9 * + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5161
SELECT 11 DIV + - MIN( - 78 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT 11 / + - MIN ( - 78 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5162
SELECT - COUNT( * ) AS col2, - 95 DIV + - MIN( - + col1 ) FROM tab2
----
-3
-1

skipif mysql # not compatible
query II rowsort label-5162
SELECT - COUNT ( * ) AS col2, - 95 / + - MIN ( - + col1 ) FROM tab2
----
-3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT COUNT( DISTINCT - 62 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT COUNT ( DISTINCT - 62 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL ( - + 98 ) AS col0 FROM tab1
----
-98
-98
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT + MAX( - - ( - CAST( NULL AS SIGNED ) ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5165
SELECT + MAX ( - - ( - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 92 * col2 / - col0 FROM tab0 AS cor0 WHERE NOT col0 - - - 71 * + col2 * + + 86 < NULL
----

query II rowsort
SELECT col1 AS col0, + col2 * col0 AS col2 FROM tab0 cor0
----
1
9603
21
870
81
705

query I rowsort
SELECT - - ( + col0 ) * col1 * + col0 + 14 FROM tab1 AS cor0
----
36139
36428
389221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + col0, col0 + - col1 col0 FROM tab0 WHERE NOT col0 * + col0 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5170
SELECT ALL - ( - - COUNT( DISTINCT col0 ) ) DIV - MAX( + - col1 ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - ( - - COUNT ( DISTINCT col0 ) ) / - MAX ( + - col1 ) + - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col0 * + + ( + + 63 ) + col1 FROM tab0 AS cor0
----
-5460
-6110
-864

query I rowsort
SELECT - ( - + col2 ) * col1 * + - 15 FROM tab1 AS cor0
----
-20160
-4425
-47940

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - - COUNT( * ) + + + 63 col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5173
SELECT ALL - - COUNT ( * ) + + + 63 col1 FROM tab2 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 col0, 97 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT + MAX( DISTINCT - - 85 ) + - 90 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT + MAX ( DISTINCT - - 85 ) + - 90 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT - COUNT( * ) - + - 74 AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - COUNT ( * ) - + - 74 AS col1 FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT - SUM( + 82 ) FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5177
SELECT - SUM ( + 82 ) FROM tab1 AS cor0
----
-246

query I rowsort
SELECT + - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 40 - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-19
-39
41

query I rowsort
SELECT ALL col0 - - - col2 FROM tab2
----
17
23
24

query II rowsort
SELECT DISTINCT ( - 70 ) * + + col2 + + 92, col1 AS col1 FROM tab0
----
-3198
81
-608
21
-6838
1

query I rowsort
SELECT DISTINCT + 67 * 80 AS col1 FROM tab0
----
5360

query I rowsort
SELECT 51 + ( + col1 ) + + 47 * col1 AS col2 FROM tab0
----
1059
3939
99

query II rowsort
SELECT DISTINCT col2, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5185
SELECT - + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 10 FROM tab1 cor0 WHERE NOT 39 IN ( - col2 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT ALL COUNT( * ), + 75 AS col2 FROM tab2 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-5187
SELECT ALL COUNT ( * ), + 75 AS col2 FROM tab2 AS cor0
----
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - + MIN( ALL + - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5188
SELECT - + MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT + 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT + col2 DIV - 31 - col0 FROM tab0 cor0
----
-100
-16
-87

skipif mysql # not compatible
query I rowsort label-5190
SELECT + col2 / - 31 - col0 FROM tab0 cor0
----
-100
-16
-87

query I rowsort
SELECT ALL + - 47 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT + + ( + col1 ) * - + ( + + col0 ) / + CAST( NULL AS SIGNED ) * - + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT + + ( + col1 ) * - + ( + + col0 ) / + CAST ( NULL AS INTEGER ) * - + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 22 * - + col1, + col0 + + 36 AS col1 FROM tab0 AS cor0
----
1782
51
22
133
462
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL - + SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - + SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab2 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab1 WHERE NOT 55 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab1 WHERE NOT 55 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - 60 * - col1 AS col2 FROM tab1
----
2820
300
840

query I rowsort
SELECT DISTINCT - 16 * - col2 AS col0 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query II rowsort label-5199
SELECT - ( + 71 ), + MIN( DISTINCT + - col2 ) + COUNT( DISTINCT - 63 ) AS col1 FROM tab2 WHERE NOT - col1 <> col0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-5199
SELECT - ( + 71 ), + MIN ( DISTINCT + - col2 ) + COUNT ( DISTINCT - 63 ) AS col1 FROM tab2 WHERE NOT - col1 <> col0
----
-71
NULL

query I rowsort
SELECT 88 + + ( col2 ) + 85 AS col0 FROM tab2
----
196
213
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT - 23 - + - MAX( 58 ) FROM tab1 WHERE col2 + 7 + - ( + + col0 ) * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - 23 - + - MAX ( 58 ) FROM tab1 WHERE col2 + 7 + - ( + + col0 ) * col0 IS NULL
----
NULL

query I rowsort
SELECT - + 33 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1320
-1914
-759

query I rowsort
SELECT + 38 + - 54 AS col2 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT + - 15 * - col2 + + col2 + - col0 FROM tab2 AS cor0
----
322
576
853

query I rowsort
SELECT DISTINCT - - 8 - - - col1 + col2 FROM tab2 AS cor0
----
-1
-20
-29

query I rowsort
SELECT ALL + - col1 * + col1 + - - col0 + + 15 - - col0 FROM tab2 AS cor0
----
-2494
-4324
-5786

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 61 ) <> + col2 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT - COUNT( * ) + - COUNT( * ), - 18 AS col0 FROM tab0 cor0
----
-6
-18

skipif mysql # not compatible
query II rowsort label-5208
SELECT - COUNT ( * ) + - COUNT ( * ), - 18 AS col0 FROM tab0 cor0
----
-6
-18

query II rowsort
SELECT DISTINCT - col1 - + 5, 42 * - 9 AS col1 FROM tab2
----
-56
-378
-72
-378
-82
-378

query I rowsort
SELECT col0 * + - 70 FROM tab2
----
-3220
-4480
-5250

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + - ( + col0 ) + - - col2 * - - 93 + + 68 - + col0 NOT BETWEEN NULL AND - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT COUNT( 88 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5212
SELECT COUNT ( 88 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab1
----
91
91
91

query I rowsort
SELECT - col2 - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) * 67 + - - 12 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * 67 + - - 12 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT + + MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + 91 * + col1 - + col0, - col2 AS col0 FROM tab1 AS cor0
----
1223
-96
370
-59
4186
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - - col1 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL col0 * ( - 88 ) * + col0 + 42 FROM tab0 AS cor0
----
-19758
-666030
-827950

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 25 * col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL CAST( - + col0 AS SIGNED ) * + col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL CAST ( - + col0 AS INTEGER ) * + col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE + 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT MIN( col1 ) FROM tab2 WHERE ( NULL ) IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT MIN ( col1 ) FROM tab2 WHERE ( NULL ) IS NULL
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - col1, + col1 col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

query II rowsort
SELECT - 62 + - + col0, col1 FROM tab2 cor0
----
-108
51
-126
77
-137
67

query I rowsort
SELECT + 64 + - col0 + - 31 AS col1 FROM tab1 AS cor0
----
-18
-52
-58

query I rowsort
SELECT - - col1 + col2 - 5 FROM tab2 AS cor0
----
112
120
69

query I rowsort
SELECT ALL - col2 * - 94 + col2 AS col2 FROM tab0 AS cor0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - COUNT( * ) + - 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-102

skipif mysql # not compatible
query I rowsort label-5229
SELECT - COUNT ( * ) + - 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT + 71 DIV + 18 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT + 71 / + 18 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5231
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 31 + - col2 + 55 AS col2 FROM tab2 AS cor0
----
28
46
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL + SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5234
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + 45 + - - 46 + 42 AS col2 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT 9 - + 58 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - - 33 + - + col2 AS col1 FROM tab1 AS cor0
----
-26
-35
-63

query I rowsort
SELECT + col1 - 54 * - col0 FROM tab1 AS cor0
----
2768
4595
4961

query I rowsort
SELECT 41 - + col0 * - ( + - col0 ) * - 1 * + col1 + + 28 FROM tab1
----
36194
36483
389276

query I rowsort
SELECT ALL + col0 + - 61 / - - col2 * + col0 AS col2 FROM tab2 WHERE NOT + col0 * - + ( + 83 ) < NULL
----

query II rowsort
SELECT + 43, col2 FROM tab2
----
43
23
43
40
43
58

query II rowsort
SELECT DISTINCT 89 AS col1, + col0 * col0 FROM tab0
----
89
225
89
7569
89
9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 * + - col1 IS NOT NULL
----

query I rowsort
SELECT 86 * - + 91 FROM tab1 AS cor0
----
-7826
-7826
-7826

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = - col2 + + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + COUNT( * ) * + 2 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5246
SELECT + COUNT ( * ) * + 2 AS col2 FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - - 71 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
71
-59
71
-68
71
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT DISTINCT + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL 27 * - col1 * + col0 FROM tab2
----
-133056
-135675
-63342

query I rowsort
SELECT ( - 60 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - + ( + SUM( ( + 20 ) ) ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - + ( + SUM ( ( + 20 ) ) ) AS col0 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT ALL - ( 4 ) * - 39 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
156
156
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > - col1 - - + 7 - col2 - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 75 ) * + + col1 * - col2 col1 FROM tab1
----
100800
22125
239700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 62 * 5 col2 FROM tab0
----
-15
310
-87
310
-97
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + 35 FROM tab2 WHERE - ( col0 ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 35 FROM tab2 WHERE - ( col0 ) <> ( NULL )
----
NULL

query I rowsort
SELECT col1 + + - col0 * - - col0 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT col0 + + col0 * 7 AS col0 FROM tab0
----
120
696
776

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT + col0 DIV + col2 + + + 41 AS col1 FROM tab2
----
42
42
43

skipif mysql # not compatible
query I rowsort label-5260
SELECT + col0 / + col2 + + + 41 AS col1 FROM tab2
----
42
42
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT COUNT( * ) + + COUNT( * ) + + 46 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-5261
SELECT COUNT ( * ) + + COUNT ( * ) + + 46 FROM tab2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT SUM( DISTINCT + col2 ) + 9 AS col0 FROM tab1
----
232

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT SUM ( DISTINCT + col2 ) + 9 AS col0 FROM tab1
----
232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 col1 FROM tab1 WHERE ( + col2 - - 47 IS NOT NULL )
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query III rowsort label-5264
SELECT + 35 * MIN( - + 16 ), + COUNT( * ) + - COUNT( * ) AS col0, + 22 AS col2 FROM tab1, tab1 cor0
----
-560
0
22

skipif mysql # not compatible
query III rowsort label-5264
SELECT + 35 * MIN ( - + 16 ), + COUNT ( * ) + - COUNT ( * ) AS col0, + 22 AS col2 FROM tab1, tab1 cor0
----
-560
0
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT + col2 DIV 97 + + col2 col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5265
SELECT + col2 / 97 + + col2 col1 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col1 FROM tab2 WHERE - 37 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT ( - - 80 ) DIV - + col1 + - 61 FROM tab0 cor0
----
-141
-61
-64

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT ( - - 80 ) / - + col1 + - 61 FROM tab0 cor0
----
-141
-61
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT DISTINCT + 79 * + col2 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + 79 * + col2 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT ALL + col1 * + + 67 + - 49 DIV - ( + col2 ) - - col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
3414
4538
5163

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + col1 * + + 67 + - 49 / - ( + col2 ) - - col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
3414
4538
5163

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 84 ) BETWEEN - 73 * + col2 - - col2 * - col2 AND - col2 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5271
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) + - 64 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 64 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT + col1 + + CAST( col2 - - 79 * ( - col2 * - 96 ) AS SIGNED ) * 7 FROM tab2 WHERE ( NULL ) NOT IN ( CAST( - col1 AS SIGNED ) * col1 + + 52 )
----

skipif mysql # not compatible
query I rowsort label-5272
SELECT + col1 + + CAST ( col2 - - 79 * ( - col2 * - 96 ) AS INTEGER ) * 7 FROM tab2 WHERE ( NULL ) NOT IN ( CAST ( - col1 AS INTEGER ) * col1 + + 52 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5273
SELECT - 80 * - col2 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 80 * - col2 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 + 56 FROM tab2 WHERE 15 IS NULL
----

query I rowsort
SELECT col2 * 49 + col2 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT - 35 * + ( + col2 ) AS col2 FROM tab2
----
-1400
-2030
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT - ( COUNT( * ) ) + + MIN( ( + 48 ) ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - ( COUNT ( * ) ) + + MIN ( ( + 48 ) ) FROM tab1
----
45

query I rowsort
SELECT + 24 * col0 AS col1 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT DISTINCT col1 * 65 FROM tab0
----
1365
5265
65

query I rowsort
SELECT DISTINCT col0 * col2 + 59 FROM tab2
----
1117
2619
4409

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT - 15 * ( + COUNT( * ) ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT - 15 * ( + COUNT ( * ) ) AS col1 FROM tab2
----
-45

query I rowsort
SELECT ALL + 44 FROM tab2 WHERE NOT ( col0 ) IN ( + col2 )
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + COUNT( * ) * - ( + COUNT( * ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5284
SELECT + COUNT ( * ) * - ( + COUNT ( * ) ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5285
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 / + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5285
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 / + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT MIN( 7 ) * 7 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT MIN ( 7 ) * 7 FROM tab1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT ALL 5 DIV col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL 5 / col1 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL - ( - col2 ) * + col2 - - 54 AS col0 FROM tab1 WHERE + 22 * col0 = ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 38 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - SUM( - col0 ) col1 FROM tab0 WHERE NULL NOT IN ( - 45 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5290
SELECT - SUM ( - col0 ) col1 FROM tab0 WHERE NULL NOT IN ( - 45 )
----
NULL

query I rowsort
SELECT - col2 * col0 + + col0 FROM tab2
----
-1012
-2496
-4275

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + ( - 86 + + col2 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT DISTINCT 70 DIV col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT 70 / col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - SUM( + col0 ) + 49 col0 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5294
SELECT - SUM ( + col0 ) + 49 col0 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----
NULL

query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - col2 <> NULL
----

query I rowsort
SELECT ALL - col0 * + 42 + - col1 AS col0 FROM tab2 cor0
----
-1983
-2765
-3217

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT MIN( + col1 ) * + 38 AS col0 FROM tab1 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-5300
SELECT MIN ( + col1 ) * + 38 AS col0 FROM tab1 AS cor0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( 97 ) ) <= + ( col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5301
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( 97 ) ) <= + ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + MIN( 7 ) AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5302
SELECT + MIN ( 7 ) AS col2 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT MIN( + ( 75 ) ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5303
SELECT MIN ( + ( 75 ) ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT COUNT( * ) * - 25 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5305
SELECT COUNT ( * ) * - 25 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( 46 )
----

query I rowsort
SELECT DISTINCT - 4 + col2 FROM tab2
----
19
36
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab2
----
-85
-85
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( 15 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT SUM( - 7 ) + 65 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5311
SELECT SUM ( - 7 ) + 65 FROM tab0 AS cor0
----
44

query I rowsort
SELECT ALL + 50 + + 39 * + 89 AS col0 FROM tab1 AS cor0
----
3521
3521
3521

query I rowsort
SELECT + 6 + - 78 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
2529
4417
5857

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN ( NULL ) AND col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * ( + + 25 ) - 43 FROM tab0 cor0
----
1132
207
2432

query I rowsort
SELECT ALL - ( - 62 ) + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-4834
-4953
-6126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 92 )
----

query I rowsort
SELECT DISTINCT col0 * + 37 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT - col1 DIV col1 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-5322
SELECT - col1 / col1 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT DISTINCT - col1 DIV - - 55 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT - col1 / - - 55 FROM tab0 cor0
----
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT - - COUNT( * ) AS col1, + 48 AS col0 FROM tab2 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-5325
SELECT - - COUNT ( * ) AS col1, + 48 AS col0 FROM tab2 AS cor0
----
3
48

query I rowsort
SELECT ALL ( + + 40 ) FROM tab2 AS cor0
----
40
40
40

query II rowsort
SELECT DISTINCT - 72, col0 FROM tab1 cor0
----
-72
51
-72
85
-72
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL + - COUNT( * ) * - 50 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + - COUNT ( * ) * - 50 FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5329
SELECT ALL - col2 + + 35 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 + + + CAST( NULL AS DECIMAL ) AND - col2 * 18
----

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - col2 + + 35 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 + + + CAST ( NULL AS REAL ) AND - col2 * 18
----

query I rowsort
SELECT + ( 45 ) FROM tab1
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + ( - + 44 ) ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5332
SELECT ALL SUM( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL SUM ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( - col2 ) ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - SUM( + 2 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5334
SELECT - SUM ( + 2 ) AS col0 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - 47 * 21 * - SUM( + col2 ) AS col1 FROM tab0
----
153972

skipif mysql # not compatible
query I rowsort label-5335
SELECT - 47 * 21 * - SUM ( + col2 ) AS col1 FROM tab0
----
153972

query I rowsort
SELECT ALL - col1 * - + 69 AS col1 FROM tab2
----
3519
4623
5313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT ALL - - col0 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - - col0 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 99 NOT IN ( 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT + MAX( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5342
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 36 NOT IN ( - + CAST( - - col1 AS SIGNED ) - col2 ) AND NOT + ( 44 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5342
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 36 NOT IN ( - + CAST ( - - col1 AS INTEGER ) - col2 ) AND NOT + ( 44 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL + - CAST( - col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + - CAST ( - col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 77 - - + 60 * + 43 + - col2 col1 FROM tab1 AS cor0
----
6411
9066
9519

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + - col0 + + - col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 * col2 + - + col0 FROM tab0 WHERE NOT - - col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT MIN( 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5347
SELECT MIN ( 63 ) FROM tab0
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5348
SELECT + COUNT( * ) col2 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) IN ( col2 * - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5348
SELECT + COUNT ( * ) col2 FROM tab2 WHERE - CAST ( NULL AS REAL ) IN ( col2 * - col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 62 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 1 BETWEEN 23 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - 98 FROM tab0 WHERE NULL NOT IN ( - - col1 * - col2 * ( col0 ) + col2 )
----

query I rowsort
SELECT col2 - - + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ( - col1 ) * 44 - 24 * + col1 AS col0 FROM tab1 AS cor0
----
-3196
-340
-952

query I rowsort
SELECT 15 + col1 AS col2 FROM tab2
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT col2 / CAST( NULL AS SIGNED ) + + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT col2 / CAST ( NULL AS INTEGER ) + + - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5356
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col2 * + col0 DIV + col0 AS col1 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col2 * + col0 / + col0 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT 64 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT 64 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 NOT IN ( ( col0 ) + - - col0 )
----

query I rowsort
SELECT DISTINCT + 66 FROM tab2 AS cor0 WHERE NOT ( - col2 / + + ( 71 ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT DISTINCT ( + ( + - 60 ) ) * + col2 * - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-17700
-191760
-80640

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT ( + ( + - 60 ) ) * + col2 * - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-17700
-191760
-80640

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT MIN( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT MIN ( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - SUM( ALL - + 43 ) col0 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5362
SELECT - SUM ( ALL - + 43 ) col0 FROM tab2 AS cor0
----
129

query II rowsort
SELECT - col2 AS col2, 10 * - col0 AS col0 FROM tab1
----
-59
-850
-68
-910
-96
-510

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5364
SELECT - col2 / + + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5364
SELECT - col2 / + + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col1 FROM tab1 WHERE + - col2 + - col2 + - - 49 + - 1 NOT BETWEEN + 68 / - 90 AND ( NULL )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 WHERE + - col2 + - col2 + - - 49 + - 1 NOT BETWEEN + 68 / - 90 AND ( NULL )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 75 col2 FROM tab1
----
1050
3525
375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5367
SELECT CAST( NULL AS SIGNED ) AS col2, - 60 AS col0 FROM tab0
----
NULL
-60
NULL
-60
NULL
-60

skipif mysql # not compatible
query II rowsort label-5367
SELECT CAST ( NULL AS INTEGER ) AS col2, - 60 AS col0 FROM tab0
----
NULL
-60
NULL
-60
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL - + MAX( DISTINCT 13 ) AS col2 FROM tab0 WHERE + col2 * - 67 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - + MAX ( DISTINCT 13 ) AS col2 FROM tab0 WHERE + col2 * - 67 IS NULL
----
NULL

query II rowsort
SELECT 1 AS col2, + col1 AS col2 FROM tab1
----
1
14
1
47
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT - COUNT( DISTINCT col2 ) + 85 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 * + ( + - 74 ) + + 93 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT - COUNT ( DISTINCT col2 ) + 85 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 * + ( + - 74 ) + + 93 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT 46 * - ( - COUNT( * ) ) FROM tab2 WHERE NOT - 92 + + 27 IS NULL
----
138

skipif mysql # not compatible
query I rowsort label-5371
SELECT 46 * - ( - COUNT ( * ) ) FROM tab2 WHERE NOT - 92 + + 27 IS NULL
----
138

query I rowsort
SELECT col1 * 20 AS col0 FROM tab1 AS cor0
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - 90 * + - COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-5373
SELECT - 90 * + - COUNT ( * ) FROM tab1 AS cor0
----
270

query I rowsort
SELECT DISTINCT + 75 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 70 col2 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT ALL col2 * - col1 * + col0 + col0 FROM tab2 AS cor0
----
-197056
-291375
-53912

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5377
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + col0 + + 80 AS col0 FROM tab1 AS cor0
----
131
165
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT DISTINCT - 17 + 42 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR - ( + 95 ) * + col1 + - CAST( - col1 AS SIGNED ) <> + col0 * col1
----
2125
3553
3805

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - 17 + 42 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR - ( + 95 ) * + col1 + - CAST ( - col1 AS INTEGER ) <> + col0 * col1
----
2125
3553
3805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT - - CAST( + CAST( - + 2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5380
SELECT - - CAST ( + CAST ( - + 2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col0 * - 14 FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT - col2 * col1 * + ( + col1 ) FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5383
SELECT ALL + - col1 col1 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - + 46, CAST( - + CAST( col0 AS SIGNED ) AS DECIMAL ) )
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5383
SELECT ALL + - col1 col1 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - + 46, CAST ( - + CAST ( col0 AS INTEGER ) AS REAL ) )
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - ( - + 25 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - - 1 * + - 29 + + COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5385
SELECT - - 1 * + - 29 + + COUNT ( * ) FROM tab0 AS cor0
----
-26

query I rowsort
SELECT - 74 AS col2 FROM tab1 AS cor0 WHERE - ( - col2 ) / - + 44 + col1 > - 67 + + - 16
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT - + 84 + + ( - 94 ) + - 81 * AVG ( ALL + - 41 ) FROM tab0 WHERE - CAST( - 95 AS SIGNED ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT - + 84 + + ( - 94 ) + - 81 * AVG ( ALL + - 41 ) FROM tab0 WHERE - CAST ( - 95 AS INTEGER ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL ( - col0 ) - + - col2 + + col2 * - + col0 AS col2 FROM tab0
----
-673
-947
-9601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT 23 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT 23 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 42 < col2 + - 85 AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + + ( + 42 ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + + ( + 42 ) AS col1 FROM tab0
----
51

query I rowsort
SELECT 14 * - col1 + col0 AS col0 FROM tab0
----
-1119
-207
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT + col2 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT + col2 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5394
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - - ( + COUNT( * ) ) + + 82 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT + CAST ( NULL AS REAL ) - - ( + COUNT ( * ) ) + + 82 AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col2 AS col0, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL SUM( - 94 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL SUM ( - 94 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT ALL + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT ALL col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT + col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT + col2 * - col1 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

query II rowsort
SELECT + - col0 AS col1, 59 FROM tab0 AS cor0
----
-15
59
-87
59
-97
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) <= + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT ALL + COUNT( * ), - 31 AS col0 FROM tab2 AS cor0
----
3
-31

skipif mysql # not compatible
query II rowsort label-5403
SELECT ALL + COUNT ( * ), - 31 AS col0 FROM tab2 AS cor0
----
3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab1 AS cor0 WHERE NULL <= col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( + col1 ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + SUM( 62 ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5407
SELECT + SUM ( 62 ) FROM tab0
----
186

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - 56 ) BETWEEN NULL AND + ( - + 13 )
----

query II rowsort
SELECT 22 * + col1 AS col2, - ( + ( + col0 ) ) FROM tab2
----
1122
-46
1474
-75
1694
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT 68 * - + COUNT( * ) * + + 77 AS col2 FROM tab0
----
-15708

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT 68 * - + COUNT ( * ) * + + 77 AS col2 FROM tab0
----
-15708

query I rowsort
SELECT - col1 + + + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT ( SUM( - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT ( SUM ( - col0 ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 36 * col2 < + col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT - 62 / col0 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT - 62 / col0 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5415
SELECT + CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5415
SELECT + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 * 39 + + col0 * - + col2 FROM tab2 AS cor0
----
-1698
1594
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - - 92 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5418
SELECT - - 92 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
89

query II rowsort
SELECT ALL + col0 + - + col2 + - 23 AS col2, - col2 + + 28 FROM tab2 AS cor0
----
-6
-30
0
5
1
-12

query I rowsort
SELECT ALL - 38 - col0 + col0 AS col2 FROM tab1 cor0
----
-38
-38
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - ( + + 15 ) + + col0, col2 col1 FROM tab0 cor0
----
81
47
83
99
93
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5423
SELECT - 94 + - col0 * + CAST( + col1 AS DECIMAL ) * - col1 + + + col0 + - - CAST( NULL AS SIGNED ) + + col2 + col1 / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 94 + - col0 * + CAST ( + col1 AS REAL ) * - col1 + + + col0 + - - CAST ( NULL AS INTEGER ) + + col2 + col1 / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL - ( + - COUNT( DISTINCT + + ( - col1 ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL - ( + - COUNT ( DISTINCT + + ( - col1 ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL - SUM( 71 ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col1 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5425
SELECT ALL - SUM ( 71 ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col1 ) AND NULL
----
NULL

query II rowsort
SELECT ALL - - col1, - col2 * - col2 AS col1 FROM tab2 AS cor0
----
51
529
67
3364
77
1600

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 * + col1 + 51 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND 71
----

query I rowsort
SELECT 46 FROM tab0 WHERE col2 + 45 IS NOT NULL
----
46
46
46

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / col2 + - col0 * + 1 - - col1 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT - col1 IN ( + 57 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT DISTINCT 72 AS col1, 52 * - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72
468

skipif mysql # not compatible
query II rowsort label-5432
SELECT DISTINCT 72 AS col1, 52 * - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 48 ) col1 FROM tab1 AS cor0
----
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 89 < - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT COUNT( * ) AS col1, COUNT( * ) * + - ( + 54 ) FROM tab0 cor0
----
3
-162

skipif mysql # not compatible
query II rowsort label-5435
SELECT COUNT ( * ) AS col1, COUNT ( * ) * + - ( + 54 ) FROM tab0 cor0
----
3
-162

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5438
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 7 NOT IN ( + - CAST( NULL AS DECIMAL ) * col2 * + + 61 + + col1 + 87 - 38 * col1 - 24 )
----

skipif mysql # not compatible
query III rowsort label-5438
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 7 NOT IN ( + - CAST ( NULL AS REAL ) * col2 * + + 61 + + col1 + 87 - 38 * col1 - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - MAX( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - MAX ( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + 65 * COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5440
SELECT + 65 * COUNT ( * ) FROM tab0 AS cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT ALL - col1 * col2 + + 68 DIV - - col1 AS col1 FROM tab2 AS cor0
----
-1172
-3080
-3885

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - col1 * col2 + + 68 / - - col1 AS col1 FROM tab2 AS cor0
----
-1172
-3080
-3885

query I rowsort
SELECT ALL - col2 * + + col2 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 79 AS col0, - col2 col0 FROM tab2
----
79
-23
79
-40
79
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 67
----

query I rowsort
SELECT col2 * - ( - + 49 ) AS col1 FROM tab1
----
2891
3332
4704

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT + ( CAST( - + col1 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5447
SELECT + ( CAST ( - + col1 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5448
SELECT ALL + + CAST( + + COUNT( * ) AS SIGNED ) + - 38 AS col0 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + + CAST ( + + COUNT ( * ) AS INTEGER ) + - 38 AS col0 FROM tab2 AS cor0
----
-35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 * + col1 * - ( col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - ( 22 ) ) * + 81 AND - - 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5451
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN NULL AND + CAST( NULL AS SIGNED ) * - + col0 / - ( - - col1 ) + 62
----

skipif mysql # not compatible
query III rowsort label-5451
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * - + col0 / - ( - - col1 ) + 62
----

query I rowsort
SELECT 13 * - col2 + col0 + + ( - ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
-1091
-33
-549

query I rowsort
SELECT DISTINCT + 20 + - + col2 + ( col0 ) FROM tab0 AS cor0
----
-12
18
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT - - COUNT( + 66 ) + - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT - - COUNT ( + 66 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT ALL - ( - + 53 ) + - col1 DIV col0 * + col2 FROM tab2 AS cor0
----
13
30
53

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - ( - + 53 ) + - col1 / col0 * + col2 FROM tab2 AS cor0
----
13
30
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT 65 - + + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5456
SELECT 65 - + + COUNT ( * ) FROM tab0 AS cor0
----
62

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT 0 - - col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL 69 - - col2 FROM tab0
----
116
168
79

query I rowsort
SELECT - 74 + + col2 FROM tab0 WHERE NULL IS NULL
----
-27
-64
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + 94
----

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab1, tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT col0 DIV + 40 + + col2 FROM tab1
----
61
70
97

skipif mysql # not compatible
query I rowsort label-5463
SELECT col0 / + 40 + + col2 FROM tab1
----
61
70
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL + + CAST( - + 39 AS SIGNED ) AS col1 FROM tab1 WHERE + + 21 >= - col0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + + CAST ( - + 39 AS INTEGER ) AS col1 FROM tab1 WHERE + + 21 >= - col0
----
-39
-39
-39

query II rowsort
SELECT ALL 71 AS col2, 27 * - col1 FROM tab0
----
71
-2187
71
-27
71
-567

query I rowsort
SELECT + 1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query II rowsort
SELECT 27, + ( - - col1 ) AS col1 FROM tab1
----
27
14
27
47
27
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT - col1 DIV - - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5468
SELECT - col1 / - - col0 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 15 >= + 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - ( + 67 ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - ( + 67 ) AND col0
----
0

query I rowsort
SELECT 74 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT - CAST( + ( - col1 ) AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5473
SELECT - CAST ( + ( - col1 ) AS INTEGER ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + ( col2 )
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col1 + - + 87 IS NULL
----
59
68
96

query I rowsort
SELECT + 83 * + col1 * + 33 + + 91 AS col0 FROM tab0
----
221950
2830
57610

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( * ) + + + 79 AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-5477
SELECT COUNT ( * ) + + + 79 AS col2 FROM tab1
----
82

query I rowsort
SELECT + col1 + + - 1 FROM tab0
----
0
20
80

query I rowsort
SELECT ALL - 12 + - col0 * + ( + col1 ) FROM tab1 AS cor0
----
-4289
-437
-726

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT col0 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 77 + - col1 col1 FROM tab0 AS cor0
----
-158
-78
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * + col1 IS NULL
----
0

query I rowsort
SELECT + - ( + - 28 ) FROM tab2 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5484
SELECT - col1 AS col2, - ( col1 ) + - ( - ( - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) - col1 * col0 * + - col0 AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-5484
SELECT - col1 AS col2, - ( col1 ) + - ( - ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) - col1 * col0 * + - col0 AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT - col2 + col1 DIV + col1 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - col2 + col1 / + col1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 42 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 42 <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT - col1 + - col1 + + - 77 AS col1 FROM tab1 AS cor0
----
-105
-171
-87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 89 - 89 AS col2 FROM tab2 AS cor0
----
-178

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 NOT BETWEEN - + col1 AND NULL OR col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( - - 65 ) FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5492
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query I rowsort
SELECT ALL ( + col1 ) - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL ( col2 ) - + 79 AS col0 FROM tab1
----
-11
-20
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5495
SELECT - ( - col2 ) col2, - CAST( + col1 AS SIGNED ) FROM tab2
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5495
SELECT - ( - col2 ) col2, - CAST ( + col1 AS INTEGER ) FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT 81 * - - 37 FROM tab2
----
2997

query I rowsort
SELECT DISTINCT - col0 * 22 AS col1 FROM tab0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT ALL - CAST( NULL AS SIGNED ) / - - 81 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - CAST ( NULL AS INTEGER ) / - - 81 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT ALL + 69 DIV col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + 69 / col0 AS col1 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 0, 16, + col2 - 84 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT DISTINCT 52 * + MIN( DISTINCT + 40 ) col0, 73 FROM tab1
----
2080
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5501
SELECT DISTINCT 52 * + MIN ( DISTINCT + 40 ) col0, 73 FROM tab1
----
2080
73

query II rowsort
SELECT ALL col1 AS col1, - 90 AS col1 FROM tab1 AS cor0
----
14
-90
47
-90
5
-90

query II rowsort
SELECT col2 AS col1, + col2 + - 31 FROM tab0 cor0
----
10
-21
47
16
99
68

query I rowsort
SELECT 7 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
7
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT COUNT( * ), + COUNT( + - col2 ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5505
SELECT COUNT ( * ), + COUNT ( + - col2 ) AS col0 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5506
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= + - CAST( NULL AS SIGNED ) - - col0
----

skipif mysql # not compatible
query III rowsort label-5506
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= + - CAST ( NULL AS INTEGER ) - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT + col1 DIV - + col1 + - - col2 AS col0 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-5507
SELECT + col1 / - + col1 + - - col2 AS col0 FROM tab1 AS cor0
----
58
67
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 14 ) col2 FROM tab2 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT - - 66 DIV col0 + + col2 AS col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-5509
SELECT - - 66 / col0 + + col2 AS col2 FROM tab1 AS cor0
----
59
68
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * 58 - + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( + 92 ) + - col2 AS col2, + col1 FROM tab2 AS cor0
----
34
67
52
77
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - MAX( - - ( ( col2 ) ) ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5512
SELECT - MAX ( - - ( ( col2 ) ) ) AS col1 FROM tab1 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT + + col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT + + col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 53 * - + ( - ( col1 ) ) FROM tab2
----
2703
3551
4081

query II rowsort
SELECT + 19 * + col0, + col1 AS col1 FROM tab0
----
1653
21
1843
1
285
81

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE ( - col1 * + col2 ) IS NULL
----

query I rowsort
SELECT ALL + 38 * - 25 AS col1 FROM tab1
----
-950
-950
-950

query I rowsort
SELECT DISTINCT 48 * + - 89 + + 12 + 84 AS col1 FROM tab2
----
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT + COUNT( * ) + ( - 1 ) AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + COUNT ( * ) + ( - 1 ) AS col0 FROM tab2 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + - MAX( DISTINCT 98 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-98

skipif mysql # not compatible
query I rowsort label-5521
SELECT + - MAX ( DISTINCT 98 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-98

query I rowsort
SELECT + col0 * - col1 - + + col2 AS col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

query I rowsort
SELECT 86 - col1 AS col2 FROM tab2 AS cor0
----
19
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT + + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5524
SELECT + + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5525
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 74 * CAST( col1 AS SIGNED ) * - ( + col0 ) > - CAST( + col0 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5525
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 74 * CAST ( col1 AS INTEGER ) * - ( + col0 ) > - CAST ( + col0 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - 94 AS col1 FROM tab1 AS cor0
----
-145
-179
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT MIN( ALL + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT MIN ( ALL + - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL CAST( + col0 AS SIGNED ) + - 23 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
41
52

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL CAST ( + col0 AS INTEGER ) + - 23 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT SUM( ALL - 48 ) AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5530
SELECT SUM ( ALL - 48 ) AS col1 FROM tab2
----
-144

query II rowsort
SELECT DISTINCT 4 AS col2, col1 FROM tab0
----
4
1
4
21
4
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 65 + col2 = + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT 74 / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT 74 / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 * col1 AS col2 FROM tab2 WHERE NOT - col0 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5535
SELECT DISTINCT 50, - CAST( + - col1 AS SIGNED ) AS col0 FROM tab0
----
50
1
50
21
50
81

skipif mysql # not compatible
query II rowsort label-5535
SELECT DISTINCT 50, - CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0
----
50
1
50
21
50
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT SUM( - 36 ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-5536
SELECT SUM ( - 36 ) FROM tab0
----
-108

query I rowsort
SELECT DISTINCT 40 FROM tab0 WHERE NULL IS NULL
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col1 col2 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * - + col0 col2 FROM tab0
----
4263
4753
735

query I rowsort
SELECT col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 BETWEEN + 40 + + col1 + - 6 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 31 AS col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT ALL + col2 * + col1 + + col0 + 68 + - - col1 + + - col2 FROM tab1 AS cor0
----
1381
3334
394

query I rowsort
SELECT DISTINCT - + col2 * col2 + col0 + + - col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 78 ) < - ( - 68 )
----

query I rowsort
SELECT DISTINCT - 79 + + + col0 AS col0 FROM tab2 AS cor0
----
-15
-33
-4

query I rowsort
SELECT - + 40 + col2 FROM tab2 AS cor0
----
-17
0
18

query I rowsort
SELECT + col2 + + - col1 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL ( - + 2 ) * - col2 * - + 86 + + col0 FROM tab0
----
-1633
-16931
-8069

query III rowsort
SELECT * FROM tab2 WHERE + col1 > + col1 + + col0
----

query I rowsort
SELECT + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT + ( - - CAST( - - 98 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + ( - - CAST ( - - 98 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL - MIN( + - 26 ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - MIN ( + - 26 ) AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL MAX( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL MAX ( DISTINCT col2 ) AS col0 FROM tab2 cor0
----
58

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 32 + + col0 + - 93 NOT BETWEEN + - 15 AND - + col0 + col2
----

query II rowsort
SELECT col0, + col1 + + col2 * + col2 AS col0 FROM tab2
----
46
580
64
1677
75
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT MAX( DISTINCT + + 1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5560
SELECT MAX ( DISTINCT + + 1 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 10 BETWEEN - col2 + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5562
SELECT col0, CAST( NULL AS SIGNED ) / + + 72 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5562
SELECT col0, CAST ( NULL AS INTEGER ) / + + 72 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT - MIN( DISTINCT + - 72 ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - MIN ( DISTINCT + - 72 ) AS col2 FROM tab2
----
72

query III rowsort
SELECT * FROM tab1 WHERE NOT - 42 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT ALL - COUNT( * ), 46 AS col1 FROM tab0 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-5566
SELECT ALL - COUNT ( * ), 46 AS col1 FROM tab0 AS cor0
----
-3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT - MAX( + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - MAX ( + - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT + col1 + + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 96 + + + 4 + - - col0 * + col0 IS NULL
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 67 col2 FROM tab1 cor0
----
-3149
-335
-938

query I rowsort
SELECT DISTINCT - ( 78 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-78

query I rowsort
SELECT - - col2 * + - col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT CAST( - - 85 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5572
SELECT CAST ( - - 85 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + COUNT( * ) * MAX( + - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5573
SELECT + COUNT ( * ) * MAX ( + - col1 ) FROM tab0
----
-3

query I rowsort
SELECT - 47 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 0 + - + col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT 46 + - 32 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col0 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT 44 AS col2, ( + COUNT( * ) ) FROM tab1 AS cor0
----
44
3

skipif mysql # not compatible
query II rowsort label-5579
SELECT 44 AS col2, ( + COUNT ( * ) ) FROM tab1 AS cor0
----
44
3

query I rowsort
SELECT ALL - - col1 + col2 + - col1 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT + + 55 AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-5581
SELECT + + 55 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
55
3

query I rowsort
SELECT ALL col1 + + - col0 + - - col2 FROM tab2 AS cor0
----
28
50
53

query I rowsort
SELECT ALL col0 * + 84 AS col1 FROM tab1 AS cor0
----
4284
7140
7644

query I rowsort
SELECT - col2 * + + col1 * + 2 FROM tab1 AS cor0
----
-2688
-590
-6392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT 57 * + + col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT 57 * + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + 12 + 38 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + 12 + 38 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
47

query II rowsort
SELECT 92 * + col0, 73 - + - col2 AS col0 FROM tab2 AS cor0
----
4232
96
5888
113
6900
131

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL MIN( - col0 ) * + COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL MIN ( - col0 ) * + COUNT ( * ) FROM tab2
----
-225

query II rowsort
SELECT DISTINCT - col0 * + 10 AS col0, - col2 AS col2 FROM tab2
----
-460
-23
-640
-40
-750
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT MIN( - col1 ) * + 33 FROM tab0
----
-2673

skipif mysql # not compatible
query I rowsort label-5591
SELECT MIN ( - col1 ) * + 33 FROM tab0
----
-2673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL - col2 * CAST( - + 51 AS SIGNED ) AS col0 FROM tab2
----
1173
2040
2958

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL - col2 * CAST ( - + 51 AS INTEGER ) AS col0 FROM tab2
----
1173
2040
2958

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - 96 + col1 DIV 27 col2 FROM tab0
----
-93
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5593
SELECT DISTINCT - 96 + col1 / 27 col2 FROM tab0
----
-93
-96

query II rowsort
SELECT col0 + - col0 AS col2, - col0 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ( + col1 ) * - col1 + + ( - + col2 ) + CAST( + col0 AS SIGNED ) * + 60 * - col2 FROM tab2
----
-159569
-265547
-66104

skipif mysql # not compatible
query I rowsort label-5595
SELECT ( + col1 ) * - col1 + + ( - + col2 ) + CAST ( + col0 AS INTEGER ) * + 60 * - col2 FROM tab2
----
-159569
-265547
-66104

query I rowsort
SELECT ALL ( - + col2 ) + + + col1 * + 47 FROM tab2
----
2374
3091
3579

query I rowsort
SELECT + - col2 + + 15 AS col1 FROM tab2 AS cor0
----
-25
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT - + ( + + 4 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - + ( + + 4 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + - MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5600
SELECT + - MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 - - col2 <= 10 * - - col1
----
85
5
59

query I rowsort
SELECT DISTINCT + ( + - 65 ) FROM tab0 cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT DISTINCT 0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT 0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT 52 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5604
SELECT 52 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT - MAX( + ( - col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - MAX ( + ( - col0 ) ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - + col2
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE + + col2 * - + col2 <> + col2
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - MIN( ALL 95 ) AS col1 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-5608
SELECT - MIN ( ALL 95 ) AS col1 FROM tab0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT + CAST( - 93 AS SIGNED ) AS col1 FROM tab0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-5609
SELECT + CAST ( - 93 AS INTEGER ) AS col1 FROM tab0
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT DISTINCT - + col2 DIV col0 DIV + col2 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT - + col2 / col0 / + col2 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - + col2 + 69 AS col1 FROM tab0 cor0
----
-30
22
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT DISTINCT 54, + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5613
SELECT DISTINCT 54, + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT + MAX( DISTINCT ( col0 ) ) FROM tab2 AS cor0 WHERE ( - - 80 ) * - 51 NOT BETWEEN NULL AND + col0 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + MAX ( DISTINCT ( col0 ) ) FROM tab2 AS cor0 WHERE ( - - 80 ) * - 51 NOT BETWEEN NULL AND + col0 * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL COUNT( * ) + + - 77 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL COUNT ( * ) + + - 77 FROM tab2 cor0
----
-74

query II rowsort
SELECT col1 * - 22, + 44 * col2 AS col1 FROM tab1 WHERE col0 + + ( col2 ) IS NOT NULL
----
-1034
2992
-110
2596
-308
4224

query I rowsort
SELECT - 90 * col2 FROM tab1
----
-5310
-6120
-8640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + 37 col0, 4 FROM tab1
----
42
4
51
4
84
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL CAST( + + 83 AS SIGNED ) AS col1 FROM tab2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL CAST ( + + 83 AS INTEGER ) AS col1 FROM tab2
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 2 col2 FROM tab1
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col2 * + col2 FROM tab0
----
15
2209
87
100
97
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5622
SELECT * FROM tab0 WHERE 26 * + CAST( NULL AS SIGNED ) > - + ( + 58 )
----

skipif mysql # not compatible
query III rowsort label-5622
SELECT * FROM tab0 WHERE 26 * + CAST ( NULL AS INTEGER ) > - + ( + 58 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 IN ( 91 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT DISTINCT + + col0 + - col0 DIV col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT + + col0 + - col0 / col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT + col1 - + col1 * 31 AS col2 FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + COUNT( * ) * - COUNT( 46 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5627
SELECT + COUNT ( * ) * - COUNT ( 46 ) FROM tab1
----
-9

query II rowsort
SELECT - + 86 * + col1, col2 FROM tab1 cor0 WHERE NOT col0 < + 63 + - col2 * + col1 * 55
----
-1204
96
-4042
68
-430
59

query I rowsort
SELECT col1 * + - ( - col0 ) - - + col2 + col0 * + ( - + col0 ) * - - col0 - + 73 + - - col0 FROM tab0 AS cor0
----
-2171
-656652
-912453

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT ALL COUNT( ALL + col2 ) DIV 94 - - SUM( + 93 ) AS col1 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL COUNT ( ALL + col2 ) / 94 - - SUM ( + 93 ) AS col1 FROM tab1 AS cor0
----
279

query I rowsort
SELECT col1 * - + col0 + + 85 FROM tab2 AS cor0
----
-2261
-4843
-4940

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + - ( - - col1 ) ) + + col0 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 / col2 + - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT + SUM( col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5635
SELECT + SUM ( col2 ) AS col2 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5636
SELECT ALL - CAST( NULL AS SIGNED ), 78 * 20 AS col2 FROM tab0
----
NULL
1560
NULL
1560
NULL
1560

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL - CAST ( NULL AS INTEGER ), 78 * 20 AS col2 FROM tab0
----
NULL
1560
NULL
1560
NULL
1560

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT ALL - 26 + + col1 + - - 51 + col1 + - col1 DIV - 49 AS col2 FROM tab1 cor0
----
119
35
53

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - 26 + + col1 + - - 51 + col1 + - col1 / - 49 AS col2 FROM tab1 cor0
----
119
35
53

query I rowsort
SELECT DISTINCT - + 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + COUNT( * ) * - 68 + 8 - + - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-557

skipif mysql # not compatible
query I rowsort label-5641
SELECT + COUNT ( * ) * - 68 + 8 - + - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT - CAST( - 49 AS SIGNED ) + + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a6436390b76d026d00c9c9e8c68d8420

skipif mysql # not compatible
query I rowsort label-5642
SELECT - CAST ( - 49 AS INTEGER ) + + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a6436390b76d026d00c9c9e8c68d8420

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL - COUNT( * ) + + - COUNT( ALL + col2 ) * + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - COUNT ( * ) + + - COUNT ( ALL + col2 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5644
SELECT + - CAST( col1 AS SIGNED ) col0, 95 FROM tab0 AS cor0
----
-1
95
-21
95
-81
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5644
SELECT + - CAST ( col1 AS INTEGER ) col0, 95 FROM tab0 AS cor0
----
-1
95
-21
95
-81
95

query I rowsort
SELECT - + 94 AS col2 FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT + MIN( - + col0 ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5646
SELECT + MIN ( - + col0 ) AS col0 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT ALL + SUM( col2 ), 77 * ( - + 14 ) + 10 AS col0 FROM tab2 AS cor0
----
121
-1068

skipif mysql # not compatible
query II rowsort label-5647
SELECT ALL + SUM ( col2 ), 77 * ( - + 14 ) + 10 AS col0 FROM tab2 AS cor0
----
121
-1068

query I rowsort
SELECT + ( - - col0 ) + 88 AS col1 FROM tab1
----
139
173
179

query II rowsort
SELECT DISTINCT + col1 AS col1, + 72 * + + col1 FROM tab2
----
51
3672
67
4824
77
5544

query I rowsort
SELECT ALL col0 + - 12 + + 55 FROM tab1
----
128
134
94

query I rowsort
SELECT - 72 + - 36 AS col0 FROM tab0
----
-108
-108
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5652
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) * + ( - 62 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + ( - 62 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL ( col1 ) * - + 84 + - - col0 AS col2, 2 AS col1 FROM tab0
----
-1677
2
-6789
2
13
2

query II rowsort
SELECT col1, + col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT 21, col1 AS col1 FROM tab1 AS cor0
----
21
14
21
47
21
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT CAST( NULL AS SIGNED ) * col2 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT CAST ( NULL AS INTEGER ) * col2 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 * + col0 AS col1, 35 + col1 AS col0 FROM tab1 AS cor0
----
-4896
49
-5015
40
-6188
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT 39 * - COUNT( DISTINCT ( col0 ) ) FROM tab0 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5659
SELECT 39 * - COUNT ( DISTINCT ( col0 ) ) FROM tab0 cor0
----
-117

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT col0 * - - ( - - CAST( + ( + col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5661
SELECT col0 * - - ( - - CAST ( + ( + col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT + - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT col0 + 6 + - ( col0 ) AS col2 FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - MAX( - - col2 ) + - 62 AS col0 FROM tab0
----
-161

skipif mysql # not compatible
query I rowsort label-5664
SELECT - MAX ( - - col2 ) + - 62 AS col0 FROM tab0
----
-161

query I rowsort
SELECT - col2 + 99 AS col2 FROM tab2
----
41
59
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT 10 * + - COUNT( * ) * + SUM( + - 93 ) col0 FROM tab1 WHERE NOT + - col2 / + col2 + 38 / - 2 >= + 54
----
8370

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5666
SELECT 10 * + - COUNT ( * ) * + SUM ( + - 93 ) col0 FROM tab1 WHERE NOT + - col2 / + col2 + 38 / - 2 >= + 54
----
8370

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT + 90 DIV - 8 AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + 90 / - 8 AS col0 FROM tab0
----
-11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 + - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + - - col0 col1 FROM tab2 AS cor0
----
2392
4992
5100

query II rowsort
SELECT DISTINCT - 80 + + ( - 20 ) AS col1, col2 FROM tab2
----
-100
23
-100
40
-100
58

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND ( - + col1 + col1 / col1 )
----
15
81
47

query I rowsort
SELECT col0 + + + col1 + - 83 * - ( 61 ) AS col2 FROM tab1 AS cor0
----
5128
5153
5201

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT DISTINCT MIN( + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT MIN ( + + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE - 12 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE - 12 IS NULL
----
0

query I rowsort
SELECT ALL 15 + - col2 FROM tab2 cor0
----
-25
-43
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 33 * + 13 * 37 + + 24 col2 FROM tab1 AS cor0
----
-15802
-15835
-15844

onlyif mysql # DIV for integer division: 
query II rowsort label-5677
SELECT col0 AS col2, col1 * col0 DIV + 92 + col2 + - 11 FROM tab1 AS cor0
----
51
92
85
52
91
103

skipif mysql # not compatible
query II rowsort label-5677
SELECT col0 AS col2, col1 * col0 / + 92 + col2 + - 11 FROM tab1 AS cor0
----
51
92
85
52
91
103

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT DISTINCT 81 - 7 + col2 FROM tab0
----
121
173
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5680
SELECT + COUNT( ALL col2 ) AS col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5680
SELECT + COUNT ( ALL col2 ) AS col1, COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5681
SELECT COUNT( col0 ), 81 AS col2 FROM tab2
----
3
81

skipif mysql # not compatible
query II rowsort label-5681
SELECT COUNT ( col0 ), 81 AS col2 FROM tab2
----
3
81

query I rowsort
SELECT ALL col2 - col0 * 11 + + - col1 FROM tab2
----
-534
-741
-834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 - - col1 col0 FROM tab2
----
-13
-29
-3

query I rowsort
SELECT - + col0 + col0 FROM tab2 WHERE NOT - col2 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND + col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN + + col1 * col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ( MAX( DISTINCT + + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5688
SELECT ( MAX ( DISTINCT + + col0 ) ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT SUM( ALL + col1 ) * - ( + + 22 ) * + COUNT( + + 71 ) FROM tab0
----
-6798

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT SUM ( ALL + col1 ) * - ( + + 22 ) * + COUNT ( + + 71 ) FROM tab0
----
-6798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL - + CAST( NULL AS SIGNED ) * - - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL 92 + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
83

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 92 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT - - col1 / + - col0 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

query I rowsort
SELECT - 4 / + + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5695
SELECT + - COUNT( * ) + ( + 71 ) - + 55 col2, COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + + col2 ) / + + CAST( NULL AS SIGNED ) IS NOT NULL
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5695
SELECT + - COUNT ( * ) + ( + 71 ) - + 55 col2, COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + + col2 ) / + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
13
3

query I rowsort
SELECT - - 91 * + 1 FROM tab1 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, 25 * + col1 * 18 FROM tab0 AS cor0
----
15
36450
87
9450
97
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5698
SELECT - SUM( - CAST( - 3 AS SIGNED ) ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5698
SELECT - SUM ( - CAST ( - 3 AS INTEGER ) ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + - 45 * COUNT( * ) col1 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT ALL + - 45 * COUNT ( * ) col1 FROM tab2 AS cor0
----
-135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5700
SELECT 97 DIV + CAST( - CAST( - - 63 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5700
SELECT 97 / + CAST ( - CAST ( - - 63 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE NOT - col1 - - 37 + - - 38 >= + col2
----
-15
-97

query I rowsort
SELECT DISTINCT col1 * - col2 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT - CAST( - col0 AS SIGNED ) * + + col2 * 33 * - col1 FROM tab2
----
-1780614
-6504960
-9617850

skipif mysql # not compatible
query I rowsort label-5703
SELECT - CAST ( - col0 AS INTEGER ) * + + col2 * 33 * - col1 FROM tab2
----
-1780614
-6504960
-9617850

query I rowsort
SELECT ALL - 51 * + - col1 FROM tab0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT + SUM( DISTINCT + - 42 ) * + COUNT( ALL - col1 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT + SUM ( DISTINCT + - 42 ) * + COUNT ( ALL - col1 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + col2 * + col2 + + + col2 * + col2 FROM tab1
----
18446
6967
9295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT - COUNT( * ) + - CAST( - - 45 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5707
SELECT - COUNT ( * ) + - CAST ( - - 45 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL + - col2 + + col2 + - 30 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT 1 + - col2 * + - col0 * - col1 + - + 62 AS col1 FROM tab2 AS cor0
----
-197181
-291511
-54019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT ALL + col1 / 10 + + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + col1 / 10 + + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 2 - - 84 * + col2 * 32 FROM tab0
----
126334
266110
26878

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5712
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - - col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / - col2 + + + col1 BETWEEN col2 * + col2 AND + col0
----

query I rowsort
SELECT + 60 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - 17 AS col1 FROM tab2
----
1088
1275
782

query I rowsort
SELECT 88 * 46 FROM tab2
----
4048
4048
4048

onlyif mysql # aggregate syntax: 
query II rowsort label-5719
SELECT ALL + COUNT( * ), 54 AS col1 FROM tab0
----
3
54

skipif mysql # not compatible
query II rowsort label-5719
SELECT ALL + COUNT ( * ), 54 AS col1 FROM tab0
----
3
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 col1 FROM tab0 AS cor0
----
95
95
95

query II rowsort
SELECT - 69 AS col1, col0 - + 2 FROM tab1 AS cor0
----
-69
49
-69
83
-69
89

query I rowsort
SELECT DISTINCT col0 * + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 * - col2 + + 14 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT COUNT( * ) + - 62 AS col1 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-5724
SELECT COUNT ( * ) + - 62 AS col1 FROM tab0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 5 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT DISTINCT 52 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) + 98 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT 52 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) + 98 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * ( col2 ) + - col2 FROM tab1
----
1248
236
3128

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5728
SELECT * FROM tab1 WHERE NULL NOT IN ( col1 + - ( CAST( - 26 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5728
SELECT * FROM tab1 WHERE NULL NOT IN ( col1 + - ( CAST ( - 26 AS INTEGER ) ) )
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT - 96 * + 21 + COUNT( * ) * COUNT( * ) FROM tab2
----
-2007

skipif mysql # not compatible
query I rowsort label-5730
SELECT - 96 * + 21 + COUNT ( * ) * COUNT ( * ) FROM tab2
----
-2007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 83 col1 FROM tab0
----
130
182
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 50 col0 FROM tab2
----
114
125
96

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col2 NOT IN ( + col1 / col0 - ( col2 + - col2 / + 67 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * 39 NOT IN ( col2 / + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 75 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 16 AS col1 FROM tab0 WHERE NULL IS NULL
----
16
16
16

query I rowsort
SELECT + ( col0 ) FROM tab0 WHERE NOT ( col0 ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT COUNT( DISTINCT - col0 ) * 53 AS col2 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT COUNT ( DISTINCT - col0 ) * 53 AS col2 FROM tab2
----
159

query I rowsort
SELECT ALL + ( 62 ) AS col2 FROM tab1
----
62
62
62

query III rowsort
SELECT * FROM tab2 WHERE NOT + 78 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab2 WHERE 29 + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - 71 * ( 67 ) AS col2 FROM tab1
----
-4757
-4757
-4757

query I rowsort
SELECT ALL - 20 + - col1 FROM tab2
----
-71
-87
-97

query I rowsort
SELECT DISTINCT - col0 * 54 + - 11 FROM tab2
----
-2495
-3467
-4061

query I rowsort
SELECT - 61 * - col1 FROM tab0
----
1281
4941
61

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( - 70 * col2 ) = NULL
----

query I rowsort
SELECT - col1 - - 3 * - col0 FROM tab0
----
-126
-282
-292

query I rowsort
SELECT DISTINCT - col2 * 33 FROM tab2
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT - MAX( ALL col0 ) FROM tab1 AS cor0 WHERE 29 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT - MAX ( ALL col0 ) FROM tab1 AS cor0 WHERE 29 IS NOT NULL
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT ALL - col1 + - ( + col2 ) DIV - ( - col0 ) FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL - col1 + - ( + col2 ) / - ( - col0 ) FROM tab0 AS cor0
----
-2
-21
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 85 FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
36

query I rowsort
SELECT ( - ( ( col2 ) ) ) * 42 + col0 FROM tab2 AS cor0
----
-1616
-2361
-920

query I rowsort
SELECT ALL - col2 + + 65 FROM tab1 cor0
----
-3
-31
6

query I rowsort
SELECT ALL - 42 + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-27
45
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5757
SELECT + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT - COUNT( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5758
SELECT - COUNT ( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT DISTINCT 64 DIV + 65 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT 64 / + 65 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( - 58 ) FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + ( - ( + col0 ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col2 IN ( - col2 + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( + ( + ( col0 ) ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT MIN( DISTINCT + 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT MIN ( DISTINCT + 95 ) FROM tab0
----
95

query I rowsort
SELECT ALL col0 FROM tab2 WHERE col0 + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL SUM( col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL SUM ( col1 ) AS col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL - - COUNT( ALL - - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL - - COUNT ( ALL - - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 85 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN ( col0 * col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 12 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5771
SELECT - CAST( NULL AS SIGNED ) / - 98 / + COUNT( ALL - col2 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5771
SELECT - CAST ( NULL AS INTEGER ) / - 98 / + COUNT ( ALL - col2 ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL + COUNT( * ) FROM tab2 WHERE - 48 - col0 > - col2 + + 97
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - 48 - col0 > - col2 + + 97
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5773
SELECT + col1 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5773
SELECT + col1 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) * + col1 IS NULL
----

query I rowsort
SELECT - ( + - 70 ) FROM tab2
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT 37 * + - col0 + 15 DIV + col0 AS col0 FROM tab2
----
-1702
-2368
-2775

skipif mysql # not compatible
query I rowsort label-5775
SELECT 37 * + - col0 + 15 / + col0 AS col0 FROM tab2
----
-1702
-2368
-2775

query I rowsort
SELECT ALL + + col2 + + col0 + - + col0 * + col1 FROM tab2 AS cor0
----
-2277
-4824
-4892

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT + MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5777
SELECT + MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT - CAST( NULL AS SIGNED ) + + col1 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 * col2 )
----

skipif mysql # not compatible
query I rowsort label-5778
SELECT - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 * col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * - col1 - col0 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT + 56 * col0 - - + col1 + - col2 AS col1 FROM tab0 AS cor0
----
4883
5334
874

query I rowsort
SELECT + + col2 * + + ( col2 ) AS col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT DISTINCT + col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= + 71
----

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= + 71
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5784
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( CAST( + 84 AS DECIMAL ) * + 8 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-5784
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( CAST ( + 84 AS REAL ) * + 8 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL + - COUNT( * ) + - COUNT( * ) - - 26 - - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) - - 26 - - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
23

query II rowsort
SELECT DISTINCT + + 33, col1 FROM tab1 AS cor0
----
33
14
33
47
33
5

query I rowsort
SELECT ALL col2 * + + col2 * + 57 FROM tab2 AS cor0
----
191748
30153
91200

query I rowsort
SELECT DISTINCT col1 * + + col1 * 15 FROM tab1
----
2940
33135
375

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5789
SELECT DISTINCT 99 / - col0 AS col1 FROM tab1 WHERE NOT ( - col1 + - CAST( NULL AS DECIMAL ) - 89 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT 99 / - col0 AS col1 FROM tab1 WHERE NOT ( - col1 + - CAST ( NULL AS REAL ) - 89 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - 61 IN ( + ( + 54 ) )
----

query I rowsort
SELECT col2 / 18 AS col2 FROM tab0 WHERE + - 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL 35 + 97 * + + MAX( + col2 ) AS col1 FROM tab0
----
9638

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL 35 + 97 * + + MAX ( + col2 ) AS col1 FROM tab0
----
9638

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - 21 = NULL AND NOT ( 62 ) = col0
----

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5795
SELECT ALL + COUNT( * ) DIV 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + COUNT ( * ) / 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NULL OR NULL <= + 43
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT - col0 DIV - - 79 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT - col0 / - - 79 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL - - COUNT( * ) * + - MIN( DISTINCT + 17 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - - COUNT ( * ) * + - MIN ( DISTINCT + 17 ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 * + - col2 col2 FROM tab0 cor0
----
3666
7722
780

query I rowsort
SELECT ALL - - 97 * - + col0 AS col2 FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT COUNT( * ) * + 26 + + 38 FROM tab0 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT COUNT ( * ) * + 26 + + 38 FROM tab0 AS cor0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT + CAST( - col0 AS SIGNED ) / + + ( 51 ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT + CAST ( - col0 AS INTEGER ) / + + ( 51 ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL + COUNT( ALL - col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + COUNT ( ALL - col0 ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( 90 * - col2 + - col2 * + col1 )
----

query I rowsort
SELECT ALL - - 19 FROM tab1 cor0 WHERE NOT 11 BETWEEN ( + - col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( + col2 * 74 ) BETWEEN ( - col1 * + col0 / 15 ) AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( + col2 * 74 ) BETWEEN ( - col1 * + col0 / 15 ) AND - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 61 * + 77 + - 37 ) NOT BETWEEN NULL AND + 66 * - 89 + - ( + col1 + + 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 78 > NULL
----

query I rowsort
SELECT col1 - + col2 / 7 FROM tab1 WHERE NOT col1 <= ( + col1 + col1 )
----

query II rowsort
SELECT + col1, - col1 + - 10 FROM tab0
----
1
-11
21
-31
81
-91

query I rowsort
SELECT - col2 * + + col0 * col1 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT DISTINCT + COUNT( * ) DIV - MIN( 80 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT + COUNT ( * ) / - MIN ( 80 ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 75 * 50 AND - + ( - ( - col0 ) ) * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * col0 AS col0 FROM tab1 WHERE NOT - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT - COUNT( * ) + - 48 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT - COUNT ( * ) + - 48 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 1
----

query I rowsort
SELECT ( col0 ) - + 3 FROM tab1 AS cor0 WHERE 9 - + - col0 + - col1 + - col2 + - - col0 NOT IN ( + + 57 )
----
48
82
88

query I rowsort
SELECT DISTINCT - - 49 AS col0 FROM tab1 cor0
----
49

query I rowsort
SELECT ALL + 90 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * 49 / - col1 * - + 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + ( + 53 ) * 3 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5822
SELECT + ( + 53 ) * 3 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
162

query I rowsort
SELECT ALL + 6 + col1 AS col0 FROM tab0 AS cor0
----
27
7
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL CAST( 23 AS SIGNED ) FROM tab2
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL CAST ( 23 AS INTEGER ) FROM tab2
----
23
23
23

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT + col0 BETWEEN col1 + + col0 AND - col2
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - ( + 1 ) AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL - ( + + COUNT( - col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - ( + + COUNT ( - col0 ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - col1 ) AND - 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5830
SELECT ALL + col1 + + 9 + + col0 + col0 * + ( ( + - CAST( - - col2 AS SIGNED ) ) ) col2 FROM tab2
----
-2410
-4199
-952

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5830
SELECT ALL + col1 + + 9 + + col0 + col0 * + ( ( + - CAST ( - - col2 AS INTEGER ) ) ) col2 FROM tab2
----
-2410
-4199
-952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT DISTINCT + 70 - + CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT + col2 NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT + 70 - + CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT + col2 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT 67 AS col0, - COUNT( * ) AS col2 FROM tab2
----
67
-3

skipif mysql # not compatible
query II rowsort label-5832
SELECT 67 AS col0, - COUNT ( * ) AS col2 FROM tab2
----
67
-3

query I rowsort
SELECT col2 FROM tab0 WHERE NULL IN ( + col1, 11, - 28 + - col1 * + col0 )
----

query I rowsort
SELECT ALL ( + col2 ) * - col2 + - col2 AS col2 FROM tab1
----
-3540
-4692
-9312

query I rowsort
SELECT ALL - - 59 * - col0 + + 88 + - - col2 FROM tab1 AS cor0
----
-2825
-4868
-5213

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT + - 64 * + 59 + - + 40 + col1 DIV col0 col1 FROM tab1 AS cor0
----
-3816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5836
SELECT DISTINCT + - 64 * + 59 + - + 40 + col1 / col0 col1 FROM tab1 AS cor0
----
-3816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT + + col1 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT + + col1 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-29

query I rowsort
SELECT ALL 10 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5840
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 75 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL col2 * - col2 / - col1 * + 82 - + col1 * - 44 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col2 / - 30
----

query I rowsort
SELECT - - ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 93 col2 FROM tab1 AS cor0
----
5487
6324
8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - col2 / - 45 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - col2 / - 45 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT + COUNT( * ) * + 31 AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT + COUNT ( * ) * + 31 AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL + + 5 AS col1 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT CAST( NULL AS SIGNED ) / + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT CAST ( NULL AS INTEGER ) / + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + 92 ) FROM tab0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL 81 * - COUNT( * ) FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL 81 * - COUNT ( * ) FROM tab1
----
-243

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT COUNT( * ) AS col2, 29 AS col2 FROM tab1
----
3
29

skipif mysql # not compatible
query II rowsort label-5852
SELECT COUNT ( * ) AS col2, 29 AS col2 FROM tab1
----
3
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - 15 col0 FROM tab1
----
1275
1365
765

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + 89 < + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT + col2 * - + col2 * - 11 FROM tab0 AS cor0 WHERE NOT ( - CAST( + + col2 AS SIGNED ) * + col2 IS NULL )
----
107811
1100
24299

skipif mysql # not compatible
query I rowsort label-5855
SELECT + col2 * - + col2 * - 11 FROM tab0 AS cor0 WHERE NOT ( - CAST ( + + col2 AS INTEGER ) * + col2 IS NULL )
----
107811
1100
24299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT DISTINCT - - ( - + 8 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - - ( - + 8 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 + + + ( + col2 ) * 91 AS col0, - col0 * - col1 AS col2 FROM tab1 AS cor0
----
5428
425
6256
4277
8832
714

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 FROM tab1 cor0
----
14
51
47
91
5
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * 63 IS NULL
----

query I rowsort
SELECT - - 79 AS col1 FROM tab0 cor0
----
79
79
79

query II rowsort
SELECT DISTINCT + col0, 4 AS col2 FROM tab2 AS cor0
----
46
4
64
4
75
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * + + 56 col1 FROM tab1 cor0
----
2800
2800
2800

query I rowsort
SELECT - 35 FROM tab1 AS cor0 WHERE NULL < - col2 * col0 - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT - - COUNT( ( col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT - - COUNT ( ( col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 - ( - col1 ) * - 73 AS col2 FROM tab0
----
-1543
-172
-5960

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT 7 * - + ( + + col1 ) + - ( + + col0 ) FROM tab2
----
-403
-544
-603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5869
SELECT * FROM tab0 WHERE ( NOT 61 * CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5869
SELECT * FROM tab0 WHERE ( NOT 61 * CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT - col2 * col0 + + CAST( - + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

skipif mysql # not compatible
query I rowsort label-5870
SELECT - col2 * col0 + + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT ALL - - 53 AS col2 FROM tab1 cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * ( + 25 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-2025

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * ( + 25 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-2025

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - - 65 IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 * - + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT ALL - col0 AS col2, 24 AS col0 FROM tab1 AS cor0
----
-51
24
-85
24
-91
24

query II rowsort
SELECT DISTINCT + - col0, + col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 + - - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL - + MAX( ALL col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5878
SELECT ALL - + MAX ( ALL col1 ) col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + 65 * + col0 FROM tab0 AS cor0
----
5655
6305
975

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 55 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5881
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + 50 AS col0 FROM tab1 WHERE + 87 IS NULL
----

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + 50 AS col0 FROM tab1 WHERE + 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 60 * - col0 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT COUNT( * ) + + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT COUNT ( * ) + + 96 FROM tab2
----
99

query I rowsort
SELECT - 45 * - 34 FROM tab1
----
1530
1530
1530

query I rowsort
SELECT ALL - col0 + - - col1 AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT + - 14 * + 59 AS col2 FROM tab2 AS cor0
----
-826
-826
-826

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT DISTINCT COUNT( * ) * - + 40 * + - COUNT( * ) FROM tab2 cor0
----
360

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT COUNT ( * ) * - + 40 * + - COUNT ( * ) FROM tab2 cor0
----
360

query II rowsort
SELECT 95 AS col1, ( + + col2 ) * + + col0 + - - col2 FROM tab0 WHERE ( NULL ) IS NULL
----
95
752
95
880
95
9702

query I rowsort
SELECT DISTINCT - col1 + ( col0 ) AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5892
SELECT + 3 + + CAST( + - 64 AS SIGNED ) * - 19 AS col1 FROM tab1 AS cor0
----
1219
1219
1219

skipif mysql # not compatible
query I rowsort label-5892
SELECT + 3 + + CAST ( + - 64 AS INTEGER ) * - 19 AS col1 FROM tab1 AS cor0
----
1219
1219
1219

query I rowsort
SELECT + 53 * - 95 + + col0 FROM tab2 AS cor0
----
-4960
-4971
-4989

query I rowsort
SELECT DISTINCT - + 69 + - col0 AS col1 FROM tab0 AS cor0
----
-156
-166
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 * + - col1
----

query I rowsort
SELECT ALL + col1 - + - 44 AS col0 FROM tab2 cor0
----
111
121
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( + 28 ) ) >= + ( 90 ) / + 19 * col2 / + 8
----

query I rowsort
SELECT ALL 97 + + col0 * - col2 * 92 + ( + col1 ) + 53 + + + 88 AS col2 FROM tab2
----
-235205
-399895
-97047

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT ALL col2 DIV - + col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL col2 / - + col1 AS col1 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT 69 * - 93 * - ( MIN( 44 ) ) FROM tab2
----
282348

skipif mysql # not compatible
query I rowsort label-5900
SELECT 69 * - 93 * - ( MIN ( 44 ) ) FROM tab2
----
282348

query I rowsort
SELECT + col0 * - - 57 FROM tab0 WHERE NULL BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5902
SELECT ALL col1 DIV col2 * col2 - col0 AS col2, + 59 AS col1 FROM tab0
----
-67
59
-97
59
32
59

skipif mysql # not compatible
query II rowsort label-5902
SELECT ALL col1 / col2 * col2 - col0 AS col2, + 59 AS col1 FROM tab0
----
-67
59
-97
59
32
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 23 AS col0, - 23 col1 FROM tab0
----
23
-23

query I rowsort
SELECT ALL - 61 + + + ( - col2 ) FROM tab1 WHERE NOT - + col0 * col1 / - col2 * - col2 <> + - col2
----

query II rowsort
SELECT - col1 - + col2, col1 * - 24 AS col1 FROM tab2
----
-117
-1848
-125
-1608
-74
-1224

query II rowsort
SELECT DISTINCT 30, + col1 FROM tab1
----
30
14
30
47
30
5

query I rowsort
SELECT ALL ( - + 65 ) FROM tab2 AS cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col1, 62 AS col1 FROM tab2 AS cor0
----
46
62
64
62
75
62

query I rowsort
SELECT ALL - ( + ( + 95 ) ) AS col0 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ( + + col0 ) AS col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ( 41 ) AS col0 FROM tab0 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 40 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 4 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + ( - 89 ) IS NOT NULL AND col0 IS NULL
----

query I rowsort
SELECT + col2 * + col2 * - + 16 * + col1 AS col0 FROM tab2 AS cor0
----
-1971200
-3606208
-431664

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT + 23 DIV col1 * col0 FROM tab0
----
0
2231
87

skipif mysql # not compatible
query I rowsort label-5916
SELECT + 23 / col1 * col0 FROM tab0
----
0
2231
87

query I rowsort
SELECT DISTINCT + col0 * 2 AS col0 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab2 WHERE NOT 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
0

query I rowsort
SELECT - ( 24 ) AS col0 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL - col2 * + 27 AS col1 FROM tab2
----
-1080
-1566
-621

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5922
SELECT DISTINCT * FROM tab0 WHERE - CAST( - + col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5922
SELECT DISTINCT * FROM tab0 WHERE - CAST ( - + col2 AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 42 + - + col0 AS col2 FROM tab2 AS cor0
----
-106
-117
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + MIN( col1 ) + + 30 AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5924
SELECT + MIN ( col1 ) + + 30 AS col0 FROM tab2 AS cor0
----
81

query I rowsort
SELECT - AVG ( DISTINCT col0 ) FROM tab0 cor0 WHERE 22 + + col0 <> NULL
----
NULL

query I rowsort
SELECT ALL + + col1 * + - col2 * - 57 FROM tab0 AS cor0
----
11970
216999
5643

query I rowsort
SELECT DISTINCT - 14 * - ( - col0 ) * - 46 + + + col0 FROM tab0 cor0
----
56115
62565
9675

onlyif mysql # DIV for integer division: 
query II rowsort label-5928
SELECT DISTINCT col2 DIV + 32 AS col1, - ( + 31 ) * - + 95 col0 FROM tab2
----
0
2945
1
2945

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5928
SELECT DISTINCT col2 / + 32 AS col1, - ( + 31 ) * - + 95 col0 FROM tab2
----
0
2945
1
2945

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 38 + - col0 )
----

query I rowsort
SELECT ALL - ( col1 ) * 15 FROM tab1
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT - COUNT( * ) * - 73 AS col1 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-5931
SELECT - COUNT ( * ) * - 73 AS col1 FROM tab1
----
219

query I rowsort
SELECT - col2 * 78 AS col0 FROM tab2 cor0
----
-1794
-3120
-4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT DISTINCT + + col0 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + + col0 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 54 * - + 24 - + + col2 NOT BETWEEN + 21 * col2 / - col0 AND 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 * col1 * - 16 + + col2 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-18745
-23
-49240
-40
-62118
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5936
SELECT ALL - - CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL - - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT SUM( 99 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5937
SELECT SUM ( 99 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5938
SELECT ALL + 15 + + col1 FROM tab2 WHERE - col2 - + CAST( NULL AS SIGNED ) IS NULL
----
66
82
92

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + 15 + + col1 FROM tab2 WHERE - col2 - + CAST ( NULL AS INTEGER ) IS NULL
----
66
82
92

query III rowsort
SELECT * FROM tab1 WHERE - 25 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT + ( col0 ) DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5940
SELECT + ( col0 ) / - col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE + ( + ( + col2 ) ) - + 40 * col0 + 3 IS NULL
----

query II rowsort
SELECT ALL - + col2, + 79 AS col0 FROM tab2 AS cor0
----
-23
79
-40
79
-58
79

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 <= NULL
----

query II rowsort
SELECT - - col2 AS col0, - 34 + - 67 * + 93 AS col0 FROM tab1 AS cor0
----
59
-6265
68
-6265
96
-6265

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5945
SELECT * FROM tab0 cor0 WHERE NOT + CAST( - 84 AS SIGNED ) + + 93 IN ( col1, 81, - col0 * - 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5945
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( - 84 AS INTEGER ) + + 93 IN ( col1, 81, - col0 * - 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 2 AS col0, + col2 * - col2 FROM tab0 AS cor0
----
-2
-100
-2
-2209
-2
-9801

query II rowsort
SELECT DISTINCT + 37 AS col2, + col0 FROM tab2 cor0
----
37
46
37
64
37
75

query I rowsort
SELECT ALL 39 AS col1 FROM tab2 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT MAX( DISTINCT - 91 ) + + COUNT( * ) AS col0 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-5949
SELECT MAX ( DISTINCT - 91 ) + + COUNT ( * ) AS col0 FROM tab1
----
-88

query I rowsort
SELECT + col2 + col1 * - 94 FROM tab2
----
-4771
-6240
-7198

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - SUM( - 52 ) AS col0 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-5951
SELECT - SUM ( - 52 ) AS col0 FROM tab1
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5953
SELECT - + COUNT( * ) AS col0, + 50 * - COUNT( * ) FROM tab2 WHERE - + CAST( NULL AS SIGNED ) * - 95 > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5953
SELECT - + COUNT ( * ) AS col0, + 50 * - COUNT ( * ) FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) * - 95 > NULL
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5954
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - - COUNT( * ) * - 99 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT + - CAST ( NULL AS REAL ) + - COUNT ( * ) + - - COUNT ( * ) * - 99 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - + col0 + col1 + - col0 FROM tab0
----
-163
-292
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT DISTINCT 25 + COUNT( * ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT 25 + COUNT ( * ) FROM tab2
----
28

query II rowsort
SELECT + - col1 * 63 + + col1, - col1 AS col2 FROM tab0 WHERE 94 BETWEEN + col1 + + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / col2 >= - + 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 + + + col2 * + 73 AS col2 FROM tab0 AS cor0
----
3446
7324
817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 37 col2 FROM tab0 cor0
----
1739
3663
370

query I rowsort
SELECT ALL + 52 + + 91 + - 20 AS col1 FROM tab0 AS cor0
----
123
123
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5962
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col1 * - - 42 * - CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-5962
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col1 * - - 42 * - CAST ( NULL AS INTEGER ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT - SUM( ALL col0 ) * + 70 AS col0 FROM tab2
----
-12950

skipif mysql # not compatible
query I rowsort label-5964
SELECT - SUM ( ALL col0 ) * + 70 AS col0 FROM tab2
----
-12950

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5965
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 71 * + 59 AS col0 FROM tab1
----
4189

query I rowsort
SELECT ALL + col2 * 79 FROM tab0
----
3713
7821
790

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < 76
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND - col1 + - CAST( + 45 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND - col1 + - CAST ( + 45 AS INTEGER )
----

query II rowsort
SELECT ALL - col2 AS col2, 32 AS col1 FROM tab2
----
-23
32
-40
32
-58
32

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - + 42
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 72 ) * + col2 + 76 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5974
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 >= + col2 + - CAST( + col2 AS SIGNED ) + + 4
----

skipif mysql # not compatible
query III rowsort label-5974
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 >= + col2 + - CAST ( + col2 AS INTEGER ) + + 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT col2 * ( - + 53 ) + - ( + ( - + col1 ) ) + + - col1 + col0 - - + 21 DIV + col1 * - col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1173
-2056
-2999

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT col2 * ( - + 53 ) + - ( + ( - + col1 ) ) + + - col1 + col0 - - + 21 / + col1 * - col1 * - ( + col2 ) FROM tab2 AS cor0
----
-1173
-2056
-2999

query I rowsort
SELECT + + 80 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 col2 FROM tab1 AS cor0 WHERE NOT 61 <> NULL
----

query I rowsort
SELECT col2 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL > + col1 * + col1 + + - ( + 74 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 45 = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab1 AS cor0 WHERE + 53 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT - + CAST( NULL AS SIGNED ) + - col1 - 53 * + + col1 / - + 66 + - + col0 + - 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT - + CAST ( NULL AS INTEGER ) + - col1 - 53 * + + col1 / - + 66 + - + col0 + - 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL - + 40 - - MAX( col0 ) + + 24 AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - + 40 - - MAX ( col0 ) + + 24 AS col0 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5985
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5985
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) * - 54 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) * - 54 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 37 col0 FROM tab2
----
1480
2146
851

query I rowsort
SELECT col1 - col0 * - col2 * + col2 FROM tab2 AS cor0
----
102477
24385
252367

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 43 IS NULL
----

query I rowsort
SELECT - 13 - + + 49 FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5991
SELECT col0 * - col2 AS col1, - CAST( NULL AS SIGNED ) * ( col2 ) * 78 - + ( 49 ) FROM tab0 AS cor0
----
-705
NULL
-870
NULL
-9603
NULL

skipif mysql # not compatible
query II rowsort label-5991
SELECT col0 * - col2 AS col1, - CAST ( NULL AS INTEGER ) * ( col2 ) * 78 - + ( 49 ) FROM tab0 AS cor0
----
-705
NULL
-870
NULL
-9603
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT DISTINCT - + COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - + COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + + 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT MIN( DISTINCT + - col0 ) * + 78 FROM tab2 WHERE + col2 > - col1 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT MIN ( DISTINCT + - col0 ) * + 78 FROM tab2 WHERE + col2 > - col1 * - col1
----
NULL

query II rowsort
SELECT DISTINCT col0, 42 FROM tab1
----
51
42
85
42
91
42

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT SUM( ALL - + col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5998
SELECT SUM ( ALL - + col2 ) AS col0 FROM tab2
----
-121

query II rowsort
SELECT ALL col0, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL 53 * + col1 AS col1 FROM tab2
----
2703
3551
4081

query I rowsort
SELECT DISTINCT col0 * - 49 FROM tab0
----
-4263
-4753
-735

query I rowsort
SELECT col2 * col2 * + + col1 AS col1 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT SUM( + 44 ) col0 FROM tab2
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6003
SELECT SUM ( + 44 ) col0 FROM tab2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT DISTINCT - - 31 DIV col1 * + col2 FROM tab1 AS cor0
----
0
192
354

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - - 31 / col1 * + col2 FROM tab1 AS cor0
----
0
192
354

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + - MAX( 90 ) * 2 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6005
SELECT + - MAX ( 90 ) * 2 FROM tab1 AS cor0
----
-180

query I rowsort
SELECT DISTINCT - ( + 72 ) FROM tab2 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 19 * - + col1
----

query II rowsort
SELECT ALL - col1 AS col2, col1 * + 44 AS col1 FROM tab1 cor0
----
-14
616
-47
2068
-5
220

query I rowsort
SELECT - col1 * + + 59 * + - col0 AS col1 FROM tab0 cor0
----
107793
5723
71685

query II rowsort
SELECT ALL - - 20 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
20
-14
20
-47
20
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT - MAX( ALL + - 7 ) AS col1 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT - MAX ( ALL + - 7 ) AS col1 FROM tab0 cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * 73 col1 FROM tab0
----
-3431
-7227
-730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6013
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + - - col2 + + 32 <> + col0
----

skipif mysql # not compatible
query III rowsort label-6013
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + - - col2 + + 32 <> + col0
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT SUM( ALL - 34 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-6015
SELECT SUM ( ALL - 34 ) FROM tab0
----
-102

query I rowsort
SELECT - col2 * 17 FROM tab1
----
-1003
-1156
-1632

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 >= - col2 - - col2 * 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT COUNT( * ) + COUNT( * ) + SUM( ALL col1 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-6019
SELECT COUNT ( * ) + COUNT ( * ) + SUM ( ALL col1 ) FROM tab1
----
72

query I rowsort
SELECT 3 + - ( + 94 ) FROM tab0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6021
SELECT + col0 * - 41 / CAST( NULL AS SIGNED ) * + 39 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT + col0 * - 41 / CAST ( NULL AS INTEGER ) * + 39 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col0 / + - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( ALL - - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( ALL - - col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL 31 + - col2 FROM tab1 AS cor0
----
-28
-37
-65

query I rowsort
SELECT DISTINCT - 97 + + col1 AS col0 FROM tab2 AS cor0
----
-20
-30
-46

query I rowsort
SELECT - - 53 - + - col2 FROM tab0 AS cor0
----
100
152
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6027
SELECT + CAST( NULL AS SIGNED ) + - col2 + - + 2 + - col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-6027
SELECT + CAST ( NULL AS INTEGER ) + - col2 + - + 2 + - col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - col2 + - ( + + 94 ) FROM tab0
----
-104
-141
-193

query II rowsort
SELECT DISTINCT + 82 - - + 28, + col1 FROM tab1
----
110
14
110
47
110
5

query I rowsort
SELECT DISTINCT - col0 * col0 - - col2 AS col2 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT SUM( col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----
NULL

query II rowsort
SELECT DISTINCT - 16 AS col0, - col1 FROM tab0 AS cor0 WHERE NOT 1 = 53
----
-16
-1
-16
-21
-16
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6034
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) / + col0 * - col2 - + 33 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6034
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) / + col0 * - col2 - + 33 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 74 <= - col2 )
----

query II rowsort
SELECT 39 * - col0 AS col1, - 75 + col0 AS col1 FROM tab0 AS cor0
----
-3393
12
-3783
22
-585
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT 74 * - 9 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-663

skipif mysql # not compatible
query I rowsort label-6038
SELECT 74 * - 9 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT MAX( ALL col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT MAX ( ALL col0 ) AS col1 FROM tab2 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 86 ) col0 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT COUNT( DISTINCT - ( col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT COUNT ( DISTINCT - ( col1 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL - - col0 * - col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab2 WHERE NOT + + 32 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT DISTINCT - 59 * + MIN( DISTINCT + col2 ) FROM tab1
----
-3481

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - 59 * + MIN ( DISTINCT + col2 ) FROM tab1
----
-3481

query I rowsort
SELECT ALL col1 * - 52 * + col0 AS col1 FROM tab1
----
-22100
-222404
-37128

query I rowsort
SELECT DISTINCT 31 + + col0 + - - 91 * - - 33 FROM tab1 AS cor0
----
3085
3119
3125

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - + MAX( - - 46 ) * - 39 col1 FROM tab0 AS cor0
----
1794

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT - + MAX ( - - 46 ) * - 39 col1 FROM tab0 AS cor0
----
1794

query I rowsort
SELECT + - col2 + + - col1 + col1 * - - 42 FROM tab0 AS cor0
----
-58
3274
851

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 60 * + col0 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT + MIN( DISTINCT 18 ) AS col1 FROM tab1, tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT + MIN ( DISTINCT 18 ) AS col1 FROM tab1, tab2 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT + + MAX( + + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6051
SELECT + + MAX ( + + col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + col1 * - + col1 + + 34 + col2 FROM tab2 AS cor0
----
-2544
-4397
-5855

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT - MIN( DISTINCT + - 33 ) AS col0 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-6053
SELECT - MIN ( DISTINCT + - 33 ) AS col0 FROM tab0 cor0
----
33

query I rowsort
SELECT - - 34 AS col2 FROM tab2 AS cor0
----
34
34
34

query II rowsort
SELECT - - 1 AS col1, - 35 + col1 AS col0 FROM tab1 AS cor0
----
1
-21
1
-30
1
12

query I rowsort
SELECT DISTINCT col2 * + col0 - col1 * + + ( + 14 ) + - - col0 + + - col2 - + 18 AS col2 FROM tab0 AS cor0
----
-479
635
9569

query I rowsort
SELECT - 69 - - - 19 AS col0 FROM tab0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT + CAST( NULL AS SIGNED ) - + col2 - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT + CAST ( NULL AS INTEGER ) - + col2 - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT ALL col1 DIV + - col0 * - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL col1 / + - col0 * - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT DISTINCT + col1 DIV - 31 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + col1 / - 31 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT DISTINCT CAST( 25 AS SIGNED ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT CAST ( 25 AS INTEGER ) FROM tab0
----
25

query I rowsort
SELECT - col1 * + 17 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col1 * 5 - + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 64 / + col1 / + + ( - col1 ) + - col1 - - + 1 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 WHERE ( - 15 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6066
SELECT DISTINCT - 42 DIV + + ( - col2 ) - 44, ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-40
NULL
-44
NULL

skipif mysql # not compatible
query II rowsort label-6066
SELECT DISTINCT - 42 / + + ( - col2 ) - 44, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-40
NULL
-44
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 * - col0 * - ( - + col2 ) IS NULL
----

query I rowsort
SELECT + 40 * 20 AS col0 FROM tab2
----
800
800
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, 88 FROM tab1 AS cor0
----
59
88
68
88
96
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 22
----

query I rowsort
SELECT - col1 * + + 15 * col2 FROM tab2 cor0
----
-17595
-46200
-58290

query I rowsort
SELECT ALL - 22 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22
-22
-22

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE + 8 < + - col1
----

query II rowsort
SELECT ALL - col1 AS col1, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6075
SELECT ALL + 99, 95 + MIN( + 8 ) AS col2 FROM tab0
----
99
103

skipif mysql # not compatible
query II rowsort label-6075
SELECT ALL + 99, 95 + MIN ( + 8 ) AS col2 FROM tab0
----
99
103

query I rowsort
SELECT DISTINCT + 26 * - col2 FROM tab0
----
-1222
-2574
-260

query II rowsort
SELECT + col0, + col1 AS col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT - SUM( col0 ) AS col1, - 34 FROM tab2
----
-185
-34

skipif mysql # not compatible
query II rowsort label-6078
SELECT - SUM ( col0 ) AS col1, - 34 FROM tab2
----
-185
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6079
SELECT DISTINCT * FROM tab0 WHERE + 50 + + + col0 + - 89 + + col0 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6079
SELECT DISTINCT * FROM tab0 WHERE + 50 + + + col0 + - 89 + + col0 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6080
SELECT ALL - 97 DIV - - COUNT( ALL col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-32

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - 97 / - - COUNT ( ALL col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6082
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT + 87 + - + COUNT( * ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT + 87 + - + COUNT ( * ) AS col2 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col0 * col0 col2 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT ALL - col1 + 66 + + + col1 * - col0 + col1 * - - col2 FROM tab1 AS cor0
----
-1062
-69
682

query I rowsort
SELECT ALL + + ( + - col1 ) + - col0 AS col2 FROM tab0 cor0
----
-108
-96
-98

query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <> - - col2 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 62 + - col1 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT ( 61 ) * - - ( - col1 ) FROM tab2
----
-3111
-4087
-4697

query II rowsort
SELECT ALL 69 * - 91 - + col0, + col2 AS col1 FROM tab2
----
-6325
23
-6343
40
-6354
58

query I rowsort
SELECT - ( + 16 ) FROM tab1
----
-16
-16
-16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 43 * + col0 > - + 69
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 < + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT ( - CAST( NULL AS SIGNED ) ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT ( - CAST ( NULL AS INTEGER ) ) * + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 52 <= + + 58
----

query I rowsort
SELECT + 34 * + - col1 FROM tab2
----
-1734
-2278
-2618

query I rowsort
SELECT DISTINCT - - 0 + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT ( + ( - CAST( - col2 AS SIGNED ) ) ) - + + 76 AS col0 FROM tab1 AS cor0
----
-17
-8
20

skipif mysql # not compatible
query I rowsort label-6099
SELECT ( + ( - CAST ( - col2 AS INTEGER ) ) ) - + + 76 AS col0 FROM tab1 AS cor0
----
-17
-8
20

query I rowsort
SELECT ALL + - col2 * col1 - + col2 AS col1 FROM tab2 cor0
----
-1196
-3120
-3944

query II rowsort
SELECT ALL 9 AS col0, + col2 * + col1 FROM tab0 AS cor0
----
9
210
9
3807
9
99

query I rowsort
SELECT ALL 57 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT ALL + 6 - + + ( + CAST( NULL AS SIGNED ) ) - ( + 18 ) + 2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + 6 - + + ( + CAST ( NULL AS INTEGER ) ) - ( + 18 ) + 2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT 36 * - - col0, 40 AS col0 FROM tab0 AS cor0
----
3132
40
3492
40
540
40

query I rowsort
SELECT DISTINCT col0 * - col0 * - - col2 AS col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT - + col0 * col2 + - + 71 AS col2 FROM tab2 AS cor0
----
-1129
-2631
-4421

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, + 53 )
----

query I rowsort
SELECT + + col0 * - col0 + + - 69 * + 11 * + 21 * - col0 * + col2 FROM tab1 AS cor0
----
78034743
79926860
98622251

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - 27 * COUNT( * ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6109
SELECT - 27 * COUNT ( * ) col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + + ( 12 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 57 * + col2 AS col2 FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT ALL + 35 * col2 FROM tab0
----
1645
3465
350

query I rowsort
SELECT - col1 + + ( 73 ) FROM tab2 AS cor0
----
-4
22
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6114
SELECT ALL - col1 AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-6114
SELECT ALL - col1 AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT + 73 + - 95 AS col0 FROM tab0 AS cor0 WHERE col0 + - 66 > + col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT SUM( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6116
SELECT SUM ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL + col1 DIV + + col1 + + + col1 AS col0 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + col1 / + + col1 + + + col1 AS col0 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT ALL col0 * - col1 + + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT + MAX( DISTINCT - 26 ) AS col0 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6119
SELECT + MAX ( DISTINCT - 26 ) AS col0 FROM tab1 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL + 95 + + - COUNT( * ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL + 95 + + - COUNT ( * ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 79 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6123
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6123
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1, tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col1 FROM tab2
----
-16

query I rowsort
SELECT 82 + - + col1 FROM tab1
----
35
68
77

query I rowsort
SELECT DISTINCT - - 44 AS col1 FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL - - 73 + + + 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 565904e33266d77f7dacf61b699cde5a

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT ALL 68 * - 74 * COUNT( * ) AS col1 FROM tab2
----
-15096

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL 68 * - 74 * COUNT ( * ) AS col1 FROM tab2
----
-15096

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT ALL + - col2 * + + 36 + - + col0 DIV 61 FROM tab1 AS cor0
----
-2125
-2449
-3456

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + - col2 * + + 36 + - + col0 / 61 FROM tab1 AS cor0
----
-2125
-2449
-3456

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col1 FROM tab2 cor0
----
22

query I rowsort
SELECT DISTINCT - 42 * + + 96 * - 90 AS col1 FROM tab2
----
362880

query I rowsort
SELECT DISTINCT ( - 34 ) + + 49 AS col0 FROM tab2
----
15

query I rowsort
SELECT ALL - - 77 + + col0 AS col0 FROM tab2 AS cor0
----
123
141
152

query I rowsort
SELECT ALL 25 FROM tab2 AS cor0 WHERE + 27 IS NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT 63 + + SUM( col1 ) col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6138
SELECT 63 + + SUM ( col1 ) col0 FROM tab2 AS cor0
----
258

query I rowsort
SELECT 52 * + 38 * + - col1 + col0 FROM tab0 AS cor0
----
-160041
-1879
-41409

query I rowsort
SELECT ALL - - col1 + 27 FROM tab1 cor0
----
32
41
74

query I rowsort
SELECT DISTINCT col1 - + 45 AS col0 FROM tab0 AS cor0
----
-24
-44
36

query II rowsort
SELECT DISTINCT + col2, + col0 + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT COUNT( - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT COUNT ( - - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6144
SELECT - 83, + COUNT( * ) AS col1 FROM tab0
----
-83
3

skipif mysql # not compatible
query II rowsort label-6144
SELECT - 83, + COUNT ( * ) AS col1 FROM tab0
----
-83
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6145
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - + col1 AND + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6145
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - + col1 AND + CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT ALL col2 - ( - - 25 ) + - 34 AS col2 FROM tab2
----
-1
-19
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT MIN( ALL - 69 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-6147
SELECT MIN ( ALL - 69 ) FROM tab0
----
-69

query II rowsort
SELECT + col0, + 9 + - 51 AS col2 FROM tab1
----
51
-42
85
-42
91
-42

query I rowsort
SELECT col0 * + + 64 FROM tab2
----
2944
4096
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL + CAST( - + 17 AS SIGNED ) * - + 7 + - - ( + COUNT( * ) ) FROM tab0 WHERE NOT + + col2 + col2 < col0 + - + ( + 12 )
----
121

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL + CAST ( - + 17 AS INTEGER ) * - + 7 + - - ( + COUNT ( * ) ) FROM tab0 WHERE NOT + + col2 + col2 < col0 + - + ( + 12 )
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-6151
SELECT ALL COUNT( * ) * + 83 AS col1, 55 AS col1 FROM tab2
----
249
55

skipif mysql # not compatible
query II rowsort label-6151
SELECT ALL COUNT ( * ) * + 83 AS col1, 55 AS col1 FROM tab2
----
249
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6152
SELECT DISTINCT col1, CAST( + 63 AS SIGNED ) AS col1 FROM tab1
----
14
63
47
63
5
63

skipif mysql # not compatible
query II rowsort label-6152
SELECT DISTINCT col1, CAST ( + 63 AS INTEGER ) AS col1 FROM tab1
----
14
63
47
63
5
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT + + MIN( DISTINCT - col0 ) * COUNT( * ) FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT + + MIN ( DISTINCT - col0 ) * COUNT ( * ) FROM tab1 cor0
----
-273

query I rowsort
SELECT ALL + 55 * col2 AS col0 FROM tab0 AS cor0
----
2585
5445
550

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( - col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 4 * + col1 + 36 AS col1 FROM tab1 cor0
----
224
56
92

query II rowsort
SELECT ALL + 54 * 8 AS col1, - col1 FROM tab0 AS cor0
----
432
-1
432
-21
432
-81

query I rowsort
SELECT - - col2 * + ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT 71 * - 99 AS col2 FROM tab0 AS cor0
----
-7029
-7029
-7029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * + - col1 * - + col0 col2 FROM tab0 AS cor0
----
-124236
-6596
-82620

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 12 / - 68 >= NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6164
SELECT DISTINCT - 87 * + - col1 * + 32 AS col1, + ( - + 65 ) DIV + 78 AS col2 FROM tab0
----
225504
0
2784
0
58464
0

skipif mysql # not compatible
query II rowsort label-6164
SELECT DISTINCT - 87 * + - col1 * + 32 AS col1, + ( - + 65 ) / + 78 AS col2 FROM tab0
----
225504
0
2784
0
58464
0

query I rowsort
SELECT + ( - 99 ) * col1 + + col2 AS col1 FROM tab0 AS cor0
----
-2069
-7972
0

query I rowsort
SELECT 30 + - col2 + - 75 * + col0 * - - col1 * - + col1 - + 78 AS col2 FROM tab0 AS cor0
----
2877467
7128
7381030

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 - + 85 + - + ( + - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 * col0 AS col2 FROM tab0
----
5568
6208
960

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT COUNT( 47 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT COUNT ( 47 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 43 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6172
SELECT + COUNT( * ) * COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT + COUNT ( * ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 BETWEEN ( NULL ) AND col0 + + 90
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 BETWEEN ( NULL ) AND col0 + + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT - MAX( DISTINCT + col2 ) * - 40 AS col0 FROM tab1
----
3840

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT - MAX ( DISTINCT + col2 ) * - 40 AS col0 FROM tab1
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - COUNT( * ) + 50 AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - COUNT ( * ) + 50 AS col2 FROM tab0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6177
SELECT COUNT( * ) DIV MAX( - col2 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6177
SELECT COUNT ( * ) / MAX ( - col2 ) AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT + ( col1 ) DIV col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6178
SELECT + ( col1 ) / col1 AS col0 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6180
SELECT ALL + col2 DIV - col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + col2 / - col1 AS col1 FROM tab1
----
-1
-11
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT ALL col1 DIV 29 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL col1 / 29 AS col2 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NULL BETWEEN col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 IN ( 93 * - col1 - 98 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 / col2 FROM tab1 WHERE NOT ( ( col0 ) ) NOT BETWEEN NULL AND col1 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6186
SELECT * FROM tab2 WHERE + col0 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6186
SELECT * FROM tab2 WHERE + col0 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * 22 + col1 AS col1 FROM tab0
----
-1701
-21
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT SUM( ALL col1 ) + + COUNT( * ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6188
SELECT SUM ( ALL col1 ) + + COUNT ( * ) AS col2 FROM tab1
----
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT - ( - SUM( col0 ) ) DIV + 99 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-6190
SELECT - ( - SUM ( col0 ) ) / + 99 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 90 ) NOT IN ( 34 )
----

query I rowsort
SELECT 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 + - 12 FROM tab1
----
47
56
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 34 ) col2 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( ( 33 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT - COUNT( * ) * 55 AS col0 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6197
SELECT - COUNT ( * ) * 55 AS col0 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + 35 IS NULL
----
46
64
75

query I rowsort
SELECT col2 * - 23 FROM tab1 AS cor0
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL + MIN( DISTINCT + col1 ) col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6200
SELECT ALL + MIN ( DISTINCT + col1 ) col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL - COUNT( ALL - col2 ) * - 89 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - COUNT ( ALL - col2 ) * - 89 FROM tab0 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT MAX( + col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6204
SELECT MAX ( + col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT ( col1 ) * 66 AS col1 FROM tab2 AS cor0
----
3366
4422
5082

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 34 * + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * 43 AS col1 FROM tab2
----
-2193
-2881
-3311

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 20 IS NOT NULL OR NULL <= ( + ( 27 ) ) * 53
----

query I rowsort
SELECT col1 * + 16 * col2 AS col2 FROM tab2
----
18768
49280
62176

query I rowsort
SELECT DISTINCT 74 + 68 FROM tab0
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT - ( col1 ) DIV col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6211
SELECT - ( col1 ) / col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT DISTINCT + MAX( ALL col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT + MAX ( ALL col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + col1 + 59 AS col2 FROM tab2
----
110
126
136

query III rowsort
SELECT * FROM tab0 WHERE ( - 19 ) IS NULL
----

query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
102
170
182

query I rowsort
SELECT DISTINCT col0 + - col1 * 22 FROM tab1 cor0
----
-25
-257
-943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / - 81 col1 FROM tab0 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT + MAX( + ( col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6218
SELECT + MAX ( + ( col2 ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + 98 * 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5616c78812b4552f34a5652efffd9b65

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( - + col0 + - col1 ) BETWEEN - col2 AND - col0 * col2
----
3

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( - + col0 + - col1 ) BETWEEN - col2 AND - col0 * col2
----
3

query I rowsort
SELECT - col1 + - col2 + 32 * col0 AS col0 FROM tab1 AS cor0
----
1522
2656
2797

query I rowsort
SELECT ALL + col0 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT DISTINCT - + 34 * + col2 * - CAST( NULL AS SIGNED ) * ( + 19 ) - col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT - + 34 * + col2 * - CAST ( NULL AS INTEGER ) * ( + 19 ) - col0 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT DISTINCT + CAST( + ( - 93 ) AS SIGNED ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT + CAST ( + ( - 93 ) AS INTEGER ) FROM tab0 AS cor0
----
-93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT - col1 * + 95 FROM tab0 AS cor0
----
-1995
-7695
-95

query I rowsort
SELECT DISTINCT - ( + - col0 ) * col0 + - - col0 * - 49 AS col0 FROM tab0
----
-510
3306
4656

query I rowsort
SELECT + col1 * col0 * + 42 FROM tab1
----
17850
179634
29988

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT col2 + 38 * + 4 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + col0 * - 56 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6233
SELECT DISTINCT - + ( - 79 ) AS col2, - COUNT( * ) * + CAST( + 72 AS SIGNED ) * COUNT( * ) col2 FROM tab0 AS cor0
----
79
-648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6233
SELECT DISTINCT - + ( - 79 ) AS col2, - COUNT ( * ) * + CAST ( + 72 AS INTEGER ) * COUNT ( * ) col2 FROM tab0 AS cor0
----
79
-648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6234
SELECT DISTINCT + - COUNT( CAST( + - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT + - COUNT ( CAST ( + - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0 WHERE - col2 IN ( + 24 )
----

skipif mysql # not compatible
query I rowsort label-6235
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0 WHERE - col2 IN ( + 24 )
----

query I rowsort
SELECT ALL + 95 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2
8
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - - COUNT( * ) * 59 AS col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-6237
SELECT - - COUNT ( * ) * 59 AS col2 FROM tab0 AS cor0
----
177

query I rowsort
SELECT - - col2 AS col0 FROM tab1 AS cor0 WHERE 15 + - + col2 * + 88 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col2 * - + col0 AS col0 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + 36 * col0 AS col1 FROM tab1 cor0
----
1836
3060
3276

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 27 BETWEEN + + ( - + col0 ) + + col2 AND ( + col2 + - 5 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT ( + COUNT( * ) ) * - 21 col0 FROM tab1
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6242
SELECT DISTINCT ( + COUNT ( * ) ) * - 21 col0 FROM tab1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, + col0 col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT + 51 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT + 51 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT - COUNT( * ) + + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6245
SELECT - COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT + 88 + + col0 AS col2 FROM tab1 AS cor0
----
139
173
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + 29 col0 FROM tab2 AS cor0
----
52
69
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6248
SELECT * FROM tab2 cor0 WHERE col2 * - + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND 23
----

skipif mysql # not compatible
query III rowsort label-6248
SELECT * FROM tab2 cor0 WHERE col2 * - + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND 23
----

query I rowsort
SELECT DISTINCT + + col0 * + 58 - + + 52 FROM tab0 AS cor0
----
4994
5574
818

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 - + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6252
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 4 ) IS NOT NULL AND + col0 NOT BETWEEN - 55 * - col1 * + CAST( NULL AS SIGNED ) + + col1 AND ( - 43 * + 8 )
----

skipif mysql # not compatible
query III rowsort label-6252
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 4 ) IS NOT NULL AND + col0 NOT BETWEEN - 55 * - col1 * + CAST ( NULL AS INTEGER ) + + col1 AND ( - 43 * + 8 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT + col1 / 39 <= NULL
----

query I rowsort
SELECT DISTINCT + 40 * + + col2 FROM tab0 AS cor0
----
1880
3960
400

query I rowsort
SELECT ALL - col2 * + + col0 * + + col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT - col1 DIV + + 77 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT - col1 / + + 77 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 4 col1 FROM tab0 AS cor0
----
4
4
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - + col0 ) - + - ( - col1 ) NOT BETWEEN - 70 AND col2 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 88 FROM tab2 WHERE NOT ( - + col1 ) IN ( 23 - col0 * + col1 )
----
-88
-88
-88

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col0 + - col1 + - - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN ( 77 ) AND - col2
----

query I rowsort
SELECT + 97 * + + 47 FROM tab0
----
4559
4559
4559

query III rowsort
SELECT ALL * FROM tab0 WHERE - 29 / + - 17 < - 35 + - + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 70 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= - col2 + col2 - - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( col1, CAST( NULL AS SIGNED ) / col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( col1, CAST ( NULL AS INTEGER ) / col1 )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT + MAX( DISTINCT - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6270
SELECT + MAX ( DISTINCT - + col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT DISTINCT - CAST( - 31 AS SIGNED ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT - CAST ( - 31 AS INTEGER ) AS col2 FROM tab2
----
31

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE ( NOT ( NULL ) BETWEEN ( col0 ) AND col2 * - ( - + 87 ) - + + col1 + + col0 * - col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT + ( - + SUM( ALL - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + ( - + SUM ( ALL - col0 ) ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT - - CAST( NULL AS SIGNED ) * + 10 + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6276
SELECT - - CAST ( NULL AS INTEGER ) * + 10 + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - - 17 + + - col0 FROM tab0 AS cor0
----
-70
-80
2

query I rowsort
SELECT DISTINCT + col1 + + - col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 45 + + - col0 + + col1 * - ( 93 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( + col0, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + 17 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + 17 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT + MIN( ALL 78 ) AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + MIN ( ALL 78 ) AS col1 FROM tab0 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT + - 7 DIV - 57 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6284
SELECT + - 7 / - 57 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT ( + col0 ) * 25 + + col0 + col2 * + - 99 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT ( + col0 ) * 25 + + col0 + col2 * + - 99 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 39 ) AS col0 FROM tab2 WHERE NOT - col0 BETWEEN col1 * col2 + col2 AND NULL
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT 86 DIV + COUNT( 61 ) col2 FROM tab1
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT 86 / + COUNT ( 61 ) col2 FROM tab1
----
28

query I rowsort
SELECT col0 * + col2 * 44 FROM tab2
----
112640
191400
46552

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT col1 DIV - - col0 * - 45 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6289
SELECT col1 / - - col0 * - 45 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT ( - - col0 ) DIV 56 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6290
SELECT ( - - col0 ) / 56 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL - col2 + - ( + - col0 ) * + - col0 + + - 26 FROM tab0
----
-298
-7605
-9534

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col0 * - - col1, 31 )
----

query I rowsort
SELECT + 12 + col0 FROM tab0 cor0 WHERE + 85 * + col2 - col0 IN ( col1 + 31 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( 1 + - - col1 = ( NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 col0 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6296
SELECT ALL + - MIN( + - 39 ) AS col0, - 61 DIV 16 FROM tab0 WHERE NULL <= + - col2 DIV - - col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL + - MIN ( + - 39 ) AS col0, - 61 / 16 FROM tab0 WHERE NULL <= + - col2 / - - col1
----
NULL
-3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 18 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE - col0 * + - col2 / ( - col0 ) + ( + 3 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE - col0 * + - col2 / ( - col0 ) + ( + 3 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6299
SELECT DISTINCT + COUNT( * ) * + - SUM( ALL - - col1 ) * - MAX( - - col2 ) + - + 27, + 13 + + 13 AS col2 FROM tab2
----
33903
26

skipif mysql # not compatible
query II rowsort label-6299
SELECT DISTINCT + COUNT ( * ) * + - SUM ( ALL - - col1 ) * - MAX ( - - col2 ) + - + 27, + 13 + + 13 AS col2 FROM tab2
----
33903
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT 3 * - CAST( - - col1 AS SIGNED ) * - col0 * + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6300
SELECT 3 * - CAST ( - - col1 AS INTEGER ) * - col0 * + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + ( col0 ) NOT IN ( - col2, col2, col1 + - 7 / + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6302
SELECT ALL - MIN( DISTINCT + col2 ), COUNT( * ) col1 FROM tab0 AS cor0
----
-10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6302
SELECT ALL - MIN ( DISTINCT + col2 ), COUNT ( * ) col1 FROM tab0 AS cor0
----
-10
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 35 = ( - + 76 ) * + - col0 * - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col2, col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6305
SELECT DISTINCT 58 AS col1, col2 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
58
0

skipif mysql # not compatible
query II rowsort label-6305
SELECT DISTINCT 58 AS col1, col2 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
58
0

query I rowsort
SELECT + col1 * + - 47 * + + col1 AS col1 FROM tab0 AS cor0
----
-20727
-308367
-47

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NOT col1 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT - MAX( ALL - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT - MAX ( ALL - col2 ) AS col0 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT ALL col1 * - CAST( NULL AS SIGNED ) / ( - col1 ) * - 19 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) / ( - col1 ) * - 19 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6310
SELECT - col2 DIV + 87 AS col0, col2 FROM tab0
----
-1
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-6310
SELECT - col2 / + 87 AS col0, col2 FROM tab0
----
-1
99
0
10
0
47

query I rowsort
SELECT ALL - col2 * + ( - col0 ) AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT - COUNT( * ) * - 89 col0 FROM tab2
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6312
SELECT DISTINCT - COUNT ( * ) * - 89 col0 FROM tab2
----
267

query I rowsort
SELECT - ( + - 46 ) AS col0 FROM tab1 WHERE NOT NULL >= - ( - - 59 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + - 5, - ( + col1 ) * + col2 + - + col0 + col0, + 68 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col1 + - col1 + - col0 + - - col1 * col0 / - - col1 - + col2
----

query I rowsort
SELECT 7 + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - col2 + ( col2 ) FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6318
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query II rowsort
SELECT DISTINCT col0, 72 - col2 FROM tab2
----
46
49
64
32
75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT + 14 * COUNT( * ) AS col2 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT + 14 * COUNT ( * ) AS col2 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6321
SELECT DISTINCT * FROM tab1 WHERE - + CAST( + ( - - col2 ) AS SIGNED ) * - 36 * + 58 < - ( - ( 98 ) )
----

skipif mysql # not compatible
query III rowsort label-6321
SELECT DISTINCT * FROM tab1 WHERE - + CAST ( + ( - - col2 ) AS INTEGER ) * - 36 * + 58 < - ( - ( 98 ) )
----

query II rowsort
SELECT col1 AS col2, - 31 AS col2 FROM tab2 AS cor0
----
51
-31
67
-31
77
-31

query I rowsort
SELECT DISTINCT - ( + - 74 ) - 83 AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - + MIN( - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6324
SELECT - + MIN ( - - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + 49 + + + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6325
SELECT + 49 + + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
52

query II rowsort
SELECT - 7, + 17 AS col0 FROM tab1 cor0
----
-7
17
-7
17
-7
17

query I rowsort
SELECT ALL col0 - + - col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < + ( + 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT 62 * + MAX( 8 ) - + COUNT( * ) AS col0 FROM tab2
----
493

skipif mysql # not compatible
query I rowsort label-6329
SELECT 62 * + MAX ( 8 ) - + COUNT ( * ) AS col0 FROM tab2
----
493

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT - 83 DIV col0 + - col1 AS col1 FROM tab1
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-6330
SELECT - 83 / col0 + - col1 AS col1 FROM tab1
----
-15
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6331
SELECT DISTINCT * FROM tab1 WHERE NOT - 63 * col1 + - CAST( col1 AS SIGNED ) * - col2 + 41 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6331
SELECT DISTINCT * FROM tab1 WHERE NOT - 63 * col1 + - CAST ( col1 AS INTEGER ) * - col2 + 41 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT 55 + - - COUNT( * ) + - 5 - - + 56 * COUNT( ALL ( + - col2 ) ) AS col2 FROM tab2
----
221

skipif mysql # not compatible
query I rowsort label-6332
SELECT 55 + - - COUNT ( * ) + - 5 - - + 56 * COUNT ( ALL ( + - col2 ) ) AS col2 FROM tab2
----
221

query III rowsort
SELECT * FROM tab2 WHERE + + 82 IS NULL
----

query I rowsort
SELECT 96 + col0 + - - col2 AS col0 FROM tab2
----
165
200
229

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT 15 DIV - + col1 col1 FROM tab0 AS cor0
----
-15
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6335
SELECT 15 / - + col1 col1 FROM tab0 AS cor0
----
-15
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT + + MIN( ALL + 88 ) FROM tab2 AS cor0 WHERE ( NULL ) <= - ( + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT + + MIN ( ALL + 88 ) FROM tab2 AS cor0 WHERE ( NULL ) <= - ( + 17 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6337
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6337
SELECT + CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + COUNT( - 8 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6339
SELECT + COUNT ( - 8 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 BETWEEN NULL AND - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6341
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 13 - + CAST( - ( + - 50 ) AS SIGNED ) * + col0 * + 93 AND - - col0
----

skipif mysql # not compatible
query III rowsort label-6341
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 13 - + CAST ( - ( + - 50 ) AS INTEGER ) * + col0 * + 93 AND - - col0
----

query I rowsort
SELECT ALL + col0 * + + 46 FROM tab1
----
2346
3910
4186

query I rowsort
SELECT ALL 69 * - col1 FROM tab0 AS cor0
----
-1449
-5589
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 64 * + + 85 col2 FROM tab0 AS cor0
----
-473280
-527680
-81600

query I rowsort
SELECT + - col2 * 90 + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-5315
-6167
-8654

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + 10 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT SUM( - 10 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT SUM ( - 10 ) FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT COUNT( - + 61 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 74 * - col1 * - + 25 <> - col1 * + col1 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-6348
SELECT COUNT ( - + 61 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 74 * - col1 * - + 25 <> - col1 * + col1 - - col0
----
0

query I rowsort
SELECT col1 * - + col2 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - col0 * + ( - + col2 ) AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT ALL - col2 DIV + 90 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - col2 / + 90 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT 70 * - 36 DIV + - COUNT( * ) FROM tab0
----
840

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT 70 * - 36 / + - COUNT ( * ) FROM tab0
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6353
SELECT 14, CAST( col2 AS SIGNED ) * + col2 * + col1 AS col1 FROM tab1
----
14
129024
14
17405
14
217328

skipif mysql # not compatible
query II rowsort label-6353
SELECT 14, CAST ( col2 AS INTEGER ) * + col2 * + col1 AS col1 FROM tab1
----
14
129024
14
17405
14
217328

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6354
SELECT * FROM tab2 WHERE ( NULL ) IS NULL AND CAST( NULL AS SIGNED ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6354
SELECT * FROM tab2 WHERE ( NULL ) IS NULL AND CAST ( NULL AS INTEGER ) < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 68 * + + col0 AS col0 FROM tab2
----
3128
4352
5100

query II rowsort
SELECT ALL col0 AS col1, col2 + - + 45 FROM tab1
----
51
51
85
14
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT MIN( + 22 ) + + + 74 AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT MIN ( + 22 ) + + + 74 AS col0 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59 col1, - ( 44 ) - + col2 AS col1 FROM tab1 AS cor0
----
59
-103
59
-112
59
-140

query II rowsort
SELECT 89, ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
89
1
89
21
89
81

query I rowsort
SELECT DISTINCT - 57 * - 3 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
171

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT 72 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
72
72
72

skipif mysql # not compatible
query I rowsort label-6362
SELECT 72 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT ALL col2 DIV - + col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL col2 / - + col2 AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + + 35 > + - 88 / 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / + - col1 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 - - 85 + + 7 + + col0 AS col2 FROM tab2 cor0
----
100
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6367
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6368
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
3
3

query I rowsort
SELECT ALL - col2 + + - col0 AS col0 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT - COUNT( * ) + 53 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----
53

skipif mysql # not compatible
query I rowsort label-6371
SELECT - COUNT ( * ) + 53 FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----
53

query I rowsort
SELECT DISTINCT 78 * + 84 FROM tab0, tab0 cor0
----
6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 75 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
75
40
75
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0 WHERE NOT 47 NOT BETWEEN ( - - 3 ) AND + 71
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 WHERE NOT 47 NOT BETWEEN ( - - 3 ) AND + 71
----
NULL
NULL
NULL

query II rowsort
SELECT 59 AS col1, - ( + - col2 ) FROM tab1 AS cor0
----
59
59
59
68
59
96

query II rowsort
SELECT - + 6 AS col2, - 20 AS col2 FROM tab2 AS cor0
----
-6
-20
-6
-20
-6
-20

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - col2 NOT BETWEEN + 63 AND + - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL COUNT( DISTINCT 13 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL COUNT ( DISTINCT 13 ) FROM tab0
----
1

query I rowsort
SELECT ( - + 83 ) FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT + col2 DIV col0 + - col0 + 39 FROM tab1 AS cor0
----
-11
-46
-52

skipif mysql # not compatible
query I rowsort label-6380
SELECT + col2 / col0 + - col0 + 39 FROM tab1 AS cor0
----
-11
-46
-52

query II rowsort
SELECT + ( - col0 ) AS col1, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT - col1 * 53 FROM tab1 AS cor0
----
-2491
-265
-742

query II rowsort
SELECT + col2 AS col2, - 58 * col2 AS col2 FROM tab2
----
23
-1334
40
-2320
58
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL ( - - SUM( + ( - + ( col0 ) ) ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL ( - - SUM ( + ( - + ( col0 ) ) ) ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT 77 * - col2 FROM tab0
----
-3619
-7623
-770

query I rowsort
SELECT ALL - 89 * 58 FROM tab0
----
-5162
-5162
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col2 + col1 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + + ( col1 ) + + 69 * + col1 FROM tab2
----
3593
4748
5430

query I rowsort
SELECT DISTINCT + 65 + - + col1 * - - col0 FROM tab2 AS cor0
----
-2281
-4863
-4960

query I rowsort
SELECT - + col1 + 6 + - col1 * - col2 * col2 * + + 15 FROM tab2 AS cor0
----
1847929
3380759
404640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + - 99 BETWEEN 65 - - - col0 AND ( 30 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) * - + 45 col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + 13 + - col0 AS col2 FROM tab1
----
-24
-31
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6396
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT SUM( ALL + col1 ) * MIN( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-8343

skipif mysql # not compatible
query I rowsort label-6397
SELECT SUM ( ALL + col1 ) * MIN ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-8343

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 10 < NULL
----

query I rowsort
SELECT ALL + col2 - - 50 FROM tab1 AS cor0
----
109
118
146

query I rowsort
SELECT - + ( - + col1 ) - + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT + col0 - + 79, ( - 60 ) AS col2 FROM tab1 AS cor0
----
-28
-60
12
-60
6
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT + + 32 + - - COUNT( * ) col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6402
SELECT + + 32 + - - COUNT ( * ) col2 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT - 92 - COUNT( * ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - 92 - COUNT ( * ) FROM tab0 AS cor0
----
-95

query I rowsort
SELECT col2 + + 19 AS col0 FROM tab0 AS cor0
----
118
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL COUNT( * ) + + - 65 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL COUNT ( * ) + + - 65 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT DISTINCT + col1 - - - ( - + 62 ) AS col2 FROM tab1
----
109
67
76

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL ( + col0 ) AS col0, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT - MAX( ALL + + col0 ) AS col2, COUNT( * ) * COUNT( * ) FROM tab1
----
-91
9

skipif mysql # not compatible
query II rowsort label-6409
SELECT - MAX ( ALL + + col0 ) AS col2, COUNT ( * ) * COUNT ( * ) FROM tab1
----
-91
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6410
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col0 ) + col0 * - + col2 + + CAST( NULL AS SIGNED ) * + col1 + - 23 * - + 13 NOT BETWEEN + col1 / + + 13 + + col2 AND 2 - + 95
----

skipif mysql # not compatible
query III rowsort label-6410
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col0 ) + col0 * - + col2 + + CAST ( NULL AS INTEGER ) * + col1 + - 23 * - + 13 NOT BETWEEN + col1 / + + 13 + + col2 AND 2 - + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL - COUNT( + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - COUNT ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT - - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6413
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL + col0 + + 46 FROM tab1 AS cor0
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL + SUM( ALL + 79 ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + SUM ( ALL + 79 ) FROM tab0 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT - + COUNT( - 98 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6416
SELECT - + COUNT ( - 98 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 85 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 28 * - + col2 FROM tab2 AS cor0
----
-1120
-1624
-644

onlyif mysql # DIV for integer division: 
query II rowsort label-6419
SELECT col0 DIV col1 + + col2 DIV - col1 col1, - col0 * - + col2 * - col0 FROM tab0
----
-2
-931491
0
-10575
4
-75690

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6419
SELECT col0 / col1 + + col2 / - col1 col1, - col0 * - + col2 * - col0 FROM tab0
----
-2
-931491
0
-10575
4
-75690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT + col1 * + CAST( NULL AS SIGNED ) >= - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6420
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT + col1 * + CAST ( NULL AS INTEGER ) >= - col1
----

query I rowsort
SELECT DISTINCT - col0 + + + 67 * 4 AS col2 FROM tab1
----
177
183
217

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT - AVG ( col2 ) AS col1, MIN( 80 ) + + + COUNT( * ) AS col1 FROM tab0 WHERE + - 11 = + col2 / + - col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6422
SELECT - AVG ( col2 ) AS col1, MIN ( 80 ) + + + COUNT ( * ) AS col1 FROM tab0 WHERE + - 11 = + col2 / + - col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6423
SELECT col2 DIV - + 61 col2, - col0 * col2 FROM tab0
----
-1
-9603
0
-705
0
-870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6423
SELECT col2 / - + 61 col2, - col0 * col2 FROM tab0
----
-1
-9603
0
-705
0
-870

query I rowsort
SELECT ALL - col1 + + col2 + - + col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6425
SELECT DISTINCT - + 15 DIV + col1 * - col1 * col0 + - col1 + - - CAST( + col2 AS SIGNED ) + + 23 * 73 FROM tab2 AS cor0
----
1642
1651
1670

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - + 15 / + col1 * - col1 * col0 + - col1 + - - CAST ( + col2 AS INTEGER ) + + 23 * 73 FROM tab2 AS cor0
----
1642
1651
1670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6427
SELECT DISTINCT + col0 - - 49 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
146
190
191

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT + col0 - - 49 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
146
190
191

query I rowsort
SELECT DISTINCT 21 + - 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6429
SELECT - COUNT( * ) + + AVG ( + + CAST( NULL AS DECIMAL ) ) * - 36 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT - COUNT ( * ) + + AVG ( + + CAST ( NULL AS REAL ) ) * - 36 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT col0 * - - CAST( col2 AS SIGNED ) + - + 47 AS col0 FROM tab0 AS cor0
----
658
823
9556

skipif mysql # not compatible
query I rowsort label-6430
SELECT col0 * - - CAST ( col2 AS INTEGER ) + - + 47 AS col0 FROM tab0 AS cor0
----
658
823
9556

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 WHERE ( NULL <= col2 )
----

query I rowsort
SELECT - 53 FROM tab0 AS cor0 WHERE 28 + - col2 IS NOT NULL
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT DISTINCT 81 * + col0 * + col1 + 85 + + col0 * + + col0 + + 23 DIV - 37 * - - col0 FROM tab0 AS cor0
----
155641
17351
98725

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT 81 * + col0 * + col1 + 85 + + col0 * + + col0 + + 23 / - 37 * - - col0 FROM tab0 AS cor0
----
155641
17351
98725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 - col0 + 40 + 24 col0 FROM tab1 AS cor0
----
105
65
71

query I rowsort
SELECT ALL - ( - col0 ) * - col2 * 64 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-163763
-278333
-67661

query I rowsort
SELECT + AVG ( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - + 6 AS col1 FROM tab0 cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col0 AS col0 FROM tab1
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6439
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) > + col2
----

skipif mysql # not compatible
query III rowsort label-6439
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) > + col2
----

query II rowsort
SELECT DISTINCT - col2 AS col1, + 20 FROM tab1
----
-59
20
-68
20
-96
20

query III rowsort
SELECT + col1 AS col2, 29, + col1 AS col1 FROM tab1
----
9 values hashing to bc59458fd0065f62f0c8728f0a309050

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT SUM( 9 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-6442
SELECT SUM ( 9 ) FROM tab2
----
27

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN 98 AND - 4
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 84 / col1 * - - ( - 87 ) >= + 99 + - + col1 + - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) <> + col1 * - + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT NULL <> - + 34
----
0

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL <> - + 34
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - col1 * - col0
----

query I rowsort
SELECT ALL + + 30 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 - col2 + - - col1 > NULL
----

query II rowsort
SELECT + + 63, - col0 AS col0 FROM tab2 AS cor0
----
63
-46
63
-64
63
-75

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6451
SELECT DISTINCT CAST( - - 3 AS SIGNED ) DIV + - ( - col2 ) * - 88 * - col0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT CAST ( - - 3 AS INTEGER ) / + - ( - col2 ) * - 88 * - col0 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * - col2 col0 FROM tab1
----
-3186
-3672
-5184

query I rowsort
SELECT DISTINCT + col1 + ( + + col1 ) FROM tab0 AS cor0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT - - col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6454
SELECT - - col2 / + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ( col0 ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 * + col1 - - + 32 + + 47 AS col1 FROM tab2 AS cor0
----
2425
5007
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT + - col2 DIV 42 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6457
SELECT + - col2 / 42 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT DISTINCT + - 18 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + - 18 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
0

query I rowsort
SELECT + 19 * + col2 FROM tab0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT - 60 + COUNT( * ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-6460
SELECT - 60 + COUNT ( * ) AS col1 FROM tab0
----
-57

query I rowsort
SELECT - 26 + + - col2 * - + ( + col2 ) FROM tab0
----
2183
74
9775

query I rowsort
SELECT + col0 + ( - col0 ) + col1 FROM tab0
----
1
21
81

query I rowsort
SELECT - ( 92 ) + 77 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT + 76 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT col2 * - col2 + + col1 + - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1381
-3181
-7858

query I rowsort
SELECT DISTINCT - col1 + - 47 FROM tab2 AS cor0
----
-114
-124
-98

query I rowsort
SELECT ALL 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL - ( + - col2 ) AS col1 FROM tab2 WHERE + 66 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT DISTINCT + + COUNT( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + + COUNT ( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT + CAST( + 61 AS SIGNED ) - - 79 FROM tab0
----
140
140
140

skipif mysql # not compatible
query I rowsort label-6470
SELECT + CAST ( + 61 AS INTEGER ) - - 79 FROM tab0
----
140
140
140

query I rowsort
SELECT DISTINCT - 36 * - - col1 FROM tab2 AS cor0
----
-1836
-2412
-2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT + - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT + - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - + COUNT( ALL - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6473
SELECT - + COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT COUNT( ALL + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6474
SELECT COUNT ( ALL + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT - ( - - CAST( - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6475
SELECT - ( - - CAST ( - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT ALL + ( + + 56 ) AS col2, 44 FROM tab0 AS cor0
----
56
44
56
44
56
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-6477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) / col0 )
----

query II rowsort
SELECT ALL ( - ( 87 ) ) AS col0, 45 FROM tab1
----
-87
45
-87
45
-87
45

query I rowsort
SELECT DISTINCT + 45 * + - col1 FROM tab2
----
-2295
-3015
-3465

query I rowsort
SELECT ( - 40 ) FROM tab2
----
-40
-40
-40

query I rowsort
SELECT col2 * - + 6 AS col1 FROM tab2
----
-138
-240
-348

query I rowsort
SELECT DISTINCT - 84 * + 76 * - col0 FROM tab1
----
325584
542640
580944

query I rowsort
SELECT DISTINCT - 33 * - + col2 FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT + col1 * col1 + + + 16 AS col2 FROM tab1 AS cor0
----
212
2225
41

query II rowsort
SELECT ( - col2 ), 63 AS col1 FROM tab0
----
-10
63
-47
63
-99
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 6 BETWEEN + - col2 AND + 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - - col1 + - + col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL - + ( + 82 ) AS col0 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + + 54 + + col1 + + col0 * col1 FROM tab0 AS cor0
----
1350
152
1902

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL COUNT( * ) - + - AVG ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col0 * - 70 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL COUNT ( * ) - + - AVG ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col0 * - 70 * col0
----
NULL

query I rowsort
SELECT + - col0 + 18 FROM tab2 cor0
----
-28
-46
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT MAX( 41 ) AS col1 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-6493
SELECT MAX ( 41 ) AS col1 FROM tab2
----
41

query II rowsort
SELECT ALL col1 AS col0, - 65 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( - - col1 ) * - col1 * - col1 FROM tab1
----
103823
125
2744

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 >= col2 OR NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col0 FROM tab1
----
33
33
33

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 15 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT DISTINCT + col2 DIV + + ( + + ( 64 ) ) FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + col2 / + + ( + + ( 64 ) ) FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab2 WHERE - 8 * - + 64 / - 77 IS NULL
----

query I rowsort
SELECT ALL + col1 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - + 17 <= NULL AND NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT DISTINCT + 61 + + col0 + - col1 * CAST( - + col1 AS SIGNED ) * 57 AS col1 FROM tab2 AS cor0
----
148364
256009
338078

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT + 61 + + col0 + - col1 * CAST ( - + col1 AS INTEGER ) * 57 AS col1 FROM tab2 AS cor0
----
148364
256009
338078

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT DISTINCT + + COUNT( * ) * + 45 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + + COUNT ( * ) * + 45 FROM tab1 AS cor0
----
135

query I rowsort
SELECT + ( - - 18 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT col0 + - CAST( NULL AS SIGNED ) - - col1 * + + col0 * 61 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT col0 + - CAST ( NULL AS INTEGER ) - - col1 * + + col0 * 61 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 72 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 AS col0, col1 * - 94 col0 FROM tab2 AS cor0
----
23
-4794
40
-7238
58
-6298

query II rowsort
SELECT 54 AS col2, 3 * - 40 * - - col2 FROM tab1 AS cor0
----
54
-11520
54
-7080
54
-8160

query II rowsort
SELECT - col0 AS col2, - 78 AS col2 FROM tab2 cor0
----
-46
-78
-64
-78
-75
-78

query II rowsort
SELECT DISTINCT - col1 AS col2, + 95 FROM tab0 AS cor0
----
-1
95
-21
95
-81
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) * + + col0 col1 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab1 WHERE NOT - 14 < col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - - 39 / col0
----

query I rowsort
SELECT DISTINCT 60 * - col0 AS col2 FROM tab0
----
-5220
-5820
-900

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT + col1 BETWEEN + 24 AND + ( + - 39 ) * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6518
SELECT ALL - + ( MAX( ( + col1 ) ) ), - 56 col2 FROM tab1 cor0
----
-47
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6518
SELECT ALL - + ( MAX ( ( + col1 ) ) ), - 56 col2 FROM tab1 cor0
----
-47
-56

query I rowsort
SELECT ALL 12 * + ( - - 13 ) AS col1 FROM tab1 AS cor0
----
156
156
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT 92 + + + CAST( + - 65 AS SIGNED ) FROM tab2 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-6521
SELECT 92 + + + CAST ( + - 65 AS INTEGER ) FROM tab2 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 35 ) + - - col0 col0 FROM tab1 AS cor0
----
16
50
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT + CAST( NULL AS SIGNED ) * - AVG ( - 61 ) + + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT + CAST ( NULL AS INTEGER ) * - AVG ( - 61 ) + + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT ALL 99 * 39, COUNT( * ) col2 FROM tab0 WHERE NOT - 38 IS NOT NULL
----
3861
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6524
SELECT ALL 99 * 39, COUNT ( * ) col2 FROM tab0 WHERE NOT - 38 IS NOT NULL
----
3861
0

query II rowsort
SELECT DISTINCT col0, + col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 55 AS col2, - col2 * - - col1 + + ( - - 29 ) AS col2 FROM tab1 AS cor0
----
-55
-1315
-55
-266
-55
-3167

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 40 IS NULL
----

query I rowsort
SELECT 62 AS col2 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT - - col0 - - col2 FROM tab0 AS cor0 WHERE NULL < 68
----

query I rowsort
SELECT DISTINCT + - col1 + + col0 * col2 * - 41 * + - 86 AS col2 FROM tab1 AS cor0
----
17263282
17682885
21818841

query II rowsort
SELECT col2 AS col2, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6533
SELECT ALL + col0 + + - CAST( + col1 AS SIGNED ), + col0 AS col2 FROM tab0 AS cor0
----
-66
15
66
87
96
97

skipif mysql # not compatible
query II rowsort label-6533
SELECT ALL + col0 + + - CAST ( + col1 AS INTEGER ), + col0 AS col2 FROM tab0 AS cor0
----
-66
15
66
87
96
97

query I rowsort
SELECT + - 13 AS col2 FROM tab2 cor0
----
-13
-13
-13

query I rowsort
SELECT - + 15 FROM tab1 cor0
----
-15
-15
-15

query I rowsort
SELECT + col2 - + + col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT + - 3 * - col0 + - 29 FROM tab2 AS cor0
----
109
163
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 55 col2 FROM tab2
----
113
78
95

query II rowsort
SELECT DISTINCT col2, - col2 AS col1 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6540
SELECT ALL - 48, CAST( NULL AS SIGNED ) * + 87 * ( - - col0 ) + - col1 * + - col2 col0, - col2 col1 FROM tab0
----
9 values hashing to 953dbe8a005cea0e7f891da3630aa91a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6540
SELECT ALL - 48, CAST ( NULL AS INTEGER ) * + 87 * ( - - col0 ) + - col1 * + - col2 col0, - col2 col1 FROM tab0
----
9 values hashing to 953dbe8a005cea0e7f891da3630aa91a

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - 10 + + COUNT( * ) AS col2 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - 10 + + COUNT ( * ) AS col2 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT DISTINCT - 92 + - MAX( DISTINCT 22 ) AS col1 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT - 92 + - MAX ( DISTINCT 22 ) AS col1 FROM tab2 AS cor0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 + + ( - - col1 ) col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT CAST( NULL AS SIGNED ) * + col1 / + col1 + col2 AS col1 FROM tab2 AS cor0 WHERE - col0 * - col2 > col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT CAST ( NULL AS INTEGER ) * + col1 / + col1 + col2 AS col1 FROM tab2 AS cor0 WHERE - col0 * - col2 > col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 + - col0 col1 FROM tab0 cor0
----
-31
-41
41

query I rowsort
SELECT DISTINCT + + col0 - - + col2 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT ALL CAST( + - col0 AS SIGNED ) * + col2 - + col0 FROM tab0
----
-720
-957
-9700

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL CAST ( + - col0 AS INTEGER ) * + col2 - + col0 FROM tab0
----
-720
-957
-9700

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 24 NOT BETWEEN NULL AND + + col2
----

query I rowsort
SELECT ( - col2 ) * + col0 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT + 54 * MAX( DISTINCT + 44 ) FROM tab1 AS cor0
----
2376

skipif mysql # not compatible
query I rowsort label-6551
SELECT + 54 * MAX ( DISTINCT + 44 ) FROM tab1 AS cor0
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL + - MIN( - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL + - MIN ( - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-6553
SELECT - col0 AS col2, + col1 DIV col0 AS col0 FROM tab2
----
-46
1
-64
1
-75
0

skipif mysql # not compatible
query II rowsort label-6553
SELECT - col0 AS col2, + col1 / col0 AS col0 FROM tab2
----
-46
1
-64
1
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT COUNT( DISTINCT - + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6554
SELECT COUNT ( DISTINCT - + col2 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 49 AS col2, - 97 AS col2 FROM tab0 AS cor0
----
49
-97

query I rowsort
SELECT ALL 18 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT ALL - ( - - MIN( ALL + + col2 ) ) * + - ( - MAX( DISTINCT ( + col0 ) ) ) + + 93 AS col2 FROM tab0 AS cor0
----
-877

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL - ( - - MIN ( ALL + + col2 ) ) * + - ( - MAX ( DISTINCT ( + col0 ) ) ) + + 93 AS col2 FROM tab0 AS cor0
----
-877

query I rowsort
SELECT DISTINCT - - col2 * - - col1 * - col1 - + - 72 * col1 FROM tab2 AS cor0
----
-231616
-255538
-56151

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT - ( ( SUM( - col2 ) ) ) / 91 FROM tab0 AS cor0 WHERE NOT + 45 + + + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - ( ( SUM ( - col2 ) ) ) / 91 FROM tab0 AS cor0 WHERE NOT + 45 + + + col0 = NULL
----
NULL

query II rowsort
SELECT DISTINCT + 77, 82 * + + col1 AS col1 FROM tab2 AS cor0
----
77
4182
77
5494
77
6314

query I rowsort
SELECT + 23 + - col2 FROM tab2
----
-17
-35
0

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab1 WHERE NOT NULL IN ( 93, + col2 * + 76 * 41 * - + col1, - col2 + - col2 )
----

query I rowsort
SELECT + + col1 * - col2 * - 69 + col1 AS col1 FROM tab0 AS cor0
----
14511
262764
6832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 + + + 39 * col2 col2 FROM tab0 AS cor0
----
1916
3944
473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT col2 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT col2 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / + 70 IS NULL
----

query I rowsort
SELECT - 57 - - + col1 FROM tab2
----
-6
10
20

query I rowsort
SELECT ALL - col0 * + + col0 + - 61 * - col0 * - col1 FROM tab2
----
-145222
-304704
-312150

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT - 9 * + SUM( + 76 ) - 88 FROM tab2
----
-2140

skipif mysql # not compatible
query I rowsort label-6569
SELECT - 9 * + SUM ( + 76 ) - 88 FROM tab2
----
-2140

query I rowsort
SELECT ALL ( + 32 ) * - - 6 AS col2 FROM tab2 AS cor0
----
192
192
192

query I rowsort
SELECT - 90 - + - 59 + col0 FROM tab0 AS cor0
----
-16
56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL = - col1 + + col0 + + 85 * - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6572
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL = - col1 + + col0 + + 85 * - col1
----
0

query I rowsort
SELECT DISTINCT + 15 + - 21 FROM tab0 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT ALL + 78 DIV 77 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + 78 / 77 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT - ( SUM( DISTINCT col0 ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6575
SELECT - ( SUM ( DISTINCT col0 ) ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT + 77 * col2 * col0 FROM tab0
----
54285
66990
739431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT col2 * - + col2 + - + col1 DIV + col0 + + 49 AS col1 FROM tab2 AS cor0
----
-1552
-3315
-481

skipif mysql # not compatible
query I rowsort label-6578
SELECT col2 * - + col2 + - + col1 / + col0 + + 49 AS col1 FROM tab2 AS cor0
----
-1552
-3315
-481

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6579
SELECT + col2 * CAST( NULL AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6579
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 13 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 92 * col0 AND NULL
----

query I rowsort
SELECT ALL ( - ( + + 88 ) ) FROM tab0 AS cor0
----
-88
-88
-88

query II rowsort
SELECT col2 AS col0, + ( - - col2 ) FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - col1 + + + 17 <= + col2 - - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - ( + ( + col2 ) ) + - 36 / ( col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT + SUM( - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6585
SELECT DISTINCT + SUM ( - col0 ) col1 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT DISTINCT - col2 + col0 * - col2 * - col0 + - CAST( + - 0 AS SIGNED ) FROM tab2
----
163800
326192
48645

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - col2 + col0 * - col2 * - col0 + - CAST ( + - 0 AS INTEGER ) FROM tab2
----
163800
326192
48645

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - - COUNT( DISTINCT + col1 ) + - 5 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6587
SELECT - - COUNT ( DISTINCT + col1 ) + - 5 FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 3 / + col1 IS NULL
----

query I rowsort
SELECT + - ( - - 81 ) * 52 + - 87 + - col0 AS col2 FROM tab0 AS cor0
----
-4314
-4386
-4396

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 68 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - - col1 + 32 - col2 * + - 8 * - + col2 FROM tab0 AS cor0
----
-17640
-768
-78376

query II rowsort
SELECT - col1, 8 * + col1 AS col1 FROM tab2 AS cor0
----
-51
408
-67
536
-77
616

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - + COUNT( * ) - - - COUNT( * ) AS col1 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6593
SELECT - + COUNT ( * ) - - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-6

query I rowsort
SELECT - 90 - col2 AS col1 FROM tab0 AS cor0
----
-100
-137
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL - - ( + 54 ) + - CAST( - 28 AS SIGNED ) col1 FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6595
SELECT ALL - - ( + 54 ) + - CAST ( - 28 AS INTEGER ) col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - COUNT( * ) + SUM( 87 ) col0 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6596
SELECT - COUNT ( * ) + SUM ( 87 ) col0 FROM tab1 AS cor0
----
258

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - - col0 + - col1 - + - col2 * - col0 AND NULL
----

query I rowsort
SELECT - col1 * col1 * - col1 * - col0 + + + 62 FROM tab1
----
-10563
-139882
-9447831

query II rowsort
SELECT + 33 + + col0 AS col1, 18 FROM tab2
----
108
18
79
18
97
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT 67 DIV - COUNT( * ) + - + COUNT( * ) + - - COUNT( * ) col2 FROM tab2
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6600
SELECT 67 / - COUNT ( * ) + - + COUNT ( * ) + - - COUNT ( * ) col2 FROM tab2
----
-22

query III rowsort
SELECT * FROM tab0 WHERE NULL <= 75 / + col2
----

query I rowsort
SELECT - col1 * ( 83 ) FROM tab2
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6603
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( + 3 + + - col2, col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6603
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( + 3 + + - col2, col2, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( - - col1 ) * + 89 FROM tab0 AS cor0
----
1869
7209
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 40 / - col2 * col1 > ( NULL )
----

query I rowsort
SELECT - + col0 * - col0 * col2 * - col1 FROM tab0 AS cor0
----
-1589490
-856575
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ( + + MIN( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6607
SELECT ( + + MIN ( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - 0 - - col0 AS col1 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6610
SELECT + - CAST( NULL AS SIGNED ) AS col2, ( MAX( - 67 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-6610
SELECT + - CAST ( NULL AS INTEGER ) AS col2, ( MAX ( - 67 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 >= + 32
----
46
51
23

query I rowsort
SELECT col2 * 10 AS col1 FROM tab2 AS cor0
----
230
400
580

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT + col0 * 94 DIV + 3 AS col0 FROM tab0 AS cor0
----
2726
3039
470

skipif mysql # not compatible
query I rowsort label-6613
SELECT + col0 * 94 / + 3 AS col0 FROM tab0 AS cor0
----
2726
3039
470

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL + MAX( DISTINCT - CAST( - - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + MAX ( DISTINCT - CAST ( - - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + col0 = - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 71 * + col1 + - - col1 * + ( + - col0 ) AS col2 FROM tab2
----
-268
1275
539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT DISTINCT - 42 * + col0 AS col1 FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - 42 * + col0 AS col1 FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ( - 79 ) AS col1 FROM tab0
----
-79
-79
-79

query I rowsort
SELECT ALL 87 * + 34 + - 46 AS col2 FROM tab0
----
2912
2912
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL - COUNT( ALL col2 ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - COUNT ( ALL col2 ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT + ( COUNT( * ) ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT + ( COUNT ( * ) ) + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT 10 + SUM( + col1 ) col0 FROM tab0 WHERE + 31 BETWEEN + - ( - col2 ) AND ( + col0 )
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6623
SELECT 10 + SUM ( + col1 ) col0 FROM tab0 WHERE + 31 BETWEEN + - ( - col2 ) AND ( + col0 )
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 * 43 col2 FROM tab2
----
51
989
67
2494
77
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL COUNT( - + 60 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL COUNT ( - + 60 ) FROM tab0
----
3

query I rowsort
SELECT ALL - 4 + + + col0 - col2 FROM tab2
----
13
19
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + - col2, + col1 )
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT + 4 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT + - 68 + 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT + col0 + - col2 * - 29 * - + col2 + - ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT + col0 + - col2 * - 29 * - + col2 + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT MAX( DISTINCT + - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT MAX ( DISTINCT + - col0 ) FROM tab0 cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT ALL - ( col1 ) FROM tab1 AS cor0 WHERE col1 * + + 73 * - col1 IN ( - + 51 - 30, 83 * - + col1 * - - 1, + 61 * 41 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT DISTINCT + ( + col0 ) + - col2 DIV - col2 col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6634
SELECT DISTINCT + ( + col0 ) + - col2 / - col2 col2 FROM tab1 AS cor0
----
52
86
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 71 < + 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 26 AS col2 FROM tab2 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 col1 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT col2 - - 74 * - col1 FROM tab1
----
-311
-3410
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL MAX( ALL + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL MAX ( ALL + + col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT 83 * + 20 AS col0 FROM tab0
----
1660

query I rowsort
SELECT + col0 * + + col0 AS col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL + + 65 * - col1 FROM tab0 cor0
----
-1365
-5265
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6643
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT + col0 + col2 * - col2 AS col0 FROM tab2
----
-1536
-3289
-483

query I rowsort
SELECT DISTINCT col2 * + col0 AS col0 FROM tab2 WHERE NOT NULL > + 44 * - col1
----

query I rowsort
SELECT ALL col0 * + 16 AS col1 FROM tab1 WHERE NOT ( 33 ) IS NULL
----
1360
1456
816

query I rowsort
SELECT DISTINCT ( ( + 20 ) ) + + 27 FROM tab2
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE col1 * + 24 + 10 IN ( + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT + 96 + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6649
SELECT + 96 + COUNT ( * ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT COUNT( ALL 62 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6650
SELECT COUNT ( ALL 62 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 68 * col2 col1 FROM tab0
----
3243
6831
690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT + col1 AS col0 FROM tab0 WHERE NOT - col0 IN ( CAST( NULL AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query I rowsort label-6652
SELECT + col1 AS col0 FROM tab0 WHERE NOT - col0 IN ( CAST ( NULL AS INTEGER ) + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT COUNT( * ) + - AVG ( ALL col1 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT COUNT ( * ) + - AVG ( ALL col1 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT COUNT( DISTINCT - col2 ) FROM tab0 WHERE NOT col2 + 97 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6654
SELECT COUNT ( DISTINCT - col2 ) FROM tab0 WHERE NOT col2 + 97 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT ALL CAST( NULL AS SIGNED ) + - ( - col2 + col0 ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL CAST ( NULL AS INTEGER ) + - ( - col2 + col0 ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 21 * - 72 AS col0 FROM tab0
----
-1512

query I rowsort
SELECT - col1 + 20 AS col1 FROM tab0
----
-1
-61
19

query I rowsort
SELECT 63 + col1 * 57 FROM tab1
----
2742
348
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col0 FROM tab1
----
18

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT 47 = ( - col1 )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 * + col1 - - 27 FROM tab0 WHERE NOT - ( col1 ) * col2 + col2 NOT IN ( col0 / col0 )
----

query I rowsort
SELECT ALL 25 FROM tab2 WHERE NOT ( 94 ) > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT COUNT( * ) + ( + SUM( ALL + ( col1 ) ) - COUNT( * ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6663
SELECT COUNT ( * ) + ( + SUM ( ALL + ( col1 ) ) - COUNT ( * ) ) FROM tab2
----
195

query I rowsort
SELECT 67 + col1 * 93 AS col0 FROM tab2
----
4810
6298
7228

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( col1 ) AND ( 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT col0 - 22 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN - col0 - + col0 AND ( - col2 * - 72 )
----

skipif mysql # not compatible
query I rowsort label-6666
SELECT col0 - 22 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN - col0 - + col0 AND ( - col2 * - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT - MAX( - col2 ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT - MAX ( - col2 ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
7

query I rowsort
SELECT DISTINCT col1 * 83 + - col0 FROM tab0 AS cor0
----
-14
1656
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE col0 * + 29 < - 31 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-6669
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE col0 * + 29 < - 31 - - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT ALL 88 DIV 25 AS col1 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL 88 / 25 AS col1 FROM tab1
----
3
3
3

query III rowsort
SELECT * FROM tab1 WHERE 2 = col0 * - col0
----

query I rowsort
SELECT ALL - col1 * 3 - + col1 FROM tab2
----
-204
-268
-308

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( col0 ) < NULL
----
0

query I rowsort
SELECT 53 FROM tab1 WHERE ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 ON NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2 * + 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT col1 DIV - col2 - 79 FROM tab0 AS cor0
----
-79
-80
-81

skipif mysql # not compatible
query I rowsort label-6679
SELECT col1 / - col2 - 79 FROM tab0 AS cor0
----
-79
-80
-81

query I rowsort
SELECT ALL - ( 66 ) AS col1 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT ALL - MIN( DISTINCT col0 ) * - COUNT( * ) + - COUNT( + col1 ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL - MIN ( DISTINCT col0 ) * - COUNT ( * ) + - COUNT ( + col1 ) FROM tab2 AS cor0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT DISTINCT 54 + - 50 DIV - 16 AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT 54 + - 50 / - 16 AS col1 FROM tab2 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT DISTINCT col2 DIV col1 - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1338
-284
-3195

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT col2 / col1 - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1338
-284
-3195

onlyif mysql # DIV for integer division: 
query I rowsort label-6684
SELECT - + 98 + 8 DIV col1 FROM tab1 AS cor0
----
-97
-98
-98

skipif mysql # not compatible
query I rowsort label-6684
SELECT - + 98 + 8 / col1 FROM tab1 AS cor0
----
-97
-98
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 ) < col2 * - 90 - - 18
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - col1 * + col0 IN ( col0 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT - MAX( 80 ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6687
SELECT - MAX ( 80 ) FROM tab1 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 WHERE NOT ( - col1 ) BETWEEN NULL AND col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT DISTINCT 47 * + COUNT( * ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT 47 * + COUNT ( * ) FROM tab2
----
141

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab1 WHERE ( - col2 + + 15 ) NOT BETWEEN ( - col2 ) AND 92
----

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 AS col0 FROM tab1 WHERE ( col1 ) <> ( + 6 ) OR NULL NOT IN ( + 21 )
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - col1 * + col1 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT COUNT( col0 ) * + 43 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-6693
SELECT COUNT ( col0 ) * + 43 FROM tab1
----
129

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col2 ) * + 98 AS col0 FROM tab0 AS cor0
----
-4606
-9702
-980

query I rowsort
SELECT - col1 * + - 52 AS col1 FROM tab0 AS cor0
----
1092
4212
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT COUNT( * ) * - - COUNT( * ) * 90 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT COUNT ( * ) * - - COUNT ( * ) * 90 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) > + 56 + + col1
----
15
81
47

query I rowsort
SELECT col1 * 4 FROM tab2 AS cor0 WHERE NOT col1 * 94 <= - col2
----
204
268
308

query I rowsort
SELECT + + col2 + - 91 FROM tab0 AS cor0
----
-44
-81
8

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * - + ( col1 ) AND 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + col2 - 57 * - col0 col1 FROM tab0 AS cor0
----
4961
5620
894

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( - - 81 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6704
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( - - 81 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT DISTINCT - 11 * + + MIN( - col1 ) FROM tab0
----
891

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT - 11 * + + MIN ( - col1 ) FROM tab0
----
891

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT col1 + col1 * - col0 * col2 AS col2 FROM tab2
----
-197043
-291383
-53907

query I rowsort
SELECT - 64 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6709
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col1 * + col0 + - col1 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6709
SELECT DISTINCT CAST ( NULL AS REAL ) * - col1 * + col0 + - col1 col1 FROM tab1
----
NULL

query I rowsort
SELECT + + ( + + 46 ) FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + 84 FROM tab0 cor0 WHERE - 10 IS NULL
----

query I rowsort
SELECT ALL col0 + - - 97 + 72 FROM tab0 AS cor0 WHERE NULL IS NULL
----
184
256
266

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + col1 > - 98 * + 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - - 75 col0 FROM tab0 AS cor0
----
122
174
85

query I rowsort
SELECT ( + 42 ) * col2 AS col0 FROM tab1 AS cor0 WHERE + col0 / + col1 NOT IN ( + col0 )
----
2478
2856
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT DISTINCT SUM( ALL col0 ) * CAST( 36 / + 17 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT SUM ( ALL col0 ) * CAST ( 36 / + 17 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - COUNT( DISTINCT + + col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6717
SELECT - COUNT ( DISTINCT + + col2 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col2 ) NOT BETWEEN - col1 AND - + col1 + + - col0 - col2
----

query I rowsort
SELECT ALL - 69 AS col1 FROM tab1 cor0
----
-69
-69
-69

query I rowsort
SELECT ALL 53 AS col0 FROM tab0 cor0
----
53
53
53

query I rowsort
SELECT ALL + col0 * + col1 AS col2 FROM tab2 AS cor0 WHERE + col1 * - col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 27 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6722
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 27 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6723
SELECT DISTINCT + 28, CAST( + 40 AS SIGNED ) AS col0 FROM tab0
----
28
40

skipif mysql # not compatible
query II rowsort label-6723
SELECT DISTINCT + 28, CAST ( + 40 AS INTEGER ) AS col0 FROM tab0
----
28
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT 2 * MAX( ALL - - col2 ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-6724
SELECT 2 * MAX ( ALL - - col2 ) FROM tab0
----
198

query I rowsort
SELECT AVG ( col2 ) FROM tab1 WHERE NOT 57 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6726
SELECT + col1, + 34 DIV col2 * 39 AS col0 FROM tab2
----
51
39
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6726
SELECT + col1, + 34 / col2 * 39 AS col0 FROM tab2
----
51
39
67
0
77
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND 94 * col1 + + 33
----

query I rowsort
SELECT 50 * - 54 AS col0 FROM tab1
----
-2700
-2700
-2700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col2 FROM tab1 AS cor0 WHERE NOT - 11 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT - col0 * + CAST( + 29 AS SIGNED ) FROM tab2 cor0 WHERE NOT ( + col1 ) = ( col2 - - col0 )
----
-1334
-1856
-2175

skipif mysql # not compatible
query I rowsort label-6730
SELECT - col0 * + CAST ( + 29 AS INTEGER ) FROM tab2 cor0 WHERE NOT ( + col1 ) = ( col2 - - col0 )
----
-1334
-1856
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL - 76 + + + 77 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - 76 + + + 77 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL MAX( DISTINCT col1 ) + - + 72 FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL MAX ( DISTINCT col1 ) + - + 72 FROM tab1 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT DISTINCT - MIN( DISTINCT - - ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - MIN ( DISTINCT - - ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL - 7 + + SUM( ALL - col0 ) FROM tab0 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - 7 + + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL - - 73 * + + COUNT( * ) FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - - 73 * + + COUNT ( * ) FROM tab2 AS cor0
----
219

query I rowsort
SELECT DISTINCT 49 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2499
-3283
-3773

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT MAX( ALL + - 31 ) AS col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6738
SELECT MAX ( ALL + - 31 ) AS col2 FROM tab2 AS cor0
----
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 * - - 58 ) = 42 + - col2 - - + ( - 67 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( ( col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6741
SELECT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * 71 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 71 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL - 73 - MIN( + col1 ) FROM tab0 AS cor0 WHERE NOT ( + col0 <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 73 - MIN ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( + col0 <> NULL )
----
NULL

query I rowsort
SELECT col2 + - col2 * - - col0 * - 51 FROM tab1
----
249792
255824
315656

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT + col2 DIV 38 + + - col0 * - - 94 col1 FROM tab1
----
-4792
-7989
-8553

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6744
SELECT + col2 / 38 + + - col0 * - - 94 col1 FROM tab1
----
-4792
-7989
-8553

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT - SUM( ALL - + ( - 59 ) ) * + COUNT( * ) + COUNT( * ) col0 FROM tab1
----
-528

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6745
SELECT - SUM ( ALL - + ( - 59 ) ) * + COUNT ( * ) + COUNT ( * ) col0 FROM tab1
----
-528

query II rowsort
SELECT ALL col0, 79 FROM tab1
----
51
79
85
79
91
79

query I rowsort
SELECT ALL + col2 + + col2 * - 34 * - 34 AS col2 FROM tab2
----
26611
46280
67106

query II rowsort
SELECT DISTINCT - col0 AS col0, 36 * + 50 FROM tab2 AS cor0
----
-46
1800
-64
1800
-75
1800

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT - col0 / - 81 - + 85 * + ( - + CAST( NULL AS SIGNED ) ) + 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT - col0 / - 81 - + 85 * + ( - + CAST ( NULL AS INTEGER ) ) + 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col1 + col0 * - col1 FROM tab2 AS cor0
----
-2420
-5045
-5150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 84 AND NULL
----

query I rowsort
SELECT - ( 38 ) FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT ALL + CAST( NULL AS SIGNED ) - + 88 + - + col1 * - - 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL + CAST ( NULL AS INTEGER ) - + 88 + - + col1 * - - 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 62 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL - 97 * + COUNT( * ) - + 12 AS col1 FROM tab1 AS cor0
----
-303

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - 97 * + COUNT ( * ) - + 12 AS col1 FROM tab1 AS cor0
----
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - 9 * ( + - ( + + COUNT( * ) ) ) FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-6758
SELECT - 9 * ( + - ( + + COUNT ( * ) ) ) FROM tab0 cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT ( - 78 ) DIV - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6759
SELECT ( - 78 ) / - col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 15 * + col1 + + 28 + + col0 * + + 30 FROM tab0 AS cor0
----
1693
2953
2953

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT MAX( DISTINCT - - col0 ) col2 FROM tab0 cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6761
SELECT MAX ( DISTINCT - - col0 ) col2 FROM tab0 cor0
----
97

query I rowsort
SELECT DISTINCT + ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE NOT ( col2 + + col2 * + col2 + + + col1 + + col2 / + col2 * - + col1 * col0 ) IS NULL
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT DISTINCT - col1 DIV - 7 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT - col1 / - 7 FROM tab2
----
11
7
9

query I rowsort
SELECT DISTINCT 1 * + 44 AS col1 FROM tab0
----
44

query I rowsort
SELECT + 20 * col1 AS col0 FROM tab2
----
1020
1340
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT DISTINCT + CAST( - - 54 AS SIGNED ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + CAST ( - - 54 AS INTEGER ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL + 39 * - MIN( + - col2 ) AS col2 FROM tab0 AS cor0
----
3861

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL + 39 * - MIN ( + - col2 ) AS col2 FROM tab0 AS cor0
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT + SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT + SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 5 + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 5 + - col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6771
SELECT ALL - col1 AS col0 FROM tab0 WHERE NULL >= + col0 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - col1 AS col0 FROM tab0 WHERE NULL >= + col0 * - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL 58 + 66 - + + 51 FROM tab0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT + col1 + + + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT + col1 + + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT DISTINCT + col0 + 89 DIV - col1 AS col1 FROM tab1 AS cor0
----
45
68
90

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + col0 + 89 / - col1 AS col1 FROM tab1 AS cor0
----
45
68
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT - + ( + MAX( DISTINCT - col1 ) ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-6775
SELECT - + ( + MAX ( DISTINCT - col1 ) ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6776
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col2 + - col1 * + 65 * col2 / - 19 + CAST( NULL AS SIGNED ) + + - 1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6776
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col2 + - col1 * + 65 * col2 / - 19 + CAST ( NULL AS INTEGER ) + + - 1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( col0 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT ALL CAST( NULL AS SIGNED ) + + - 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL CAST ( NULL AS INTEGER ) + + - 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 97, - 24 AS col0 FROM tab1 AS cor0
----
97
-24
97
-24
97
-24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL + MIN( - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL + MIN ( - + col1 ) FROM tab0
----
-81

query I rowsort
SELECT col0 * - 67 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6783
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 7 AS col0 FROM tab1
----
329
35
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 - + col2 col0 FROM tab0
----
-101
-138
-190

query I rowsort
SELECT DISTINCT col1 + + + col0 + - col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 BETWEEN - 56 AND col2
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL - ( - MAX( DISTINCT - 63 ) ) AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - ( - MAX ( DISTINCT - 63 ) ) AS col2 FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6789
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - 82 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6789
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - 82 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT - CAST( - 40 AS SIGNED ) * + 98 FROM tab1 AS cor0
----
3920
3920
3920

skipif mysql # not compatible
query I rowsort label-6790
SELECT - CAST ( - 40 AS INTEGER ) * + 98 FROM tab1 AS cor0
----
3920
3920
3920

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - 62 * + 93 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 92, col2 col2 FROM tab2 AS cor0
----
92
23
92
40
92
58

query I rowsort
SELECT - col2 * + - col0 * - col1 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-6794
SELECT 94 DIV - - col1 AS col2, col1 AS col2 FROM tab0
----
1
81
4
21
94
1

skipif mysql # not compatible
query II rowsort label-6794
SELECT 94 / - - col1 AS col2, col1 AS col2 FROM tab0
----
1
81
4
21
94
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 > - col2 * - 62 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 / - col1 + 65 NOT BETWEEN NULL AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col1 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6798
SELECT * FROM tab1 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6798
SELECT * FROM tab1 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL + - COUNT( * ) * + - 2 AS col1 FROM tab0 WHERE - col1 IN ( - col1, + ( + col2 ), + - col1 )
----
6

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + - COUNT ( * ) * + - 2 AS col1 FROM tab0 WHERE - col1 IN ( - col1, + ( + col2 ), + - col1 )
----
6

query II rowsort
SELECT DISTINCT - col1 * - + col2 AS col0, + col0 + + + col0 - 46 FROM tab0
----
210
128
3807
-16
99
148

query I rowsort
SELECT 93 * - col2 + - - col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT ALL + MIN( ALL col0 ), + 96 AS col0 FROM tab2 AS cor0
----
46
96

skipif mysql # not compatible
query II rowsort label-6802
SELECT ALL + MIN ( ALL col0 ), + 96 AS col0 FROM tab2 AS cor0
----
46
96

query I rowsort
SELECT + col1 FROM tab1 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT - - 92 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL - col2 + - 15 FROM tab2 AS cor0
----
-38
-55
-73

query I rowsort
SELECT col2 - + + 38 FROM tab0 AS cor0
----
-28
61
9

query I rowsort
SELECT DISTINCT - - 82 + + + col0 FROM tab1 AS cor0
----
133
167
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT SUM( ALL 17 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-6808
SELECT SUM ( ALL 17 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51

query I rowsort
SELECT + - col1 - + 88 FROM tab0 AS cor0
----
-109
-169
-89

query I rowsort
SELECT + + 94 - - + col2 AS col0 FROM tab1 AS cor0
----
153
162
190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6811
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 BETWEEN NULL AND col0 * CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6811
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 BETWEEN NULL AND col0 * CAST ( col0 AS INTEGER )
----

query II rowsort
SELECT ALL 6 AS col0, col0 AS col1 FROM tab2
----
6
46
6
64
6
75

query II rowsort
SELECT ALL col0, + col1 AS col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT - 41 - - 25 * - - 76 AS col0 FROM tab2 WHERE - + col2 * + ( - col2 ) NOT IN ( col2 + + col2 )
----
1859
1859
1859

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT + 8 + + - COUNT( * ) * 30 AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-6816
SELECT + 8 + + - COUNT ( * ) * 30 AS col0 FROM tab0
----
-82

query I rowsort
SELECT ALL 56 + col0 AS col1 FROM tab1
----
107
141
147

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT - col1 DIV + - col0 * col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT - col1 / + - col0 * col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT DISTINCT ( - 38 ) + COUNT( * ) + - 61 + MIN( DISTINCT + col1 ) AS col1, + 46 FROM tab1 AS cor0
----
-91
46

skipif mysql # not compatible
query II rowsort label-6819
SELECT DISTINCT ( - 38 ) + COUNT ( * ) + - 61 + MIN ( DISTINCT + col1 ) AS col1, + 46 FROM tab1 AS cor0
----
-91
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col0 col2, + ( - 93 ) + col0, 50 AS col0 FROM tab2 AS cor0
----
9 values hashing to 65a9d7e419a184638a91926f70838db0

query II rowsort
SELECT - 18 AS col1, + ( + ( col0 ) ) + - - col0 + - ( - + col0 ) FROM tab2 AS cor0
----
-18
138
-18
192
-18
225

query II rowsort
SELECT ALL col0, - 11 + + - col1 FROM tab2 AS cor0
----
46
-62
64
-88
75
-78

query I rowsort
SELECT + + 98 * + 74 * + 74 + 12 AS col0 FROM tab2 AS cor0
----
536660
536660
536660

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL + + COUNT( * ) * 39 * - COUNT( * ) col2 FROM tab2 AS cor0
----
-351

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6824
SELECT ALL + + COUNT ( * ) * 39 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-351

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN col0 AND col1
----
46
51
23
64
77
40

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + 26 IS NULL
----
-23
-40
-58

query I rowsort
SELECT - + 75 * 97 + - col0 AS col1 FROM tab0 AS cor0
----
-7290
-7362
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT + ( + + SUM( ALL + - 5 ) ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT + ( + + SUM ( ALL + - 5 ) ) FROM tab0 cor0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col0 ) * - col1 BETWEEN NULL AND + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + col1 + - col1 - col0 + + col1 AS col2 FROM tab2
----
2555
4414
5865

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6831
SELECT ALL + ( CAST( NULL AS SIGNED ) ) + + 71 AS col1, + 35 DIV - + col0 * + ( + col1 ) * - 77 AS col2 FROM tab1
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-6831
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) + + 71 AS col1, + 35 / - + col0 * + ( + col1 ) * - 77 AS col2 FROM tab1
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT - col1 + - col0 FROM tab0 WHERE NOT + - col2 IN ( + + ( - + col1 ), 35, col2, + - 7 )
----
-108
-96
-98

query II rowsort
SELECT ALL + - col1 * + ( + 66 ) + + - ( + - col1 ) + - col1 AS col1, + col0 AS col2 FROM tab2 cor0
----
-3366
46
-4422
75
-5082
64

query II rowsort
SELECT 9 * + 41 AS col2, 62 FROM tab1 cor0 WHERE NULL IS NULL
----
369
62
369
62
369
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT ALL COUNT( * ) col1, + COUNT( * ) * 48 FROM tab1 AS cor0
----
3
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6835
SELECT ALL COUNT ( * ) col1, + COUNT ( * ) * 48 FROM tab1 AS cor0
----
3
144

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6836
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * col0 + - CAST( col2 AS SIGNED ) + - - col2 DIV col2 FROM tab0 AS cor0
----
659
861
9505

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * col0 + - CAST ( col2 AS INTEGER ) + - - col2 / col2 FROM tab0 AS cor0
----
659
861
9505

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 8 + 92 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6838
SELECT DISTINCT + 82 * COUNT( * ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT + 82 * COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0
----
82

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT DISTINCT - - col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN - + col1 AND col1 AND NOT col0 NOT IN ( + + col1, col1 * + 28 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT - - col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN - + col1 AND col1 AND NOT col0 NOT IN ( + + col1, col1 * + 28 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT col0 + + 11 FROM tab0
----
108
26
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 17 * + + 61 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 20 NOT BETWEEN + 79 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL MAX( - col0 ) + - - 78 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL MAX ( - col0 ) + - - 78 FROM tab0 AS cor0
----
63

query II rowsort
SELECT DISTINCT - 12 + + col1 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
39
46
55
75
65
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT DISTINCT + - col0 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - col2 * - col2 * ( col0 ) + col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + - col0 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - col2 * - col2 * ( col0 ) + col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 * col0 - - col2 AS col2 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL + COUNT( ALL 10 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + COUNT ( ALL 10 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col0 - - 62 FROM tab0
----
149
159
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT + COUNT( * ) - 55 * CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-6851
SELECT + COUNT ( * ) - 55 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
168

query I rowsort
SELECT + 86 - + - col1 * - - col0 + - 33 FROM tab0
----
1268
150
1880

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT NULL >= 60
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

query II rowsort
SELECT DISTINCT - 86, col2 FROM tab0 AS cor0
----
-86
10
-86
47
-86
99

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) * + - col1 + col1 IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - col1 - 81 * + col2 AS col1 FROM tab2 AS cor0
----
-46
-1914
-64
-3317
-75
-4765

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 * + col0 <> + ( + 26 )
----

query II rowsort
SELECT + col0 AS col0, + 57 FROM tab0 AS cor0
----
15
57
87
57
97
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 + + col1 - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + col2 * + + col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL + col0 * - - col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col2 * - 37 AS col1 FROM tab0
----
-1739
-3663
-370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6864
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IN ( + + ( + - 14 ) + - col1, 18 )
----

skipif mysql # not compatible
query III rowsort label-6864
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( + + ( + - 14 ) + - col1, 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6865
SELECT CAST( - + 8 AS SIGNED ) AS col0, - col1 * - + CAST( NULL AS SIGNED ) * + + 88 + - col1 AS col2 FROM tab2
----
-8
NULL
-8
NULL
-8
NULL

skipif mysql # not compatible
query II rowsort label-6865
SELECT CAST ( - + 8 AS INTEGER ) AS col0, - col1 * - + CAST ( NULL AS INTEGER ) * + + 88 + - col1 AS col2 FROM tab2
----
-8
NULL
-8
NULL
-8
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6866
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - CAST ( NULL AS REAL ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6867
SELECT - - 92 * CAST( NULL AS SIGNED ) * - - col2, - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-6867
SELECT - - 92 * CAST ( NULL AS INTEGER ) * - - col2, - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
-51
NULL
-85
NULL
-91

query II rowsort
SELECT DISTINCT + col0 * 18 AS col0, + col1 FROM tab0
----
1566
21
1746
1
270
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 2 * - - col2 + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 2 * - - col2 + col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT COUNT( + + 53 ) + + 95 AS col1 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-6870
SELECT COUNT ( + + 53 ) + + 95 AS col1 FROM tab0
----
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT DISTINCT + + 61 + - - CAST( NULL AS SIGNED ) + - 34 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT + + 61 + - - CAST ( NULL AS INTEGER ) + - 34 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT 90 * + COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT 90 * + COUNT ( * ) FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT - COUNT( * ) + + - 44 AS col0 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - COUNT ( * ) + + - 44 AS col0 FROM tab0
----
-47

query I rowsort
SELECT - col1 - - 39 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT + - COUNT( * ) - + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6876
SELECT + - COUNT ( * ) - + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + ( col1 ) + 21 AS col0 FROM tab2 AS cor0
----
72
88
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT + ( + - CAST( - + COUNT( * ) AS SIGNED ) ) + + - MIN( ALL - 71 ) - - COUNT( * ) AS col1 FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-6878
SELECT + ( + - CAST ( - + COUNT ( * ) AS INTEGER ) ) + + - MIN ( ALL - 71 ) - - COUNT ( * ) AS col1 FROM tab0 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT DISTINCT - 4 - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6879
SELECT DISTINCT - 4 - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL - 95 - - - ( + SUM( ALL - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - 95 - - - ( + SUM ( ALL - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - + COUNT( * ) + + 21 col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6881
SELECT - + COUNT ( * ) + + 21 col1 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL + 55 + 20 + + + col0 AS col2 FROM tab0 AS cor0
----
162
172
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 15 * + col2 + - - ( - + col0 ) + 19 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 15 * + col2 + - - ( - + col0 ) + 19 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 1 + + col1 AS col0 FROM tab0 AS cor0
----
0
20
80

query I rowsort
SELECT ALL - col0 - + col2 * - 15 AS col2 FROM tab2 AS cor0
----
299
536
795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6886
SELECT MIN( + CAST( NULL AS SIGNED ) ) + MIN( + col0 ) AS col0, MIN( + col0 ) AS col0 FROM tab0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6886
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + MIN ( + col0 ) AS col0, MIN ( + col0 ) AS col0 FROM tab0
----
NULL
15

query I rowsort
SELECT col0 FROM tab1 WHERE ( 97 ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - + 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6889
SELECT ALL ( - + col0 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL ( - + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 81 * col2 col0 FROM tab2 cor0
----
1863
3240
4698

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 * + col0 * - 97 IS NULL
----

query I rowsort
SELECT ALL + 77 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query II rowsort
SELECT DISTINCT - col1 AS col2, - col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 28
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 70 * - col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-1131
-6111
-6791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 47 - + - col1 col1 FROM tab0 AS cor0
----
-4068
-4558
-624

query I rowsort
SELECT + col0 + + 60 AS col2 FROM tab2 AS cor0
----
106
124
135

query II rowsort
SELECT - 9, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col0 * col1 AS col1 FROM tab2
----
51
2346
67
5025
77
4928

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( + ( col0 ) ) ) >= + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT 3 AS col1, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6903
SELECT 3 AS col1, - COUNT ( * ) FROM tab0
----
3
-3

query III rowsort
SELECT * FROM tab1 WHERE + col1 < 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + col1 + col1 AS col0 FROM tab1 AS cor0
----
185
79
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 76 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 73 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query II rowsort
SELECT ALL ( 98 ) AS col1, col2 AS col1 FROM tab0
----
98
10
98
47
98
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - col2 + + ( col1 ) col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 57 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 57 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL + + 13 * - MAX( DISTINCT + - ( - col0 ) ) FROM tab0 AS cor0
----
-1261

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + + 13 * - MAX ( DISTINCT + - ( - col0 ) ) FROM tab0 AS cor0
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT ( - COUNT( - col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT ( - COUNT ( - col2 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT + CAST( - - SUM( - col0 ) AS SIGNED ) * - 57 AS col2 FROM tab1
----
12939

skipif mysql # not compatible
query I rowsort label-6916
SELECT + CAST ( - - SUM ( - col0 ) AS INTEGER ) * - 57 AS col2 FROM tab1
----
12939

query I rowsort
SELECT ALL 72 * - col1 FROM tab1
----
-1008
-3384
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-6918
SELECT ALL - COUNT( * ), + 0 AS col0 FROM tab1
----
-3
0

skipif mysql # not compatible
query II rowsort label-6918
SELECT ALL - COUNT ( * ), + 0 AS col0 FROM tab1
----
-3
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND ( - 95 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - col1 + - + col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT DISTINCT MAX( 95 ) AS col2 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT MAX ( 95 ) AS col2 FROM tab1 AS cor0
----
95

query I rowsort
SELECT DISTINCT - ( + 52 ) + col2 AS col1 FROM tab1
----
16
44
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 81 * - + col2 * 35 * + col2 col1 FROM tab0 WHERE NOT - 55 <> + 50 - col0 + + col2
----

query I rowsort
SELECT ALL + 82 + col0 + + 27 + col2 * - + col2 - - + col1 AS col0 FROM tab0 AS cor0
----
-2004
-9594
117

query II rowsort
SELECT + ( + col2 ) AS col0, 23 + col0 FROM tab0 cor0
----
10
110
47
38
99
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL + 59 + + 33 * - COUNT( * ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL + 59 + + 33 * - COUNT ( * ) FROM tab1 AS cor0
----
-40

query II rowsort
SELECT - 78 * - col1, col1 AS col2 FROM tab2 AS cor0
----
3978
51
5226
67
6006
77

query I rowsort
SELECT ALL - ( col0 ) + - col0 + - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-111
-195
-195

query III rowsort
SELECT * FROM tab1 WHERE + + col0 <= + col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL ( - + 50 ) + - - COUNT( * ) + - SUM( DISTINCT + col0 ) FROM tab2
----
-232

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL ( - + 50 ) + - - COUNT ( * ) + - SUM ( DISTINCT + col0 ) FROM tab2
----
-232

query I rowsort
SELECT - col2 + - + 35 AS col2 FROM tab2
----
-58
-75
-93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL 30 + + col1 FROM tab0 AS cor0
----
111
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT - MIN( ALL - col2 ) + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6935
SELECT - MIN ( ALL - col2 ) + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6937
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col2 - - - col0 AS col0 FROM tab2
----
NULL
-17
NULL
-23
NULL
-24

skipif mysql # not compatible
query II rowsort label-6937
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col2 - - - col0 AS col0 FROM tab2
----
NULL
-17
NULL
-23
NULL
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6938
SELECT ALL + col0 / - + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + col0 / - + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT + 76 * COUNT( * ) + - MAX( ALL 54 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-6939
SELECT + 76 * COUNT ( * ) + - MAX ( ALL 54 ) FROM tab1 AS cor0
----
174

query I rowsort
SELECT DISTINCT - - 68 * + col1 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT - col2 DIV - col0 + - - col1 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6941
SELECT - col2 / - col0 + - - col1 FROM tab1 AS cor0
----
15
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL 52 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL 52 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT + + 14 + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6944
SELECT + + COUNT( * ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6944
SELECT + + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT + 39 AS col2, 94 * - col0 FROM tab2 AS cor0
----
39
-4324
39
-6016
39
-7050

query II rowsort
SELECT DISTINCT 37 * + col1 AS col2, col2 FROM tab0
----
2997
47
37
99
777
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT - 3 * - MIN( ALL + 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - 3 * - MIN ( ALL + 1 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6948
SELECT ALL col1 DIV + - 38 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL col1 / + - 38 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT SUM( - 65 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6949
SELECT SUM ( - 65 ) AS col0 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6950
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6950
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT 77 * - - ( - COUNT( * ) ) AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-6951
SELECT 77 * - - ( - COUNT ( * ) ) AS col2 FROM tab2
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6952
SELECT DISTINCT + 45 * - COUNT( + + CAST( + ( + col1 ) AS SIGNED ) ) - + 22 FROM tab0 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT + 45 * - COUNT ( + + CAST ( + ( + col1 ) AS INTEGER ) ) - + 22 FROM tab0 AS cor0
----
-157

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col2 / + - 44 NOT IN ( 3 * 69 * + + col1, + col2, - - ( 48 ) )
----

query I rowsort
SELECT DISTINCT + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - 13 * col0 AS col2 FROM tab0
----
-1131
-1261
-195

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 82 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6957
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) * - 64 * AVG ( ALL - 34 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 64 * AVG ( ALL - 34 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 + + + col0 + - 26 + - - col2 * 63 col0 FROM tab1 AS cor0
----
3861
4434
6158

query I rowsort
SELECT DISTINCT - + col2 + - col2 - - - 82 FROM tab0 AS cor0
----
-102
-176
-280

query I rowsort
SELECT + 81 + + + col1 FROM tab0 AS cor0
----
102
162
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT - + 84 + + - CAST( - 36 AS SIGNED ) + - 24 * + - MAX( + col0 ) FROM tab2 AS cor0
----
1752

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - + 84 + + - CAST ( - 36 AS INTEGER ) + - 24 * + - MAX ( + col0 ) FROM tab2 AS cor0
----
1752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT 70 + + 43 DIV COUNT( DISTINCT - - col2 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6962
SELECT 70 + + 43 / COUNT ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * col1 * - 80 <= 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT DISTINCT + 72 + 78 DIV + COUNT( ALL - 24 ) col1 FROM tab1 cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6964
SELECT DISTINCT + 72 + 78 / + COUNT ( ALL - 24 ) col1 FROM tab1 cor0
----
98

query I rowsort
SELECT ALL + ( - 96 ) FROM tab2
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT DISTINCT - 9 DIV col1 FROM tab0 WHERE + col1 * - 26 NOT BETWEEN - col0 AND + 78
----
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - 9 / col1 FROM tab0 WHERE + col1 * - 26 NOT BETWEEN - col0 AND + 78
----
0

query I rowsort
SELECT ALL 74 * + - col1 AS col2 FROM tab1
----
-1036
-3478
-370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * 1 col2 FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - ( - 71 ) + + MIN( - + col1 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6969
SELECT - ( - 71 ) + + MIN ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + 89 + + col0 AS col2 FROM tab2 AS cor0
----
135
153
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col2 FROM tab2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT DISTINCT + 3 * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6972
SELECT DISTINCT + 3 * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - 71 AS col1 FROM tab0 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT + COUNT( DISTINCT - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6974
SELECT + COUNT ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 35, col2 AS col0 FROM tab1 AS cor0
----
35
59
35
68
35
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6976
SELECT CAST( col0 AS SIGNED ) AS col2, col0 + - col2 * - ( col2 ) FROM tab1
----
51
9267
85
3566
91
4715

skipif mysql # not compatible
query II rowsort label-6976
SELECT CAST ( col0 AS INTEGER ) AS col2, col0 + - col2 * - ( col2 ) FROM tab1
----
51
9267
85
3566
91
4715

query I rowsort
SELECT DISTINCT col2 * + - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT + 12 DIV col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6978
SELECT + 12 / col1 FROM tab1
----
0
0
2

query II rowsort
SELECT ALL col1 AS col2, + ( + - col1 ) FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT col1, - 0 FROM tab0
----
1
0
21
0
81
0

query I rowsort
SELECT ALL + col2 * 34 FROM tab0
----
1598
3366
340

query II rowsort
SELECT 24, - 87 + 26 AS col0 FROM tab1
----
24
-61
24
-61
24
-61

query I rowsort
SELECT ALL + ( - ( col1 ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * 57 * - col1 FROM tab2
----
-175560
-221502
-66861

query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 FROM tab0 cor0
----
100
231
3888

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL = - col0
----
0

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL = - col0
----
0

query I rowsort
SELECT DISTINCT + 65 + - 6 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT MAX( - 42 ) + COUNT( * ) - - 3 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT MAX ( - 42 ) + COUNT ( * ) - - 3 FROM tab2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL - + ( + + col2 ) * + CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - + ( + + col2 ) * + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT ALL + - col0 DIV + col1 + - 60 col1 FROM tab1 cor0
----
-61
-63
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6991
SELECT ALL + - col0 / + col1 + - 60 col1 FROM tab1 cor0
----
-61
-63
-77

query II rowsort
SELECT DISTINCT - 74 * + 62, col1 * + col2 * - 33 AS col2 FROM tab0 AS cor0
----
-4588
-125631
-4588
-3267
-4588
-6930

query I rowsort
SELECT - col2 - + 99 FROM tab0 AS cor0
----
-109
-146
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT SUM( + 8 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT SUM ( + 8 ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + + MAX( - 57 ) + + 8 + COUNT( * ) * + COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6995
SELECT + + MAX ( - 57 ) + + 8 + COUNT ( * ) * + COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6996
SELECT * FROM tab2 WHERE 13 * + CAST( NULL AS SIGNED ) + col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-6996
SELECT * FROM tab2 WHERE 13 * + CAST ( NULL AS INTEGER ) + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT + 17 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT + 17 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + 41 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT + col2 DIV - 63 + - - col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6999
SELECT + col2 / - 63 + - - col0 AS col2 FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT + - col0, + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + ( - 42 ) FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - + 10 - col1 * + 56 * - + col0 AS col0 FROM tab1 AS cor0
----
23790
239502
39974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT CAST( - 15 AS SIGNED ) FROM tab0 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-7003
SELECT CAST ( - 15 AS INTEGER ) FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT col1 - - - ( - + col0 ) FROM tab1 cor0
----
138
65
90

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7006
SELECT * FROM tab0 WHERE NOT - - ( + CAST( - col2 AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7006
SELECT * FROM tab0 WHERE NOT - - ( + CAST ( - col2 AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7007
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT - + ( col1 ) * + - col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 18 BETWEEN col2 * - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 35 * + + col1 >= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 31 * - + 23 + + col0 + col2 + - 29 * + 17 * - col2 * ( - col2 ) - col0 * - col2 * - col2 * + ( + - 93 ), 38 col1 FROM tab1 AS cor0
----
25800603
38
36852726
38
39167434
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * + ( - - col1 ) - + - 10 * + - col2 col0 FROM tab2 AS cor0
----
-1760
-2590
-2710

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + + COUNT( * ) * + 54 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7014
SELECT + + COUNT ( * ) * + 54 FROM tab0 AS cor0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT ALL + + col2 * + - CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7015
SELECT ALL + + col2 * + - CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 5 * + + col2 + - col0 + col0 FROM tab1 AS cor0
----
295
340
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - COUNT( 1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7017
SELECT - COUNT ( 1 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL - col1 + - 76 FROM tab2
----
-127
-143
-153

query I rowsort
SELECT DISTINCT - + 70 + - 73 AS col1 FROM tab2 AS cor0
----
-143

query I rowsort
SELECT DISTINCT - col0 + 59 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-16
-5
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT + COUNT( ALL + - col1 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7021
SELECT + COUNT ( ALL + - col1 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT DISTINCT 91 AS col2, - col1 FROM tab0
----
91
-1
91
-21
91
-81

query I rowsort
SELECT ALL + - col0 + - 62 AS col0 FROM tab0 AS cor0
----
-149
-159
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT - ( + col2 ) DIV 66 * col2 + - + col2 FROM tab0 AS cor0
----
-10
-198
-47

skipif mysql # not compatible
query I rowsort label-7024
SELECT - ( + col2 ) / 66 * col2 + - + col2 FROM tab0 AS cor0
----
-10
-198
-47

query II rowsort
SELECT ALL col0 * col1 + - - col2 * - - col0 AS col2, + 15 FROM tab0 AS cor0
----
1920
15
2697
15
9700
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT + MAX( col2 ) + + ( + COUNT( * ) ) + + 39 col2 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7026
SELECT DISTINCT + MAX ( col2 ) + + ( + COUNT ( * ) ) + + 39 col2 FROM tab1 AS cor0
----
138

query I rowsort
SELECT ALL - ( - col0 ) - + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * + 38 * - + 43 AS col1 FROM tab0 AS cor0
----
161766
16340
76798

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - - col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 / + 65 * 29 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7031
SELECT ALL col0, ( - 82 ) DIV + col0 FROM tab2 AS cor0
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-7031
SELECT ALL col0, ( - 82 ) / + col0 FROM tab2 AS cor0
----
46
-1
64
-1
75
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7032
SELECT - 68 FROM tab0 AS cor0 WHERE col0 + col1 NOT IN ( + col2 * + col0 * + 82 + 61, CAST( NULL AS SIGNED ), + 56 )
----

skipif mysql # not compatible
query I rowsort label-7032
SELECT - 68 FROM tab0 AS cor0 WHERE col0 + col1 NOT IN ( + col2 * + col0 * + 82 + 61, CAST ( NULL AS INTEGER ), + 56 )
----

query I rowsort
SELECT col0 * - ( + 59 ) * + col2 + 64 AS col0 FROM tab2
----
-150976
-256586
-62358

query I rowsort
SELECT ALL col2 - + - col1 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT DISTINCT MAX( ALL col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7035
SELECT DISTINCT MAX ( ALL col0 ) col0 FROM tab1
----
91

query I rowsort
SELECT DISTINCT col1 - - 2 * col0 FROM tab1
----
116
175
229

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT 76 - + SUM( + col1 ) + + + MAX( DISTINCT col1 ) + + MIN( - col2 ) * ( - 62 ) + + 84 * COUNT( * ) col1 FROM tab2
----
3806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7037
SELECT 76 - + SUM ( + col1 ) + + + MAX ( DISTINCT col1 ) + + MIN ( - col2 ) * ( - 62 ) + + 84 * COUNT ( * ) col1 FROM tab2
----
3806

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE ( NULL ) >= + + 50 * + 38 + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT + COUNT( + 28 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT + COUNT ( + 28 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76, + col1 col0 FROM tab0
----
76
1
76
21
76
81

query II rowsort
SELECT col1 AS col1, - 97 AS col2 FROM tab1
----
14
-97
47
-97
5
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT + COUNT( * ) * - 8 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + COUNT ( * ) * - 8 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * + 6 AS col0 FROM tab1
----
-354
-408
-576

query II rowsort
SELECT ALL - 6, + col1 AS col1 FROM tab0 cor0
----
-6
1
-6
21
-6
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT + MIN( - ( + 27 ) ) * + 64 AS col0 FROM tab0 AS cor0
----
-1728

skipif mysql # not compatible
query I rowsort label-7045
SELECT + MIN ( - ( + 27 ) ) * + 64 AS col0 FROM tab0 AS cor0
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + col1, col1 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT - - col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-7048
SELECT - - col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT + SUM( 35 ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + SUM ( 35 ) AS col2 FROM tab1 AS cor0
----
105

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7050
SELECT ALL - col0 * + col2, col0 * 51 DIV + col1 AS col1 FROM tab1 WHERE NOT + + CAST( + + col0 AS SIGNED ) + 43 IS NULL
----
-4896
185
-5015
867
-6188
98

skipif mysql # not compatible
query II rowsort label-7050
SELECT ALL - col0 * + col2, col0 * 51 / + col1 AS col1 FROM tab1 WHERE NOT + + CAST ( + + col0 AS INTEGER ) + 43 IS NULL
----
-4896
185
-5015
867
-6188
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT col1 DIV col2 * + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7051
SELECT col1 / col2 * + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL < - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7053
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - - ( CAST( NULL AS SIGNED ) ) + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7053
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - - ( CAST ( NULL AS INTEGER ) ) + + col1 AND NULL
----

query I rowsort
SELECT ALL - 10 + + 5 FROM tab1 AS cor0
----
-5
-5
-5

query II rowsort
SELECT + ( col0 ) * + col2 AS col1, - col2 + - ( - 53 ) AS col0 FROM tab1
----
4896
-43
5015
-6
6188
-15

query I rowsort
SELECT - col0 - + + col2 - - col1 * - ( + - col2 ) FROM tab0 AS cor0
----
-97
113
3745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT DISTINCT - + CAST( - 55 AS SIGNED ) + 58 col1 FROM tab0 cor0
----
113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7057
SELECT DISTINCT - + CAST ( - 55 AS INTEGER ) + 58 col1 FROM tab0 cor0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT 82 - + - 50 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT 82 - + - 50 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7060
SELECT ALL - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL + - 18 - + - MIN( - - 56 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + - 18 - + - MIN ( - - 56 ) AS col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT DISTINCT - col1 - - 40 FROM tab1 AS cor0
----
-7
26
35

query I rowsort
SELECT 98 + - - col0 AS col1 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT col2 + - - col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-5
3
49

query III rowsort
SELECT * FROM tab0 WHERE 88 IS NULL
----

query I rowsort
SELECT 49 + - 57 FROM tab0 WHERE - + ( - - col0 ) + - col2 >= - col2 * - col1
----

query I rowsort
SELECT DISTINCT col1 * 26 AS col0 FROM tab1
----
1222
130
364

query I rowsort
SELECT 26 * col0 + - + 51 + + 92 AS col2 FROM tab0
----
2303
2563
431

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT ALL col2 DIV - col1 - - col1 col2 FROM tab1
----
-6
46
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7069
SELECT ALL col2 / - col1 - - col1 col2 FROM tab1
----
-6
46
8

query I rowsort
SELECT DISTINCT - col2 * 87 AS col2 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT - MIN( + 79 ) AS col0 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-7071
SELECT - MIN ( + 79 ) AS col0 FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT - + 11 * - + COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT - + 11 * - + COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7073
SELECT - col1 / - col0 * ( - CAST( NULL AS DECIMAL ) ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT - col1 / - col0 * ( - CAST ( NULL AS REAL ) ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 19 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 76 )
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT MAX( ALL - - 97 ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT MAX ( ALL - - 97 ) AS col1 FROM tab1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT - ( - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7078
SELECT - ( - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7079
SELECT + + 41 * - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT + + 41 * - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7080
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - col0 * + col2 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-705
-870
-9603

query II rowsort
SELECT ALL - ( - 64 ), + col0 AS col1 FROM tab1 AS cor0
----
64
51
64
85
64
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 33 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7083
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 33 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT MAX( ALL 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-7084
SELECT MAX ( ALL 41 ) FROM tab0
----
41

query II rowsort
SELECT 99, col2 AS col1 FROM tab2
----
99
23
99
40
99
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7086
SELECT 72, col0 * + - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
query II rowsort label-7086
SELECT 72, col0 * + - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
72
NULL
72
NULL
72
NULL

query II rowsort
SELECT ALL 30 AS col2, col1 AS col2 FROM tab0 AS cor0
----
30
1
30
21
30
81

query I rowsort
SELECT 65 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
65
65
65

query I rowsort
SELECT ALL + col1 + + 79 AS col1 FROM tab2
----
130
146
156

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT + 48 * col1 AS col0 FROM tab1
----
2256
240
672

query I rowsort
SELECT DISTINCT + col2 + 53 * 72 FROM tab0
----
3826
3863
3915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT - CAST( NULL AS SIGNED ) * - col0 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT - CAST ( NULL AS INTEGER ) * - col0 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - ( 35 ) + col0 FROM tab1
----
1736
260
541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7095
SELECT CAST( + col0 AS SIGNED ) + col0 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7095
SELECT CAST ( + col0 AS INTEGER ) + col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT + COUNT( * ) * ( + ( + 46 ) ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT + COUNT ( * ) * ( + ( + 46 ) ) FROM tab0
----
138

query I rowsort
SELECT ALL AVG ( ALL 60 ) AS col0 FROM tab2 WHERE NOT - col0 < 67
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <> ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 25 ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT ALL 17 * - SUM( ( col0 ) DIV col0 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL 17 * - SUM ( ( col0 ) / col0 ) FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * col1 col2 FROM tab1
----
329
35
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT - COUNT( col0 ) + 55 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + 57 * 27 + + col2 )
----
55

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - COUNT ( col0 ) + 55 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + 57 * 27 + + col2 )
----
55

query I rowsort
SELECT - AVG ( - col2 ) / 97 AS col0 FROM tab1 WHERE NULL > ( col2 * + col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - ( + 39 ) + col1 >= 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7105
SELECT DISTINCT - COUNT( * ) DIV - CAST( + SUM( col1 ) AS SIGNED ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - COUNT ( * ) / - CAST ( + SUM ( col1 ) AS INTEGER ) AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT SUM( DISTINCT 55 ) + + 97 AS col1 FROM tab1
----
152

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT SUM ( DISTINCT 55 ) + + 97 AS col1 FROM tab1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL - 26 + COUNT( * ) AS col0 FROM tab1 WHERE - col1 * 87 BETWEEN ( NULL ) AND + col1 - - 82
----
-26

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL - 26 + COUNT ( * ) AS col0 FROM tab1 WHERE - col1 * 87 BETWEEN ( NULL ) AND + col1 - - 82
----
-26

query I rowsort
SELECT DISTINCT + 94 + 56 FROM tab1
----
150

query I rowsort
SELECT col2 * col2 + 67 AS col2 FROM tab1
----
3548
4691
9283

query I rowsort
SELECT ALL 64 AS col1 FROM tab2 WHERE ( + col2 * 84 ) NOT IN ( - col1 )
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT 22 + CAST( NULL AS SIGNED ) * - 97 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT 22 + CAST ( NULL AS INTEGER ) * - 97 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> col2 + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT - ( COUNT( col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - ( COUNT ( col2 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7115
SELECT COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 * - col2 IS NOT NULL
----
0

query I rowsort
SELECT 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL - - 91 + col1 AS col1 FROM tab1 AS cor0
----
105
138
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - ( COUNT( * ) ) * ( COUNT( * ) ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7118
SELECT - ( COUNT ( * ) ) * ( COUNT ( * ) ) FROM tab0 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT DISTINCT col2 DIV col2 + col0 DIV ( col0 ) AS col1 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT col2 / col2 + col0 / ( col0 ) AS col1 FROM tab0 cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * col1 col0 FROM tab2 AS cor0
----
1581
2077
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL - 65 * COUNT( * ) FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - 65 * COUNT ( * ) FROM tab1 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + 40 * + COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-7122
SELECT + 40 * + COUNT ( * ) FROM tab1 AS cor0
----
120

query I rowsort
SELECT ALL col1 * + 9 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col1 )
----
189
729
9

query I rowsort
SELECT - 45 * + col1 FROM tab0 cor0
----
-3645
-45
-945

query I rowsort
SELECT col0 FROM tab0 WHERE ( col1 * + col2 ) < ( - col1 )
----

query I rowsort
SELECT ALL 80 * + - col2 AS col2 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT - col2 + 58 FROM tab1
----
-1
-10
-38

query I rowsort
SELECT ALL 34 + + ( 86 ) FROM tab0
----
120
120
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT DISTINCT ( - col1 ) DIV - col0 AS col1 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT ( - col1 ) / - col0 AS col1 FROM tab0
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7131
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7131
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT ALL col0 * + 15 DIV 1 + - col0 FROM tab0
----
1218
1358
210

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL col0 * + 15 / 1 + - col0 FROM tab0
----
1218
1358
210

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 70 + - col2 - + col0 AS col0 FROM tab2
----
-139
-174
-203

query I rowsort
SELECT ALL - + 99 FROM tab0 cor0
----
-99
-99
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - col2 IN ( + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT ALL ( + 63 ) + + COUNT( * ) * SUM( ALL col2 ) FROM tab1 cor0
----
732

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL ( + 63 ) + + COUNT ( * ) * SUM ( ALL col2 ) FROM tab1 cor0
----
732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7138
SELECT - - CAST( NULL AS SIGNED ) * - COUNT( * ) + 99 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 99 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( col0 ) - col1 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
2555
4414
5865

query I rowsort
SELECT - 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7141
SELECT ALL * FROM tab0 WHERE NOT ( + CAST( 4 AS SIGNED ) * 24 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-7141
SELECT ALL * FROM tab0 WHERE NOT ( + CAST ( 4 AS INTEGER ) * 24 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT DISTINCT - ( + COUNT( * ) ) col2 FROM tab2 WHERE NOT ( NOT 87 + + col0 > CAST( 92 AS SIGNED ) * + col0 - - col2 / ( + col2 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7142
SELECT DISTINCT - ( + COUNT ( * ) ) col2 FROM tab2 WHERE NOT ( NOT 87 + + col0 > CAST ( 92 AS INTEGER ) * + col0 - - col2 / ( + col2 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT 43 - COUNT( * ) DIV - 45 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
43

skipif mysql # not compatible
query I rowsort label-7143
SELECT 43 - COUNT ( * ) / - 45 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * - 34 col0 FROM tab1
----
-166464
-170510
-210392

query I rowsort
SELECT col1 - - 30 FROM tab1
----
35
44
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT SUM( ALL - 6 ) FROM tab1, tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7147
SELECT SUM ( ALL - 6 ) FROM tab1, tab0 AS cor0
----
-54

query I rowsort
SELECT col0 / - ( col1 ) + col2 AS col2 FROM tab1 AS cor0 WHERE ( + 3 + - ( + 27 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 - ( + col2 ) * + col2 col0 FROM tab2 AS cor0
----
-1558
-3322
-487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT DISTINCT + CAST( NULL AS SIGNED ) - ( - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - ( - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT + + COUNT( * ) + - 51 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7151
SELECT + + COUNT ( * ) + - 51 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT - col2 + - - col0 + + + col2 * + 89 FROM tab0 AS cor0
----
4151
8809
967

query II rowsort
SELECT ALL - - col0, + col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT - - 92 * + - col1 AS col2 FROM tab0 AS cor0
----
-1932
-7452
-92

query III rowsort
SELECT * FROM tab1 WHERE NOT + 85 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 48 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + col0 ) BETWEEN ( col2 / 79 ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + 58 AS col2 FROM tab1 WHERE NOT + 28 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT + + SUM( ALL col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7161
SELECT + + SUM ( ALL col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT + col0 / 79 + + col0 * + col1 FROM tab1 WHERE NOT ( NULL ) = ( col1 * - 32 * 11 )
----

query I rowsort
SELECT + - 71 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query II rowsort
SELECT DISTINCT - 23, col1 AS col1 FROM tab2
----
-23
51
-23
67
-23
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - 37 + COUNT( * ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7165
SELECT - 37 + COUNT ( * ) FROM tab2 AS cor0
----
-34

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - col1 * - + 58 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 56 + - 35 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( - col0 * + col1 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 87 + - col1 AS col0 FROM tab2 AS cor0
----
10
20
36

query I rowsort
SELECT ALL 22 + - + col0 AS col1 FROM tab1 AS cor0
----
-29
-63
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - 93 AS col1 FROM tab0 AS cor0
----
1953
7533
93

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - 93 AS col1 FROM tab0 AS cor0
----
1953
7533
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT DISTINCT - col1 DIV - col0 + + col0 + - - 31 + + col1 col0 FROM tab0 cor0
----
129
132
139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT DISTINCT - col1 / - col0 + + col0 + - - 31 + + col1 col0 FROM tab0 cor0
----
129
132
139

query I rowsort
SELECT + 97 + + + 90 FROM tab2 cor0
----
187
187
187

query I rowsort
SELECT ALL + - col0 * + 46 * - ( + col2 ) * - - 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( + col1 ) * - col0 - - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL + 84 * - + MIN( DISTINCT 39 ) + - 82 AS col0 FROM tab0 AS cor0
----
-3358

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + 84 * - + MIN ( DISTINCT 39 ) + - 82 AS col0 FROM tab0 AS cor0
----
-3358

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT 62 * + + col2 AS col2 FROM tab0
----
2914
6138
620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 91 * + 14 + - col0 * + col2 col2 FROM tab1
----
-3526
-3682
-4846

onlyif mysql # DIV for integer division: 
query II rowsort label-7180
SELECT - 43 DIV - 40 AS col0, col2 + - col2 AS col2 FROM tab1
----
1
0
1
0
1
0

skipif mysql # not compatible
query II rowsort label-7180
SELECT - 43 / - 40 AS col0, col2 + - col2 AS col2 FROM tab1
----
1
0
1
0
1
0

query I rowsort
SELECT ALL col0 * 12 + - 6 * col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( + 39 * + + 74 + - - col0 ) AND 8
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 / 97 <> - - col0 + - + 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 / - ( + col0 ) - + 30 * col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + ( + ( + 95 ) ) * + 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT ALL + col1 DIV + col0 - - 64 + 5 * col1 AS col1 FROM tab1 AS cor0
----
134
299
89

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL + col1 / + col0 - - 64 + 5 * col1 AS col1 FROM tab1 AS cor0
----
134
299
89

query I rowsort
SELECT DISTINCT - + 87 - - - col1 + - col2 FROM tab0 AS cor0
----
-118
-187
-215

query II rowsort
SELECT - col2 + + 90, - ( - col0 ) AS col1 FROM tab1 cor0
----
-6
51
22
91
31
85

query I rowsort
SELECT DISTINCT col2 * - col0 - + 46 AS col1 FROM tab0 AS cor0
----
-751
-916
-9649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT ALL col2 - + CAST( 3 AS SIGNED ) FROM tab1
----
56
65
93

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL col2 - + CAST ( 3 AS INTEGER ) FROM tab1
----
56
65
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT - - SUM( ALL - 55 ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - - SUM ( ALL - 55 ) FROM tab2 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT DISTINCT + CAST( 65 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + CAST ( 65 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - 8 <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7193
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AND - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT DISTINCT - MIN( + - 78 ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT - MIN ( + - 78 ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT 8 FROM tab0 AS cor0 WHERE NOT NULL <= ( 45 * + col2 * col0 )
----

query I rowsort
SELECT + - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - COUNT( 3 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7197
SELECT - COUNT ( 3 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT MAX( ( + - col2 ) ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7198
SELECT MAX ( ( + - col2 ) ) col2 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 53 ) col2 FROM tab2
----
-53

query II rowsort
SELECT ALL 61 AS col0, col2 * + - col2 FROM tab2
----
61
-1600
61
-3364
61
-529

query I rowsort
SELECT + 48 * 72 FROM tab2
----
3456
3456
3456

onlyif mysql # aggregate syntax: 
query II rowsort label-7202
SELECT DISTINCT - 70 AS col1, - 4 + + 63 + COUNT( 84 ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-70
65

skipif mysql # not compatible
query II rowsort label-7202
SELECT DISTINCT - 70 AS col1, - 4 + + 63 + COUNT ( 84 ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-70
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * col1 * + - 22 ) IS NOT NULL
----

query II rowsort
SELECT + 50 + + col0 + - + ( + - 3 ) * - ( + + col0 ) AS col1, + col1 * - - col0 + - col0 FROM tab0 AS cor0
----
-124
1740
-144
0
20
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - + COUNT( * ) + - 7 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7205
SELECT - + COUNT ( * ) + - 7 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT 51 + - 31 AS col1 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL AND NOT ( NULL ) NOT IN ( 10 * - 74 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( NOT ( ( - ( + 77 ) BETWEEN - 84 AND ( NULL ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 80 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 80 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL COUNT( * ) * + - COUNT( * ) + 25 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + 25 FROM tab0 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7210
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT ( ( + CAST( NULL AS DECIMAL ) ) + - col0 NOT IN ( col2 * - + col1 * ( + col1 ) ) ) OR NULL NOT BETWEEN + 48 - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( ( + CAST ( NULL AS REAL ) ) + - col0 NOT IN ( col2 * - + col1 * ( + col1 ) ) ) OR NULL NOT BETWEEN + 48 - col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT - - ( + + ( - CAST( NULL AS SIGNED ) ) ) * 82 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-7211
SELECT - - ( + + ( - CAST ( NULL AS INTEGER ) ) ) * 82 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * - col2 + - - 71 + col2 + col1 + col1 * + col2 - + ( - 48 ) FROM tab2 AS cor0
----
1716
766
837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT ALL col2 + - 9 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL col2 + - 9 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT - ( - COUNT( * ) ) * + 56 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-7214
SELECT - ( - COUNT ( * ) ) * + 56 FROM tab2 AS cor0
----
168

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - col2 * + col1 NOT BETWEEN - 89 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + col1 + + col1 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT ALL col1 * - 45 * - - col2 FROM tab2
----
-138600
-174870
-52785

query I rowsort
SELECT DISTINCT col2 * - col1 + col0 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7219
SELECT ALL 80 col1, + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
80
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7219
SELECT ALL 80 col1, + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
80
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7220
SELECT 32, col1 + - col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN + 49 * - CAST( + - 2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-7220
SELECT 32, col1 + - col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN + 49 * - CAST ( + - 2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL - 6 + + 1 AS col1 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 41 - col1 FROM tab2 AS cor0
----
-10
-26
-36

query II rowsort
SELECT + 98 AS col0, 84 AS col2 FROM tab0 AS cor0
----
98
84
98
84
98
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - SUM( - col0 ) col0 FROM tab2 AS cor0 WHERE NULL IN ( 77 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7224
SELECT - SUM ( - col0 ) col0 FROM tab2 AS cor0 WHERE NULL IN ( 77 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT + 21 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7225
SELECT + 21 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT COUNT( - + col2 ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT COUNT ( - + col2 ) - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7227
SELECT 73 * 69 AS col2, ( COUNT( * ) ) FROM tab1
----
5037
3

skipif mysql # not compatible
query II rowsort label-7227
SELECT 73 * 69 AS col2, ( COUNT ( * ) ) FROM tab1
----
5037
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT + + AVG ( + col2 ) / - - 74 * - COUNT( * ) col0 FROM tab2 WHERE NOT NULL = - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7228
SELECT + + AVG ( + col2 ) / - - 74 * - COUNT ( * ) col0 FROM tab2 WHERE NOT NULL = - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + 86 * + COUNT( * ) FROM tab1 cor0
----
258

skipif mysql # not compatible
query I rowsort label-7229
SELECT + 86 * + COUNT ( * ) FROM tab1 cor0
----
258

query II rowsort
SELECT DISTINCT + + 76 AS col2, ( - ( 79 ) ) AS col1 FROM tab1 AS cor0
----
76
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 24 + - 21 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 56 * - col0 AS col2 FROM tab1
----
-274176
-280840
-346528

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7233
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED ) * - col1 * + ( - ( col1 ) ) + - + col0 + + col1
----

skipif mysql # not compatible
query III rowsort label-7233
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER ) * - col1 * + ( - ( col1 ) ) + - + col0 + + col1
----

query II rowsort
SELECT - ( col2 ) AS col1, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT MAX( DISTINCT - 97 ) AS col0 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT MAX ( DISTINCT - 97 ) AS col0 FROM tab2 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT DISTINCT CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT ( - SUM( - 54 ) ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT ( - SUM ( - 54 ) ) FROM tab0 AS cor0
----
162

query I rowsort
SELECT ALL + 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT ALL - ( col1 ) + + 79 * - col1 * - col0 * 59 DIV col0 FROM tab0
----
377460
4660
97860

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - ( col1 ) + + 79 * - col1 * - col0 * 59 / col0 FROM tab0
----
377460
4660
97860

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT + col1 DIV + col2 + - col0 AS col2 FROM tab0
----
-14
-85
-97

skipif mysql # not compatible
query I rowsort label-7240
SELECT + col1 / + col2 + - col0 AS col2 FROM tab0
----
-14
-85
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col2 + + 24 + + - col0 FROM tab2
----
-109
-45
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT COUNT( * ) + + ( COUNT( * ) ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7243
SELECT COUNT ( * ) + + ( COUNT ( * ) ) AS col1 FROM tab1
----
6

query I rowsort
SELECT - 67 * + col0 * - col0 * ( col2 ) + + ( - - col0 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - - 15
----

query I rowsort
SELECT ALL + col2 + 70 * 91 FROM tab2 AS cor0
----
6393
6410
6428

query I rowsort
SELECT ALL + - col1 + - 25 AS col0 FROM tab1 AS cor0
----
-30
-39
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 * 18 * col2 * + col0 + + 82 + + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7248
SELECT - + CAST( NULL AS SIGNED ) + + col1 * + - 66 AS col2, 16 AS col2 FROM tab1 AS cor0
----
NULL
16
NULL
16
NULL
16

skipif mysql # not compatible
query II rowsort label-7248
SELECT - + CAST ( NULL AS INTEGER ) + + col1 * + - 66 AS col2, 16 AS col2 FROM tab1 AS cor0
----
NULL
16
NULL
16
NULL
16

query I rowsort
SELECT DISTINCT + col2 + 1 - - 28 * - col2 FROM tab0 AS cor0 WHERE ( NOT + 11 <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT DISTINCT 59 + + COUNT( * ) + - - CAST( 35 AS SIGNED ) * 20 FROM tab0 cor0
----
762

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT 59 + + COUNT ( * ) + - - CAST ( 35 AS INTEGER ) * 20 FROM tab0 cor0
----
762

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 14 * - - col2 BETWEEN + col1 + + col1 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT - COUNT( * ) * - - 18 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7252
SELECT - COUNT ( * ) * - - 18 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT col1 + + col1 + - col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * - + col1 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT - COUNT( * ) * + MAX( + + col2 ) AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-7255
SELECT - COUNT ( * ) * + MAX ( + + col2 ) AS col0 FROM tab0
----
-297

query I rowsort
SELECT - 23 * + - col0 - col1 FROM tab0
----
1980
2230
264

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT 52 DIV - col2 - 62 AS col0 FROM tab0
----
-62
-63
-67

skipif mysql # not compatible
query I rowsort label-7257
SELECT 52 / - col2 - 62 AS col0 FROM tab0
----
-62
-63
-67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 61 NOT IN ( + col1 + + col0, - 16, col2 + + + col2 )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 cor0 WHERE NULL > ( NULL ) AND - col1 = col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT + COUNT( * ) + + MAX( ALL - col1 ) FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + COUNT ( * ) + + MAX ( ALL - col1 ) FROM tab2 cor0
----
-48

query I rowsort
SELECT 16 + - col0 AS col1 FROM tab0 AS cor0
----
-71
-81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT ALL CAST( NULL AS SIGNED ) + ( + 94 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 94 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL - 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT ALL 68 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL 68 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT DISTINCT col2 DIV - 45 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT col2 / - 45 FROM tab1
----
-1
-2

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + 42 IS NULL
----

query I rowsort
SELECT ALL 91 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 17 IS NULL
----
1274
4277
455

query I rowsort
SELECT ALL + 34 * + + col1 * col0 + col2 * + - 19 AS col0 FROM tab0 cor0
----
1417
40417
61928

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT ALL + 5 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + 5 / - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT DISTINCT ( CAST( - ( - ( + col0 ) ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT ( CAST ( - ( - ( + col0 ) ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7272
SELECT DISTINCT - 52 AS col2, COUNT( * ) AS col0 FROM tab0
----
-52
3

skipif mysql # not compatible
query II rowsort label-7272
SELECT DISTINCT - 52 AS col2, COUNT ( * ) AS col0 FROM tab0
----
-52
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + SUM( + col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7273
SELECT + SUM ( + col1 ) col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT + COUNT( - ( + 87 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7274
SELECT + COUNT ( - ( + 87 ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT ( + + ( + col2 ) ) FROM tab2
----
23
40
58

query II rowsort
SELECT col2 AS col0, - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT ALL col2 DIV - - col2 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL col2 / - - col2 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <= NULL
----

query I rowsort
SELECT ALL - 24 * col2 * + 80 + + - 96 FROM tab2
----
-111456
-44256
-76896

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7281
SELECT - - COUNT( * ) DIV - + COUNT( - col2 ) col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7281
SELECT - - COUNT ( * ) / - + COUNT ( - col2 ) col0 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - ( - col0 ) AS col1, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT 46 + + 31 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - col1 - + 94 * - 3 FROM tab2 AS cor0
----
205
215
231

query I rowsort
SELECT + - 71 + + col1 + 83 FROM tab1 AS cor0
----
17
26
59

query I rowsort
SELECT ALL + - 54 + - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-141
-151
-69

query I rowsort
SELECT 77 * + col1 * + col2 + + + ( - - ( 80 ) ) AS col0 FROM tab2
----
237240
299302
90401

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT BETWEEN - ( - col1 ) / ( + 41 ) AND NULL
----

query I rowsort
SELECT + - 5 FROM tab0 WHERE NULL IS NULL
----
-5
-5
-5

query I rowsort
SELECT DISTINCT col0 + 53 * - + col2 FROM tab1
----
-3042
-3513
-5037

query I rowsort
SELECT ALL col2 * - 95 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7292
SELECT + col0 AS col1, col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7292
SELECT + col0 AS col1, col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT MIN( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT MIN ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( - 76 ) AS col0 FROM tab2 AS cor0
----
76

query I rowsort
SELECT + ( col2 ) * - - col1 * + col0 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 16 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 41 * + + col2 + + 74 AS col2 FROM tab2 AS cor0
----
1017
1714
2452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 69 col0 FROM tab1 AS cor0
----
-3243
-345
-966

query I rowsort
SELECT DISTINCT 51 * + + 32 * col1 AS col0 FROM tab0
----
132192
1632
34272

query I rowsort
SELECT 11 * col1 AS col2 FROM tab1
----
154
517
55

query I rowsort
SELECT + ( - 29 ) AS col1 FROM tab0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + col0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT COUNT( * ), ( + 33 ) + COUNT( * ) AS col1 FROM tab2
----
3
36

skipif mysql # not compatible
query II rowsort label-7303
SELECT COUNT ( * ), ( + 33 ) + COUNT ( * ) AS col1 FROM tab2
----
3
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT DISTINCT ( + 20 ) DIV + col0 + - 1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT ( + 20 ) / + col0 + - 1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 22 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT DISTINCT - - CAST( + + col2 AS SIGNED ) * + - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - - CAST ( + + col2 AS INTEGER ) * + - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + ( - COUNT( * ) ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-18

skipif mysql # not compatible
query I rowsort label-7308
SELECT + ( - COUNT ( * ) ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - 61 * + - COUNT( * ) + + 11 FROM tab0 AS cor0
----
194

skipif mysql # not compatible
query I rowsort label-7309
SELECT - 61 * + - COUNT ( * ) + + 11 FROM tab0 AS cor0
----
194

query II rowsort
SELECT ALL col2 * + + col0 * - - 18 + + col0, - col1 AS col2 FROM tab2 AS cor0
----
19090
-51
46144
-77
78375
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 18 * + + 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - col0 ) FROM tab2 AS cor0 WHERE - ( + col2 ) * - - 27 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 4 + 81 FROM tab1 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT ALL col2 DIV 46 * + ( 80 ) FROM tab2
----
0
0
80

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL col2 / 46 * + ( 80 ) FROM tab2
----
0
0
80

query I rowsort
SELECT - col2 - - col2 * + col0 AS col2 FROM tab0
----
658
860
9504

query I rowsort
SELECT - col2 - - 36 + + ( 67 ) FROM tab0
----
4
56
93

query I rowsort
SELECT - col1 - + 62 AS col1 FROM tab0
----
-143
-63
-83

query I rowsort
SELECT ALL - col0 * - - col0 AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7319
SELECT + COUNT( * ) DIV - MIN( DISTINCT + - 38 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT + COUNT ( * ) / - MIN ( DISTINCT + - 38 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + - ( + + col0 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7321
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + 10 col0 FROM tab1
----
510
850
910

query I rowsort
SELECT + - 38 * - col0 AS col0 FROM tab0 WHERE NOT - ( - 46 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 10 AS col1 FROM tab0 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL - + MAX( + 44 ) AS col1 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - + MAX ( + 44 ) AS col1 FROM tab2 AS cor0
----
-44

query II rowsort
SELECT + + col1, - col1 * - - 66 AS col0 FROM tab0 AS cor0
----
1
-66
21
-1386
81
-5346

query I rowsort
SELECT DISTINCT - + col1 * - 46 FROM tab0 AS cor0
----
3726
46
966

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT DISTINCT SUM( - + col0 ) * ( - + 86 ) * COUNT( * ) * 52 col2, - 11 FROM tab0 AS cor0
----
2669784
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7330
SELECT DISTINCT SUM ( - + col0 ) * ( - + 86 ) * COUNT ( * ) * 52 col2, - 11 FROM tab0 AS cor0
----
2669784
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL - + MAX( ALL + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - + MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab1 WHERE NOT + col2 - + 61 + col2 + - col0 BETWEEN 34 AND NULL
----
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col1 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab1 WHERE col1 - + - 6 NOT BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 27 FROM tab2 WHERE NULL IS NULL
----
27
27
27

query I rowsort
SELECT + col1 * col1 + + 76 FROM tab1
----
101
2285
272

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 WHERE - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT DISTINCT - 7 DIV 82 + - - 90 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1350
-7830
-8730

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT - 7 / 82 + - - 90 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1350
-7830
-8730

query I rowsort
SELECT - 7 - - col1 AS col2 FROM tab0 AS cor0
----
-6
14
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 - + col0 col1 FROM tab1 AS cor0
----
-102
-62
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT + 41 DIV + col1 + - col2 FROM tab0 AS cor0
----
-47
-58
-9

skipif mysql # not compatible
query I rowsort label-7341
SELECT + 41 / + col1 + - col2 FROM tab0 AS cor0
----
-47
-58
-9

query I rowsort
SELECT DISTINCT - + 94 + + col0 FROM tab1 AS cor0
----
-3
-43
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + + col2 * col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT CAST( NULL AS SIGNED ) + - col2 * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7344
SELECT CAST ( NULL AS INTEGER ) + - col2 * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - col2 - - + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT DISTINCT - + col2 + + + 70 FROM tab0 AS cor0
----
-29
23
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT + col2 + + col2 DIV - col1 + + ( + col0 ) FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7347
SELECT + col2 + + col2 / - col1 + + ( + col0 ) FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) - + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 + - col0 * 67 FROM tab2 AS cor0
----
-3059
-4248
-4967

query I rowsort
SELECT DISTINCT 77 + + col0 FROM tab2 AS cor0
----
123
141
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT ALL + CAST( COUNT( col2 ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL + CAST ( COUNT ( col2 ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT MIN( + 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT MIN ( + 63 ) FROM tab0
----
63

query I rowsort
SELECT DISTINCT - - 24 AS col2 FROM tab0 WHERE NULL <= - - ( - 79 )
----

query II rowsort
SELECT ALL + col1 AS col0, - 95 AS col0 FROM tab0
----
1
-95
21
-95
81
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

query II rowsort
SELECT DISTINCT - col1, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 94 * - col2 FROM tab0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT - COUNT( * ) * - ( + 80 ) AS col0 FROM tab0 cor0
----
240

skipif mysql # not compatible
query I rowsort label-7359
SELECT - COUNT ( * ) * - ( + 80 ) AS col0 FROM tab0 cor0
----
240

query I rowsort
SELECT DISTINCT + ( + - 36 ) FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT + COUNT( * ) AS col1, - 89 FROM tab0 cor0
----
3
-89

skipif mysql # not compatible
query II rowsort label-7361
SELECT + COUNT ( * ) AS col1, - 89 FROM tab0 cor0
----
3
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7362
SELECT - + 69 DIV - COUNT( * ) + MAX( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7362
SELECT - + 69 / - COUNT ( * ) + MAX ( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1 AS cor0 WHERE NOT + 1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 + 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT + ( - COUNT( * ) ) * - - ( + MAX( + col2 ) ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-7365
SELECT + ( - COUNT ( * ) ) * - - ( + MAX ( + col2 ) ) FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL + 93 * - ( COUNT( * ) ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + 93 * - ( COUNT ( * ) ) FROM tab0
----
-279

query I rowsort
SELECT - ( col2 ) * col1 * + - 18 + + - col2 AS col0 FROM tab1
----
24096
5251
57460

onlyif mysql # DIV for integer division: 
query I rowsort label-7368
SELECT DISTINCT - 60 * col1 DIV - col2 FROM tab2
----
115
133
69

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT - 60 * col1 / - col2 FROM tab2
----
115
133
69

query I rowsort
SELECT DISTINCT - col1 + + 55 AS col2 FROM tab1
----
41
50
8

query I rowsort
SELECT + 79 * col2 FROM tab1
----
4661
5372
7584

query II rowsort
SELECT + col1 AS col0, + col1 + col1 FROM tab1
----
14
28
47
94
5
10

query I rowsort
SELECT ALL - col2 * + 83 + - + col2 FROM tab1 AS cor0
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT 23 - + MIN( DISTINCT - + col1 ) * ( 63 ) FROM tab2 AS cor0
----
4874

skipif mysql # not compatible
query I rowsort label-7373
SELECT 23 - + MIN ( DISTINCT - + col1 ) * ( 63 ) FROM tab2 AS cor0
----
4874

onlyif mysql # DIV for integer division: 
query II rowsort label-7374
SELECT ALL + col1 DIV + col2 + + - 51 AS col0, col0 + + col1 + + col2 FROM tab1 AS cor0
----
-51
149
-51
161
-51
206

skipif mysql # not compatible
query II rowsort label-7374
SELECT ALL + col1 / + col2 + + - 51 AS col0, col0 + + col1 + + col2 FROM tab1 AS cor0
----
-51
149
-51
161
-51
206

query I rowsort
SELECT 70 * - 71 + - col0 * col2 AS col0 FROM tab1
----
-11158
-9866
-9985

query I rowsort
SELECT DISTINCT col0 + - col1 - + + col1 FROM tab0
----
-147
45
95

query I rowsort
SELECT + col0 * - col1 + - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT ALL + col1 + + col0 * + ( + ( col1 ) ) * ( - + col1 ) + + 74 AS col1 FROM tab2 AS cor0
----
-119521
-336534
-379305

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT + SUM( - col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + SUM ( - col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-681

query I rowsort
SELECT ALL + - 15 AS col1 FROM tab0 AS cor0 WHERE + col1 + + - col0 IS NOT NULL
----
-15
-15
-15

query I rowsort
SELECT - col1 * col0 - + + 62 FROM tab0 AS cor0
----
-1277
-159
-1889

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT - SUM( ALL col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - SUM ( ALL col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7383
SELECT - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT 13 * - 45 / col0 * + + col2 AS col1 FROM tab1 WHERE NOT NULL > + col1
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - 8 * 60 AS col0 FROM tab2
----
-1478400
-1865280
-563040

query I rowsort
SELECT 33 * + - col0 * 88 FROM tab2
----
-133584
-185856
-217800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE - CAST( 56 AS SIGNED ) NOT IN ( - col0 / - col1, + 15, - col1 * - - 10 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE - CAST ( 56 AS INTEGER ) NOT IN ( - col0 / - col1, + 15, - col1 * - - 10 )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 19 * - col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col1, 72 AS col0 FROM tab0 AS cor0
----
-1
72
-21
72
-81
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT MAX( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE - col0 + + 56 + - + col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT MAX ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE - col0 + + 56 + - + col1 BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 - col2 FROM tab0 cor0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + SUM( + + 24 ) AS col1 FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-7393
SELECT + SUM ( + + 24 ) AS col1 FROM tab2 cor0
----
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 67 AND - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL MAX( ALL - + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL MAX ( ALL - + col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT + COUNT( DISTINCT + ( - - col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7396
SELECT + COUNT ( DISTINCT + ( - - col2 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT + col1 * 34 DIV - - col1 FROM tab0 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-7397
SELECT + col1 * 34 / - - col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT - ( - 76 ) AS col2 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - COUNT( * ) + + + 13 * + + SUM( - col1 ) * + 35 col2 FROM tab1
----
-30033

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7399
SELECT - COUNT ( * ) + + + 13 * + + SUM ( - col1 ) * + 35 col2 FROM tab1
----
-30033

query I rowsort
SELECT col1 + 65 + - col1 - col1 * - - col1 AS col1 FROM tab0
----
-376
-6496
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7401
SELECT - CAST( ( + 22 ) AS SIGNED ) + 48 * - SUM( DISTINCT col1 ) FROM tab2
----
-9382

skipif mysql # not compatible
query I rowsort label-7401
SELECT - CAST ( ( + 22 ) AS INTEGER ) + 48 * - SUM ( DISTINCT col1 ) FROM tab2
----
-9382

query I rowsort
SELECT DISTINCT - 81 + - 47 FROM tab0 cor0
----
-128

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 + - - col0 + + col0 * col2 * + col2 col2 FROM tab2
----
102347
24306
252250

query I rowsort
SELECT - 28 * - col2 AS col2 FROM tab2
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT - - COUNT( * ) * - 55 AS col0 FROM tab1 cor0
----
-165

skipif mysql # not compatible
query I rowsort label-7407
SELECT - - COUNT ( * ) * - 55 AS col0 FROM tab1 cor0
----
-165

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 80 - - 4 AND NULL
----

query I rowsort
SELECT 18 * + + col1 FROM tab2 AS cor0
----
1206
1386
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ) + + 75 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ) + + 75 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col1, col2 * - col0 AS col2 FROM tab0 AS cor0
----
-15
-705
-87
-870
-97
-9603

query I rowsort
SELECT DISTINCT + 48 * - 18 FROM tab0 AS cor0
----
-864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7413
SELECT ALL - + 0 DIV + ( + + CAST( SUM( ALL - col1 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - + 0 / + ( + + CAST ( SUM ( ALL - col1 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7414
SELECT ALL + + 33 AS col0, - ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
33
-3

skipif mysql # not compatible
query II rowsort label-7414
SELECT ALL + + 33 AS col0, - ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
33
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, col0 * - col2 col0 FROM tab1 AS cor0
----
-14
-4896
-47
-6188
-5
-5015

query I rowsort
SELECT ALL - + col1 + + - 47 + 96 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 WHERE - - col1 * + col0 + + + ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT DISTINCT MAX( col0 ) * + COUNT( * ) col2 FROM tab1
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7418
SELECT DISTINCT MAX ( col0 ) * + COUNT ( * ) col2 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + 5 * - col2 = - 32 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT ALL + 17 DIV - - 38 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL + 17 / - - 38 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 * - + 76 / col0 * - 27 IS NULL
----

query I rowsort
SELECT DISTINCT 11 + - col2 AS col2 FROM tab0
----
-36
-88
1

query I rowsort
SELECT - col1 + - - col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7425
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - 9 AS SIGNED ) / + - col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-7425
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - 9 AS INTEGER ) / + - col1 <> NULL
----

query I rowsort
SELECT + 97 / + - col1 AS col0 FROM tab2 AS cor0 WHERE - col2 + 3 IS NULL
----

query I rowsort
SELECT + col1 + + ( - col0 ) + + - col0 * - 50 FROM tab2 AS cor0
----
2305
3213
3742

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) = col2 + + col0 - + + col0 / + 80
----

query I rowsort
SELECT DISTINCT - 57 * + 54 AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - + 71 IS NULL
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL ( + 94 ) - COUNT( * ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL ( + 94 ) - COUNT ( * ) AS col0 FROM tab0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7431
SELECT DISTINCT 14 AS col1, - col0 DIV - col0 AS col0 FROM tab1
----
14
1

skipif mysql # not compatible
query II rowsort label-7431
SELECT DISTINCT 14 AS col1, - col0 / - col0 AS col0 FROM tab1
----
14
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7432
SELECT ( CAST( + MAX( + col2 ) AS SIGNED ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7432
SELECT ( CAST ( + MAX ( + col2 ) AS INTEGER ) ) FROM tab0
----
99

query II rowsort
SELECT 4 AS col0, - col0 FROM tab0
----
4
-15
4
-87
4
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7434
SELECT DISTINCT + COUNT( * ) col2, 80 FROM tab2
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7434
SELECT DISTINCT + COUNT ( * ) col2, 80 FROM tab2
----
3
80

query I rowsort
SELECT ALL col0 + + - 8 + + col0 + + - col1 * ( - 27 ) FROM tab1
----
1443
297
472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL - CAST( NULL AS SIGNED ) * + 91 / - 27 * - col0 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-7436
SELECT ALL - CAST ( NULL AS INTEGER ) * + 91 / - 27 * - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT - 71 + - 3 - - + COUNT( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 * - 16 + - col2, col0 * + 49 )
----
-74

skipif mysql # not compatible
query I rowsort label-7437
SELECT - 71 + - 3 - - + COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 * - 16 + - col2, col0 * + 49 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7438
SELECT ALL col2 * col0, CAST( NULL AS SIGNED ) * col2 col2 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7438
SELECT ALL col2 * col0, CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT - col1 * - 16 * - + 19 FROM tab2 AS cor0
----
-15504
-20368
-23408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab0 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL - - MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - - MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col2 * 76 FROM tab2 AS cor0
----
1748
3040
4408

onlyif mysql # DIV for integer division: 
query II rowsort label-7446
SELECT ALL - col2 AS col1, - col1 + - col1 + - 74 DIV col1 + + col1 + + col1 FROM tab1
----
-59
-14
-68
-1
-96
-5

skipif mysql # not compatible
query II rowsort label-7446
SELECT ALL - col2 AS col1, - col1 + - col1 + - 74 / col1 + + col1 + + col1 FROM tab1
----
-59
-14
-68
-1
-96
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL - col2 / - CAST( + col1 AS SIGNED ) * - + 98 + col2 FROM tab0 WHERE + - col2 * 5 = NULL
----

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - col2 / - CAST ( + col1 AS INTEGER ) * - + 98 + col2 FROM tab0 WHERE + - col2 * 5 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 52 * - col2 * 76 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT 41 * - - COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT 41 * - - COUNT ( * ) FROM tab0
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * 22 col1 FROM tab2
----
-1276
-506
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT DISTINCT 44 DIV - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT 44 / - col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

query II rowsort
SELECT ALL - col1, 68 AS col1 FROM tab1 AS cor0
----
-14
68
-47
68
-5
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - - COUNT( ALL + - col0 ) + 68 FROM tab0 cor0
----
71

skipif mysql # not compatible
query I rowsort label-7454
SELECT - - COUNT ( ALL + - col0 ) + 68 FROM tab0 cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT + 56 + - col2 + + - 46 * - CAST( NULL AS SIGNED ) * 78 / + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT + 56 + - col2 + + - 46 * - CAST ( NULL AS INTEGER ) * 78 / + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 8 * + col0 + - col1 - + - col1 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT ALL + 21 * + col1 FROM tab2
----
1071
1407
1617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab2 WHERE NOT - - 86 > + col2
----

query I rowsort
SELECT DISTINCT - 36 + col1 AS col1 FROM tab1 AS cor0
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - + 24 * + - COUNT( * ) - + - 28 * COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - + 24 * + - COUNT ( * ) - + - 28 * COUNT ( * ) FROM tab2 AS cor0
----
156

query II rowsort
SELECT DISTINCT + col0 + + - 26 - + - col2 * col2, col2 AS col0 FROM tab2 AS cor0
----
1638
40
3413
58
549
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 88 NOT BETWEEN col0 + + + 49 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT CAST( NULL AS SIGNED ) * - col0 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT CAST ( NULL AS INTEGER ) * - col0 + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 97 ) + + 66 FROM tab2 AS cor0
----
163
163
163

query II rowsort
SELECT DISTINCT - col2 * - col1, - col2 AS col0 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

query I rowsort
SELECT - 78 FROM tab0 AS cor0 WHERE NULL IN ( 94, + col2 * + col0, col2, - col2 )
----

query I rowsort
SELECT DISTINCT + 32 - + - col0 AS col2 FROM tab0
----
119
129
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT ALL col2 DIV 12 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL col2 / 12 FROM tab2
----
1
3
4

query I rowsort
SELECT col1 FROM tab2 WHERE + + col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
10
47
99

query I rowsort
SELECT ALL ( - 22 ) + - 37 FROM tab0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + + ( MAX( - 60 ) ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7472
SELECT + + ( MAX ( - 60 ) ) FROM tab2 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - - 35 - - col2 FROM tab0 AS cor0
----
134
45
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL 72 + + + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL 72 + + + COUNT ( * ) FROM tab1 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 88
----

query I rowsort
SELECT col2 * 12 AS col1 FROM tab0 AS cor0
----
1188
120
564

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7477
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) AS col1, 48 AS col2 FROM tab0 AS cor0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-7477
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) AS col1, 48 AS col2 FROM tab0 AS cor0
----
NULL
48

query I rowsort
SELECT ALL + - col1 * 93 FROM tab1 AS cor0
----
-1302
-4371
-465

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 46 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col1 + 14 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + + 72 + - col1
----

query II rowsort
SELECT + 41, + col2 FROM tab2 cor0
----
41
23
41
40
41
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL + SUM( - 50 ) FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL + SUM ( - 50 ) FROM tab2 AS cor0
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT - MAX( col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7484
SELECT - MAX ( col2 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT ALL - 99 + + 13 DIV col1 col1 FROM tab1 AS cor0
----
-97
-99
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT ALL - 99 + + 13 / col1 col1 FROM tab1 AS cor0
----
-97
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT MAX( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7487
SELECT MAX ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL + 90 + - MAX( ALL col2 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL + 90 + - MAX ( ALL col2 ) FROM tab2 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT DISTINCT + 0 DIV 86 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT + 0 / 86 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT 65 / col1 * + col2 * CAST( NULL AS SIGNED ) / 98 + 18 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT 65 / col1 * + col2 * CAST ( NULL AS INTEGER ) / 98 + 18 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL + COUNT( * ) + + 66 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
75

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + COUNT ( * ) + + 66 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( - + col0 ) * - - 62 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col0 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT ALL ( + + col1 ) DIV - 27 + - col2 AS col1 FROM tab1 AS cor0
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL ( + + col1 ) / - 27 + - col2 AS col1 FROM tab1 AS cor0
----
-59
-69
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ( COUNT( * ) ) - 10 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-7495
SELECT ( COUNT ( * ) ) - 10 FROM tab2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT col0 * 64 * - + 38 * - CAST( NULL AS SIGNED ) / - col2 / - col2 - + - 18 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT col0 * 64 * - + 38 * - CAST ( NULL AS INTEGER ) / - col2 / - col2 - + - 18 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 62 - - 25 FROM tab0
----
1327
5047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT + MIN( 97 ) FROM tab2 WHERE NOT col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + MIN ( 97 ) FROM tab2 WHERE NOT col1 <> NULL
----
NULL

query I rowsort
SELECT - col1 * + col2 * col2 - + + col2 FROM tab1
----
-129120
-17464
-217396

query I rowsort
SELECT - + col0 + + ( + 6 ) AS col1 FROM tab1 AS cor0
----
-45
-79
-85

query I rowsort
SELECT ALL + ( - 93 ) FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7502
SELECT DISTINCT - 92 DIV + + SUM( DISTINCT 63 ), 68 AS col1 FROM tab0
----
-1
68

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT - 92 / + + SUM ( DISTINCT 63 ), 68 AS col1 FROM tab0
----
-1
68

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT + 1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + + 66 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL - MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT 15 * COUNT( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7506
SELECT 15 * COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT + - col2 DIV + + col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7507
SELECT + - col2 / + + col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT col0 * - 26 FROM tab0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7509
SELECT + COUNT( * ) DIV - - 5 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7509
SELECT + COUNT ( * ) / - - 5 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT ALL + ( - CAST( + 2 AS SIGNED ) ) AS col1 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + ( - CAST ( + 2 AS INTEGER ) ) AS col1 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT DISTINCT - col1 AS col0, 66 + + 73 AS col1 FROM tab1 WHERE NULL = col0
----

query I rowsort
SELECT - 78 + - col2 + + 39 FROM tab0
----
-138
-49
-86

query I rowsort
SELECT ALL + - col0 * + 13 - + 93 FROM tab0 WHERE - + col0 <> col2
----
-1224
-1354
-288

query I rowsort
SELECT ALL col1 * - ( + - 8 ) FROM tab1 AS cor0
----
112
376
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT + MAX( DISTINCT + + col0 ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + MAX ( DISTINCT + + col0 ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + col1 + + col0 AS col2 FROM tab1 cor0
----
149
161
206

query I rowsort
SELECT ALL col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT 73 * + - 36 FROM tab2 AS cor0
----
-2628
-2628
-2628

query I rowsort
SELECT ALL 67 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT COUNT( + col1 ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT COUNT ( + col1 ) + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT - MAX( - col1 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT - MAX ( - col1 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT + col0 - - col1 DIV + - col1 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-7522
SELECT + col0 - - col1 / + - col1 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) + - col0 * + col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

query II rowsort
SELECT - 57 + + col0 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-6
96
28
59
34
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7525
SELECT ALL 42 - SUM( + col0 ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL 42 - SUM ( + col0 ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT ALL - 68 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + col2 AND - col0 + - + col1 / + + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - 68 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 AND - col0 + - + col1 / + + CAST ( NULL AS INTEGER ) * - col1
----

query II rowsort
SELECT ALL col1, 94 AS col1 FROM tab1
----
14
94
47
94
5
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL - MIN( - col1 ) * + 85 * - MIN( ALL + - 84 ) FROM tab2
----
549780

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - MIN ( - col1 ) * + 85 * - MIN ( ALL + - 84 ) FROM tab2
----
549780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT - - 75 DIV - + COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT - - 75 / - + COUNT ( * ) FROM tab1 AS cor0
----
-25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - - ( col0 ) AND - 92 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + - col0 + - CAST( + 51 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + - col0 + - CAST ( + 51 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + MAX( + + 69 ) col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7532
SELECT + MAX ( + + 69 ) col0 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL - col0 + + 25 AS col1 FROM tab0
----
-62
-72
10

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + col2 * col0 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + + col2 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 35 + + col0 FROM tab1
----
120
126
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL + MIN( - col2 ) FROM tab1 WHERE NOT + col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + MIN ( - col2 ) FROM tab1 WHERE NOT + col2 = NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + 67 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col1 FROM tab1
----
86

query III rowsort
SELECT * FROM tab0 WHERE 61 IN ( + 8 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT BETWEEN - 46 / 22 AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT + MIN( ALL + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7544
SELECT + MIN ( ALL + col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT ( CAST( + 94 AS SIGNED ) ) + + col2 AS col1 FROM tab0
----
104
141
193

skipif mysql # not compatible
query I rowsort label-7545
SELECT ( CAST ( + 94 AS INTEGER ) ) + + col2 AS col1 FROM tab0
----
104
141
193

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 31 - col0 NOT IN ( + col1 / + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 99 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 / - ( + col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > ( + col0 / col2 - + ( col1 - col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7550
SELECT * FROM tab0 WHERE NOT CAST( - 68 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7550
SELECT * FROM tab0 WHERE NOT CAST ( - 68 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT - 84 * - col0 AS col1 FROM tab0
----
1260
7308
8148

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 BETWEEN ( + col1 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - COUNT( * ) + 95 * - 93 col2 FROM tab1
----
-8838

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7553
SELECT - COUNT ( * ) + 95 * - 93 col2 FROM tab1
----
-8838

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT - MAX( ALL - 50 ) AS col1 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-7554
SELECT - MAX ( ALL - 50 ) AS col1 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT - 86 + COUNT( col2 ) * + COUNT( * ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT - 86 + COUNT ( col2 ) * + COUNT ( * ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT COUNT( 61 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT COUNT ( 61 ) FROM tab1
----
3

query I rowsort
SELECT ALL + ( 13 ) + col2 FROM tab1
----
109
72
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col0 ) - - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE + col2 + col1 / + 68 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE + col2 + col1 / + 68 >= NULL
----

query I rowsort
SELECT ALL 73 + + col1 AS col2 FROM tab0 AS cor0
----
154
74
94

query I rowsort
SELECT ALL ( + col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 89 ) AND col1 * col0
----

query I rowsort
SELECT DISTINCT 46 + col1 FROM tab1 cor0
----
51
60
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
16

query I rowsort
SELECT + col1 * + col2 + - col0 FROM tab0
----
123
2
3792

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 98 ) IN ( ( - 19 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * col0 >= NULL
----

query I rowsort
SELECT DISTINCT - 82 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 - + col1 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + ( - col2 ) * 70 AS col1 FROM tab1 AS cor0
----
-4215
-4851
-6771

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 IN ( - 3 + 54 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 - col2 col2 FROM tab0 cor0
----
-9
43
80

query I rowsort
SELECT ALL - 41 + + col1 FROM tab0 AS cor0
----
-20
-40
40

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 35 )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE ( 55 * + col0 ) <> col0
----
51
85
91

query I rowsort
SELECT ALL - + col0 + - 44 FROM tab2 AS cor0
----
-108
-119
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col0 * - col1 * 84 FROM tab1
----
-35700
-359268
-59976

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col2 > ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT COUNT( * ) * SUM( ALL 11 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7581
SELECT COUNT ( * ) * SUM ( ALL 11 ) FROM tab2
----
99

query I rowsort
SELECT DISTINCT - col2 * - col2 * - 93 FROM tab1
----
-323733
-430032
-857088

query I rowsort
SELECT DISTINCT - 63 + + 67 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - col2 >= ( - col0 )
----
51
14
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) * 83 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT DISTINCT + + 99 DIV 13 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + + 99 / 13 FROM tab2 AS cor0
----
7

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
15
87
97

query I rowsort
SELECT + 10 / col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= 63 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - - MAX( DISTINCT + + 56 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7591
SELECT - - MAX ( DISTINCT + + 56 ) FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT MAX( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7593
SELECT - CAST( - 8 AS SIGNED ) DIV 67 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7593
SELECT - CAST ( - 8 AS INTEGER ) / 67 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * 98 BETWEEN ( + 40 + + col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7595
SELECT ALL * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7595
SELECT ALL * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + - col1 * + 99 - - + col0 AS col1 FROM tab1 AS cor0
----
-1335
-410
-4562

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----

query I rowsort
SELECT - + 16 AS col2 FROM tab2 AS cor0 WHERE NOT 68 IS NULL
----
-16
-16
-16

query II rowsort
SELECT ALL + col2, + col2 - - col0 - - col0 * + col1 AS col0 FROM tab1 AS cor0
----
59
569
68
4436
96
861

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT - 28 + + - MIN( + ( - col1 ) ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - 28 + + - MIN ( + ( - col1 ) ) FROM tab2 AS cor0
----
49

query II rowsort
SELECT - + col2, 74 + - col2 AS col0 FROM tab1 AS cor0
----
-59
15
-68
6
-96
-22

query I rowsort
SELECT + - ( ( + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7603
SELECT + 10 DIV COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7603
SELECT + 10 / COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + + COUNT( * ) * + 64 AS col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7604
SELECT + + COUNT ( * ) * + 64 AS col1 FROM tab2 AS cor0
----
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> ( - col0 )
----

query I rowsort
SELECT col0 + col0 * + ( col0 ) AS col0 FROM tab2
----
2162
4160
5700

query I rowsort
SELECT col2 + + + 25 + 61 AS col0 FROM tab1
----
145
154
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7608
SELECT col0 DIV CAST( - col2 AS SIGNED ) + + col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-7608
SELECT col0 / CAST ( - col2 AS INTEGER ) + + col2 FROM tab2
----
21
39
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * + col0 * col0 BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL COUNT( * ) + + + MIN( - + 66 ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL COUNT ( * ) + + + MIN ( - + 66 ) AS col2 FROM tab0
----
-63

query I rowsort
SELECT DISTINCT - col0 + col0 + - + col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL col0 + + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + + col0 ) AND 52 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT - CAST( NULL AS SIGNED ) + MIN( ALL - + 74 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + MIN ( ALL - + 74 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT - CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7615
SELECT - CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT ALL + 42 / col2 - - CAST( NULL AS SIGNED ) / + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + 42 / col2 - - CAST ( NULL AS INTEGER ) / + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT + - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT + - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7618
SELECT DISTINCT - col1 / - 80 - - 41 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - col1 / - 80 - - 41 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IS NULL AND 29 >= - - 4
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( - col1 + + + 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT - + COUNT( * ) + + - 13 AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7621
SELECT - + COUNT ( * ) + + - 13 AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT DISTINCT - 23 * + 60 FROM tab2 AS cor0
----
-1380

query I rowsort
SELECT DISTINCT + ( - - col0 ) + - col1 + + col1 AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL ( col2 ) AS col1 FROM tab1 AS cor0 WHERE ( col1 * col2 ) NOT IN ( col2 * - col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT - + MAX( - 98 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT - + MAX ( - 98 ) FROM tab0 AS cor0
----
98

query II rowsort
SELECT DISTINCT + + 27 AS col0, col1 FROM tab1 AS cor0
----
27
14
27
47
27
5

query I rowsort
SELECT col0 * - - col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT 87 AS col0, MAX( - col1 ) + - - ( + + SUM( 89 ) ) FROM tab1 AS cor0
----
87
262

skipif mysql # not compatible
query II rowsort label-7629
SELECT 87 AS col0, MAX ( - col1 ) + - - ( + + SUM ( 89 ) ) FROM tab1 AS cor0
----
87
262

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + - COUNT( ALL - 16 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + - COUNT ( ALL - 16 ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col1, - 88 FROM tab1
----
14
-88
47
-88
5
-88

query II rowsort
SELECT ALL col2 AS col1, col0 + + col2 FROM tab1
----
59
144
68
159
96
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 46, col0 col0 FROM tab1
----
-46
51
-46
85
-46
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT ( COUNT( * ) ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT ( COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( - col0 + + col1 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 * 70 FROM tab2
----
-1610
-2800
-4060

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT 85 * col1 FROM tab0
----
1785
6885
85

query I rowsort
SELECT ALL col2 * + 85 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
295885
393040
783360

query I rowsort
SELECT + 3 * + 21 FROM tab0 AS cor0 WHERE NOT + col1 * + + col0 IS NULL
----
63
63
63

query I rowsort
SELECT + - ( - 57 ) AS col0 FROM tab1 cor0
----
57
57
57

query II rowsort
SELECT col1, 29 FROM tab1 AS cor0
----
14
29
47
29
5
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( col0 + + - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT DISTINCT - 0 * + SUM( - ( - ( + - 72 ) ) ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT - 0 * + SUM ( - ( - ( + - 72 ) ) ) AS col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL 29 * - MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
1682

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL 29 * - MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
1682

onlyif mysql # DIV for integer division: 
query II rowsort label-7646
SELECT DISTINCT - col2 * - col1 AS col2, + 15 DIV + - col0 - + ( - + 28 ) + 4 DIV col0 AS col1 FROM tab1
----
1344
28
295
28
3196
28

skipif mysql # not compatible
query II rowsort label-7646
SELECT DISTINCT - col2 * - col1 AS col2, + 15 / + - col0 - + ( - + 28 ) + 4 / col0 AS col1 FROM tab1
----
1344
28
295
28
3196
28

query I rowsort
SELECT col1 * - - 57 + + col0 AS col2 FROM tab1
----
2770
370
849

onlyif mysql # aggregate syntax: 
query II rowsort label-7648
SELECT COUNT( * ) + - COUNT( * ), + COUNT( * ) AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-7648
SELECT COUNT ( * ) + - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2
----
0
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 - + + 30 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col1 + - 48 + + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col1 + - 48 + + col2 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT - 99 * - - COUNT( * ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT - 99 * - - COUNT ( * ) FROM tab0 AS cor0
----
-297

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 78 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 22 + + col0 AS col2 FROM tab1 AS cor0
----
29
63
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL - ( - 52 ) * - MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL - ( - 52 ) * - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT + CAST( NULL AS SIGNED ) + col1 + - + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT + CAST ( NULL AS INTEGER ) + col1 + - + col0 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT + SUM( + 75 ) FROM tab1 AS cor0 WHERE NULL = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT + SUM ( + 75 ) FROM tab1 AS cor0 WHERE NULL = + col0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * col0 + - col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE NOT ( 53 IS NOT NULL )
----

query I rowsort
SELECT ALL - col0 * + - col2 - - - col2 FROM tab1 cor0
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query II rowsort label-7660
SELECT ALL - col2 DIV col2 * - + col2, + 70 * - col0 - 56 AS col1 FROM tab0
----
10
-6146
47
-1106
99
-6846

skipif mysql # not compatible
query II rowsort label-7660
SELECT ALL - col2 / col2 * - + col2, + 70 * - col0 - 56 AS col1 FROM tab0
----
10
-6146
47
-1106
99
-6846

query I rowsort
SELECT + 6 AS col1 FROM tab2 WHERE 51 BETWEEN + 27 * - + 69 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 28 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * - col2 col0 FROM tab1
----
-2832
-3264
-4608

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT - 4, - MAX( ALL + 56 ) AS col1 FROM tab1
----
-4
-56

skipif mysql # not compatible
query II rowsort label-7665
SELECT - 4, - MAX ( ALL + 56 ) AS col1 FROM tab1
----
-4
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-7666
SELECT + col2 col0, - col0 DIV + - col0 AS col2 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7666
SELECT + col2 col0, - col0 / + - col0 AS col2 FROM tab0
----
10
1
47
1
99
1

query III rowsort
SELECT * FROM tab0 WHERE + + 9 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT + 33 * col2 DIV col2 AS col2 FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 33 * col2 / col2 AS col2 FROM tab1
----
33
33
33

query I rowsort
SELECT DISTINCT - col0 * - - col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + AVG ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL AND NULL BETWEEN col1 / + 28 * 17 AND col0 / 45 * - + 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT DISTINCT - 96 - - CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
-15
-75
-95

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT - 96 - - CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
-15
-75
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + 90 FROM tab0 cor0
----
10
90
47
90
99
90

query I rowsort
SELECT + 50 + col2 AS col2 FROM tab2 cor0
----
108
73
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT + + MIN( ALL + 0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT + + MIN ( ALL + 0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT + 87 - COUNT( * ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + 87 - COUNT ( * ) FROM tab2 AS cor0
----
84

query I rowsort
SELECT 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7677
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + ( - + col0 ) - + CAST( - + col0 AS SIGNED ) * - col0 + - - col0
----

skipif mysql # not compatible
query III rowsort label-7677
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + ( - + col0 ) - + CAST ( - + col0 AS INTEGER ) * - col0 + - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 NOT IN ( - + col0 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT + + COUNT( DISTINCT + 67 ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + + COUNT ( DISTINCT + 67 ) AS col1 FROM tab2 cor0
----
1

query I rowsort
SELECT col0 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 59 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 NOT IN ( - + 59 - + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7684
SELECT col2, + col1 * CAST( NULL AS DECIMAL ) * + col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7684
SELECT col2, + col1 * CAST ( NULL AS REAL ) * + col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT DISTINCT COUNT( ALL + + col0 ) * + 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT COUNT ( ALL + + col0 ) * + 13 FROM tab1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col1 FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT - - 10 * + MIN( ALL + - col2 ) FROM tab0 AS cor0
----
-990

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - - 10 * + MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
-990

query I rowsort
SELECT DISTINCT + AVG ( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - ( col1 ) ) AND - 11 - 1 - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37 AS col0, 58 + ( + col1 ) + - - col2 col1 FROM tab1 AS cor0
----
-37
122
-37
168
-37
173

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT MAX( DISTINCT + 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-7692
SELECT MAX ( DISTINCT + 26 ) FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL COUNT( col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7693
SELECT ALL COUNT ( col1 ) col2 FROM tab0
----
3

query I rowsort
SELECT + - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT 9 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 87 * - - col2 + 4 AS col2 FROM tab1 AS cor0 WHERE 4 >= NULL
----

query I rowsort
SELECT ALL - + 8 + - col0 AS col1 FROM tab0 AS cor0
----
-105
-23
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - 66 col1 FROM tab1 AS cor0
----
59
-66
68
-66
96
-66

query I rowsort
SELECT DISTINCT + ( col1 ) + + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( + ( + + col0 ) ) + 46 ) IS NULL
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT MAX( DISTINCT 73 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7700
SELECT MAX ( DISTINCT 73 ) FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT + 68 + COUNT( * ) - + 7 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND + + 14
----
61

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + 68 + COUNT ( * ) - + 7 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND + + 14
----
61

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab0 AS cor0 WHERE + 45 NOT IN ( - col0 + - col1, col2 )
----
15
87
97

query I rowsort
SELECT + col0 + 64 FROM tab1 AS cor0
----
115
149
155

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query II rowsort
SELECT - 79 * + ( col2 ) + - col0 * + 57 + + + 60 AS col0, col1 FROM tab2 AS cor0
----
-4379
51
-6748
77
-8797
67

query II rowsort
SELECT DISTINCT col0, 65 AS col2 FROM tab1 AS cor0
----
51
65
85
65
91
65

query I rowsort
SELECT + col0 + col1 + + + 58 + + 70 * - col1 * + col1 FROM tab1
----
-13597
-154434
-1602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT ( + - col0 ) + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT ( + - col0 ) + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 53 - + col2 col1 FROM tab0
----
-53

query I rowsort
SELECT DISTINCT - col0 + - 99 + col1 AS col2 FROM tab2
----
-107
-86
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - COUNT( * ) FROM tab1 WHERE - - 54 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT - COUNT ( * ) FROM tab1 WHERE - - 54 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + col2 ) IS NULL
----

query II rowsort
SELECT + 18, - 41 AS col2 FROM tab1 WHERE NOT - - 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT + - MAX( col1 ) DIV ( 49 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7714
SELECT + - MAX ( col1 ) / ( 49 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + + col0 * col1 * + + col0 AS col1 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT - COUNT( * ) DIV - 8 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT - COUNT ( * ) / - 8 FROM tab2 cor0
----
0

query I rowsort
SELECT - - ( + col0 ) * + 85 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT + 47 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
47
3

skipif mysql # not compatible
query II rowsort label-7718
SELECT + 47 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col0 AND 38 )
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col0 AND 38 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7720
SELECT 12 DIV + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7720
SELECT 12 / + COUNT ( * ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT col1 * - 11 AS col0 FROM tab1 AS cor0
----
-154
-517
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7722
SELECT COUNT( * ) AS col0, - 84 FROM tab0 AS cor0
----
3
-84

skipif mysql # not compatible
query II rowsort label-7722
SELECT COUNT ( * ) AS col0, - 84 FROM tab0 AS cor0
----
3
-84

query I rowsort
SELECT 78 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 43 AS col0 FROM tab1
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT + SUM( DISTINCT col2 ) * 97 AS col2 FROM tab1
----
21631

skipif mysql # not compatible
query I rowsort label-7725
SELECT + SUM ( DISTINCT col2 ) * 97 AS col2 FROM tab1
----
21631

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT - MIN( DISTINCT + 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - MIN ( DISTINCT + 23 ) FROM tab1
----
-23

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT ALL ( col0 ) DIV - col1 - + col2 + col1 AS col2 FROM tab0 AS cor0
----
-195
34
7

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL ( col0 ) / - col1 - + col2 + col1 AS col2 FROM tab0 AS cor0
----
-195
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 99 col0 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT + 11 * + 16 * + 85 + + col2 AS col1 FROM tab2 AS cor0
----
14983
15000
15018

query I rowsort
SELECT ALL + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT DISTINCT COUNT( * ) * 70 * - ( 24 ) + + COUNT( * ) AS col0, - 52 FROM tab2
----
-5037
-52

skipif mysql # not compatible
query II rowsort label-7732
SELECT DISTINCT COUNT ( * ) * 70 * - ( 24 ) + + COUNT ( * ) AS col0, - 52 FROM tab2
----
-5037
-52

query I rowsort
SELECT 56 + - col1 AS col1 FROM tab2 cor0
----
-11
-21
5

query I rowsort
SELECT 47 FROM tab0 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT 91 + - + 76 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - ( col1 ) * + col2 + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query II rowsort
SELECT + col0 AS col1, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + 58 * col2 AS col0 FROM tab0 AS cor0
----
2726
5742
580

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE + col1 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT - 74 DIV - 39 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7741
SELECT - 74 / - 39 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT ( - 57 ) - CAST( + - col1 AS SIGNED ) * + + col1 FROM tab0
----
-56
384
6504

skipif mysql # not compatible
query I rowsort label-7742
SELECT ( - 57 ) - CAST ( + - col1 AS INTEGER ) * + + col1 FROM tab0
----
-56
384
6504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) - col2 col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT - col1 - - 57 - + - 22 + col2 + + 99 * - col2 * + 48 * - col1 + - col2 FROM tab2
----
14636162
18466284
5574124

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL + MIN( + 17 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL + MIN ( + 17 ) FROM tab0
----
17

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE + 53 * + col2 IN ( col0, col2, 40, - + col1, 29 )
----

query I rowsort
SELECT DISTINCT + ( col2 ) + - + 87 AS col1 FROM tab1 AS cor0
----
-19
-28
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL AVG ( DISTINCT + col2 ) * 44 - + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7748
SELECT ALL AVG ( DISTINCT + col2 ) * 44 - + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - MIN( - col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7750
SELECT - MIN ( - col1 ) col0 FROM tab2
----
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT - + col0 DIV - + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7752
SELECT - + col0 / - + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT + - SUM( ALL - 18 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7754
SELECT + - SUM ( ALL - 18 ) AS col2 FROM tab1 AS cor0
----
54

query II rowsort
SELECT + col0 AS col2, 45 FROM tab0
----
15
45
87
45
97
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7756
SELECT 41 AS col2, 87 - + COUNT( * ) FROM tab2
----
41
84

skipif mysql # not compatible
query II rowsort label-7756
SELECT 41 AS col2, 87 - + COUNT ( * ) FROM tab2
----
41
84

query II rowsort
SELECT ALL col0 AS col2, + 50 AS col0 FROM tab2
----
46
50
64
50
75
50

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE ( ( NULL ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL 67 + + 26 * - COUNT( * ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL 67 + + 26 * - COUNT ( * ) AS col0 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT + 12 + - + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7760
SELECT + 12 + - + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 20 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 / + col2 * - col2 * + 92 AS col2 FROM tab2 AS cor0 WHERE ( + - col2 ) >= 36 + - + col0
----

query I rowsort
SELECT + 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT + + col0 - 11 FROM tab0 AS cor0
----
4
76
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + + COUNT( * ) - 70 AS col1 FROM tab0 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7766
SELECT + + COUNT ( * ) - 70 AS col1 FROM tab0 cor0
----
-67

query I rowsort
SELECT ALL - 34 - - + col0 AS col1 FROM tab0 AS cor0
----
-19
53
63

query I rowsort
SELECT - - col2 AS col0 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + col0 * - + col0 + + - 67 + 1 * col1 + - - 99 AS col1 FROM tab0 AS cor0
----
-112
-7516
-9376

query I rowsort
SELECT ALL ( - col1 ) * col0 + - col2 FROM tab0 AS cor0
----
-1262
-1837
-196

query I rowsort
SELECT col0 + 62 + col2 * + 86 * - - col1 FROM tab0 AS cor0
----
18209
327479
8673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab1 AS cor0 WHERE ( - col1 * - col1 ) IS NOT NULL
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7773
SELECT - CAST( NULL AS SIGNED ) / - + 60 * + 37 + + 25 * + col1 * - - col1 AS col1, + CAST( - - col2 AS SIGNED ) * + - col0 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
query II rowsort label-7773
SELECT - CAST ( NULL AS INTEGER ) / - + 60 * + 37 + + 25 * + col1 * - - col1 AS col1, + CAST ( - - col2 AS INTEGER ) * + - col0 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

query I rowsort
SELECT ALL col1 - + - col0 AS col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE col2 * - 20 - - + 2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE col2 * - 20 - - + 2 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7776
SELECT DISTINCT CAST( + col0 AS SIGNED ) col1, + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 WHERE NULL <= col1 + - + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7776
SELECT DISTINCT CAST ( + col0 AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 WHERE NULL <= col1 + - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 20 IS NULL
----

query I rowsort
SELECT + col1 * + ( ( 33 ) ) AS col2 FROM tab2 AS cor0
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7779
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - + col0 AS SIGNED ) >= - 90
----

skipif mysql # not compatible
query III rowsort label-7779
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - + col0 AS INTEGER ) >= - 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col1 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT + col0 * - 27 AS col1 FROM tab2
----
-1242
-1728
-2025

query II rowsort
SELECT DISTINCT - col2 * - col0, 22 AS col2 FROM tab2
----
1058
22
2560
22
4350
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7783
SELECT * FROM tab2 WHERE NOT NULL <= + col0 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7783
SELECT * FROM tab2 WHERE NOT NULL <= + col0 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 6 + - col1 * - col2 * - col0 * col1 * + col0 AS col0 FROM tab0
----
-33379284
-69382569
-931485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 99 ), - 5 col0 FROM tab1
----
99
-5
99
-5
99
-5

query I rowsort
SELECT ALL col2 + - - 66 * - - col2 FROM tab0
----
3149
6633
670

query I rowsort
SELECT + 64 * 54 FROM tab0 AS cor0
----
3456
3456
3456

query I rowsort
SELECT - - 47 FROM tab0 WHERE - col1 + + ( + 38 ) IN ( + + col2, ( + + col0 ), 30 + - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + COUNT( * ) + 91 AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-7789
SELECT + COUNT ( * ) + 91 AS col2 FROM tab1
----
94

query II rowsort
SELECT - col2 AS col1, - col2 * + col2 * - ( - - 36 ) + + + col0 AS col1 FROM tab1 AS cor0
----
-59
125401
-68
166555
-96
331827

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL - - 37 + + - 35 + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - - 37 + + - 35 + - COUNT ( * ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - 26 + - + 11 * + - col0 / + + col0 < ( - col2 ) * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL + COUNT( * ) - + 22 FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + COUNT ( * ) - + 22 FROM tab0 cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT + 10 * + MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < col0 / - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT + 10 * + MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < col0 / - - 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT ALL col2 - 6 DIV - - 17 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL col2 - 6 / - - 17 AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 72 * - 48 - + col2 FROM tab2
----
3398
3416
3433

query I rowsort
SELECT ALL + 79 * col2 AS col0 FROM tab0
----
3713
7821
790

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 42 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col2 FROM tab2
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL + MAX( + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + MAX ( + col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT ALL - - 45 FROM tab0 cor0
----
45
45
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / - col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT DISTINCT COUNT( ALL col2 ) * + COUNT( * ) * + + CAST( + 19 AS SIGNED ) + + - 88 * - 71 AS col0 FROM tab0
----
6419

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT COUNT ( ALL col2 ) * + COUNT ( * ) * + + CAST ( + 19 AS INTEGER ) + + - 88 * - 71 AS col0 FROM tab0
----
6419

query I rowsort
SELECT DISTINCT + col1 * - 58 AS col2 FROM tab2
----
-2958
-3886
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT MIN( ALL col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7806
SELECT MIN ( ALL col1 ) AS col1 FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 77 col0 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT + COUNT( * ) DIV COUNT( DISTINCT + + col1 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7809
SELECT + COUNT ( * ) / COUNT ( DISTINCT + + col1 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT 72 * - + ( - + col2 ) AS col2 FROM tab2
----
1656
2880
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT COUNT( * ) + MAX( - + col1 ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-7811
SELECT COUNT ( * ) + MAX ( - + col1 ) AS col0 FROM tab2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT ALL col0 DIV - - 42 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7812
SELECT ALL col0 / - - 42 col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT 6 * col1 * - - 61 + 42 + - - ( - col0 ) + + 76 AS col1 FROM tab1
----
17229
1863
5191

query I rowsort
SELECT DISTINCT - col2 + - - col1 * + col2 FROM tab1
----
1248
236
3128

query I rowsort
SELECT col2 * - col1 * + col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT col1 * + col1 + - + 52 FROM tab2 AS cor0
----
2549
4437
5877

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT DISTINCT + ( + + 73 ) * + + SUM( DISTINCT - - col1 ) * - 55 FROM tab0 AS cor0
----
-413545

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT + ( + + 73 ) * + + SUM ( DISTINCT - - col1 ) * - 55 FROM tab0 AS cor0
----
-413545

onlyif mysql # DIV for integer division: 
query II rowsort label-7818
SELECT DISTINCT + col1 DIV + 34 AS col1, - col2 DIV 25 FROM tab1
----
0
-2
0
-3
1
-2

skipif mysql # not compatible
query II rowsort label-7818
SELECT DISTINCT + col1 / + 34 AS col1, - col2 / 25 FROM tab1
----
0
-2
0
-3
1
-2

query I rowsort
SELECT ALL + - 3 / - - 45 * + + 68 - + - 58 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 11 - - + 92 AS col1, col1 FROM tab2
----
103
51
103
67
103
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT col2 + + + col2 + - - 56 * - CAST( NULL AS SIGNED ) + - 7 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT col2 + + + col2 + - - 56 * - CAST ( NULL AS INTEGER ) + - 7 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( + 67 ) + col0 * + col1 FROM tab1 AS cor0
----
4344
492
781

query I rowsort
SELECT ALL - + AVG ( ALL - 54 ) + - + 68 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + - col0 + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 19 + - 16 col0 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT col0 - + + 29 FROM tab1 AS cor0
----
22
56
62

query I rowsort
SELECT DISTINCT - col1 + + 85 FROM tab2 AS cor0
----
18
34
8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7829
SELECT ALL + col2 - 27 AS col0, - CAST( NULL AS DECIMAL ) * + col0 + - col1 FROM tab1 AS cor0
----
32
NULL
41
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-7829
SELECT ALL + col2 - 27 AS col0, - CAST ( NULL AS REAL ) * + col0 + - col1 FROM tab1 AS cor0
----
32
NULL
41
NULL
69
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + + col0 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 76 * + col2 FROM tab2
----
1748
3040
4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7833
SELECT ALL CAST( NULL AS SIGNED ), - MAX( + 46 ) AS col0 FROM tab0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-7833
SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( + 46 ) AS col0 FROM tab0
----
NULL
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - MIN( - + 93 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7834
SELECT - MIN ( - + 93 ) FROM tab1
----
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 76 * - 20 AS col1 FROM tab0 AS cor0
----
-1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7837
SELECT DISTINCT 68 DIV + + 7 + + 38 * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-333

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT 68 / + + 7 + + 38 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT COUNT( * ) + - 47 * + + ( + + 43 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-2012

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT COUNT ( * ) + - 47 * + + ( + + 43 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-2012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT + CAST( NULL AS SIGNED ) + 82 / - + 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT + CAST ( NULL AS INTEGER ) + 82 / - + 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - col1 FROM tab1 AS cor0 WHERE NOT 20 * - + col0 + col2 + - 8 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT 0 + MIN( ALL + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7841
SELECT 0 + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL COUNT( - + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL COUNT ( - + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
17

query I rowsort
SELECT col1 * - + col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + 89 FROM tab2 WHERE + + col2 + - col2 * col0 * col0 * + - col1 IS NOT NULL
----
89
89
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL 88 + col0 AS col1 FROM tab1 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT ALL + - 75 + + + 40 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7850
SELECT + 4 + + CAST( - COUNT( * ) AS SIGNED ) - 70 DIV COUNT( * ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7850
SELECT + 4 + + CAST ( - COUNT ( * ) AS INTEGER ) - 70 / COUNT ( * ) FROM tab0 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT DISTINCT - + 59 * - CAST( NULL AS SIGNED ) - + - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT - + 59 * - CAST ( NULL AS INTEGER ) - + - col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 24 FROM tab1 WHERE NULL <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7853
SELECT + 89 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7853
SELECT + 89 / col1 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + col2 IS NOT NULL ) )
----

query I rowsort
SELECT ALL ( + col2 ) * + col1 * 55 + + + 4 * 31 + col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
16434
175995
74095

query I rowsort
SELECT DISTINCT 59 * - - col0 AS col1 FROM tab1 AS cor0
----
3009
5015
5369

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 WHERE ( NULL < 6 * + - 75 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7858
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN - col0 * - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN - col0 * - col1 AND NULL
----
NULL

query II rowsort
SELECT - 82, + col1 FROM tab2 AS cor0
----
-82
51
-82
67
-82
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - + ( - 50 ) BETWEEN - + ( - + col0 ) AND - col0 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT 83 * + CAST( COUNT( * ) AS SIGNED ) * + ( - - 35 ) * - 61 AS col0 FROM tab2
----
-531615

skipif mysql # not compatible
query I rowsort label-7862
SELECT 83 * + CAST ( COUNT ( * ) AS INTEGER ) * + ( - - 35 ) * - 61 AS col0 FROM tab2
----
-531615

query II rowsort
SELECT DISTINCT - col2 * col2, + 9 AS col1 FROM tab1
----
-3481
9
-4624
9
-9216
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7864
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + ( + - CAST( NULL AS SIGNED ) ) <= - - col0
----

skipif mysql # not compatible
query III rowsort label-7864
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + ( + - CAST ( NULL AS INTEGER ) ) <= - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 99 * - - 10 col2 FROM tab0 AS cor0
----
990
990
990

query I rowsort
SELECT ALL - 9 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + 80
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 + 5 AS col2 FROM tab2 cor0
----
28
45
63

query II rowsort
SELECT 89 * + col1 * - col2 + - + col2 AS col2, col0 FROM tab0
----
-18700
87
-338870
15
-8910
97

query I rowsort
SELECT - col1 + + 25 AS col2 FROM tab2
----
-26
-42
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT DISTINCT - MAX( ALL + ( col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - MAX ( ALL + ( col0 ) ) FROM tab2
----
-75

query I rowsort
SELECT ALL col1 + + 20 AS col1 FROM tab1
----
25
34
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT DISTINCT 32 + - COUNT( ALL - - 1 ) + COUNT( * ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT 32 + - COUNT ( ALL - - 1 ) + COUNT ( * ) AS col0 FROM tab0
----
32

query I rowsort
SELECT + ( + 45 ) AS col1 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ALL + col1 * 70 * 29 * + col1 - - + col0 AS col0 FROM tab2
----
12035934
5280076
9112745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT DISTINCT - 40 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT - 40 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 >= - - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - - 93 FROM tab0 AS cor0
----
-1953
-7533
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL - + COUNT( DISTINCT + 54 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - + COUNT ( DISTINCT + 54 ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7880
SELECT - CAST( + + 35 AS SIGNED ) DIV col0 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-7880
SELECT - CAST ( + + 35 AS INTEGER ) / col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT ALL col0, + 77 FROM tab1 AS cor0
----
51
77
85
77
91
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7883
SELECT + - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7884
SELECT ALL - 20 DIV - - SUM( ALL 13 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL - 20 / - - SUM ( ALL 13 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 30 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL - SUM( + 29 ) AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - SUM ( + 29 ) AS col2 FROM tab0
----
-87

query I rowsort
SELECT DISTINCT 36 * 42 FROM tab2
----
1512

query II rowsort
SELECT DISTINCT col1, - 4 * - col0 + col2 AS col0 FROM tab2
----
51
207
67
358
77
296

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 6 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) * - 95 * + COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7890
SELECT ALL - MAX ( CAST ( NULL AS INTEGER ) ) * - 95 * + COUNT ( * ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT SUM( + ( + 20 ) ) * 20 FROM tab2
----
1200

skipif mysql # not compatible
query I rowsort label-7892
SELECT SUM ( + ( + 20 ) ) * 20 FROM tab2
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL + - SUM( - + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL + - SUM ( - + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT col0 * col0 * + col0 * + col1 FROM tab2 cor0
----
20185088
28265625
4964136

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT - + 76 * ( - MAX( DISTINCT - 90 ) ) FROM tab2 AS cor0
----
-6840

skipif mysql # not compatible
query I rowsort label-7895
SELECT - + 76 * ( - MAX ( DISTINCT - 90 ) ) FROM tab2 AS cor0
----
-6840

query I rowsort
SELECT - col2 * + 38 FROM tab0 AS cor0
----
-1786
-3762
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT + 27 * COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT + 27 * COUNT ( * ) FROM tab2
----
81

query II rowsort
SELECT 46 + + col2, - 2 * - col2 + 86 + - + 53 AS col2 FROM tab1
----
105
151
114
169
142
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT + CAST( NULL AS SIGNED ) + + 38 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT + CAST ( NULL AS INTEGER ) + + 38 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col0 + col0 + - + ( - 2 ) * + ( - col1 ) - - 36 col0 FROM tab2 AS cor0
----
2096
4042
5602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 / - + col1 col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7903
SELECT ALL - + CAST( NULL AS DECIMAL ) + col1 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-7903
SELECT ALL - + CAST ( NULL AS REAL ) + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 96 AS col2 FROM tab0 cor0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - 37
----

query I rowsort
SELECT DISTINCT + 7 + + 75 FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * col2 + + + col2 AS col2 FROM tab0 AS cor0
----
110
2256
9900

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * col2 + + + col2 AS col2 FROM tab0 AS cor0
----
110
2256
9900

query I rowsort
SELECT DISTINCT + col0 * - + 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col1 FROM tab2 WHERE NOT col0 * + 70 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + + 5 FROM tab1 WHERE NULL = - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT DISTINCT - 23 - + 47 DIV - COUNT( * ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT - 23 - + 47 / - COUNT ( * ) FROM tab2
----
-8

query I rowsort
SELECT DISTINCT ( 95 ) FROM tab1
----
95

query II rowsort
SELECT DISTINCT 36 AS col2, 36 AS col2 FROM tab0
----
36
36

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE - 34 + col1 NOT BETWEEN + 80 AND - col0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7915
SELECT - 81 AS col1, AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-7915
SELECT - 81 AS col1, AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
-81
NULL

query I rowsort
SELECT + 8 - 59 AS col0 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT ALL col0 + col2 * - - col1 * + - 82 + 43 FROM tab2
----
-252453
-318534
-96097

query I rowsort
SELECT - 75 - - - 21 * + col2 * - col1 AS col1 FROM tab1
----
28149
6120
67041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT ALL + col1 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + col1 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT + col2 * col0 + - 41 * ( + 4 ) * + + col2 * + col0 * - 37 + col1 DIV - col0 - + + col0 AS col1 FROM tab0 cor0
----
4278625
5279943
58280510

skipif mysql # not compatible
query I rowsort label-7920
SELECT + col2 * col0 + - 41 * ( + 4 ) * + + col2 * + col0 * - 37 + col1 / - col0 - + + col0 AS col1 FROM tab0 cor0
----
4278625
5279943
58280510

query I rowsort
SELECT DISTINCT 60 * + - col1 FROM tab0
----
-1260
-4860
-60

query I rowsort
SELECT - col2 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
28
37
9

query I rowsort
SELECT - col0 * + + 14 FROM tab1 AS cor0
----
-1190
-1274
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT DISTINCT - 3 DIV - - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - 3 / - - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7925
SELECT ALL + MIN( - col2 ) AS col0, + SUM( - col0 ) AS col0 FROM tab0 AS cor0
----
-99
-199

skipif mysql # not compatible
query II rowsort label-7925
SELECT ALL + MIN ( - col2 ) AS col0, + SUM ( - col0 ) AS col0 FROM tab0 AS cor0
----
-99
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab0 cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT + - SUM( ALL 90 ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7927
SELECT + - SUM ( ALL 90 ) FROM tab1 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL MAX( - 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL MAX ( - 10 ) FROM tab2 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL 94 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL 94 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 7 * - col1 * col0 * + col1 AS col0 FROM tab2
----
-2356725
-2656192
-837522

query II rowsort
SELECT 68 AS col0, col0 FROM tab1
----
68
51
68
85
68
91

query I rowsort
SELECT ALL + 63 * + 83 AS col2 FROM tab2
----
5229
5229
5229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 45 ) col0 FROM tab0
----
45

query I rowsort
SELECT ALL 67 + + - col2 AS col0 FROM tab0
----
-32
20
57

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col1 * - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT 88 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7936
SELECT 88 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL MIN( + col0 ) * + - 22 * - SUM( ALL - - col1 ) AS col0 FROM tab1
----
74052

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL MIN ( + col0 ) * + - 22 * - SUM ( ALL - - col1 ) AS col0 FROM tab1
----
74052

query I rowsort
SELECT - + 26 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL - 59 + + 23 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL - MAX( ALL - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7941
SELECT ALL col0 * + col0 / - col1 - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL col0 * + col0 / - col1 - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - + 29 * - col1 - col0 + + - 64 + - - col2 * + - 18 * - 31 FROM tab1 cor0
----
161822
45098
74159

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT ALL 74 * - + col0 + - 13 DIV col2 FROM tab0 AS cor0
----
-1110
-6439
-7178

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL 74 * - + col0 + - 13 / col2 FROM tab0 AS cor0
----
-1110
-6439
-7178

query I rowsort
SELECT + - col2 + + - col1 + - - col0 FROM tab0 AS cor0
----
-113
-3
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT COUNT( * ) + + - 50 * - COUNT( * ) + + 23 FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-7945
SELECT COUNT ( * ) + + - 50 * - COUNT ( * ) + + 23 FROM tab1
----
176

query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( col1, col1, col2 )
----

query I rowsort
SELECT - + 32 AS col2 FROM tab2 cor0
----
-32
-32
-32

query I rowsort
SELECT + - 65 - - col2 AS col0 FROM tab0 AS cor0
----
-18
-55
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL + COUNT( ALL + 63 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + COUNT ( ALL + 63 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col1, + 51 FROM tab0
----
1
51
21
51
81
51

query I rowsort
SELECT DISTINCT - ( + - ( col0 ) ) FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT 58 * - col2 + + + 19 AS col2, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 / - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT - CAST( - 52 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-7953
SELECT - CAST ( - 52 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + MAX( DISTINCT 83 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + MAX ( DISTINCT 83 ) FROM tab1 AS cor0
----
83

query II rowsort
SELECT + + 36 AS col0, - 96 FROM tab1 AS cor0
----
36
-96
36
-96
36
-96

query II rowsort
SELECT ALL + - 60, - 98 AS col0 FROM tab2 AS cor0
----
-60
-98
-60
-98
-60
-98

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT - col0 * + ( CAST( + col1 AS SIGNED ) ) * - 6 AS col0 FROM tab0 cor0
----
10962
582
7290

skipif mysql # not compatible
query I rowsort label-7958
SELECT - col0 * + ( CAST ( + col1 AS INTEGER ) ) * - 6 AS col0 FROM tab0 cor0
----
10962
582
7290

query I rowsort
SELECT DISTINCT - + 75 AS col1 FROM tab0 cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT + col2 DIV - 71 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + col2 / - 71 AS col2 FROM tab0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 11 - + col2 IS NULL
----

query II rowsort
SELECT DISTINCT col1 + col2 AS col1, col1 * + - 18 * col1 * col0 * col0 FROM tab1
----
110
-9176328
115
-329269122
64
-3251250

query I rowsort
SELECT - - 61 * + 38 * - col0 + + col2 - ( ( - col0 ) ) FROM tab0 AS cor0
----
-201569
-224650
-34708

query I rowsort
SELECT - 12 AS col1 FROM tab2 cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL >= col0 + - - 65
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL >= col0 + - - 65
----
0

query I rowsort
SELECT col0 * + + col1 - col0 FROM tab2 AS cor0
----
2300
4864
4950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 46 col2 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT + 83 + - + ( + + 96 ) AS col0 FROM tab2
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL - 18 + - - MIN( + col2 ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - 18 + - - MIN ( + col2 ) AS col2 FROM tab1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7970
SELECT ALL * FROM tab0 WHERE CAST( - + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7970
SELECT ALL * FROM tab0 WHERE CAST ( - + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + COUNT( - + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7971
SELECT + COUNT ( - + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL + CAST( NULL AS SIGNED ) - SUM( DISTINCT + col0 ) - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + CAST ( NULL AS INTEGER ) - SUM ( DISTINCT + col0 ) - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT - col2 + - col1 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-124
-162
-69

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - col2 + - col1 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-124
-162
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL + 68 + + COUNT( * ) AS col2 FROM tab0 cor0
----
71

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + 68 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT CAST( col2 AS SIGNED ) - + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT CAST ( col2 AS INTEGER ) - + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + ( - col0 ) - - 26 AS col1 FROM tab1
----
-2575
-7199
-8255

query I rowsort
SELECT 84 - 97 FROM tab2
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 WHERE - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7978
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 WHERE - - col1 IS NULL
----
0

query I rowsort
SELECT col1 * - col0 - + col0 + col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL 49 + + col2 AS col0 FROM tab0
----
148
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT 40 * + COUNT( * ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-7981
SELECT 40 * + COUNT ( * ) AS col1 FROM tab1
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + + col1 col1 FROM tab1 AS cor0
----
-1175
-125
-350

query I rowsort
SELECT ALL 3 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 / + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 16 ) >= 56 * - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 col1, col1 + - 69 AS col2 FROM tab2 AS cor0
----
41
-18
41
-2
41
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT SUM( DISTINCT + 17 ) FROM tab2 WHERE NOT + - col0 IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-7986
SELECT SUM ( DISTINCT + 17 ) FROM tab2 WHERE NOT + - col0 IS NULL
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT MAX( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7987
SELECT MAX ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 49 - - - 35 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 91 <> NULL
----

query I rowsort
SELECT + col2 * - col2 - + 49 AS col1 FROM tab1 cor0
----
-3530
-4673
-9265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * + - col0 + - 16 FROM tab0 AS cor0
----
209
7553
9393

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT - SUM( + col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7993
SELECT - SUM ( + col1 ) AS col0 FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col0 * - col2 * + + col1 FROM tab2
----
-51
-53958
-67
-291450
-77
-197120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - + 41 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1a8df176532bfd645203a18f9b328e3f

query I rowsort
SELECT 32 + - - col2 + col2 * + - col2 * - col2 - - 58 AS col1 FROM tab1
----
205528
314590
884922

query I rowsort
SELECT ALL col1 * - col0 + 80 * + 50 * + col0 FROM tab2
----
181654
251072
294975

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 7 ) * - col1 >= - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + col0 * col1 FROM tab2 cor0
----
2397
5005
5092

query I rowsort
SELECT + + col0 * + - col2 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL - 91 * - - COUNT( * ) FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - 91 * - - COUNT ( * ) FROM tab2 AS cor0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT - col2 + + col2 AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8003
SELECT - col2 + + col2 AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8004
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) > CAST( ( CAST( NULL AS DECIMAL ) ) AS SIGNED ) - + col0 * col0
----

skipif mysql # not compatible
query III rowsort label-8004
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) > CAST ( ( CAST ( NULL AS REAL ) ) AS INTEGER ) - + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + COUNT( * ) + 37 AS col1 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-8005
SELECT + COUNT ( * ) + 37 AS col1 FROM tab2
----
40

query I rowsort
SELECT + ( col2 ) + - col2 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 + + col0 * col0
----

query I rowsort
SELECT DISTINCT - col1 - + 88 FROM tab2
----
-139
-155
-165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * col1 + col2 col1 FROM tab1 WHERE + col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 87 + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT COUNT( * ) + 97 col2 FROM tab1
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT COUNT ( * ) + 97 col2 FROM tab1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( * ) * + 51 col2 FROM tab0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8012
SELECT COUNT ( * ) * + 51 col2 FROM tab0
----
153

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 35 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - ( 39 ) AS col2 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( col1 ) NOT IN ( 22 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT + MAX( ALL col1 ) FROM tab2 WHERE NOT col1 / 41 NOT BETWEEN ( + col0 ) AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT + MAX ( ALL col1 ) FROM tab2 WHERE NOT col1 / 41 NOT BETWEEN ( + col0 ) AND + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT - 54 * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 54 * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT col1 DIV 75 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT col1 / 75 FROM tab2
----
0
1

query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab2 WHERE NOT + col1 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 54 col2 FROM tab0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + ( COUNT( 10 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8021
SELECT + ( COUNT ( 10 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 13 * + col0 IS NOT NULL
----

query I rowsort
SELECT + 34 + 59 FROM tab2
----
93
93
93

query I rowsort
SELECT ALL 96 * - col1 AS col2 FROM tab0 WHERE NOT - col2 / col2 NOT BETWEEN ( NULL ) AND 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT CAST( NULL AS SIGNED ) * - col1 - col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8025
SELECT CAST ( NULL AS INTEGER ) * - col1 - col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( 24 ) - col0 AS col1 FROM tab1
----
-27
-61
-67

query I rowsort
SELECT - col2 + 14 * - 4 AS col2 FROM tab2
----
-114
-79
-96

query I rowsort
SELECT - ( ( col0 ) ) - 57 AS col2 FROM tab0
----
-144
-154
-72

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( - 9 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL - COUNT( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - COUNT ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 / - 23 + + col1 * + col0 ) < ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 40 NOT IN ( - 31 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col0 FROM tab1 WHERE ( ( + 69 ) * + ( 36 * + col1 ) + 25 * 73 ) > col0 + + col2 * col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT ALL 57 DIV - 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL 57 / - 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 70 * 42 ) <= NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + 13
----

query I rowsort
SELECT - 84 * col0 FROM tab2 AS cor0 WHERE NOT ( - col2 * - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + 90 * - 85 FROM tab2 AS cor0
----
-7592
-7610
-7627

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 * 52 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT ALL - + CAST( - COUNT( 20 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - + CAST ( - COUNT ( 20 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT + 24 + 62 AS col0 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT - + 88 * - CAST( col2 AS SIGNED ) + - 5 FROM tab1 AS cor0
----
5187
5979
8443

skipif mysql # not compatible
query I rowsort label-8043
SELECT - + 88 * - CAST ( col2 AS INTEGER ) + - 5 FROM tab1 AS cor0
----
5187
5979
8443

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT 91 * COUNT( 38 * + 5 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8044
SELECT 91 * COUNT ( 38 * + 5 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col2 * 22 >= NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 2 ) * 19 NOT BETWEEN ( - 98 ) AND 5
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8050
SELECT ALL * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8050
SELECT ALL * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + col1 ) + col1 * + 96 FROM tab1
----
1330
4465
475

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT - 85 DIV 45 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8052
SELECT - 85 / 45 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8053
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8053
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - CAST ( - col0 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT 1 / - CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT 1 / - CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL 65 + - 93 + COUNT( * ) AS col1 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL 65 + - 93 + COUNT ( * ) AS col1 FROM tab0
----
-25

query I rowsort
SELECT DISTINCT + + 62 + - + col1 AS col2 FROM tab0 AS cor0
----
-19
41
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT ( - + col2 ) * + 26 + + CAST( 59 AS SIGNED ) FROM tab1 AS cor0
----
-1475
-1709
-2437

skipif mysql # not compatible
query I rowsort label-8058
SELECT ( - + col2 ) * + 26 + + CAST ( 59 AS INTEGER ) FROM tab1 AS cor0
----
-1475
-1709
-2437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 51 col1, col2 * + ( 39 ) FROM tab2
----
51
1560
51
2262
51
897

query I rowsort
SELECT - - 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT DISTINCT - + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8062
SELECT CAST( 52 AS SIGNED ) DIV 21 + col2 FROM tab2
----
25
42
60

skipif mysql # not compatible
query I rowsort label-8062
SELECT CAST ( 52 AS INTEGER ) / 21 + col2 FROM tab2
----
25
42
60

query II rowsort
SELECT ALL col1 AS col2, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL - 22 + - - col1 AS col0 FROM tab1 AS cor0
----
-17
-8
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 42 * + 17 col1 FROM tab0 AS cor0
----
715
735
795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL - + MIN( + CAST( NULL AS SIGNED ) ) + + 56 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL - + MIN ( + CAST ( NULL AS INTEGER ) ) + + 56 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * + 3 - col1 * - 6 AS col2 FROM tab1 AS cor0
----
237
285
555

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * + 3 - col1 * - 6 AS col2 FROM tab1 AS cor0
----
237
285
555

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 ) < + 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT - CAST( NULL AS SIGNED ) / + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8069
SELECT - CAST ( NULL AS INTEGER ) / + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL + COUNT( ALL - + 34 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + COUNT ( ALL - + 34 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT SUM( 37 ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT SUM ( 37 ) FROM tab0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT DISTINCT MAX( - 1 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8072
SELECT DISTINCT MAX ( - 1 ) FROM tab2
----
-1

query I rowsort
SELECT + col0 * + 54 * - 41 * - col2 * - col1 AS col0 FROM tab0
----
-126430470
-21261042
-40449780

query I rowsort
SELECT + 23 * - + 54 * + col0 FROM tab2
----
-57132
-79488
-93150

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT 81 * - COUNT( * ) AS col2 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-8075
SELECT 81 * - COUNT ( * ) AS col2 FROM tab2
----
-243

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - + 1 / + ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 11 ) AS col2, 84 col2 FROM tab1
----
11
84
11
84
11
84

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN ( + col0 / col2 ) AND NULL
----

query I rowsort
SELECT + ( + col1 ) * - col0 * + + 93 * 68 + + col0 AS col0 FROM tab1
----
-2687615
-27047657
-4515285

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 + + + col1 <> - - col0 + 46 * + 92
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL + - ( + MAX( + - 90 ) ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + - ( + MAX ( + - 90 ) ) AS col0 FROM tab1 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col2 FROM tab0 AS cor0 WHERE NULL >= ( - col0 + - 49 * - col1 * 29 )
----

query I rowsort
SELECT - ( + col2 ) * - + 81 * - 51 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-165280
-239656
-95036

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + + col0 NOT IN ( - ( - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL MIN( DISTINCT + - 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL MIN ( DISTINCT + - 10 ) FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT COUNT( * ) * - + 99 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8087
SELECT COUNT ( * ) * - + 99 FROM tab0 AS cor0
----
-297

query II rowsort
SELECT + col2, col2 AS col2 FROM tab2 AS cor0 WHERE - 17 IS NOT NULL
----
23
23
40
40
58
58

query I rowsort
SELECT col1 * 19 AS col1 FROM tab0 cor0
----
1539
19
399

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT - - col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT - - col1 / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8091
SELECT + 86 DIV + - 74 + + - 64 + + + COUNT( * ) * + + 32 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8091
SELECT + 86 / + - 74 + + - 64 + + + COUNT ( * ) * + + 32 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL - MAX( col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL - MAX ( col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT DISTINCT + ( + CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab1 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT + ( + CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT col2 + col2 + - - 46 FROM tab1
----
164
182
238

query I rowsort
SELECT - 94 * + 77 + - col0 AS col1 FROM tab0
----
-7253
-7325
-7335

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8096
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN - 63 + + 38 AND - + col2 * - ( col2 * + CAST( NULL AS DECIMAL ) + + 99 ) + + col2
----

skipif mysql # not compatible
query III rowsort label-8096
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN - 63 + + 38 AND - + col2 * - ( col2 * + CAST ( NULL AS REAL ) + + 99 ) + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8097
SELECT * FROM tab1 WHERE NULL BETWEEN CAST( - - ( + col0 ) AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8097
SELECT * FROM tab1 WHERE NULL BETWEEN CAST ( - - ( + col0 ) AS REAL ) AND NULL
----

query I rowsort
SELECT + col2 + col2 FROM tab0 WHERE ( NOT NULL NOT IN ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT - 97 col0 FROM tab1 WHERE NULL NOT IN ( - - col0 - + col2 + 5 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8099
SELECT - 97 col0 FROM tab1 WHERE NULL NOT IN ( - - col0 - + col2 + 5 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 / - col2 * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT - 48 * + MIN( ALL - 71 ) AS col2 FROM tab0 AS cor0
----
3408

skipif mysql # not compatible
query I rowsort label-8101
SELECT - 48 * + MIN ( ALL - 71 ) AS col2 FROM tab0 AS cor0
----
3408

query I rowsort
SELECT DISTINCT - col0 - + col0 + + 65 AS col2 FROM tab0
----
-109
-129
35

query I rowsort
SELECT + 67 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) < + 71
----

query I rowsort
SELECT + 54 * col0 + + col2 * + col0 FROM tab2
----
3542
6016
8400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - 86 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 86 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8106
SELECT SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8107
SELECT + - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 52 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col1 * + 90 * - col2 + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 7 <> NULL
----

query I rowsort
SELECT - col0 * + + 20 FROM tab0 AS cor0
----
-1740
-1940
-300

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - + 23 BETWEEN - + 75 AND 65
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT + MAX( DISTINCT - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + MAX ( DISTINCT - + col0 ) FROM tab2
----
-46

query I rowsort
SELECT ALL 39 * - 64 AS col0 FROM tab1
----
-2496
-2496
-2496

query II rowsort
SELECT + col1 AS col0, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 90, + 80 + + col0 col0 FROM tab1 AS cor0
----
90
131
90
165
90
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 cor0 WHERE NOT NULL IN ( col2, col2 * 43, col2 )
----

query I rowsort
SELECT DISTINCT + 41 FROM tab0 AS cor0 WHERE NOT 8 >= + col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL + MIN( + col0 ) + - 81 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL + MIN ( + col0 ) + - 81 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT - - col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT DISTINCT col2 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT col2 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL col1 * - + CAST( - 36 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1836
2412
2772

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL col1 * - + CAST ( - 36 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1836
2412
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 BETWEEN - col1 AND ( 87 )
----

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE + 50 / - 15 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col2 * col1 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL + COUNT( * ) + + COUNT( * ) + - - 87 AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - - 87 AS col2 FROM tab1
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + - - col2 * - - col1 FROM tab0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT + 10 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8131
SELECT + 10 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN ( NULL ) AND + - col2
----

query I rowsort
SELECT ALL + col0 * - + col2 - + - col1 + - 6 FROM tab1
----
-4888
-5016
-6147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18, 64 col2 FROM tab0
----
18
64
18
64
18
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL + COUNT( - 73 ) - MIN( DISTINCT 93 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL + COUNT ( - 73 ) - MIN ( DISTINCT 93 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

query I rowsort
SELECT - 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT + 75 DIV + + col0 + + col2 FROM tab0 cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-8137
SELECT + 75 / + + col0 + + col2 FROM tab0 cor0
----
10
52
99

query II rowsort
SELECT ALL + col1, + col0 FROM tab2 cor0
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + col2 ) NOT BETWEEN NULL AND - 10 / + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 * col0 FROM tab0 cor0
----
15
-1215
87
-1827
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT DISTINCT + COUNT( * ) col2, SUM( 22 ) AS col2 FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8141
SELECT DISTINCT + COUNT ( * ) col2, SUM ( 22 ) AS col2 FROM tab1 AS cor0
----
3
66

query II rowsort
SELECT + col2, ( + col1 ) FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT col2 * + 4 FROM tab2
----
160
232
92

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT - + 56 * col2 + col0 * - + ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + ( + - col1 ) * - col2 + - col0 FROM tab1
----
128973
17320
217237

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT COUNT( * ) + + 31 AS col2 FROM tab1, tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8146
SELECT COUNT ( * ) + + 31 AS col2 FROM tab1, tab0 AS cor0
----
40

query I rowsort
SELECT + col1 * - 17 FROM tab2
----
-1139
-1309
-867

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT - col0 DIV + 59 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8148
SELECT - col0 / + 59 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 82 * 0 * - + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ( - MIN( ALL + 21 ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-21

skipif mysql # not compatible
query I rowsort label-8150
SELECT ( - MIN ( ALL + 21 ) ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-21

query I rowsort
SELECT ALL + + 35 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 8 + - + col1 IS NULL
----

query II rowsort
SELECT ALL + + col2 AS col0, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 - + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 + col1 - - col2 AS col2, - col1 * - - 3 FROM tab2 AS cor0
----
120
-153
181
-231
200
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 50 * col0 * col1 col1, col1 col0 FROM tab0 AS cor0
----
-4850
1
-60750
81
-91350
21

query I rowsort
SELECT ALL + col1 * - 82 + - + col0 * - 17 FROM tab0 cor0
----
-243
-6387
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - COUNT( * ) + + 41 AS col2 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8158
SELECT - COUNT ( * ) + + 41 AS col2 FROM tab0 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 88 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT + col1 DIV + col0 * - - col0 - - col2 + + + 1 AS col1 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-8160
SELECT + col1 / + col0 * - - col0 - - col2 + + + 1 AS col1 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT 68 AS col0, - COUNT( * ) FROM tab2 AS cor0 WHERE - col2 > NULL
----
68
0

skipif mysql # not compatible
query II rowsort label-8161
SELECT 68 AS col0, - COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 > NULL
----
68
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col2 col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT ALL + CAST( NULL AS SIGNED ) / + - 27 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + CAST ( NULL AS INTEGER ) / + - 27 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 5 FROM tab1 WHERE - 38 * - col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL COUNT( ALL 43 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL COUNT ( ALL 43 ) FROM tab2
----
3

query I rowsort
SELECT ALL + col1 + - col1 + 54 FROM tab1
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + col2 >= 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT DISTINCT - col1 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - col1 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - 88 - - col0 FROM tab0 AS cor0
----
-1
-73
9

query I rowsort
SELECT DISTINCT 96 * + + 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT - col0 DIV 94 - ( - col0 ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8172
SELECT - col0 / 94 - ( - col0 ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL ( + 63 ) FROM tab1 AS cor0
----
63
63
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8174
SELECT - + 76, - MIN( CAST( NULL AS SIGNED ) ) + + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-8174
SELECT - + 76, - MIN ( CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-76
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + ( - col1 ) + + + 32 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 21 AS col2, - 64 FROM tab0 AS cor0
----
-21
-64

query I rowsort
SELECT col1 * + + 15 AS col1 FROM tab2 cor0
----
1005
1155
765

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 9 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT - - SUM( ALL + - 33 ) AS col2 FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8179
SELECT - - SUM ( ALL + - 33 ) AS col2 FROM tab2 cor0
----
-99

query I rowsort
SELECT ALL + - 55 * + - col0 AS col0 FROM tab1 WHERE 11 NOT BETWEEN - 4 AND 82 + 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, 6 FROM tab1
----
-14
6
-47
6
-5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT SUM( ALL 95 ) AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-8182
SELECT SUM ( ALL 95 ) AS col0 FROM tab2
----
285

query I rowsort
SELECT DISTINCT 79 + 66 AS col1 FROM tab0
----
145

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 82 * col1 + 80 ) BETWEEN - 60 AND NULL
----

query I rowsort
SELECT 2 AS col1 FROM tab1 AS cor0 WHERE NOT - 83 * - col1 <= NULL
----

query I rowsort
SELECT 90 * 9 * col1 + + col2 FROM tab0
----
17020
65657
909

query I rowsort
SELECT ALL col2 + + 38 + + 3 * + col0 AS col1 FROM tab1 AS cor0
----
287
352
379

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( 99 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT COUNT( * ) * - 10 + 45 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8190
SELECT COUNT ( * ) * - 10 + 45 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL 77 AS col1 FROM tab1 AS cor0 WHERE - 66 * + + col0 IS NOT NULL
----
77
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8192
SELECT CAST( + 26 AS SIGNED ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-8192
SELECT CAST ( + 26 AS INTEGER ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
26
3

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8194
SELECT ALL - 69, 37 - - + col2 * + + CAST( 88 AS DECIMAL ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8194
SELECT ALL - 69, 37 - - + col2 * + + CAST ( 88 AS REAL ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + 6 ) FROM tab1
----
-6
-6
-6

query I rowsort
SELECT + col2 * - col0 - 57 + col2 * - + col0 + + + col2 FROM tab2
----
-2150
-5137
-8699

query I rowsort
SELECT col2 - + 27 + + 61 + + 61 FROM tab0
----
105
142
194

query I rowsort
SELECT ALL col1 * 89 FROM tab0
----
1869
7209
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT DISTINCT col1 DIV - col1 + + + col0 AS col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT col1 / - col1 + + + col0 AS col0 FROM tab2
----
45
63
74

query I rowsort
SELECT col0 + + - col0 * col0 AS col1 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT - 0 + + 92 + + + col0 FROM tab0 AS cor0
----
107
179
189

query I rowsort
SELECT DISTINCT - col0 * 58 AS col2 FROM tab0 cor0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8203
SELECT ALL COUNT( * ) DIV - 9 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL COUNT ( * ) / - 9 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - 62 * + COUNT( * ) AS col0 FROM tab1 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8204
SELECT - 62 * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT ALL col2 DIV - 40 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL col2 / - 40 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT DISTINCT - - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT - - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT - 32 DIV + 41 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT - 32 / + 41 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT 81 = + 98 * - - 17
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT DISTINCT + MIN( ALL 96 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT + MIN ( ALL 96 ) FROM tab2
----
96

query I rowsort
SELECT DISTINCT + col2 * + 51 AS col1 FROM tab1
----
3009
3468
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT COUNT( * ) * COUNT( - + 96 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT COUNT ( * ) * COUNT ( - + 96 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - SUM( 27 ) AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8212
SELECT - SUM ( 27 ) AS col0 FROM tab2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 78 * - 82 - col0 < NULL
----

query I rowsort
SELECT ALL - col2 + + 55 * + 54 FROM tab0 AS cor0
----
2871
2923
2960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 * col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT ALL - - 81 DIV + 49 + col0 * col0 FROM tab0 cor0
----
226
7570
9410

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL - - 81 / + 49 + col0 * col0 FROM tab0 cor0
----
226
7570
9410

query I rowsort
SELECT DISTINCT - - col2 + 20 AS col2 FROM tab0 AS cor0
----
119
30
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 61 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT DISTINCT COUNT( * ) + 62 DIV - 2 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT COUNT ( * ) + 62 / - 2 FROM tab1 AS cor0
----
-28

query II rowsort
SELECT ALL col2, + col0 * + - col1 FROM tab0
----
10
-1827
47
-1215
99
-97

query I rowsort
SELECT DISTINCT - col2 + + - col0 + + col0 * 23 * - 35 AS col2 FROM tab0
----
-12137
-70132
-78281

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col0 AND - col0 * - col2 + - ( - col0 )
----

query I rowsort
SELECT ALL col0 + - - col0 * - col0 AS col2 FROM tab1 AS cor0
----
-2550
-7140
-8190

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = NULL OR NOT col1 + 83 + - - ( - col1 ) * - col1 + - 11 / col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 + 29 FROM tab2 AS cor0
----
-22
-38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT DISTINCT + MIN( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 / + 82 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT + MIN ( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 / + 82 + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8229
SELECT ALL + COUNT( * ) AS col1, - COUNT( * ) * - + 55 * 34 AS col1 FROM tab0 AS cor0
----
3
5610

skipif mysql # not compatible
query II rowsort label-8229
SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) * - + 55 * 34 AS col1 FROM tab0 AS cor0
----
3
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT 62 - + COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT 62 - + COUNT ( * ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT + + col2 col0 FROM tab0 WHERE + - col1 / - + col2 * - CAST( NULL AS SIGNED ) + - col1 + - - col1 >= - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8231
SELECT + + col2 col0 FROM tab0 WHERE + - col1 / - + col2 * - CAST ( NULL AS INTEGER ) + - col1 + - - col1 >= - col1
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT - 50 * - + 89 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + 97 * - col1 FROM tab1
----
-1358
-4559
-485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8234
SELECT + ( 15 ), - 48 AS col1, CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
-48
-3

skipif mysql # not compatible
query III rowsort label-8234
SELECT + ( 15 ), - 48 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
-48
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + - MIN( DISTINCT 8 ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + - MIN ( DISTINCT 8 ) FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8236
SELECT + + 2 / + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT + + 2 / + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + + 3 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + + 3 FROM tab0
----
9

query II rowsort
SELECT ALL 80 * - col0 * col0 AS col2, + col0 AS col2 FROM tab2
----
-169280
46
-327680
64
-450000
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT MIN( + + ( - col1 ) ) AS col0, 41 FROM tab0 AS cor0 WHERE NOT 86 IN ( 87 )
----
-81
41

skipif mysql # not compatible
query II rowsort label-8239
SELECT MIN ( + + ( - col1 ) ) AS col0, 41 FROM tab0 AS cor0 WHERE NOT 86 IN ( 87 )
----
-81
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT DISTINCT + col1 DIV + 7 FROM tab0 AS cor0
----
0
11
3

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + col1 / + 7 FROM tab0 AS cor0
----
0
11
3

query I rowsort
SELECT - - col2 * - + 26 FROM tab1 AS cor0
----
-1534
-1768
-2496

query I rowsort
SELECT - 19 * + col2 / - col2 * - col2 + col2 + 37 - - col2 FROM tab2 AS cor0 WHERE NOT col1 * + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT - 3 DIV - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8243
SELECT - 3 / - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + MIN( - ( + 79 ) ) - + SUM( DISTINCT + + col1 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + - col0 * + + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT + MIN ( - ( + 79 ) ) - + SUM ( DISTINCT + + col1 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + - col0 * + + col1 < NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 46 - col0 <> + 45 + + - col2 / - col2
----

query I rowsort
SELECT DISTINCT col2 * - col0 * + - col0 FROM tab0 cor0
----
10575
75690
931491

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT MIN( ALL col1 ), - 20 * 75 AS col2 FROM tab2
----
51
-1500

skipif mysql # not compatible
query II rowsort label-8248
SELECT MIN ( ALL col1 ), - 20 * 75 AS col2 FROM tab2
----
51
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT ( - COUNT( + col1 ) ) + COUNT( DISTINCT - + 30 ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT ( - COUNT ( + col1 ) ) + COUNT ( DISTINCT - + 30 ) AS col1 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ( MIN( - 96 ) ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-8250
SELECT ( MIN ( - 96 ) ) AS col1 FROM tab0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8251
SELECT DISTINCT + col0 + + CAST( + ( col1 ) AS SIGNED ), 52 col2 FROM tab2
----
141
52
142
52
97
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8251
SELECT DISTINCT + col0 + + CAST ( + ( col1 ) AS INTEGER ), 52 col2 FROM tab2
----
141
52
142
52
97
52

query I rowsort
SELECT - ( - ( - - 40 ) ) AS col2 FROM tab1
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - + col1 + - col0 col2 FROM tab0 AS cor0
----
-1230
-1914
-194

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 49 + 75 NOT IN ( - 69 + - - 78, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT col0 DIV + 5 FROM tab1
----
10
17
18

skipif mysql # not compatible
query I rowsort label-8255
SELECT col0 / + 5 FROM tab1
----
10
17
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL MAX( ALL 24 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL MAX ( ALL 24 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8257
SELECT - CAST( NULL AS SIGNED ) AS col2, col2 AS col2 FROM tab0 WHERE - col0 / 90 - - ( CAST( col1 AS SIGNED ) ) IS NOT NULL
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8257
SELECT - CAST ( NULL AS INTEGER ) AS col2, col2 AS col2 FROM tab0 WHERE - col0 / 90 - - ( CAST ( col1 AS INTEGER ) ) IS NOT NULL
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col0 + - col1 * col1
----

query I rowsort
SELECT DISTINCT - - ( + col0 ) - col0 + col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <= - - 35 + + - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 11 * + + 27 / 88 > + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 - - col1 * - col2 * 83 + - - col0 AS col2, - 96 * - col0 + - 30 + 27 + col0 * col2 * col1 col1 FROM tab0 cor0
----
-17333
26619
-315919
58542
-8021
18912

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8264
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + CAST( - col0 AS SIGNED ) * + ( - col0 ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8264
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + CAST ( - col0 AS INTEGER ) * + ( - col0 ) IS NULL )
----

query I rowsort
SELECT - col1 - + 91 AS col2 FROM tab2
----
-142
-158
-168

query I rowsort
SELECT DISTINCT - 37 * + col1 * col1 AS col1 FROM tab1
----
-7252
-81733
-925

query I rowsort
SELECT DISTINCT 4 * + - 46 AS col0 FROM tab0
----
-184

query II rowsort
SELECT DISTINCT - col2, ( + 91 ) AS col0 FROM tab2
----
-23
91
-40
91
-58
91

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 + - 99 FROM tab1
----
59
-104
68
-146
96
-113

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * 80 - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 56 * - 22 * + col2 AS col0 FROM tab1 AS cor0
----
118272
72688
83776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL + col1 * + + 22 + - CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1701
21
441

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + col1 * + + 22 + - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1701
21
441

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 44 - - - 37 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( + col2 ) + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - 12 + 89 + - - ( + col0 ) FROM tab2 AS cor0
----
147
165
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT + COUNT( * ) + - 2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + COUNT ( * ) + - 2 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8278
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 37 AS col0 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT + 72 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-8281
SELECT + 72 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
216

query I rowsort
SELECT DISTINCT 42 * - + col2 + + col2 + - 97 * - col1 FROM tab2 AS cor0
----
4004
4121
5829

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT 40 + col2 DIV - - col0 FROM tab2
----
40
40
40

skipif mysql # not compatible
query I rowsort label-8283
SELECT 40 + col2 / - - col0 FROM tab2
----
40
40
40

query I rowsort
SELECT ALL - 9 * + - col1 FROM tab1
----
126
423
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT ALL - 4 DIV + col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - 4 / + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 + - 17 AS col1 FROM tab0
----
-2
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT COUNT( - col2 ) + + - 73 AS col0 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT COUNT ( - col2 ) + + - 73 AS col0 FROM tab2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT + ( - COUNT( * ) ) * - COUNT( + 83 ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8288
SELECT DISTINCT + ( - COUNT ( * ) ) * - COUNT ( + 83 ) col1 FROM tab2
----
9

query I rowsort
SELECT - 10 + - - 30 FROM tab2
----
20
20
20

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8291
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8291
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 56 + - 37 + + + col0 * col0 FROM tab1 AS cor0
----
2620
7244
8300

query I rowsort
SELECT DISTINCT 51 + col2 AS col1 FROM tab0 AS cor0
----
150
61
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT - col2 * - ( - col2 ) + col0 * + - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT - col2 * - ( - col2 ) + col0 * + - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT ALL - COUNT( * ) - MAX( ALL - + col0 ) + + 32 DIV + - ( - 35 ) AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - COUNT ( * ) - MAX ( ALL - + col0 ) + + 32 / + - ( - 35 ) AS col1 FROM tab2 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT DISTINCT 63 - + + col1 - ( + col0 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
17
52
75

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT 63 - + + col1 - ( + col0 ) / - col1 AS col1 FROM tab1 AS cor0
----
17
52
75

query I rowsort
SELECT - 72 AS col1 FROM tab1 cor0
----
-72
-72
-72

query I rowsort
SELECT + col1 * - - col0 AS col2 FROM tab2 cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL + MAX( - col2 ) * + + 28 * + + ( 64 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + MAX ( - col2 ) * + + 28 * + + ( 64 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <> - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT ( + COUNT( * ) ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT ( + COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL 41 * col1 AS col1 FROM tab0
----
3321
41
861

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8306
SELECT - col2 * - ( + CAST( - col2 AS SIGNED ) ) + - 52 + + col2 + - 54 col1, + col2 AS col0 FROM tab0
----
-196
10
-2268
47
-9808
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8306
SELECT - col2 * - ( + CAST ( - col2 AS INTEGER ) ) + - 52 + + col2 + - 54 col1, + col2 AS col0 FROM tab0
----
-196
10
-2268
47
-9808
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + 21 + + COUNT( * ) AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-8307
SELECT + 21 + + COUNT ( * ) AS col0 FROM tab2
----
24

query II rowsort
SELECT ALL + col2, col1 - - 90 FROM tab2 AS cor0
----
23
141
40
167
58
157

query I rowsort
SELECT ALL + + 42 + 93 FROM tab2 AS cor0
----
135
135
135

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( col1 ) * - col1 * col1 col0, col1 col2 FROM tab1 AS cor0
----
-103823
47
-125
5
-2744
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= - col2
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 <= + 92 - + col2
----
85
5
59

query I rowsort
SELECT + col1 * + + col1 * + + col0 FROM tab2 AS cor0
----
119646
336675
379456

query II rowsort
SELECT ALL - - ( - col2 ), col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8316
SELECT - MIN( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT - MIN ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - 73 + col2 * - col2 * - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 75 * + + col0, - col1 col1 FROM tab1
----
3825
-14
6375
-5
6825
-47

query III rowsort
SELECT ALL + col2 + col2 AS col2, 23 AS col0, + ( - + col1 ) * + col0 * - + 74 * + col2 + col0 * + 30 AS col0 FROM tab0
----
9 values hashing to bc047facdbeaf959bce008c9dccf09d0

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT + 78 * - 40 AS col2, - MIN( 90 ) FROM tab1
----
-3120
-90

skipif mysql # not compatible
query II rowsort label-8320
SELECT + 78 * - 40 AS col2, - MIN ( 90 ) FROM tab1
----
-3120
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT + COUNT( - + 86 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8321
SELECT + COUNT ( - + 86 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 75 + + 27 FROM tab2
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8323
SELECT - SUM( ALL col1 ) DIV + + SUM( 14 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8323
SELECT - SUM ( ALL col1 ) / + + SUM ( 14 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + SUM( DISTINCT - + 58 ) AS col1 FROM tab2 WHERE - col0 * + col2 <> + 19 * + 8
----
-58

skipif mysql # not compatible
query I rowsort label-8324
SELECT + SUM ( DISTINCT - + 58 ) AS col1 FROM tab2 WHERE - col0 * + col2 <> + 19 * + 8
----
-58

query I rowsort
SELECT 95 * + col1 - + + col0 FROM tab0
----
-2
1908
7680

query I rowsort
SELECT DISTINCT 25 + + col2 AS col0 FROM tab2 AS cor0
----
48
65
83

query I rowsort
SELECT 65 + - - col0 FROM tab1 AS cor0
----
116
150
156

query I rowsort
SELECT + col1 + + + 48 + - + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-18
-48
114

query I rowsort
SELECT ALL 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT + SUM( ALL - CAST( - 70 AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
210

skipif mysql # not compatible
query I rowsort label-8331
SELECT + SUM ( ALL - CAST ( - 70 AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
210

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT + col2 DIV + CAST( + - col1 AS SIGNED ) col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8332
SELECT DISTINCT + col2 / + CAST ( + - col1 AS INTEGER ) col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT - col1 * + + col1 AS col0 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL - MAX( - 39 ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - MAX ( - 39 ) AS col0 FROM tab0
----
39

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 90 - + col0 >= - col2 + + col1
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + ( + MAX( DISTINCT + col2 ) ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + ( + MAX ( DISTINCT + col2 ) ) FROM tab2 cor0
----
58

query I rowsort
SELECT DISTINCT + + 67 * + col2 - - col1 AS col0 FROM tab0 cor0
----
3230
6634
691

query I rowsort
SELECT + + col0 + col0 - - - 29 AS col1 FROM tab1 AS cor0
----
141
153
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 + col2 - - 44, + col1 col0 FROM tab1 cor0
----
188
5
191
14
203
47

query I rowsort
SELECT + 14 + + col0 AS col2 FROM tab0 AS cor0
----
101
111
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT 22 + - COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8341
SELECT 22 + - COUNT ( * ) FROM tab2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT 14 * + + CAST( NULL AS SIGNED ) + 80 / + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT 14 * + + CAST ( NULL AS INTEGER ) + 80 / + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8343
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN + col2 AND - CAST( - 53 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8343
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN + col2 AND - CAST ( - 53 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL < - col0
----

query I rowsort
SELECT DISTINCT ( + col0 ) - 12 * col1 AS col2 FROM tab1
----
-117
-473
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col2 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT ( - col2 ) AS col1, - col0 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-10
-297
-47
-3822
-99
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT + col1 * - 32 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT + col1 * - 32 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col0 * - + col0 FROM tab0 cor0 WHERE NOT - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - + COUNT( * ) * - - 32 - - + ( MIN( - ( + col2 ) ) ) AS col2 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8351
SELECT - + COUNT ( * ) * - - 32 - - + ( MIN ( - ( + col2 ) ) ) AS col2 FROM tab1 AS cor0
----
-192

query I rowsort
SELECT + ( 99 ) FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE NOT ( 35 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8355
SELECT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + + 98 ) AS col2 FROM tab2
----
98
98
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 13 * - - col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 24 BETWEEN - col0 - + - col2 AND + + 36
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / + col0 + 31 NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT ALL 40, col1 AS col1 FROM tab0
----
40
1
40
21
40
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8361
SELECT COUNT( * ) AS col1, 22 * COUNT( * ) FROM tab2
----
3
66

skipif mysql # not compatible
query II rowsort label-8361
SELECT COUNT ( * ) AS col1, 22 * COUNT ( * ) FROM tab2
----
3
66

query I rowsort
SELECT ALL + col0 / + col0 * + 28 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT + + 38 * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8363
SELECT + + 38 * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT col1 DIV + 66 + - col2 - + 34 AS col2 FROM tab2 AS cor0
----
-57
-73
-91

skipif mysql # not compatible
query I rowsort label-8364
SELECT col1 / + 66 + - col2 - + 34 AS col2 FROM tab2 AS cor0
----
-57
-73
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT + MAX( + ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8365
SELECT + MAX ( + ( + - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - ( + 36 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8367
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8367
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8368
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8369
SELECT * FROM tab2 WHERE ( - - 94 + - 16 ) >= - CAST( - col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8369
SELECT * FROM tab2 WHERE ( - - 94 + - 16 ) >= - CAST ( - col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8370
SELECT DISTINCT col2 DIV + + CAST( + + col2 AS SIGNED ) + - col1 + - col0 col0 FROM tab2 AS cor0
----
-140
-141
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8370
SELECT DISTINCT col2 / + + CAST ( + + col2 AS INTEGER ) + - col1 + - col0 col0 FROM tab2 AS cor0
----
-140
-141
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - - MIN( DISTINCT - ( - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - - MIN ( DISTINCT - ( - col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT - MIN( ALL - col2 ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8372
SELECT DISTINCT - MIN ( ALL - col2 ) col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT DISTINCT - - ( - + col1 ), + col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - col1 * - + 34 - + - col0 FROM tab1
----
1689
255
527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT 99 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT 99 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 - - + 31 FROM tab0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + - col1 + - col2 col2 FROM tab1
----
-18
-64
-69

query I rowsort
SELECT ALL + 80 + - col0 AS col2 FROM tab1
----
-11
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT - SUM( - + col1 ) * + COUNT( * ) + - + 99 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT - SUM ( - + col1 ) * + COUNT ( * ) + - + 99 FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 42 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 42 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL MAX( ALL - 3 ) - - 5 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL MAX ( ALL - 3 ) - - 5 FROM tab0 cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8382
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + - + col2 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8382
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - + col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT 85 * + COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-8383
SELECT 85 * + COUNT ( * ) FROM tab1
----
255

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( + ( - + 73 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT + MAX( - + col2 ) * COUNT( * ) AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + MAX ( - + col2 ) * COUNT ( * ) AS col2 FROM tab2
----
-69

query I rowsort
SELECT 34 * + col2 * col0 FROM tab2
----
147900
35972
87040

query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 * col1 FROM tab2 cor0
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT ALL - col2 * col2 DIV + 45 + + 55 * + col0 FROM tab0 AS cor0
----
4783
5118
776

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - col2 * col2 / + 45 + + 55 * + col0 FROM tab0 AS cor0
----
4783
5118
776

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT + - SUM( - ( + col2 ) ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + - SUM ( - ( + col2 ) ) AS col2 FROM tab0 cor0
----
156

query I rowsort
SELECT - col0 * - + 37 AS col2 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT ALL - SUM( - 90 ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL - SUM ( - 90 ) FROM tab2 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT + ( - + MAX( + col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8392
SELECT + ( - + MAX ( + col0 ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ALL - - col0 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8394
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 6 * + col2 ) = - col2 * col1
----

skipif mysql # not compatible
query III rowsort label-8394
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 6 * + col2 ) = - col2 * col1
----

query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT + + COUNT( DISTINCT - - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8396
SELECT + + COUNT ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col2 FROM tab1
----
9
9
9

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - 63 + + col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL - MAX( col1 ) * - ( - 15 ) FROM tab2
----
-1155

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - MAX ( col1 ) * - ( - 15 ) FROM tab2
----
-1155

query I rowsort
SELECT DISTINCT 70 * - 55 AS col2 FROM tab2
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ( + + COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT ( + + COUNT ( * ) ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL 29 AS col2 FROM tab2 WHERE NULL IS NULL
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL col1 * - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 49 * + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * 68 + + col2 AS col2 FROM tab0
----
3243
6831
690

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT - 19 * - MIN( DISTINCT col1 ) AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT - 19 * - MIN ( DISTINCT col1 ) AS col0 FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT - MIN( 90 ) + ( - - COUNT( * ) ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-8407
SELECT - MIN ( 90 ) + ( - - COUNT ( * ) ) FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8408
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( CAST( NULL AS SIGNED ), col0 / col0, + col1 + - 78 - - col0 * 3, - 59 * 92 )
----

skipif mysql # not compatible
query III rowsort label-8408
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( CAST ( NULL AS INTEGER ), col0 / col0, + col1 + - 78 - - col0 * 3, - 59 * 92 )
----

query I rowsort
SELECT + - 8 * - col0 FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT ALL - + col2 * - - 53 AS col0 FROM tab1 AS cor0
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT + 98 AS col2, COUNT( ALL col1 ) col0 FROM tab1
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8411
SELECT + 98 AS col2, COUNT ( ALL col1 ) col0 FROM tab1
----
98
3

query I rowsort
SELECT - col1 * - 14 AS col2 FROM tab0
----
1134
14
294

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT + SUM( DISTINCT - 86 ) FROM tab1 WHERE NOT + - col1 / + - 36 BETWEEN 10 AND NULL
----
-86

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + SUM ( DISTINCT - 86 ) FROM tab1 WHERE NOT + - col1 / + - 36 BETWEEN 10 AND NULL
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * col0 + col1 AS col1 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT ALL + 97 - + ( + + 92 ) FROM tab1 AS cor0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 1 + + - col0 + - + col2 NOT BETWEEN + col2 * - col0 * + col1 * - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT - - CAST( NULL AS SIGNED ) * col0 + col0 + - col1 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT - - CAST ( NULL AS INTEGER ) * col0 + col0 + - col1 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - COUNT( * ) + - 46 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8420
SELECT - COUNT ( * ) + - 46 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT 61 + + col2 FROM tab2 AS cor0
----
101
119
84

query I rowsort
SELECT ( - col2 ) + + col1 AS col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT COUNT( * ) FROM tab0 WHERE + + col1 BETWEEN col2 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT COUNT ( * ) FROM tab0 WHERE + + col1 BETWEEN col2 AND - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT ALL col0 DIV - ( 4 ) AS col2 FROM tab1
----
-12
-21
-22

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL col0 / - ( 4 ) AS col2 FROM tab1
----
-12
-21
-22

query I rowsort
SELECT + 24 * - col1 FROM tab1
----
-1128
-120
-336

query I rowsort
SELECT + + col2 - + 23 AS col0 FROM tab1 AS cor0
----
36
45
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT - - CAST( - 27 AS SIGNED ) FROM tab1 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-8427
SELECT - - CAST ( - 27 AS INTEGER ) FROM tab1 AS cor0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT + 87 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT - ( + MIN( + - 86 ) ) AS col2 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - ( + MIN ( + - 86 ) ) AS col2 FROM tab0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT col1 * + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT col1 * + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col2 + - col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT + 46 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8432
SELECT + 46 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
138

query I rowsort
SELECT - 51 * col1 - col2 FROM tab2 AS cor0
----
-2624
-3475
-3967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT - 59 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8434
SELECT - 59 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT + 60 * - + col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - MAX( - + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - MAX ( - + col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT CAST( - 11 AS SIGNED ) FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-8437
SELECT CAST ( - 11 AS INTEGER ) FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - + 35 * - - 60 + - COUNT( + col2 ) FROM tab0 cor0 WHERE NOT NULL < + 59 + - col0
----
-2100

skipif mysql # not compatible
query I rowsort label-8438
SELECT - + 35 * - - 60 + - COUNT ( + col2 ) FROM tab0 cor0 WHERE NOT NULL < + 59 + - col0
----
-2100

query I rowsort
SELECT ALL 40 * - ( + + ( 74 ) ) AS col0 FROM tab2 AS cor0
----
-2960
-2960
-2960

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 46 * + 72 AS col2 FROM tab1 AS cor0
----
-3312
-3312
-3312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8442
SELECT DISTINCT - MIN( + 22 ) DIV - + COUNT( * ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT - MIN ( + 22 ) / - + COUNT ( * ) AS col1 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT - 18, ( - + COUNT( * ) ) AS col2 FROM tab0
----
-18
-3

skipif mysql # not compatible
query II rowsort label-8443
SELECT - 18, ( - + COUNT ( * ) ) AS col2 FROM tab0
----
-18
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL + COUNT( * ) * - - 44 AS col0 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + COUNT ( * ) * - - 44 AS col0 FROM tab0
----
132

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 57 IS NULL
----

query I rowsort
SELECT ALL 80 * - col0 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL SUM( + col2 ) * 77 * COUNT( * ) FROM tab2
----
27951

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL SUM ( + col2 ) * 77 * COUNT ( * ) FROM tab2
----
27951

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL - - COUNT( * ) FROM tab2 WHERE + col2 + 2 NOT BETWEEN + 17 AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE + col2 + 2 NOT BETWEEN + 17 AND - col1
----
3

query I rowsort
SELECT DISTINCT + - col1 * - + 18 AS col1 FROM tab1 WHERE NULL IS NULL
----
252
846
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT ALL - col1 DIV + col1 + + col2 AS col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - col1 / + col1 + + col2 AS col2 FROM tab1
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT - CAST( NULL AS SIGNED ) * + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT - CAST ( NULL AS INTEGER ) * + - col2 + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT + MIN( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + 75 + ( col0 ) + - col2 AS col1 FROM tab1
----
101
30
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 31 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 31 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 91 * + col0 - + 12 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4629
7723
8269

query I rowsort
SELECT ALL + 38 FROM tab0 cor0 WHERE + col2 * + + 71 = - + col1 * + col2 - - col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 < - ( + col0 ) * - col0
----
0

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 < - ( + col0 ) * - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + 93 - + MIN( ALL col0 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8459
SELECT + 93 - + MIN ( ALL col0 ) FROM tab0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT DISTINCT col2 DIV + - 74 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT col2 / + - 74 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT col1 * + - CAST( NULL AS SIGNED ) * - col0 + 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT col1 * + - CAST ( NULL AS INTEGER ) * - col0 + 32 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT - 73 * - COUNT( * ) col1 FROM tab2
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8462
SELECT - 73 * - COUNT ( * ) col1 FROM tab2
----
219

query I rowsort
SELECT DISTINCT 11 * + + col1 * - col2 FROM tab1 cor0
----
-14784
-3245
-35156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, col1 col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( - col2 )
----

query I rowsort
SELECT col0 * col0 + - 36 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + 59
----

query I rowsort
SELECT 17 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 22 col2 FROM tab2
----
-24
-42
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL + SUM( 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + SUM ( 40 ) FROM tab2
----
120

query I rowsort
SELECT ALL col0 + 5 * col1 FROM tab2
----
301
410
449

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - 66 ) + + 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8472
SELECT * FROM tab0 WHERE CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8472
SELECT * FROM tab0 WHERE CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT COUNT( ALL col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8473
SELECT COUNT ( ALL col2 ) FROM tab0
----
3

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + col2 IN ( 77 / - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 78 col1 FROM tab2 WHERE NOT - 29 + col2 NOT IN ( - col0 * col1 + col2 * - 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT 34 DIV col1 + col1 FROM tab0
----
22
35
81

skipif mysql # not compatible
query I rowsort label-8476
SELECT 34 / col1 + col1 FROM tab0
----
22
35
81

query I rowsort
SELECT DISTINCT - 75 * ( + ( col0 ) ) + + 1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT + col2 FROM tab1 WHERE NULL > CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8478
SELECT + col2 FROM tab1 WHERE NULL > CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 38 + + col0 * col2 = col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab0 WHERE NOT + 22 BETWEEN ( + col2 + + 88 ) AND ( NULL )
----
198
20
94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 4 + col0 NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8482
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 44 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 44 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT col2 DIV 13 + 4 FROM tab0
----
11
4
7

skipif mysql # not compatible
query I rowsort label-8483
SELECT col2 / 13 + 4 FROM tab0
----
11
4
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL - COUNT( + 26 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - COUNT ( + 26 ) FROM tab1
----
-3

query I rowsort
SELECT 64 FROM tab1 WHERE ( + col1 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 90 ) >= ( + col0 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 - + col0 AS col0 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 >= ( - 46 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 <= ( + 27 ) / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - 72 + - MAX( DISTINCT col1 ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-8490
SELECT - 72 + - MAX ( DISTINCT col1 ) FROM tab0
----
-153

query I rowsort
SELECT DISTINCT - 74 + + col2 FROM tab2 AS cor0
----
-16
-34
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 * col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * 84 FROM tab2 AS cor0
----
-4284
-5628
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT COUNT( * ) * 60 AS col0 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT COUNT ( * ) * 60 AS col0 FROM tab1 AS cor0
----
180

query I rowsort
SELECT 35 * 95 FROM tab0 AS cor0
----
3325
3325
3325

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL + SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
199

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT + 9 * - col2 + + 4 FROM tab2 AS cor0
----
-203
-356
-518

query I rowsort
SELECT ALL - col1 - - 50 AS col2 FROM tab1 AS cor0
----
3
36
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + SUM( 53 ) + + COUNT( * ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8501
SELECT + SUM ( 53 ) + + COUNT ( * ) FROM tab2 AS cor0
----
162

query I rowsort
SELECT + 30 + + col1 FROM tab2 cor0
----
107
81
97

query I rowsort
SELECT + 0 + ( + col1 + + col1 ) FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT + col1 + 82 DIV col2 AS col2 FROM tab0 AS cor0
----
1
29
82

skipif mysql # not compatible
query I rowsort label-8505
SELECT + col1 + 82 / col2 AS col2 FROM tab0 AS cor0
----
1
29
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT - 86 DIV 6 + 23 AS col2 FROM tab2 AS cor0 WHERE + 33 + - 75 IS NOT NULL
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8506
SELECT - 86 / 6 + 23 AS col2 FROM tab2 AS cor0 WHERE + 33 + - 75 IS NOT NULL
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT - col1 * CAST( + col0 AS SIGNED ) col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8508
SELECT - col1 * CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + ( col1 ) ) * col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * + - ( col2 ) * - 83 FROM tab0
----
58515
72210
797049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 28 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL - + ( + ( COUNT( * ) ) ) * 64 AS col2 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - + ( + ( COUNT ( * ) ) ) * 64 AS col2 FROM tab0 AS cor0
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT - 70 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 70 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT DISTINCT - col2 DIV + 17 + 88 AS col1 FROM tab2 AS cor0
----
85
86
87

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT - col2 / + 17 + 88 AS col1 FROM tab2 AS cor0
----
85
86
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col2 FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 10 * col2 BETWEEN ( + col1 ) AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 21 col0 FROM tab1 WHERE NULL <> ( + - 19 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8520
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8520
SELECT ALL CAST ( NULL AS REAL ) AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + col1 + - + 30 AS col1 FROM tab1 cor0
----
-16
-25
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 79 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 25 * col2 + + 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( + col2 ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 9 AS col1, ( + + col2 ) col2 FROM tab0 AS cor0
----
9
10
9
47
9
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 61 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 72 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - COUNT( 32 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8529
SELECT - COUNT ( 32 ) FROM tab2
----
-3

query I rowsort
SELECT - col0 * col0 AS col2 FROM tab2 WHERE - + 44 <= NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 25 FROM tab1
----
30
39
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8532
SELECT ALL + 51 DIV + MAX( col2 ) + - COUNT( * ) + - 72 * MIN( 83 ) FROM tab0
----
-5979

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + 51 / + MAX ( col2 ) + - COUNT ( * ) + - 72 * MIN ( 83 ) FROM tab0
----
-5979

query I rowsort
SELECT ( + + 47 ) FROM tab0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL CAST( NULL AS SIGNED ) * + 70 + COUNT( * ) * 19 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL CAST ( NULL AS INTEGER ) * + 70 + COUNT ( * ) * 19 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT - 74 * + 41 + - MIN( DISTINCT + col0 ) - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3077

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - 74 * + 41 + - MIN ( DISTINCT + col0 ) - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT DISTINCT + + ( + - 91 ) - - CAST( - 22 AS SIGNED ) AS col1 FROM tab0 cor0
----
-113

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT + + ( + - 91 ) - - CAST ( - 22 AS INTEGER ) AS col1 FROM tab0 cor0
----
-113

query I rowsort
SELECT - ( + - 31 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( + 68 ) + + 78 + 52 + - col2 FROM tab1
----
-34
-6
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 11 NOT IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + - col1 NOT BETWEEN ( col1 ) AND NULL ) OR ( NULL ) NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + - col1 NOT BETWEEN ( col1 ) AND NULL ) OR ( NULL ) NOT IN ( - col1 )
----
0

query I rowsort
SELECT ALL + col2 * col1 * - col1 * col2 AS col1 FROM tab1 cor0
----
-10214416
-1806336
-87025

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + MIN( + - col0 ) - + - MIN( col2 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8542
SELECT + MIN ( + - col0 ) - + - MIN ( col2 ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - + 41 + + - col0 FROM tab0 AS cor0
----
-128
-138
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8544
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND + ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8544
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT DISTINCT - CAST( + col2 AS SIGNED ) - - col1 * ( 44 ) FROM tab1 AS cor0
----
161
2000
520

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) - - col1 * ( 44 ) FROM tab1 AS cor0
----
161
2000
520

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / ( + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT + - COUNT( * ) * - 29 - - + 30 * + 16 AS col2 FROM tab1 cor0
----
567

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT + - COUNT ( * ) * - 29 - - + 30 * + 16 AS col2 FROM tab1 cor0
----
567

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - + col2 - col1 + col2 AS col0 FROM tab0 WHERE - + col2 IS NULL
----

query II rowsort
SELECT + ( 10 ) AS col0, col1 FROM tab2
----
10
51
10
67
10
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8553
SELECT DISTINCT * FROM tab2 WHERE + CAST( + - col0 AS SIGNED ) NOT BETWEEN - ( + + col1 ) + - col1 AND CAST( NULL AS SIGNED ) * 58
----

skipif mysql # not compatible
query III rowsort label-8553
SELECT DISTINCT * FROM tab2 WHERE + CAST ( + - col0 AS INTEGER ) NOT BETWEEN - ( + + col1 ) + - col1 AND CAST ( NULL AS INTEGER ) * 58
----

query I rowsort
SELECT col0 * + - 99 FROM tab1
----
-5049
-8415
-9009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 * - + col0 * - ( - - col1 ) col2, 3 FROM tab0
----
100845
3
151641
3
8051
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT + SUM( + 6 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT + SUM ( + 6 ) FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8557
SELECT ALL - COUNT( * ), - 51 AS col0 FROM tab2
----
-3
-51

skipif mysql # not compatible
query II rowsort label-8557
SELECT ALL - COUNT ( * ), - 51 AS col0 FROM tab2
----
-3
-51

query I rowsort
SELECT + 30 * + col0 - + 33 FROM tab0 WHERE NOT + - col2 * - 52 + + ( - + 42 ) / col1 BETWEEN ( NULL ) AND ( + 24 )
----
2577
2877
417

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab2 cor0
----
-61

query II rowsort
SELECT ALL col0 AS col0, - 28 + - - col0 FROM tab1 AS cor0
----
51
23
85
57
91
63

query I rowsort
SELECT - col2 * col1 FROM tab0 WHERE NOT + - 60 - + + ( col0 ) + + col2 / - 60 = col0 * col2 + - 67 * 29
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8562
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + col1 ) - - col2 NOT IN ( + col2 * + 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 27 FROM tab1 AS cor0 WHERE ( - 55 + + + 36 ) BETWEEN - 75 AND ( - col0 + col0 )
----
27
27
27

query I rowsort
SELECT ALL - + 93 AS col2 FROM tab1 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT + COUNT( * ) * + 14 + 66 col1 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8566
SELECT DISTINCT + COUNT ( * ) * + 14 + 66 col1 FROM tab1 AS cor0
----
108

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 + + 46 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT - MIN( - col2 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT - MIN ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT - - CAST( + + col1 AS SIGNED ) + - 37 AS col1 FROM tab2 AS cor0
----
14
30
40

skipif mysql # not compatible
query I rowsort label-8569
SELECT - - CAST ( + + col1 AS INTEGER ) + - 37 AS col1 FROM tab2 AS cor0
----
14
30
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8570
SELECT COUNT( * ) + + + 77 - + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT COUNT ( * ) + + + 77 - + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - + col1 * - - 22 AS col2 FROM tab2 WHERE - 18 IS NOT NULL
----
-1122
-1474
-1694

query I rowsort
SELECT ALL + col0 + + ( + - ( + - 58 ) ) AS col1 FROM tab1
----
109
143
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col1 * + - ( + col0 ) + col2 * ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-10
-2697
-47
-1920
-99
-9700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 77 ) col2 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT DISTINCT + + col1 * - 2 * - CAST( NULL AS SIGNED ) + - - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT + + col1 * - 2 * - CAST ( NULL AS INTEGER ) + - - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL - MIN( ALL - - ( + + col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - MIN ( ALL - - ( + + col0 ) ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( 41, col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8579
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( 41, col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8580
SELECT CAST( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) / + + col2 + col0 * 68 * + + 18 AS col0, col0 * col1 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
query II rowsort label-8580
SELECT CAST ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) / + + col2 + col0 * 68 * + + 18 AS col0, col0 * col1 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 = + col0 * 92 + + - 46 + - 44
----

query I rowsort
SELECT + + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT MIN( ALL 75 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8583
SELECT MIN ( ALL 75 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL col0 * 7 FROM tab0 AS cor0
----
105
609
679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8585
SELECT ALL - 0 * MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - 0 * MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) BETWEEN ( NULL ) AND ( + 44 )
----
91
47
68

query I rowsort
SELECT ALL - col2 * 65 FROM tab1
----
-3835
-4420
-6240

query I rowsort
SELECT 60 * + - col0 FROM tab2
----
-2760
-3840
-4500

query I rowsort
SELECT - col1 FROM tab2 WHERE col1 IS NULL AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 NOT BETWEEN + col1 AND NULL )
----

query I rowsort
SELECT + 96 / - - 48 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IN ( 46, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL - + MIN( - - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - + MIN ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8593
SELECT - - 75 DIV COUNT( + + 94 ) + 63 AS col0 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-8593
SELECT - - 75 / COUNT ( + + 94 ) + 63 AS col0 FROM tab0 cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 24 col2 FROM tab0 AS cor0
----
24
24
24

query II rowsort
SELECT ALL + col2, + 16 FROM tab0 AS cor0
----
10
16
47
16
99
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8597
SELECT DISTINCT * FROM tab1 cor0 WHERE + 34 * + 68 - + CAST( + + 99 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8597
SELECT DISTINCT * FROM tab1 cor0 WHERE + 34 * + 68 - + CAST ( + + 99 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL + col0 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + col0 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= col0 * + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8601
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 >= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( col1 * + - col1 ) < NULL )
----

query I rowsort
SELECT ALL + ( col0 ) * - + col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT 37 * COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT 37 * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
114

query I rowsort
SELECT DISTINCT - col1 + - 32 + col2 * - 14 FROM tab0
----
-1419
-193
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + COUNT( * ) - + ( - 21 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8606
SELECT + COUNT ( * ) - + ( - 21 ) FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT col0 - - col2 * - CAST( NULL AS SIGNED ) * - 6 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT col0 - - col2 * - CAST ( NULL AS INTEGER ) * - 6 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 12 + - 80 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT COUNT( * ) - - MAX( DISTINCT - + col1 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8609
SELECT COUNT ( * ) - - MAX ( DISTINCT - + col1 ) FROM tab0
----
2

query I rowsort
SELECT + col0 FROM tab2 WHERE + col0 + + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL 36 + + + 66 * - COUNT( * ) + 59 AS col1 FROM tab1 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL 36 + + + 66 * - COUNT ( * ) + 59 AS col1 FROM tab1 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT - 31 + + - COUNT( * ) * - 87 AS col2 FROM tab0 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - 31 + + - COUNT ( * ) * - 87 AS col2 FROM tab0 AS cor0
----
230

query I rowsort
SELECT + 11 + + + col0 * col0 AS col0 FROM tab0 AS cor0
----
236
7580
9420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col1 + - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 - - col2 + 28, 16 col1 FROM tab1
----
110
16
49
16
82
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8616
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + col2 DIV ( - - col0 ) AS col1 FROM tab0
----
NULL
0
NULL
1
NULL
3

skipif mysql # not compatible
query II rowsort label-8616
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + col2 / ( - - col0 ) AS col1 FROM tab0
----
NULL
0
NULL
1
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT + - MIN( - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8617
SELECT + - MIN ( - col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT - 68, - 7 AS col0 FROM tab1 AS cor0
----
-68
-7
-68
-7
-68
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8619
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - ( - - col0 ) * CAST( + - col0 AS SIGNED ) + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8619
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - ( - - col0 ) * CAST ( + - col0 AS INTEGER ) + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col1, 49 FROM tab2 cor0
----
46
49
64
49
75
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * + - col2 * + + 12 NOT BETWEEN - 65 + + col2 AND 31
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * + - col2 * + + 12 NOT BETWEEN - 65 + + col2 AND 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL + col2 * col1 + 56 AS col0 FROM tab2 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + col2 * col1 + 56 AS col0 FROM tab2 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT COUNT( DISTINCT - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8624
SELECT COUNT ( DISTINCT - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - - 16 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + + col1 * + - col0 AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT - + 45 + + + COUNT( * ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT - + 45 + + + COUNT ( * ) FROM tab1 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= ( col0 ) + - + ( - col2 ) / + col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL COUNT( * ) * + 9 AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL COUNT ( * ) * + 9 AS col1 FROM tab0
----
27

query I rowsort
SELECT ALL + 55 + + + col2 FROM tab2
----
113
78
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT MAX( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT MAX ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE col2 > NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col2 + + 45 + col1 AS col1 FROM tab2 AS cor0
----
54
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT DISTINCT + ( - col0 ) DIV col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + ( - col0 ) / col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
0

query I rowsort
SELECT + 59 + - col1 + + - col0 AS col2 FROM tab1 cor0
----
-31
-6
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - + COUNT( * ) + + 80 AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8636
SELECT - + COUNT ( * ) + + 80 AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT - - col0 + - col1 * + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE col2 * - 83 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT + + col1 + - + CAST( + 1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-8639
SELECT + + col1 + - + CAST ( + 1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT - col1 + - 63 * - col0 AS col2 FROM tab1
----
3199
5350
5686

onlyif mysql # DIV for integer division: 
query II rowsort label-8641
SELECT - 92 DIV - - col2 col0, col2 AS col2 FROM tab2
----
-1
58
-2
40
-4
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8641
SELECT - 92 / - - col2 col0, col2 AS col2 FROM tab2
----
-1
58
-2
40
-4
23

query I rowsort
SELECT ALL + col2 + + - col2 FROM tab0 WHERE NOT + ( + col0 ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8643
SELECT DISTINCT COUNT( * ) AS col2, + 82 AS col0 FROM tab0 AS cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-8643
SELECT DISTINCT COUNT ( * ) AS col2, + 82 AS col0 FROM tab0 AS cor0
----
3
82

query III rowsort
SELECT * FROM tab2 WHERE NOT - 58 BETWEEN 38 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 55 AS col1 FROM tab0
----
55
55
55

onlyif mysql # DIV for integer division: 
query II rowsort label-8646
SELECT - + col0 * + 66, - 41 DIV - col2 * + + 74 AS col2 FROM tab1 AS cor0
----
-3366
0
-5610
0
-6006
0

skipif mysql # not compatible
query II rowsort label-8646
SELECT - + col0 * + 66, - 41 / - col2 * + + 74 AS col2 FROM tab1 AS cor0
----
-3366
0
-5610
0
-6006
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8647
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8647
SELECT CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT SUM( DISTINCT - + col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8648
SELECT SUM ( DISTINCT - + col2 ) col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT + - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

query II rowsort
SELECT DISTINCT - col2 AS col2, ( 11 ) AS col0 FROM tab0
----
-10
11
-47
11
-99
11

query II rowsort
SELECT ALL col2, + col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT CAST( + col0 AS SIGNED ) col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8652
SELECT CAST ( + col0 AS INTEGER ) col0 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - 21 * - - col2 + + col2 AS col1 FROM tab0
----
-205722
-2090
-46342

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL MAX( col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8655
SELECT ALL MAX ( col0 ) col0 FROM tab0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - - col0 NOT IN ( - ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8657
SELECT ALL col0 + - CAST( + col2 AS SIGNED ) + - col0 DIV col2 FROM tab1 AS cor0
----
-45
22
25

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL col0 + - CAST ( + col2 AS INTEGER ) + - col0 / col2 FROM tab1 AS cor0
----
-45
22
25

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 39 AS col1 FROM tab0
----
-42
18
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL + col2 * + col1 + + col0 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
293
3837
384

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL + col2 * + col1 + + col0 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
293
3837
384

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT + COUNT( + 37 ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8661
SELECT + COUNT ( + 37 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + 75 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( ( NOT - col0 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( ( NOT - col0 IS NOT NULL ) )
----
0

query I rowsort
SELECT ALL - 76 + 69 - + + 72 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT ALL - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) / MAX( ALL ( col2 ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) / MAX ( ALL ( col2 ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT ALL - 48 * - + col0 DIV - col0 - col2 FROM tab1 AS cor0
----
-107
-116
-144

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL - 48 * - + col0 / - col0 - col2 FROM tab1 AS cor0
----
-107
-116
-144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col1 = col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col0 * - + col0 - + + col2 + - + 10 + + 67 * - 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - + col2 AS col2 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT ALL col2 - - 34 FROM tab2
----
57
74
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT 18 DIV + col0 - - + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8671
SELECT 18 / + col0 - - + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT 74 + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-8672
SELECT 74 + COUNT ( * ) FROM tab1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT 25 DIV + 5 + 63 - col2 AS col2 FROM tab1
----
-28
0
9

skipif mysql # not compatible
query I rowsort label-8673
SELECT 25 / + 5 + 63 - col2 AS col2 FROM tab1
----
-28
0
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8674
SELECT - 52 * - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT - 52 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT col1 + col0 + + - CAST( + 31 AS SIGNED ) AS col1 FROM tab1
----
107
34
59

skipif mysql # not compatible
query I rowsort label-8675
SELECT col1 + col0 + + - CAST ( + 31 AS INTEGER ) AS col1 FROM tab1
----
107
34
59

query I rowsort
SELECT col0 + - + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
1035
2520
4292

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 83 IS NULL
----

query I rowsort
SELECT + + ( + - 32 ) FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT COUNT( * ) * + 28 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
252

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT COUNT ( * ) * + 28 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
252

query II rowsort
SELECT + 92 AS col0, + 30 AS col1 FROM tab1
----
92
30
92
30
92
30

query I rowsort
SELECT 27 * - col1 AS col0 FROM tab1
----
-1269
-135
-378

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - + 90 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 AS col1, - col2 + col0 FROM tab0 AS cor0
----
10
77
47
-32
99
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT COUNT( * ) * + 53 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
159

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT COUNT ( * ) * + 53 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
159

query I rowsort
SELECT + col2 * + ( col1 ) + + col2 AS col1 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT + col0 + - 12 FROM tab2
----
34
52
63

query II rowsort
SELECT - col0 * col1 + col0, + col1 FROM tab2
----
-2300
51
-4864
77
-4950
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT SUM( ALL - 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8689
SELECT SUM ( ALL - 8 ) FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT - COUNT( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - COUNT ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 33 * - 91 FROM tab2 AS cor0
----
-3003
-3003
-3003

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT col0 - + 94 NOT BETWEEN NULL AND ( + 8 )
----

query I rowsort
SELECT DISTINCT - col2 + col0 - - col1 AS col0 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8694
SELECT DISTINCT + col2 + + - ( col0 ) DIV - ( col2 ) + + CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
198
28
94

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT + col2 + + - ( col0 ) / - ( col2 ) + + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
198
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + + COUNT( * ) + + + 93 + 93 * - 65 FROM tab0 AS cor0
----
-5949

skipif mysql # not compatible
query I rowsort label-8695
SELECT + + COUNT ( * ) + + + 93 + 93 * - 65 FROM tab0 AS cor0
----
-5949

query I rowsort
SELECT DISTINCT col0 * - ( - 32 ) + + 59 - - col2 FROM tab2 AS cor0
----
1554
2147
2517

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + MAX( - ( 41 ) ) AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + MAX ( - ( 41 ) ) AS col0 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT - ( + + col0 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT AVG ( DISTINCT col2 ) * - 0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT AVG ( DISTINCT col2 ) * - 0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT DISTINCT 38 - + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT 38 - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 78 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL - 55 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - 55 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL < ( NULL ) )
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE - - 50 IS NULL
----

query I rowsort
SELECT - - 0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( col2 ) FROM tab1 AS cor0 WHERE NULL < col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 89 + - col0 = ( + col1 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT MAX( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8708
SELECT MAX ( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 79 + + col2 col0 FROM tab0 AS cor0
----
-1649
-6352
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT ALL col0 DIV + - col1 + 15 AS col0 FROM tab2 AS cor0
----
14
15
15

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL col0 / + - col1 + 15 AS col0 FROM tab2 AS cor0
----
14
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT 8 + + 26 < + - col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8711
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT 8 + + 26 < + - col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT 94 DIV - - 72 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8712
SELECT 94 / - - 72 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 99 * + - 17 FROM tab0 AS cor0
----
1683
1683
1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT CAST( + - CAST( 84 AS SIGNED ) AS SIGNED ) * + 1 AS col1 FROM tab0 cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-8714
SELECT CAST ( + - CAST ( 84 AS INTEGER ) AS INTEGER ) * + 1 AS col1 FROM tab0 cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + - col2 * - col0 - 45 + 19 * col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT MAX( ALL - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT + + col2 FROM tab2 WHERE + + 77 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT ALL CAST( NULL AS SIGNED ) * - - MIN( + + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL CAST ( NULL AS INTEGER ) * - - MIN ( + + col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL CAST( + - col2 AS SIGNED ) + col1 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL CAST ( + - col2 AS INTEGER ) + col1 FROM tab2
----
28
37
9

query I rowsort
SELECT col1 * - col0 * - + 88 FROM tab1
----
37400
376376
62832

query III rowsort
SELECT * FROM tab2 WHERE + + 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT COUNT( + 61 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8723
SELECT COUNT ( + 61 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 * - col2 + - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-120
-2303
-9999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 56 * + - 6 + + 0 + + - 39 * - - col0, col0 * - - col1 col0 FROM tab2 AS cor0
----
-1458
2346
-2160
4928
-2589
5025

query I rowsort
SELECT DISTINCT + 36 + + + col2 AS col2 FROM tab2 AS cor0
----
59
76
94

query II rowsort
SELECT 92 - 49 AS col0, - 88 * col0 AS col2 FROM tab0 AS cor0
----
43
-1320
43
-7656
43
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + + col2 <> NULL
----
0

query II rowsort
SELECT col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8730
SELECT ALL CAST( - + MIN( - ( + 64 ) ) AS SIGNED ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL CAST ( - + MIN ( - ( + 64 ) ) AS INTEGER ) FROM tab0
----
64

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT 35 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8732
SELECT + CAST( NULL AS SIGNED ) AS col2, - col1 * col1 * - col1 * - - col2 AS col0 FROM tab0
----
NULL
24977727
NULL
92610
NULL
99

skipif mysql # not compatible
query II rowsort label-8732
SELECT + CAST ( NULL AS INTEGER ) AS col2, - col1 * col1 * - col1 * - - col2 AS col0 FROM tab0
----
NULL
24977727
NULL
92610
NULL
99

query I rowsort
SELECT 81 * - 9 AS col0 FROM tab0
----
-729
-729
-729

query I rowsort
SELECT ALL - 0 * + + 40 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 14 * - col2 * col0 * - col2 FROM tab2 AS cor0
----
-1433600
-340676
-3532200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 49 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT - CAST( MAX( ALL + 0 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8737
SELECT - CAST ( MAX ( ALL + 0 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT DISTINCT + COUNT( * ) * - - 85 AS col2, 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
765
73

skipif mysql # not compatible
query II rowsort label-8738
SELECT DISTINCT + COUNT ( * ) * - - 85 AS col2, 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
765
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8739
SELECT + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) DIV + - 45 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8739
SELECT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - 45 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 col1 FROM tab0 AS cor0
----
53

query I rowsort
SELECT ALL - 23 + - 23 + + col1 AS col0 FROM tab1 AS cor0
----
-32
-41
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < + col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT 18 + + 59 + col1 * + col2 * + - col0 * - CAST( NULL AS SIGNED ) * - col2 * col0 + - ( 36 ) + - col0 + - - col1 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT 18 + + 59 + col1 * + col2 * + - col0 * - CAST ( NULL AS INTEGER ) * - col2 * col0 + - ( 36 ) + - col0 + - - col1 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT + 87 * - COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT + 87 * - COUNT ( * ) FROM tab0
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT + SUM( DISTINCT + + col0 ) FROM tab2 WHERE 48 >= col2
----
110

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT + SUM ( DISTINCT + + col0 ) FROM tab2 WHERE 48 >= col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT 0 * COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT 0 * COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT 65 + - SUM( + - col1 ) FROM tab2
----
260

skipif mysql # not compatible
query I rowsort label-8748
SELECT 65 + - SUM ( + - col1 ) FROM tab2
----
260

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 <> NULL )
----

query I rowsort
SELECT - col2 + - 50 FROM tab1
----
-109
-118
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT col0 / ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT col0 / ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT DISTINCT - + 24 AS col1 FROM tab0 WHERE NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT - + 24 AS col1 FROM tab0 WHERE NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8753
SELECT ALL - 54, - 40 + - MAX( ALL + 29 ) AS col1 FROM tab1 AS cor0
----
-54
-69

skipif mysql # not compatible
query II rowsort label-8753
SELECT ALL - 54, - 40 + - MAX ( ALL + 29 ) AS col1 FROM tab1 AS cor0
----
-54
-69

query I rowsort
SELECT - - 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + col2 + col1 / - col1 - + 94 + + col1 + - ( col0 ) FROM tab0 WHERE NULL NOT IN ( - 86 * + - col0 )
----

query I rowsort
SELECT - 89 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL - 50 + - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-4
14
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT - COUNT( * ) AS col0, 87 FROM tab2 AS cor0
----
-3
87

skipif mysql # not compatible
query II rowsort label-8758
SELECT - COUNT ( * ) AS col0, 87 FROM tab2 AS cor0
----
-3
87

query II rowsort
SELECT + col0 AS col1, ( col1 ) FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT DISTINCT MIN( + CAST( col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT MIN ( + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT + + SUM( - 24 ) AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-72

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + + SUM ( - 24 ) AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-72

query III rowsort
SELECT + col1, col0, col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to 3e61e0cb76f22a0c9aa0bf645cb73bb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 13 col1 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT + + COUNT( * ) * - - COUNT( * ) - - 94 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8764
SELECT + + COUNT ( * ) * - - COUNT ( * ) - - 94 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + - col0 * - - col2 * + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT 12 - + 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT COUNT( * ) * + 4 + - MIN( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8768
SELECT COUNT ( * ) * + 4 + - MIN ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT - ( - col0 ) + - 61 AS col1 FROM tab0 AS cor0
----
-46
26
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col0 col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT - 86 * - col0 FROM tab0 AS cor0
----
1290
7482
8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * - - col0 * + 60 col1 FROM tab0 AS cor0
----
167040
186240
28800

query I rowsort
SELECT DISTINCT - + col0 * - - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE 14 * 63 IS NULL
----

query I rowsort
SELECT ALL 49 * + col1 FROM tab1
----
2303
245
686

query I rowsort
SELECT + col0 * - + 78 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL - COUNT( * ) + + MAX( - col0 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL - COUNT ( * ) + + MAX ( - col0 ) FROM tab2
----
-49

query I rowsort
SELECT ALL + col0 + - + col2 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL 69 + - + 3 + col2 + 42 + - col2 * - col0 AS col1 FROM tab1
----
5100
5182
6364

query I rowsort
SELECT ALL ( + col0 ) * + col2 * - col2 + + + col2 AS col1 FROM tab1 AS cor0
----
-295826
-420716
-469920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < - ( - col1 ) + - 22
----
15
81
47

query II rowsort
SELECT col2 AS col0, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT - CAST( NULL AS SIGNED ) * col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT - CAST ( NULL AS INTEGER ) * col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 46, 35 AS col1 FROM tab0 AS cor0
----
46
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT ALL - 78 * - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - 78 * - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT ALL COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8786
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT col0 FROM tab2 WHERE NOT + col2 * col0 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8787
SELECT col0 FROM tab2 WHERE NOT + col2 * col0 * + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + 20 AS col0, 73 * - col1 FROM tab0
----
20
-1533
20
-5913
20
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8789
SELECT - MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
-46

query II rowsort
SELECT + col1, - col2 * - col1 FROM tab1
----
14
1344
47
3196
5
295

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT DISTINCT - 45, MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
-45
51

skipif mysql # not compatible
query II rowsort label-8791
SELECT DISTINCT - 45, MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
-45
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8792
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0
----
3
-3

query II rowsort
SELECT DISTINCT + 87 AS col0, col1 FROM tab2 AS cor0
----
87
51
87
67
87
77

query I rowsort
SELECT ALL - - 65 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT ALL 21 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
21
21
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = + col1 * + col1
----

query II rowsort
SELECT + 19 + 30 AS col2, col1 FROM tab2 AS cor0
----
49
51
49
67
49
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8798
SELECT - CAST( NULL AS DECIMAL ) * - 99 + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT - CAST ( NULL AS REAL ) * - 99 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL 20 AS col0, - col0 FROM tab2
----
20
-46
20
-64
20
-75

query I rowsort
SELECT - col2 + - - 34 AS col2 FROM tab2
----
-24
-6
11

query I rowsort
SELECT + + 76 FROM tab2 WHERE - col1 / - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8802
SELECT DISTINCT col1 + - ( CAST( 10 AS SIGNED ) ) FROM tab0
----
-9
11
71

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT col1 + - ( CAST ( 10 AS INTEGER ) ) FROM tab0
----
-9
11
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 * + - ( + - col0 ) + col2 + + - ( - col1 ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8803
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 * + - ( + - col0 ) + col2 + + - ( - col1 ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ( + 49 ) - COUNT( * ) + COUNT( col2 ) col2 FROM tab1 cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8804
SELECT ( + 49 ) - COUNT ( * ) + COUNT ( col2 ) col2 FROM tab1 cor0
----
49

query I rowsort
SELECT ALL - 36 - 30 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT + MIN( DISTINCT col2 ) - - 9 AS col0 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8806
SELECT + MIN ( DISTINCT col2 ) - - 9 AS col0 FROM tab1 AS cor0
----
68

query I rowsort
SELECT DISTINCT 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT ALL - 9 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 60 * col1 AS col0 FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT ALL - 51 AS col0 FROM tab0 cor0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 + - - col2 col1 FROM tab1 AS cor0
----
4345
484
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 46 col0 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL + MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT + ( - CAST( + 72 AS SIGNED ) ) FROM tab1 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-8815
SELECT + ( - CAST ( + 72 AS INTEGER ) ) FROM tab1 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + 98 + + - col1 * + col1 col0 FROM tab1 AS cor0
----
4802
6709
8305

query I rowsort
SELECT DISTINCT + - col2 + - col1 FROM tab0 WHERE + 68 IS NOT NULL
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL 38 * + MIN( ALL - + 73 ) AS col1 FROM tab2
----
-2774

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL 38 * + MIN ( ALL - + 73 ) AS col1 FROM tab2
----
-2774

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 < NULL
----

query I rowsort
SELECT col1 * - 12 FROM tab1
----
-168
-564
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT 17 * - COUNT( * ) * + - 65 FROM tab1
----
3315

skipif mysql # not compatible
query I rowsort label-8821
SELECT 17 * - COUNT ( * ) * + - 65 FROM tab1
----
3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT DISTINCT COUNT( * ) DIV SUM( - col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT COUNT ( * ) / SUM ( - col2 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL - COUNT( * ) + - - 94 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - COUNT ( * ) + - - 94 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT 88 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8824
SELECT 88 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( 53 ) FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + - col1 * - 93 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + - col1 * - 93 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col0 + col1 AS col1, + 94 FROM tab2
----
141
94
142
94
97
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT - 39 AS col1, COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
-39
3

skipif mysql # not compatible
query II rowsort label-8828
SELECT - 39 AS col1, COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
-39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 45 AS col1, - col1 col2 FROM tab1 AS cor0
----
-45
-14
-45
-47
-45
-5

query II rowsort
SELECT - 96 + + col1, - 74 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 AS col0, + 89 * + col0 + col2 col0 FROM tab1 AS cor0
----
-59
7624
-68
8167
-96
4635

query I rowsort
SELECT ALL - col0 + - - col0 + - col2 AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT DISTINCT + COUNT( * ) AS col0, 0 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-8833
SELECT DISTINCT + COUNT ( * ) AS col0, 0 FROM tab1 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT DISTINCT - + col0 - + CAST( NULL AS SIGNED ) + + + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT - + col0 - + CAST ( NULL AS INTEGER ) + + + col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + + col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 10 - - 16 FROM tab2
----
26
26
26

query I rowsort
SELECT - col2 - + 51 AS col2 FROM tab2
----
-109
-74
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT + SUM( - + col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT DISTINCT + SUM ( - + col2 ) col0 FROM tab1
----
-223

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8839
SELECT COUNT( * ) + COUNT( * ) AS col0, COUNT( * ) + + + CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab2
----
6
NULL

skipif mysql # not compatible
query II rowsort label-8839
SELECT COUNT ( * ) + COUNT ( * ) AS col0, COUNT ( * ) + + + CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab2
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + ( MAX( DISTINCT - col0 ) ) + + - 57 AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-8840
SELECT + ( MAX ( DISTINCT - col0 ) ) + + - 57 AS col2 FROM tab0
----
-72

query I rowsort
SELECT DISTINCT + 80 FROM tab1 AS cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT COUNT( + col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8842
SELECT DISTINCT COUNT ( + col1 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8844
SELECT ALL 37, COUNT( * ) AS col2 FROM tab1
----
37
3

skipif mysql # not compatible
query II rowsort label-8844
SELECT ALL 37, COUNT ( * ) AS col2 FROM tab1
----
37
3

query I rowsort
SELECT + + 27 * - 58 FROM tab0 AS cor0
----
-1566
-1566
-1566

query I rowsort
SELECT - - ( + + col1 ) * - - col2 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 34 + 30 * col0 AS col0, - 0 - 13 col0 FROM tab2 AS cor0 WHERE NOT col0 + - col1 = - ( + + 54 )
----
1414
-13
1954
-13
2284
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT + CAST( 22 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-8848
SELECT + CAST ( 22 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT col2 / ( + CAST( NULL AS SIGNED ) ) + + + 34 + + col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT col2 / ( + CAST ( NULL AS INTEGER ) ) + + + 34 + + col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT 56 * + - CAST( NULL AS SIGNED ) / + 55 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT 56 * + - CAST ( NULL AS INTEGER ) / + 55 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT - CAST( 74 AS SIGNED ) FROM tab0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8852
SELECT - CAST ( 74 AS INTEGER ) FROM tab0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + MAX( + ( col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8853
SELECT + MAX ( + ( col2 ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT COUNT( * ) + + + 50 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-8854
SELECT COUNT ( * ) + + + 50 FROM tab0
----
53

query II rowsort
SELECT DISTINCT + 77 * - col1 AS col2, + 51 + col0 * - 99 * - col0 AS col2 FROM tab1
----
-1078
257550
-3619
819870
-385
715326

query I rowsort
SELECT 86 + 5 AS col2 FROM tab2
----
91
91
91

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + + col2 IS NULL
----

query I rowsort
SELECT + 28 + 12 AS col2 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL MAX( - + ( col0 ) ) + + - 64 AS col1 FROM tab2
----
-110

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL MAX ( - + ( col0 ) ) + + - 64 AS col1 FROM tab2
----
-110

query III rowsort
SELECT * FROM tab0 WHERE col1 + + + col2 + - col1 + + - ( - + 66 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 71 + - + col2 FROM tab1 AS cor0
----
-130
-139
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 94 + + col2 + + col2 FROM tab2 AS cor0
----
-4278
-5936
-6934

query I rowsort
SELECT col1 * + ( 49 ) FROM tab1
----
2303
245
686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8866
SELECT ALL col0 * + col0 + col2 FROM tab1 WHERE NOT - col1 - - + 46 + + CAST( - + col2 AS SIGNED ) * CAST( + - col1 AS SIGNED ) IS NULL
----
2697
7284
8349

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL col0 * + col0 + col2 FROM tab1 WHERE NOT - col1 - - + 46 + + CAST ( - + col2 AS INTEGER ) * CAST ( + - col1 AS INTEGER ) IS NULL
----
2697
7284
8349

query I rowsort
SELECT DISTINCT col0 * col2 * + - ( - col1 ) * col1 FROM tab2
----
15178240
19527150
2751858

query I rowsort
SELECT DISTINCT col2 + + 56 FROM tab1
----
115
124
152

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT - + ( MAX( ALL + - col1 ) ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8870
SELECT DISTINCT - + ( MAX ( ALL + - col1 ) ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - ( + 4 ) FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT COUNT( 65 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8872
SELECT COUNT ( 65 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT ( 10 ) + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT ( 10 ) + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 76 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1748
-3040
-4408

query I rowsort
SELECT ALL - + ( - 36 ) AS col1 FROM tab1 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * - 37 col1 FROM tab2 cor0
----
182336
185925
86802

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab0 cor0 WHERE NOT col2 >= + - col2 + - 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8879
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) AS col1, - 72 + + COUNT( * ) FROM tab1 AS cor0
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) AS col1, - 72 + + COUNT ( * ) FROM tab1 AS cor0
----
NULL
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT 69 DIV + - 64 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8880
SELECT 69 / + - 64 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL COUNT( * ) + - - MIN( DISTINCT - ( + 62 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL COUNT ( * ) + - - MIN ( DISTINCT - ( + 62 ) ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT col2 + + - 35 AS col2 FROM tab1
----
24
33
61

query I rowsort
SELECT ALL + col2 + 89 AS col0 FROM tab0
----
136
188
99

query I rowsort
SELECT + 43 * col1 + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - + 18 + - + 16 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT + - ( - - col0 ) - - col1 * + 95 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < + - col2 + - 92 - + CAST( col1 AS SIGNED ) / - col1
----

skipif mysql # not compatible
query I rowsort label-8886
SELECT + - ( - - col0 ) - - col1 * + 95 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < + - col2 + - 92 - + CAST ( col1 AS INTEGER ) / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - - ( - 71 ) * + + MIN( DISTINCT - + 12 ) FROM tab0 cor0
----
852

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - - ( - 71 ) * + + MIN ( DISTINCT - + 12 ) FROM tab0 cor0
----
852

query I rowsort
SELECT 79 * + 38 AS col1 FROM tab0
----
3002
3002
3002

query I rowsort
SELECT DISTINCT - 73 + col2 AS col1 FROM tab2
----
-15
-33
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8890
SELECT DISTINCT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) * col0 ) = + 10
----

skipif mysql # not compatible
query III rowsort label-8890
SELECT DISTINCT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) * col0 ) = + 10
----

query I rowsort
SELECT col2 * - 96 FROM tab0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8892
SELECT ALL * FROM tab0 WHERE + 86 < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8892
SELECT ALL * FROM tab0 WHERE + 86 < CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL + COUNT( - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + COUNT ( - col0 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 + col2 col0 FROM tab0
----
-39
-76
13

query I rowsort
SELECT DISTINCT - col1 * + 88 FROM tab1
----
-1232
-4136
-440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 98 ) col1 FROM tab2
----
98
98
98

query I rowsort
SELECT + ( col2 ) * - col1 + - ( 30 ) AS col0 FROM tab2
----
-1203
-3110
-3916

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) = col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - ( col2 * + 78 ) + col1 > NULL
----

query I rowsort
SELECT DISTINCT col2 * 58 AS col0 FROM tab0
----
2726
5742
580

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT 57 + + col1 DIV - 77 AS col2 FROM tab2
----
56
57
57

skipif mysql # not compatible
query I rowsort label-8901
SELECT 57 + + col1 / - 77 AS col2 FROM tab2
----
56
57
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT 26 DIV ( col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT 26 / ( col0 ) AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 75 col1 FROM tab0
----
-6
54
74

query I rowsort
SELECT ALL col1 * - 5 + col2 FROM tab1
----
-167
26
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT + 0 DIV 36 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8905
SELECT + 0 / 36 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * col0 + + ( + col1 ) col2 FROM tab0
----
4371
4851
831

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8908
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) + col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8908
SELECT ALL + ( + CAST ( NULL AS REAL ) ) + col1 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + ( COUNT( * ) ) col2 FROM tab0 WHERE NOT ( - col0 + - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8909
SELECT + ( COUNT ( * ) ) col2 FROM tab0 WHERE NOT ( - col0 + - col1 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT DISTINCT - col1 DIV + col0 + col1 * col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - col1 / + col0 + col1 * col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT col2 NOT IN ( col1 * + col1 + - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE 55 + + col2 IS NULL
----

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab0 WHERE ( + col1 + + 21 ) IS NOT NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT MIN( - 66 ) DIV COUNT( * ) - - COUNT( 74 ) FROM tab0 WHERE NOT col2 IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-8914
SELECT MIN ( - 66 ) / COUNT ( * ) - - COUNT ( 74 ) FROM tab0 WHERE NOT col2 IS NULL
----
-19

query I rowsort
SELECT ALL 10 FROM tab1 cor0
----
10
10
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND col2 + - col2
----

query I rowsort
SELECT - col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8918
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) * col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) * col1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN + 21 AND 28
----
51

query I rowsort
SELECT + 90 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + col2 + 74 )
----

query I rowsort
SELECT ALL - 29 * col1 AS col1 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT COUNT( * ) * 37 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-8922
SELECT COUNT ( * ) * 37 FROM tab0 AS cor0
----
111

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 20 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 81 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 - col0 BETWEEN col1 / + col1 - col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT ALL CAST( 99 AS SIGNED ) col0 FROM tab0 AS cor0
----
99
99
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8926
SELECT ALL CAST ( 99 AS INTEGER ) col0 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 13 FROM tab0 cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN NULL AND ( - 7 ) OR NOT + 17 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT 38 + + COUNT( - 75 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-8930
SELECT 38 + + COUNT ( - 75 ) FROM tab0
----
41

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT + 52 * - MIN( ALL + col1 ) + 66 * 50 col2 FROM tab2
----
648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8932
SELECT + 52 * - MIN ( ALL + col1 ) + 66 * 50 col2 FROM tab2
----
648

query I rowsort
SELECT - col1 * col0 FROM tab0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT - 69 + + 90 AS col0 FROM tab1
----
21
21
21

query I rowsort
SELECT + col0 + + col1 * 17 FROM tab2
----
1214
1373
913

query I rowsort
SELECT col2 * - - col0 + 45 AS col0 FROM tab0
----
750
915
9648

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT + SUM( ALL + 71 ) + 44 AS col0 FROM tab2 WHERE NULL IS NULL
----
257

skipif mysql # not compatible
query I rowsort label-8937
SELECT + SUM ( ALL + 71 ) + 44 AS col0 FROM tab2 WHERE NULL IS NULL
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL + MAX( ALL 70 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL OR NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + MAX ( ALL 70 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL OR NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + ( 33 ) FROM tab1
----
-18
-52
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN NULL AND col2 / + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 88 ) - col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 77 * - col1 BETWEEN ( col2 / col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 77 * - col1 BETWEEN ( col2 / col2 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8943
SELECT ALL * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8943
SELECT ALL * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 99 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( 16 ) - 5 AS col2 FROM tab1 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT col2 DIV ( - col0 ) + + 74 AS col0 FROM tab2 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-8946
SELECT col2 / ( - col0 ) + + 74 AS col0 FROM tab2 AS cor0
----
74
74
74

query II rowsort
SELECT DISTINCT col1 AS col0, 41 + - + 35 + + col0 FROM tab1
----
14
57
47
97
5
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT 16 * - col2 + - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT DISTINCT - - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT - - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + ( ( + 38 ) ) FROM tab1 AS cor0
----
123
129
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + 58 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + 58 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 cor0 WHERE - col0 * + - 36 IS NULL
----

query II rowsort
SELECT col1 AS col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + col0 * + col0 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT - col0 * CAST( + - col2 AS SIGNED ) + + col0 FROM tab0 cor0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-8956
SELECT - col0 * CAST ( + - col2 AS INTEGER ) + + col0 FROM tab0 cor0
----
720
957
9700

query II rowsort
SELECT ALL - + col2 AS col2, + 92 FROM tab1 AS cor0
----
-59
92
-68
92
-96
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT DISTINCT col2 DIV + - col2 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT col2 / + - col2 AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT ALL SUM( col1 ), 31 AS col1 FROM tab1
----
66
31

skipif mysql # not compatible
query II rowsort label-8959
SELECT ALL SUM ( col1 ), 31 AS col1 FROM tab1
----
66
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * - col2 col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT ALL - CAST( NULL AS SIGNED ) / - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL - CAST ( NULL AS INTEGER ) / - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( - col0 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * 96 - col0 + 23 * - 62 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + + 16 + 95 IN ( 32 * - col1 )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT ( - - 59 + - + col1 / 46 ) NOT BETWEEN + 86 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT ALL + MIN( + col0 ) AS col0, + COUNT( * ) AS col2 FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-8966
SELECT ALL + MIN ( + col0 ) AS col0, + COUNT ( * ) AS col2 FROM tab2
----
46
3

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col2 * - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8968
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( - + CAST( NULL AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8968
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( - + CAST ( NULL AS INTEGER ) ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8969
SELECT * FROM tab0 WHERE NOT - ( + + 9 ) NOT IN ( - ( - CAST( NULL AS SIGNED ) ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-8969
SELECT * FROM tab0 WHERE NOT - ( + + 9 ) NOT IN ( - ( - CAST ( NULL AS INTEGER ) ) * col2 )
----

query I rowsort
SELECT col2 + - 24 AS col2 FROM tab1
----
35
44
72

query I rowsort
SELECT - + col1 + - col2 - + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-108
-51
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - col0 + 15 AS col2 FROM tab1 AS cor0
----
-36
-70
-76

query I rowsort
SELECT col0 * + 72 + + ( 25 ) AS col2 FROM tab2 AS cor0
----
3337
4633
5425

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 91 <= - + 96 / + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8976
SELECT CAST( 56 AS SIGNED ) * - col1 AS col2, - ( 92 ) AS col2 FROM tab2 AS cor0
----
-2856
-92
-3752
-92
-4312
-92

skipif mysql # not compatible
query II rowsort label-8976
SELECT CAST ( 56 AS INTEGER ) * - col1 AS col2, - ( 92 ) AS col2 FROM tab2 AS cor0
----
-2856
-92
-3752
-92
-4312
-92

query I rowsort
SELECT 36 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 49 * col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + ( col2 ) col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----
0

query I rowsort
SELECT DISTINCT - - 77 AS col0 FROM tab1 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8982
SELECT ALL col0 + + col0, + CAST( - col0 AS SIGNED ) + - col0 FROM tab0 cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-8982
SELECT ALL col0 + + col0, + CAST ( - col0 AS INTEGER ) + - col0 FROM tab0 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL + ( ( COUNT( DISTINCT - 49 ) ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + ( ( COUNT ( DISTINCT - 49 ) ) ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE col0 * - + 30 + - - col0 + - ( - col0 ) + col0 * col0 + - 63 IS NULL
----

query II rowsort
SELECT DISTINCT - - col1 AS col1, col0 FROM tab2 WHERE - + 97 > NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - - ( - col0 ) + + + col1 IS NULL
----

query I rowsort
SELECT col2 + col2 FROM tab0 WHERE ( NOT ( + col1 * 78 ) > - col2 )
----

query II rowsort
SELECT ALL 52 + + 84 AS col2, + 52 FROM tab1
----
136
52
136
52
136
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT ALL ( MIN( + CAST( NULL AS SIGNED ) ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8989
SELECT ALL ( MIN ( + CAST ( NULL AS INTEGER ) ) ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8990
SELECT ALL * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8990
SELECT ALL * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + - + col1 IS NULL
----

query I rowsort
SELECT - + col2 + col1 + - 78 + + col0 - - col0 + col2 * 14 FROM tab0 AS cor0
----
1404
247
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT CAST( NULL AS SIGNED ) * + - 20 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT CAST ( NULL AS INTEGER ) * + - 20 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8994
SELECT ALL * FROM tab2 WHERE NOT - CAST( - ( + 86 ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8994
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - ( + 86 ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 87 ) - + 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + col2 * - - 71 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + col2 * - - 71 IS NULL
----
3

query II rowsort
SELECT - col1 - - 58 AS col0, col2 FROM tab0 cor0
----
-23
47
37
10
57
99

query I rowsort
SELECT DISTINCT - - col2 * + col0 + 29 + + 44 FROM tab2 cor0 WHERE NOT NULL <> col1 * - col0 + col2 / col1
----

query II rowsort
SELECT - ( - col1 ) - + + col2, - 25 AS col0 FROM tab0 AS cor0
----
-98
-25
11
-25
34
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL + 34 * - COUNT( * ) FROM tab1 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + 34 * - COUNT ( * ) FROM tab1 cor0
----
-102

query I rowsort
SELECT DISTINCT - + 66 * col2 FROM tab2 AS cor0
----
-1518
-2640
-3828

query I rowsort
SELECT ALL - col1 * + + 20 FROM tab1 AS cor0
----
-100
-280
-940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT ALL col0 FROM tab1 WHERE - + ( - col2 ) + + ( + col0 ) * - - 12 + CAST( NULL AS SIGNED ) / col0 NOT BETWEEN ( + 54 ) / ( + col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL col0 FROM tab1 WHERE - + ( - col2 ) + + ( + col0 ) * - - 12 + CAST ( NULL AS INTEGER ) / col0 NOT BETWEEN ( + 54 ) / ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT - ( + COUNT( * ) ) * + COUNT( * ) AS col2, SUM( DISTINCT col2 ) AS col1 FROM tab2
----
-9
121

skipif mysql # not compatible
query II rowsort label-9005
SELECT - ( + COUNT ( * ) ) * + COUNT ( * ) AS col2, SUM ( DISTINCT col2 ) AS col1 FROM tab2
----
-9
121

query I rowsort
SELECT ALL + col1 * - 95 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT ALL 86 - col0 FROM tab0 WHERE NULL NOT BETWEEN + col0 AND col1
----

query I rowsort
SELECT ALL + col2 * + 56 AS col1 FROM tab1
----
3304
3808
5376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT + col0 * - + ( - - ( + col1 ) ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT + col0 * - + ( - - ( + col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 < 44 + - + 98
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col0 FROM tab1 WHERE NOT + + col1 / - col0 * 17 < ( - col0 + + - col1 * - 69 + col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - 89 FROM tab0 AS cor0 WHERE + 2 IS NOT NULL
----
-89
-89
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT DISTINCT - col1 DIV - col2 + 90 * ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-2068
-3599
-5219

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - col1 / - col2 + 90 * ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-2068
-3599
-5219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, col0 col1 FROM tab2 AS cor0 WHERE ( 15 ) IS NOT NULL
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT + + COUNT( - + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + + COUNT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - 65 + - 33 * + COUNT( * ) FROM tab1 cor0
----
-164

skipif mysql # not compatible
query I rowsort label-9018
SELECT - 65 + - 33 * + COUNT ( * ) FROM tab1 cor0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
0

query I rowsort
SELECT + 79 + 10 AS col1 FROM tab2 AS cor0
----
89
89
89

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 64 BETWEEN NULL AND + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IN ( + - col1, - col1 * col2 )
----
3

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IN ( + - col1, - col1 * col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT ALL CAST( + 83 AS SIGNED ) * - - col0 + + col2 FROM tab0
----
1292
7231
8150

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL CAST ( + 83 AS INTEGER ) * - - col0 + + col2 FROM tab0
----
1292
7231
8150

query II rowsort
SELECT + col1 * + col1 + + col1, col2 AS col1 FROM tab1
----
210
96
2256
68
30
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT col2 DIV 18 + col0 + - - ( - - col0 ) + + 40 + + col1 + + ( - col0 ) AS col2 FROM tab1
----
110
133
181

skipif mysql # not compatible
query I rowsort label-9025
SELECT col2 / 18 + col0 + - - ( - - col0 ) + + 40 + + col1 + + ( - col0 ) AS col2 FROM tab1
----
110
133
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + 62 + - col2 col0 FROM tab2
----
117
134
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 WHERE NOT + ( col1 ) * - - col2 NOT IN ( 32 )
----

query I rowsort
SELECT ALL col2 + 58 AS col2 FROM tab2
----
116
81
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 71 * - + 79 NOT BETWEEN ( col0 ) AND NULL
----

query II rowsort
SELECT col1, + 68 FROM tab1
----
14
68
47
68
5
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9031
SELECT + ( + CAST( NULL AS DECIMAL ) ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT + ( + CAST ( NULL AS REAL ) ) - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 70 + + - col2 - + col0 col1 FROM tab1 WHERE NOT - - col1 + col2 + - - 78 * + col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 85 ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9034
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 85 ) IS NOT NULL
----
-9

query I rowsort
SELECT ALL + 24 FROM tab0 WHERE NOT - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT ALL - COUNT( * ), - 22 AS col2 FROM tab1 AS cor0
----
-3
-22

skipif mysql # not compatible
query II rowsort label-9036
SELECT ALL - COUNT ( * ), - 22 AS col2 FROM tab1 AS cor0
----
-3
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT + COUNT( * ) * - - 35 AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + COUNT ( * ) * - - 35 AS col0 FROM tab1 AS cor0
----
105

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE NOT + 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9039
SELECT - col0, CAST( + 43 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
43
-85
43
-91
43

skipif mysql # not compatible
query II rowsort label-9039
SELECT - col0, CAST ( + 43 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
43
-85
43
-91
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - 97 * + - col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT - + COUNT( - + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9042
SELECT - + COUNT ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + 56 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9044
SELECT + col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9044
SELECT + col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + 43 AS col1 FROM tab0 cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, - col1 + + col0 FROM tab1 AS cor0
----
51
37
85
80
91
44

query I rowsort
SELECT - col1 * - + 4 FROM tab1
----
188
20
56

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 <= ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT + CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 48 AS col1, + 42 + - col0 FROM tab2
----
48
-22
48
-33
48
-4

query III rowsort
SELECT * FROM tab0 WHERE col1 IS NULL AND NOT + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + + 86 * - - col0 + 89 AS col0, + col0 + + col2 FROM tab0 WHERE NULL BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL - COUNT( * ) * + - ( - 35 ) + + MAX( ALL + col2 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - COUNT ( * ) * + - ( - 35 ) + + MAX ( ALL + col2 ) FROM tab2
----
-47

query I rowsort
SELECT DISTINCT col1 + + + col2 * ( - col2 ) AS col0 FROM tab1
----
-3476
-4577
-9202

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 57 IS NULL
----

query I rowsort
SELECT ALL col0 + col0 + - + col2 * - col0 FROM tab1 AS cor0
----
4998
5185
6370

query I rowsort
SELECT ALL 58 + - + 89 AS col0 FROM tab0 AS cor0
----
-31
-31
-31

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - + col0 * + ( + ( + - 1 ) ) * + + col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT 59 - - 36 FROM tab0
----
95

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 27 FROM tab1 WHERE + 97 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT ALL - CAST( NULL AS SIGNED ) * - 75 * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - CAST ( NULL AS INTEGER ) * - 75 * COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 24 * + 14 - col2 AS col2 FROM tab0
----
237
289
326

query I rowsort
SELECT ALL + 95 FROM tab1 WHERE NOT - 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 50 FROM tab0
----
-3
-40
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9067
SELECT DISTINCT - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT ALL 44 DIV + col1 + - col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL 44 / + col1 + - col1 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col0 * 12 + + + col2 * + + col2 FROM tab1
----
4501
5716
9828

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + ( - MIN( + col2 ) ) + - COUNT( * ) AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9070
SELECT + ( - MIN ( + col2 ) ) + - COUNT ( * ) AS col0 FROM tab0
----
-13

query I rowsort
SELECT col2 + - col0 * - ( + + 4 ) FROM tab0
----
107
358
487

query I rowsort
SELECT - 74 + - ( - col1 ) FROM tab0 AS cor0
----
-53
-73
7

query II rowsort
SELECT - 77 + - 46 AS col0, - col2 + + col2 + col1 AS col2 FROM tab2 AS cor0
----
-123
51
-123
67
-123
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT 10 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT - 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-9078
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 + - 68 FROM tab1 AS cor0 WHERE - 71 * + + 2 * + - 59 * + 89 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 * - 95 - - - col2 + 25 * - col1 FROM tab1 AS cor0 WHERE NOT NULL > col2 + - col0 + - col2 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9081
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) > - col1
----
75
67
58

skipif mysql # not compatible
query III rowsort label-9081
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) > - col1
----
75
67
58

query II rowsort
SELECT ALL + + col2, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT ( - col2 ) AS col2, col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL <= + 55
----

query II rowsort
SELECT 83 AS col0, + 75 AS col2 FROM tab2
----
83
75
83
75
83
75

query II rowsort
SELECT col1 AS col1, + 52 + col2 AS col1 FROM tab2
----
51
75
67
110
77
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT ALL col2 * 79 DIV 99 AS col2 FROM tab0
----
37
7
79

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL col2 * 79 / 99 AS col2 FROM tab0
----
37
7
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + ( + + 20 ) FROM tab2
----
46
20
64
20
75
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT ALL SUM( DISTINCT - 44 ) * - SUM( - col1 ) AS col1, - 69 FROM tab0
----
-4532
-69

skipif mysql # not compatible
query II rowsort label-9089
SELECT ALL SUM ( DISTINCT - 44 ) * - SUM ( - col1 ) AS col1, - 69 FROM tab0
----
-4532
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 10 col0 FROM tab0
----
100
470
990

query II rowsort
SELECT DISTINCT 31 AS col0, 18 AS col1 FROM tab1
----
31
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + 85 + + + 16 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1109
1285
821

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT + - 15 * + 2 * - 0 + + - 40 * + 45 + SUM( - col2 ) col2 FROM tab2 AS cor0
----
-1921

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT DISTINCT + - 15 * + 2 * - 0 + + - 40 * + 45 + SUM ( - col2 ) col2 FROM tab2 AS cor0
----
-1921

query I rowsort
SELECT - 63 * - col0 AS col2 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT DISTINCT 51 * - col1 AS col1 FROM tab2
----
-2601
-3417
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT DISTINCT - SUM( ALL + col2 ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
-226

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT - SUM ( ALL + col2 ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9098
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= ( col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL + CAST( + col2 AS SIGNED ) + + - 28 FROM tab0 cor0
----
-18
19
71

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL + CAST ( + col2 AS INTEGER ) + + - 28 FROM tab0 cor0
----
-18
19
71

onlyif mysql # DIV for integer division: 
query II rowsort label-9100
SELECT DISTINCT 0 * - + col0 * + - 1 * + ( - + ( col2 ) ) DIV - + col1 AS col2, - col1 DIV + 58 AS col1 FROM tab2 AS cor0
----
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-9100
SELECT DISTINCT 0 * - + col0 * + - 1 * + ( - + ( col2 ) ) / - + col1 AS col2, - col1 / + 58 AS col1 FROM tab2 AS cor0
----
0
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <> + col2 + - 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 62 * col0 + - + col2 + 24 FROM tab1 AS cor0
----
3090
5235
5598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT col0 * CAST( - + col2 AS SIGNED ) + col2 * - col2 col0 FROM tab0
----
-19404
-2914
-970

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9103
SELECT col0 * CAST ( - + col2 AS INTEGER ) + col2 * - col2 col0 FROM tab0
----
-19404
-2914
-970

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9104
SELECT ALL * FROM tab1 WHERE - 2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9104
SELECT ALL * FROM tab1 WHERE - 2 > - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col1 * - - col2 col0 FROM tab1
----
1248
236
3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9106
SELECT SUM( ALL + 63 ) DIV ( COUNT( * ) ) * COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-9106
SELECT SUM ( ALL + 63 ) / ( COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
189

query II rowsort
SELECT + col1 AS col2, 17 FROM tab0
----
1
17
21
17
81
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col2 + + col1 col0, 69 * + col0 + + col2 AS col0 FROM tab0
----
786
1082
891
6013
9604
6792

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( + + col1 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9110
SELECT 4, - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
4
0

skipif mysql # not compatible
query II rowsort label-9110
SELECT 4, - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT MIN( + 33 ) col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9111
SELECT DISTINCT MIN ( + 33 ) col1 FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9112
SELECT + col1 AS col2, - col1 + - CAST( col2 AS SIGNED ) + 53 * + col2 AS col2 FROM tab1 AS cor0
----
14
4978
47
3489
5
3063

skipif mysql # not compatible
query II rowsort label-9112
SELECT + col1 AS col2, - col1 + - CAST ( col2 AS INTEGER ) + 53 * + col2 AS col2 FROM tab1 AS cor0
----
14
4978
47
3489
5
3063

query II rowsort
SELECT - col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9114
SELECT - 21 DIV + 60 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9114
SELECT - 21 / + 60 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT ALL COUNT( ALL - CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL COUNT ( ALL - CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT + CAST( NULL AS SIGNED ) * - + CAST( + + col2 AS SIGNED ) + - 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT + CAST ( NULL AS INTEGER ) * - + CAST ( + + col2 AS INTEGER ) + - 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + - col2 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-200
-3760
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT ALL - CAST( - + MIN( ALL + col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - CAST ( - + MIN ( ALL + col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT + 8, + ( - col0 ) AS col1 FROM tab1
----
8
-51
8
-85
8
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT DISTINCT col2 + col1 DIV + - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT col2 + col1 / + - col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT - col2 + + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL + 58 + col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT DISTINCT + - col2 DIV - - col1 - + 86 FROM tab0 AS cor0
----
-185
-86

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + - col2 / - - col1 - + 86 FROM tab0 AS cor0
----
-185
-86

query I rowsort
SELECT DISTINCT + 80 * + 49 + + + col0 + - + col2 + + col1 FROM tab0 AS cor0
----
3919
3969
4018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 44 ) col1 FROM tab2 cor0
----
44

query I rowsort
SELECT DISTINCT + ( - 81 ) * + col2 - + + ( 33 ) AS col0 FROM tab2
----
-1896
-3273
-4731

query I rowsort
SELECT col2 * 47 * - 8 + + - col2 FROM tab0
----
-17719
-37323
-3770

query I rowsort
SELECT + - col1 AS col2 FROM tab2 WHERE NULL < + col0 * col1
----

query I rowsort
SELECT 81 * + col0 + - - 14 * col1 FROM tab0
----
2349
7341
7871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9132
SELECT CAST( - SUM( ALL + 54 ) AS SIGNED ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9132
SELECT CAST ( - SUM ( ALL + 54 ) AS INTEGER ) FROM tab0 AS cor0
----
-162

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 <= - col0 )
----
-10
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL + MIN( DISTINCT - - col2 ) col2 FROM tab1 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9134
SELECT ALL + MIN ( DISTINCT - - col2 ) col2 FROM tab1 cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - 14 - + - col1 * - + col1 * col2 * + - 25 * - col1 AND NULL
----

query I rowsort
SELECT ALL - + col1 * - col0 + col0 FROM tab0 AS cor0 WHERE 33 <> col2
----
1230
1914
194

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9137
SELECT ALL * FROM tab1 WHERE + CAST( - - ( - - col1 ) AS SIGNED ) / + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9137
SELECT ALL * FROM tab1 WHERE + CAST ( - - ( - - col1 ) AS INTEGER ) / + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT - + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9138
SELECT - + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT DISTINCT AVG ( ALL + + 42 ) + - 2 * + + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT AVG ( ALL + + 42 ) + - 2 * + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL + - MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL + - MAX ( - col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9142
SELECT DISTINCT + 88 AS col1, - COUNT( DISTINCT + + ( + ( - - col1 ) ) ) FROM tab2 cor0
----
88
-3

skipif mysql # not compatible
query II rowsort label-9142
SELECT DISTINCT + 88 AS col1, - COUNT ( DISTINCT + + ( + ( - - col1 ) ) ) FROM tab2 cor0
----
88
-3

query II rowsort
SELECT - + col0 AS col1, col2 + 78 FROM tab2 AS cor0
----
-46
101
-64
118
-75
136

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT - col1 DIV + col0 + col0 FROM tab0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-9144
SELECT - col1 / + col0 + col0 FROM tab0
----
10
87
97

query I rowsort
SELECT col1 * - 96 + col0 AS col2 FROM tab2
----
-4850
-6357
-7328

query I rowsort
SELECT 72 + col2 AS col0 FROM tab0
----
119
171
82

query I rowsort
SELECT + 37 + - + col2 AS col2 FROM tab2
----
-21
-3
14

query I rowsort
SELECT DISTINCT 24 + + 45 * + + col2 FROM tab1
----
2679
3084
4344

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - COUNT( * ) * COUNT( * ) + - 24 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - 24 FROM tab0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT - ( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9150
SELECT - ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + col1 / - col2 IS NOT NULL
----

query I rowsort
SELECT 91 * - col1 FROM tab0 AS cor0
----
-1911
-7371
-91

query I rowsort
SELECT DISTINCT - + ( - - 25 ) FROM tab2 AS cor0
----
-25

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT 43 DIV + + col0 - + 35 FROM tab0
----
-33
-35
-35

skipif mysql # not compatible
query I rowsort label-9155
SELECT 43 / + + col0 - + 35 FROM tab0
----
-33
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT 77 + 17 * 84 DIV col2 FROM tab2 AS cor0
----
101
112
139

skipif mysql # not compatible
query I rowsort label-9156
SELECT 77 + 17 * 84 / col2 FROM tab2 AS cor0
----
101
112
139

query I rowsort
SELECT + col0 + + col1 + + - col2 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT + 37 - + COUNT( * ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + 37 - + COUNT ( * ) FROM tab1 AS cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT DISTINCT + 68 - + col0 DIV 59 FROM tab1 AS cor0
----
67
68

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + 68 - + col0 / 59 FROM tab1 AS cor0
----
67
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT ALL + - ( + - 83 ) + - + 26 AS col2 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + - ( + - 83 ) + - + 26 AS col2 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
57
57
57

query II rowsort
SELECT DISTINCT col1 AS col2, 76 * 93 + + 93 AS col2 FROM tab2
----
51
7161
67
7161
77
7161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 36 col2 FROM tab0
----
15
36
87
36
97
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + 95 + 65 ) <= 90 * + 76 * - col2 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT COUNT( * ), + COUNT( DISTINCT - col0 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9164
SELECT COUNT ( * ), + COUNT ( DISTINCT - col0 ) FROM tab2
----
3
3

query I rowsort
SELECT ALL + 91 * + - 49 AS col1 FROM tab0
----
-4459
-4459
-4459

query I rowsort
SELECT ALL ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9167
SELECT DISTINCT 99, 74 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
99
71

skipif mysql # not compatible
query II rowsort label-9167
SELECT DISTINCT 99, 74 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
99
71

query I rowsort
SELECT + - col1 * ( - + 72 ) AS col2 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT DISTINCT - COUNT( - + 11 ) AS col0, 65 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
195

skipif mysql # not compatible
query II rowsort label-9169
SELECT DISTINCT - COUNT ( - + 11 ) AS col0, 65 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
195

query I rowsort
SELECT ALL col0 + + 2 AS col2 FROM tab2 AS cor0
----
48
66
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 85 col2 FROM tab2 AS cor0 WHERE NOT 39 IS NOT NULL
----

query II rowsort
SELECT ALL ( - col2 ) * - col0, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + col2 * col2 IS NULL
----
705
15
870
87
9603
97

query II rowsort
SELECT + col2 * + - col0 AS col0, - 80 FROM tab2 AS cor0
----
-1058
-80
-2560
-80
-4350
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col0 FROM tab2
----
66
66
66

query II rowsort
SELECT ALL + 8 * + col2 + - 68 AS col0, col1 AS col2 FROM tab1
----
404
5
476
47
700
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9176
SELECT * FROM tab2 WHERE - CAST( + + col1 AS SIGNED ) NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9176
SELECT * FROM tab2 WHERE - CAST ( + + col1 AS INTEGER ) NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 10 * + 49 - + - 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT SUM( - - 2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9178
SELECT SUM ( - - 2 ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT + AVG ( CAST( NULL AS SIGNED ) ) + - 9 * - - AVG ( + 57 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) + - 9 * - - AVG ( + 57 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT DISTINCT 38 * 43 + + col0 - col1 DIV + - col0 AS col0 FROM tab0 AS cor0
----
1654
1721
1731

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT 38 * 43 + + col0 - col1 / + - col0 AS col0 FROM tab0 AS cor0
----
1654
1721
1731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 30 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 30 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT MAX( DISTINCT - CAST( + + 64 AS SIGNED ) ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-9182
SELECT MAX ( DISTINCT - CAST ( + + 64 AS INTEGER ) ) FROM tab2
----
-64

query II rowsort
SELECT 35 * - - col1 * ( 17 ) AS col2, + col0 AS col0 FROM tab2
----
30345
46
39865
75
45815
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT ALL + col1 + + 10 + + col1 + - 31 * 64 * + ( col1 ) DIV + col1 + + col2 + - 85 DIV - col2 FROM tab1 AS cor0
----
-1811
-1850
-1904

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + col1 + + 10 + + col1 + - 31 * 64 * + ( col1 ) / + col1 + + col2 + - 85 / - col2 FROM tab1 AS cor0
----
-1811
-1850
-1904

query I rowsort
SELECT - - col0 - 2 FROM tab2 AS cor0
----
44
62
73

query I rowsort
SELECT DISTINCT col2 + col2 * - 1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE 3 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - CAST( NULL AS SIGNED ) * + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9188
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - CAST ( NULL AS INTEGER ) * + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col0 + - ( + col1 )
----

query II rowsort
SELECT DISTINCT 85 AS col2, - 16 AS col1 FROM tab2
----
85
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT COUNT( * ) * 52 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-9191
SELECT COUNT ( * ) * 52 FROM tab2
----
156

query I rowsort
SELECT DISTINCT 73 * + - 29 FROM tab1
----
-2117

query I rowsort
SELECT ALL + 58 * + 75 AS col2 FROM tab2
----
4350
4350
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT ALL + MAX( - - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL + MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 6 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 50 * + ( + ( + 77 ) ) + + + col0 AS col1 FROM tab2 AS cor0
----
-3775
-3786
-3804

query II rowsort
SELECT ALL - col2 AS col2, col1 * - ( - col1 ) * + col2 FROM tab0 cor0
----
-10
4410
-47
308367
-99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9198
SELECT DISTINCT - 30 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - 30 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query II rowsort
SELECT col1 AS col0, + col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - - col0 / - ( 96 ) FROM tab0 WHERE NULL BETWEEN col1 * 91 * + - ( + + 1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT SUM( ALL - 59 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-9201
SELECT SUM ( ALL - 59 ) FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT - 4 AS col2, COUNT( * ) AS col1 FROM tab0
----
-4
3

skipif mysql # not compatible
query II rowsort label-9202
SELECT - 4 AS col2, COUNT ( * ) AS col1 FROM tab0
----
-4
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT - MIN( ALL + - col2 ) AS col1, - SUM( DISTINCT - col1 ) + + COUNT( DISTINCT col1 ) AS col0 FROM tab1
----
96
69

skipif mysql # not compatible
query II rowsort label-9203
SELECT - MIN ( ALL + - col2 ) AS col1, - SUM ( DISTINCT - col1 ) + + COUNT ( DISTINCT col1 ) AS col0 FROM tab1
----
96
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - - COUNT( ALL 12 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9204
SELECT - - COUNT ( ALL 12 ) AS col1 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0 WHERE NOT + 7 + + - col0 / col2 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT ALL col1 * - ( + - col0 ) - - col0 DIV - 27 + col2 + - + col2 FROM tab2 AS cor0
----
2345
4926
5023

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL col1 * - ( + - col0 ) - - col0 / - 27 + col2 + - + col2 FROM tab2 AS cor0
----
2345
4926
5023

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - ( + col2 ) ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - - ( + - 14 ) FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - 12 * - col2 * col0 + - col0 FROM tab0 cor0
----
10353
115139
8445

query I rowsort
SELECT + + col1 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ALL - col1 * 14 AS col2, 69 * col2 * col2 + - - 82 FROM tab2
----
-1078
110482
-714
36583
-938
232198

query I rowsort
SELECT DISTINCT - + col2 - - + col0 * 21 FROM tab2 WHERE - 94 NOT BETWEEN + 74 AND - col0
----
1304
1517
943

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT col2 + + col0 + - col1 DIV + 97 + - + 66 AS col0 FROM tab1
----
78
81
93

skipif mysql # not compatible
query I rowsort label-9213
SELECT col2 + + col0 + - col1 / + 97 + - + 66 AS col0 FROM tab1
----
78
81
93

query I rowsort
SELECT + col2 + col1 + + + col0 FROM tab2
----
120
181
200

query I rowsort
SELECT - 94 * col0 + - col1 * - col2 + + 41 - + 97 + + col2 FROM tab0
----
-8014
-8976
2388

query III rowsort
SELECT * FROM tab2 WHERE - 30 + - col1 <> - 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 64 col2 FROM tab1
----
115
149
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT - COUNT( * ) + - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-9218
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-6

query I rowsort
SELECT ALL - + ( + 79 ) + - 67 FROM tab0 AS cor0
----
-146
-146
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + - MAX( col0 ) - + 36 FROM tab0 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-9220
SELECT + - MAX ( col0 ) - + 36 FROM tab0 AS cor0
----
-133

query I rowsort
SELECT DISTINCT col1 + - col0 * - ( - 46 ) * - + 57 AS col0 FROM tab0
----
228135
254335
39411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT - 14 * ( - col1 ) + col2 + - CAST( NULL AS SIGNED ) / - - col1 + ( + 88 ) * - - 51 - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT - 14 * ( - col1 ) + col2 + - CAST ( NULL AS INTEGER ) / - - col1 + ( + 88 ) * - - 51 - + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col0 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT + col0 AS col2, col0 * ( - col0 ) FROM tab2 cor0
----
46
-2116
64
-4096
75
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT DISTINCT - CAST( + COUNT( - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT - CAST ( + COUNT ( - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col2 AS col2, 12 AS col1 FROM tab1 AS cor0
----
59
12
68
12
96
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 < - - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND ( - 1 * + - col2 * - 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 15 col0 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9232
SELECT ALL - CAST( + col0 AS SIGNED ) AS col0, - col0 AS col2 FROM tab2
----
-46
-46
-64
-64
-75
-75

skipif mysql # not compatible
query II rowsort label-9232
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col0, - col0 AS col2 FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT ALL ( col2 ) * + + col0 + - + ( + col2 ) FROM tab0
----
658
860
9504

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + col2 <> + + col2
----
10
47
99

query II rowsort
SELECT ALL col1 * - 26, + 88 AS col2 FROM tab0
----
-2106
88
-26
88
-546
88

query I rowsort
SELECT ALL + 16 FROM tab1 WHERE NOT - + col1 / + ( + 40 ) NOT BETWEEN col0 + 43 AND - col1 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( 3 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT DISTINCT ( CAST( - SUM( DISTINCT col0 ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT ( CAST ( - SUM ( DISTINCT col0 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT 63 * 97 * + 8 FROM tab1 AS cor0
----
48888
48888
48888

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = col1 * + ( ( - col0 ) ) )
----

query I rowsort
SELECT DISTINCT 61 * + col2 AS col1 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9242
SELECT col2 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT col2 + + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - 56 + - COUNT( * ) AS col0 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-9243
SELECT - 56 + - COUNT ( * ) AS col0 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT - col0 + + - 25 FROM tab2
----
-100
-71
-89

query I rowsort
SELECT DISTINCT 17 + - col0 - col0 * + + col2 * - 39 AS col1 FROM tab2 AS cor0
----
169592
41233
99793

query I rowsort
SELECT ALL + 34 + col1 + col0 * - + 89 + - - col2 + - 98 AS col2 FROM tab1 AS cor0
----
-4493
-7565
-8048

query I rowsort
SELECT + 97 * - col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

query I rowsort
SELECT ALL - 94 * - 90 AS col0 FROM tab2 AS cor0
----
8460
8460
8460

query I rowsort
SELECT ALL - + col1 + - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 + - + col2 FROM tab2 cor0
----
2578
4431
5889

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL + 58 * - col0 DIV + col0 FROM tab1
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL + 58 * - col0 / + col0 FROM tab1
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND + col2 )
----

query II rowsort
SELECT ALL - col2 AS col0, - 29 FROM tab0
----
-10
-29
-47
-29
-99
-29

query I rowsort
SELECT + col2 * - - col0 + col1 FROM tab0
----
786
891
9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 + - col2 col2 FROM tab1
----
-21
16
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT + 30 DIV + col0 + + col2 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9256
SELECT + 30 / + col0 + + col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - 90 + - col0 FROM tab1
----
-141
-175
-181

query II rowsort
SELECT DISTINCT 58, 16 - + 29 * + col2 + - + col0 + - col1 * + col1 AS col1 FROM tab1
----
58
-1805
58
-3015
58
-4256

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT ALL + col0 + col1 DIV + col2 AS col1 FROM tab2 cor0 WHERE + 5 IS NOT NULL
----
48
65
76

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + col0 + col1 / + col2 AS col1 FROM tab2 cor0 WHERE + 5 IS NOT NULL
----
48
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT + - COUNT( - col0 ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9260
SELECT + - COUNT ( - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 68 - - - col0 AS col2, col2 col1 FROM tab2
----
-7
58
22
23
4
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - 26 * - + MIN( ALL - col0 ) - - MAX( + + col2 ) * - 33 AS col0 FROM tab1
----
-5534

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - 26 * - + MIN ( ALL - col0 ) - - MAX ( + + col2 ) * - 33 AS col0 FROM tab1
----
-5534

query I rowsort
SELECT - col2 * + + ( - col0 ) * + + col0 * - col2 FROM tab2
----
-1119364
-18922500
-6553600

query I rowsort
SELECT - 60 * 28 AS col0 FROM tab2
----
-1680
-1680
-1680

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 * + col2 * 27 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL ( + col2 ) * - 32 AS col1 FROM tab0 AS cor0
----
-1504
-3168
-320

onlyif mysql # DIV for integer division: 
query II rowsort label-9268
SELECT ALL - ( - ( - 49 ) ) AS col0, col0 DIV - col0 FROM tab0
----
-49
-1
-49
-1
-49
-1

skipif mysql # not compatible
query II rowsort label-9268
SELECT ALL - ( - ( - 49 ) ) AS col0, col0 / - col0 FROM tab0
----
-49
-1
-49
-1
-49
-1

query II rowsort
SELECT - 35 AS col2, 35 FROM tab0
----
-35
35
-35
35
-35
35

query II rowsort
SELECT DISTINCT 13 AS col0, col2 AS col0 FROM tab1
----
13
59
13
68
13
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + + COUNT( * ) FROM tab2 WHERE NOT col1 * 7 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT col1 * 7 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9272
SELECT + col0, - 21 * CAST( + + 89 AS SIGNED ) DIV 9 + + col1 FROM tab1
----
51
-193
85
-202
91
-160

skipif mysql # not compatible
query II rowsort label-9272
SELECT + col0, - 21 * CAST ( + + 89 AS INTEGER ) / 9 + + col1 FROM tab1
----
51
-193
85
-202
91
-160

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 col1, col2 AS col1 FROM tab2 AS cor0
----
32
23
32
40
32
58

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 / - + col1 IS NOT NULL
----

query I rowsort
SELECT 8 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 55 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL - SUM( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL - SUM ( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL MIN( ALL + - 62 ) AS col0 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL MIN ( ALL + - 62 ) AS col0 FROM tab1 AS cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + + 38 * - col0 col0 FROM tab0 AS cor0
----
-3327
-3687
-651

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 9 IS NULL
----

query II rowsort
SELECT col0 * - 65 + + - col1 + - + col0 AS col0, - col2 + + - col2 AS col1 FROM tab1 AS cor0
----
-3380
-192
-5615
-118
-6053
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT COUNT( * ) + - SUM( + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT COUNT ( * ) + - SUM ( + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - - 6 * col2, + 15 * - col2 + + col1 * + + ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT ( - + COUNT( ALL 49 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT ( - + COUNT ( ALL 49 ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT + ( - - ( MAX( - 51 ) ) ) * + COUNT( * ) AS col1 FROM tab1 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT + ( - - ( MAX ( - 51 ) ) ) * + COUNT ( * ) AS col1 FROM tab1 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT - 37 + + - col1 - + 70 AS col1 FROM tab2
----
-158
-174
-184

query I rowsort
SELECT - - col2 AS col0 FROM tab0 WHERE + col1 <= NULL
----

query I rowsort
SELECT ALL - 96 + col1 FROM tab2
----
-19
-29
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT ALL ( - col2 ) + + 54 DIV + col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL ( - col2 ) + + 54 / + col2 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT ALL 36 - - + 5 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - COUNT( * ) - + 72 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9294
SELECT - COUNT ( * ) - + 72 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9295
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9295
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - col1 + - col0 + - col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - 73 + + col1 FROM tab2 AS cor0
----
-22
-6
4

query I rowsort
SELECT - col1 - - 68 FROM tab1 AS cor0
----
21
54
63

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 <= + + 31
----
15
81
47

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
29

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - 41 / - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col0 FROM tab0
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT - - CAST( + col0 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-9303
SELECT - - CAST ( + col0 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT - - COUNT( * ) * - 21 col0 FROM tab2 cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9304
SELECT DISTINCT - - COUNT ( * ) * - 21 col0 FROM tab2 cor0
----
-63

query I rowsort
SELECT DISTINCT col0 * - 5 * - 90 AS col2 FROM tab1 AS cor0
----
22950
38250
40950

query I rowsort
SELECT + + 83 * 28 FROM tab0 AS cor0
----
2324
2324
2324

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - SUM( + + 8 ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9307
SELECT - SUM ( + + 8 ) AS col0 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9308
SELECT + + col1 AS col0, CAST( + 3 AS SIGNED ) - + - col2 * col2 col2 FROM tab2 AS cor0
----
51
532
67
3367
77
1603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9308
SELECT + + col1 AS col0, CAST ( + 3 AS INTEGER ) - + - col2 * col2 col2 FROM tab2 AS cor0
----
51
532
67
3367
77
1603

query II rowsort
SELECT + + 80, + col0 + col0 AS col1 FROM tab2 AS cor0
----
80
128
80
150
80
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT + - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT + - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 + - - col2 + - + ( - 59 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL ( ( - MIN( + col1 ) ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL ( ( - MIN ( + col1 ) ) ) FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 17 * - col0
----

query I rowsort
SELECT DISTINCT + 96 * + col0 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9315
SELECT ALL * FROM tab1 WHERE NULL = + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-9315
SELECT ALL * FROM tab1 WHERE NULL = + CAST ( NULL AS INTEGER ) * - col2
----

query I rowsort
SELECT ALL + 79 * + ( + - col1 ) - + - col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-1055
-310
-3622

query I rowsort
SELECT ( - - 73 ) FROM tab2 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - ( MIN( col1 ) ) * 96 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9318
SELECT - ( MIN ( col1 ) ) * 96 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + 13 * col0 + col2 * - 7 * - 46 FROM tab0 AS cor0
----
15329
33139
4351

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT + col1 + ( + 35 ) + + + col0 AS col2 FROM tab0 cor0
----
131
133
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL 75 * - CAST( COUNT( ALL + col2 ) AS SIGNED ) * 73 + - - COUNT( * ) AS col1 FROM tab1
----
-16422

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL 75 * - CAST ( COUNT ( ALL + col2 ) AS INTEGER ) * 73 + - - COUNT ( * ) AS col1 FROM tab1
----
-16422

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE ( NOT - - col0 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * + - col2 AND NULL
----

query I rowsort
SELECT + - col2 * + col2 + + 70 + - + col2 FROM tab1 AS cor0
----
-3470
-4622
-9242

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9326
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + + col0 - + + col1 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT + MAX( ALL col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + MAX ( ALL col2 ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT - col1 + + + CAST( col1 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT - col1 + + + CAST ( col1 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + - col2 * - col1 + - col0 + 62 FROM tab2 AS cor0
----
123198
225375
26995

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 86 IN ( - col2, - col1 )
----

query I rowsort
SELECT + col0 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + ( + col1 ), + 90 AS col0 FROM tab2 cor0
----
51
90
67
90
77
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, col2 col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT ALL 81 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL 81 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL - MIN( - 44 ) * 3 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - MIN ( - 44 ) * 3 FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT 69 * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-9339
SELECT 69 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
207

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1
21
81

query I rowsort
SELECT + 32 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - COUNT( DISTINCT + 57 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9342
SELECT - COUNT ( DISTINCT + 57 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT 63 + - + COUNT( 65 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-9343
SELECT 63 + - + COUNT ( 65 ) FROM tab2
----
60

query I rowsort
SELECT ( ( - col1 ) ) + - + col0 * + 59 + + col1 FROM tab2
----
-2714
-3776
-4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 + - + col0 col2 FROM tab1
----
-32
-66
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT ALL - CAST( NULL AS SIGNED ) + + 42 + col2 * - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL - CAST ( NULL AS INTEGER ) + + 42 + col2 * - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT DISTINCT - MIN( ALL ( - 41 ) ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT - MIN ( ALL ( - 41 ) ) FROM tab2 AS cor0
----
41

query I rowsort
SELECT 91 * 91 + - col0 FROM tab0 AS cor0
----
8184
8194
8266

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9349
SELECT - CAST( NULL AS DECIMAL ) * + + SUM( + - col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT - CAST ( NULL AS REAL ) * + + SUM ( + - col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + 25, + col1 col1 FROM tab0
----
106
81
26
1
46
21

query I rowsort
SELECT DISTINCT ( - 55 ) + col1 + col2 * + + 20 FROM tab2
----
1172
456
822

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 + + col1 + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT 28 + + 86 + MIN( + - col2 ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 28 + + 86 + MIN ( + - col2 ) AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL + + 11 + col1 + - col0 * + + col0 FROM tab1 cor0
----
-2576
-7209
-8223

query I rowsort
SELECT 67 + + col0 FROM tab0 AS cor0
----
154
164
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT - 29 - SUM( DISTINCT + 95 ) col0 FROM tab0 AS cor0
----
-124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9356
SELECT DISTINCT - 29 - SUM ( DISTINCT + 95 ) col0 FROM tab0 AS cor0
----
-124

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - col0 <= + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 * 82 AS col0 FROM tab0 AS cor0
----
-1722
-6642
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9359
SELECT ALL + CAST( NULL AS SIGNED ), col2 * + col0 + - 64 + + col1 + 19 AS col2 FROM tab1
----
NULL
4865
NULL
4975
NULL
6190

skipif mysql # not compatible
query II rowsort label-9359
SELECT ALL + CAST ( NULL AS INTEGER ), col2 * + col0 + - 64 + + col1 + 19 AS col2 FROM tab1
----
NULL
4865
NULL
4975
NULL
6190

query III rowsort
SELECT * FROM tab0 WHERE ( - 23 ) <> + 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 73 - - 20 AS col0 FROM tab1
----
93

query I rowsort
SELECT + 26 * + col1 FROM tab0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT AVG ( ALL 58 ) * MIN( - - col2 ) FROM tab0 WHERE ( + - 78 ) * - 31 + - + col1 * + 63 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT AVG ( ALL 58 ) * MIN ( - - col2 ) FROM tab0 WHERE ( + - 78 ) * - 31 + - + col1 * + 63 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 45 * + 60 AS col0 FROM tab2
----
2700

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT + - 84 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT - + MIN( - + col0 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9366
SELECT - + MIN ( - + col0 ) col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT 36 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9367
SELECT 36 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT + 90 * col0 + + col1 FROM tab2 AS cor0
----
4191
5837
6817

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN ( NULL ) AND ( 62 )
----
15
81
47

query I rowsort
SELECT + 23 AS col1 FROM tab2 WHERE NOT NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * col1 ) IS NOT NULL
----

query I rowsort
SELECT - AVG ( col2 ) FROM tab0 WHERE ( col2 + - col0 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 5 )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT - 59 * - 70 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9375
SELECT ALL 93 FROM tab2 WHERE NOT col0 * col0 + CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL 93 FROM tab2 WHERE NOT col0 * col0 + CAST ( NULL AS REAL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * - 71 col0 FROM tab2 WHERE NOT col0 - 57 <> NULL
----

query I rowsort
SELECT 32 + - 74 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - col1 * + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT - ( + SUM( + col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT - ( + SUM ( + col2 ) ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT 51 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 49 ) IS NOT NULL
----

query I rowsort
SELECT + 3 FROM tab0 WHERE NOT ( ( col2 ) ) IS NULL
----
3
3
3

query I rowsort
SELECT - ( 61 ) AS col2 FROM tab0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----
0

query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab2 WHERE 30 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + 75 FROM tab0
----
122
174
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - 32 * COUNT( + col2 ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - 32 * COUNT ( + col2 ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

query I rowsort
SELECT 73 + 77 FROM tab2
----
150
150
150

query I rowsort
SELECT 10 + col0 FROM tab0
----
107
25
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT SUM( DISTINCT 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-9390
SELECT SUM ( DISTINCT 46 ) FROM tab0
----
46

query I rowsort
SELECT col2 - + 46 FROM tab1
----
13
22
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL + 42 * COUNT( * ) AS col0 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + 42 * COUNT ( * ) AS col0 FROM tab1
----
126

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + 83 * - 52 AS col0 FROM tab2
----
-4241
-4252
-4270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab2
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT ALL col2 + + col1 DIV col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL col2 + + col1 / col1 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL SUM( DISTINCT - col2 ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-121

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL SUM ( DISTINCT - col2 ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-121

query I rowsort
SELECT + 35 + col2 AS col1 FROM tab2 AS cor0
----
58
75
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT + col0 * col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT + col0 * col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - ( 27 ) + COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9401
SELECT - ( 27 ) + COUNT ( * ) FROM tab0 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 73 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + col1 col0 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT DISTINCT 44 FROM tab2 cor0 CROSS JOIN tab2
----
44

query III rowsort
SELECT * FROM tab0 WHERE 53 * + col2 NOT BETWEEN ( NULL ) AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT + 3 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9407
SELECT + 3 / col0 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 32 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - col2 + + 43 FROM tab1 AS cor0
----
-4853
-4972
-6145

query I rowsort
SELECT DISTINCT + col0 * - 87 - 98 FROM tab0 AS cor0
----
-1403
-7667
-8537

query I rowsort
SELECT ALL - 5 + + ( ( 7 ) ) FROM tab0 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab0 cor0 WHERE 16 + - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT - 40 * - 48 - - SUM( - col0 ) FROM tab0 AS cor0
----
1721

skipif mysql # not compatible
query I rowsort label-9413
SELECT - 40 * - 48 - - SUM ( - col0 ) FROM tab0 AS cor0
----
1721

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9414
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) < + col1
----

skipif mysql # not compatible
query III rowsort label-9414
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) < + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + col0 >= ( - 21 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9416
SELECT * FROM tab0 AS cor0 WHERE 62 * CAST( NULL AS SIGNED ) < + 39 * - col2
----

skipif mysql # not compatible
query III rowsort label-9416
SELECT * FROM tab0 AS cor0 WHERE 62 * CAST ( NULL AS INTEGER ) < + 39 * - col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 54 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 84 / col0 IN ( - col2 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT ALL + col0 - - + col2 DIV - 62 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL + col0 - - + col2 / - 62 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + ( - 56 ) FROM tab1
----
-56
-56
-56

query I rowsort
SELECT - 74 * ( ( - col1 ) ) AS col1 FROM tab1
----
1036
3478
370

query I rowsort
SELECT + col2 * + 50 FROM tab0
----
2350
4950
500

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + COUNT( + 8 ) FROM tab1 WHERE NOT - col2 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9423
SELECT + COUNT ( + 8 ) FROM tab1 WHERE NOT - col2 + - col1 IS NULL
----
3

query I rowsort
SELECT 68 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - COUNT( * ) * + + 58 AS col2 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-9425
SELECT - COUNT ( * ) * + + 58 AS col2 FROM tab1
----
-174

query I rowsort
SELECT - col1 * 99 AS col2 FROM tab1
----
-1386
-4653
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT 41 * - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT 41 * - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT MAX( + col1 ) DIV + ( 27 * + 40 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT MAX ( + col1 ) / + ( 27 * + 40 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL > - 79
----
0

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL > - 79
----
0

query I rowsort
SELECT DISTINCT col1 - - col2 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - COUNT( * ) * - ( 74 * - 63 ) FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9431
SELECT - COUNT ( * ) * - ( 74 * - 63 ) FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT CAST( - + 87 AS SIGNED ) col2 FROM tab0
----
-87
-87
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9432
SELECT CAST ( - + 87 AS INTEGER ) col2 FROM tab0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( 5 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( 5 ) IS NOT NULL
----
-3

query II rowsort
SELECT ALL - 61, col0 + - col0 + - col0 * 50 AS col0 FROM tab2 AS cor0
----
-61
-2300
-61
-3200
-61
-3750

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 22 / + col1 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL ( - ( + 93 ) ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - 80 + + col0 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL ( - ( + 93 ) ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - 80 + + col0 AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT - - MIN( ALL + + 59 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT - - MIN ( ALL + + 59 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - 1 * + col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( - col1 ) / col0 AND ( - 71 * 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 62 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) * - - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL 52 * col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 / + - col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT + + COUNT( * ) + + 67 AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9443
SELECT + + COUNT ( * ) + + 67 AS col2 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9444
SELECT COUNT( * ) + + + COUNT( ALL 23 ) + - 75 DIV 51 * COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9444
SELECT COUNT ( * ) + + + COUNT ( ALL 23 ) + - 75 / 51 * COUNT ( * ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - col1 * + 24 AS col2 FROM tab1
----
-1128
-120
-336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + - - ( - col1 ) + - 27 + 27 * col0 col1 FROM tab1
----
1257
2184
2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT DISTINCT CAST( NULL AS SIGNED ) / col0 * - - col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col0 * - - col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col2 * - col2 + 25 * 25 AS col0 FROM tab2
----
-2739
-975
96

query III rowsort
SELECT ALL * FROM tab2 WHERE - 53 IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + col2 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9450
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + col2 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT ALL - COUNT( * ) DIV - 4 + + MIN( DISTINCT - - 42 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - COUNT ( * ) / - 4 + + MIN ( DISTINCT - - 42 ) FROM tab2
----
42

query I rowsort
SELECT ALL col1 * - col0 + + + ( + col1 ) + col2 AS col1 FROM tab1
----
-361
-4162
-604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9453
SELECT CAST( NULL AS SIGNED ) * ( COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 68 + - - col0 FROM tab1
----
133
158
206

query I rowsort
SELECT ALL + 47 + + - ( col1 ) AS col0 FROM tab1 AS cor0
----
0
33
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - MIN( - col1 ) + - + COUNT( * ) * ( + 84 ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - MIN ( - col1 ) + - + COUNT ( * ) * ( + 84 ) FROM tab0 AS cor0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - 84 * + 96 - + 22 AS col0 FROM tab0 AS cor0
----
-8086
-8086
-8086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE NOT ( + col1 * + col2 ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 )
----
0

query II rowsort
SELECT ALL + col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT - - col0 / + 65 + - CAST( NULL AS SIGNED ) + + ( - col1 ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT - - col0 / + 65 + - CAST ( NULL AS INTEGER ) + + ( - col1 ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 + + 41 * - 12 + - + col0 FROM tab1 cor0
----
-492
-492
-492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT ALL - - CAST( NULL AS SIGNED ) - 43 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - - CAST ( NULL AS INTEGER ) - 43 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 28 FROM tab2 AS cor0
----
23
39
49

query I rowsort
SELECT + ( + - col1 ) * + ( - col1 ) + + col0 AS col1 FROM tab0 cor0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT - col2 - - 70 FROM tab2 AS cor0
----
12
30
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT ALL + + COUNT( * ) DIV 16 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + + COUNT ( * ) / 16 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT - MAX( - 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT - MAX ( - 42 ) FROM tab0
----
42

query I rowsort
SELECT - 28 AS col2 FROM tab0 WHERE NOT ( - 98 - - col1 + - 49 * col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9473
SELECT ALL * FROM tab1 WHERE NOT - 93 + + CAST( - col2 AS SIGNED ) - + ( 65 ) <= 38
----

skipif mysql # not compatible
query III rowsort label-9473
SELECT ALL * FROM tab1 WHERE NOT - 93 + + CAST ( - col2 AS INTEGER ) - + ( 65 ) <= 38
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 + 98 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = 69
----

query II rowsort
SELECT ALL col1, col0 FROM tab2 cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + col1 BETWEEN + col1 + + + 51 - col0 * col1 AND ( col1 )
----

query II rowsort
SELECT ALL col2 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + - ( - - 81 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + col1 * - ( 39 ) AS col1 FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN col0 * + col1 AND NULL
----

query I rowsort
SELECT + 35 * - + col1 FROM tab2 AS cor0
----
-1785
-2345
-2695

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9483
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9483
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT col0 - + + ( + 81 ) AS col1 FROM tab1 WHERE NOT 83 IS NULL
----
-30
10
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT COUNT( ALL 56 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9485
SELECT COUNT ( ALL 56 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - - col2 AS col2, + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - - col0 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 + - col0 <= + col2 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * + 8 * col1 col2 FROM tab1 cor0
----
-27448
-2920
-8176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + + 44 col0, 98 FROM tab1 cor0
----
2068
98
220
98
616
98

onlyif mysql # DIV for integer division: 
query II rowsort label-9490
SELECT ALL col1 * + col0 DIV col0, col0 FROM tab0
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-9490
SELECT ALL col1 * + col0 / col0, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL - + MAX( DISTINCT - 97 ) FROM tab2 WHERE NOT col0 + + col1 NOT BETWEEN + 25 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL - + MAX ( DISTINCT - 97 ) FROM tab2 WHERE NOT col0 + + col1 NOT BETWEEN + 25 AND - col2
----
NULL

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL SUM( DISTINCT col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL SUM ( DISTINCT col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE + - 82 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col1 + - - col0 + + col1 + - 49 * - 90 AS col2 FROM tab1
----
4489
4505
4595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col0 col1 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 / - - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + - 77 FROM tab0
----
-62
10
20

query I rowsort
SELECT DISTINCT - col1 * ( - 25 ) + - 66 FROM tab0
----
-41
1959
459

query I rowsort
SELECT - 29 + - 44 FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9501
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 95 * + 72 col2 FROM tab1 cor0
----
-6793
-6826
-6835

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 81 * col0 + - col1 = + 24 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT 61 - col2 + + col1 FROM tab1 AS cor0
----
-21
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + 80 - - MIN( + ( + 12 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 66 < - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT + 80 - - MIN ( + ( + 12 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 66 < - + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( - col1, ( - col2 ), - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( - col1, ( - col2 ), - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT + col0 DIV - - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9508
SELECT + col0 / - - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT DISTINCT + col0 DIV col2 + - 0 + + col1 * + 91 + + + 72 FROM tab1 cor0
----
1346
4350
528

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT + col0 / col2 + - 0 + + col1 * + 91 + + + 72 FROM tab1 cor0
----
1346
4350
528

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 94 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT ( + col1 ) DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9511
SELECT ( + col1 ) / - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT ( + ( COUNT( * ) ) ) * - SUM( ALL + + col1 ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT ( + ( COUNT ( * ) ) ) * - SUM ( ALL + + col1 ) FROM tab0
----
-309

query I rowsort
SELECT DISTINCT col2 * - 77 AS col2 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT - 25 AS col0, + COUNT( col0 ) * - + 1 FROM tab2
----
-25
-3

skipif mysql # not compatible
query II rowsort label-9515
SELECT - 25 AS col0, + COUNT ( col0 ) * - + 1 FROM tab2
----
-25
-3

query I rowsort
SELECT ( + + 81 ) * + - 96 FROM tab2
----
-7776
-7776
-7776

query I rowsort
SELECT 45 * - 88 FROM tab1
----
-3960
-3960
-3960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9518
SELECT DISTINCT + + col0 - + 7 / - + col2 / + col2 * - CAST( - col2 AS DECIMAL ) FROM tab1 WHERE NOT + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + + col0 - + 7 / - + col2 / + col2 * - CAST ( - col2 AS REAL ) FROM tab1 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT + col0 + + col1 FROM tab0 AS cor0 WHERE NOT + 30 >= NULL
----

query I rowsort
SELECT 27 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 86 AND + - 45
----

query I rowsort
SELECT DISTINCT + 62 * - + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
2914
6138
620

query I rowsort
SELECT + - 88 * + col0 + 98 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT ALL - col1 DIV ( - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - col1 / ( - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9525
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT MIN( DISTINCT col2 ) + COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT MIN ( DISTINCT col2 ) + COUNT ( * ) FROM tab0
----
13

query II rowsort
SELECT ALL col1 AS col2, 86 * - + 30 AS col2 FROM tab1 cor0
----
14
-2580
47
-2580
5
-2580

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL SUM( ALL - col2 ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL SUM ( ALL - col2 ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-220

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + + - col0 col0 FROM tab0 AS cor0
----
0
1200
1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT - 42 + col0 + + 50 + + - CAST( - + col2 AS SIGNED ) + - + ( + col2 ) * - 84 * - 99 * + col1 FROM tab2 AS cor0
----
-25613168
-32315835
-9754591

skipif mysql # not compatible
query I rowsort label-9532
SELECT - 42 + col0 + + 50 + + - CAST ( - + col2 AS INTEGER ) + - + ( + col2 ) * - 84 * - 99 * + col1 FROM tab2 AS cor0
----
-25613168
-32315835
-9754591

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 BETWEEN + col2 / + - col0 - col0 + col2 + 45 * 97 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT - col2 DIV + 66 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9536
SELECT - col2 / + 66 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9537
SELECT + col1 DIV - col2, col2 FROM tab0
----
-1
47
-2
10
0
99

skipif mysql # not compatible
query II rowsort label-9537
SELECT + col1 / - col2, col2 FROM tab0
----
-1
47
-2
10
0
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - 32 + 91 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - + MIN( ALL + - ( - col1 ) ) + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-8

skipif mysql # not compatible
query I rowsort label-9539
SELECT - + MIN ( ALL + - ( - col1 ) ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL 81 + - CAST( NULL AS SIGNED ) + col0 / col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL 81 + - CAST ( NULL AS INTEGER ) + col0 / col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT DISTINCT + 19 + - CAST( - 7 AS SIGNED ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT + 19 + - CAST ( - 7 AS INTEGER ) FROM tab1 AS cor0
----
26

query II rowsort
SELECT 37 AS col1, col0 FROM tab2 AS cor0
----
37
46
37
64
37
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9543
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + col0 * CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-9543
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + col0 * CAST ( NULL AS INTEGER ) * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 99 col1 FROM tab1 AS cor0
----
59
99
68
99
96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL - 39 * + + COUNT( * ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - 39 * + + COUNT ( * ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9547
SELECT COUNT( DISTINCT - 6 ) DIV 8 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9547
SELECT COUNT ( DISTINCT - 6 ) / 8 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + ( MIN( DISTINCT + 91 ) ) AS col2 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9548
SELECT + ( MIN ( DISTINCT + 91 ) ) AS col2 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL + ( - COUNT( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + ( - COUNT ( DISTINCT col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT 65 DIV - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-9550
SELECT 65 / - col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT - - 5 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
12800
21750
5290

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT + MIN( col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9552
SELECT + MIN ( col1 ) FROM tab0 cor0
----
1

query I rowsort
SELECT - - 1 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT DISTINCT + + 19 AS col2, - SUM( DISTINCT + 22 ) - + 55 + COUNT( * ) FROM tab1 AS cor0
----
19
-74

skipif mysql # not compatible
query II rowsort label-9554
SELECT DISTINCT + + 19 AS col2, - SUM ( DISTINCT + 22 ) - + 55 + COUNT ( * ) FROM tab1 AS cor0
----
19
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab0
----
65
65
65

query I rowsort
SELECT ALL col1 * 30 AS col2 FROM tab1
----
1410
150
420

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col0 * 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9558
SELECT CAST( 57 AS SIGNED ), + COUNT( DISTINCT + - 30 ) AS col2 FROM tab1
----
57
1

skipif mysql # not compatible
query II rowsort label-9558
SELECT CAST ( 57 AS INTEGER ), + COUNT ( DISTINCT + - 30 ) AS col2 FROM tab1
----
57
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 >= - col2
----

query I rowsort
SELECT DISTINCT 65 * + col0 AS col2 FROM tab1 AS cor0
----
3315
5525
5915

query I rowsort
SELECT ALL - + ( - 51 ) AS col0 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9562
SELECT DISTINCT 89 FROM tab1 WHERE ( CAST( 30 AS DECIMAL ) * + + ( - col1 ) > + + col0 + + col0 + + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT 89 FROM tab1 WHERE ( CAST ( 30 AS REAL ) * + + ( - col1 ) > + + col0 + + col0 + + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query II rowsort
SELECT + col1 AS col0, + 53 * - 37 FROM tab2 AS cor0 WHERE col0 * - col2 + + 44 NOT IN ( + col1, col0 + - + col2 )
----
51
-1961
67
-1961
77
-1961

query I rowsort
SELECT DISTINCT col0 * - - 73 + col0 * - - col2 AS col2 FROM tab0 AS cor0
----
16684
1800
7221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT ALL + col1 * - + 62 col1 FROM tab1 cor0 WHERE NOT CAST( - 28 AS SIGNED ) - - + col1 < - 89
----
-2914
-310
-868

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9565
SELECT ALL + col1 * - + 62 col1 FROM tab1 cor0 WHERE NOT CAST ( - 28 AS INTEGER ) - - + col1 < - 89
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT - 80, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-9566
SELECT - 80, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-80
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT + CAST( SUM( DISTINCT 88 ) AS SIGNED ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + CAST ( SUM ( DISTINCT 88 ) AS INTEGER ) FROM tab0 AS cor0
----
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 - - col2, + col2 )
----

query I rowsort
SELECT + 33 * + - 35 AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - - 47 + + ( col2 ) FROM tab1 WHERE - col2 NOT IN ( + - ( + - 85 ) - + col2 * - col1, - 29, + col2 ) AND col1 * + - 14 / + col1 * + - col1 IS NOT NULL
----
-2301
-3936
-4209

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - + col2 * - - 45 + - 90 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT DISTINCT CAST( - + 12 AS SIGNED ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT CAST ( - + 12 AS INTEGER ) FROM tab0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT DISTINCT - col2 DIV + + col2 + - 56 AS col1 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - col2 / + + col2 + - 56 AS col1 FROM tab1
----
-57

query I rowsort
SELECT + col0 + - ( - 55 ) AS col1 FROM tab2
----
101
119
130

query I rowsort
SELECT ALL - col0 - - - col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 90 - - 78 AS col1 FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT MIN( + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT MIN ( + - col0 ) FROM tab1
----
-91

query I rowsort
SELECT ALL - col1 - col2 FROM tab2 AS cor0 WHERE NOT + col1 * + 50 + + col1 IS NULL
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT MAX( ALL - - 2 ) AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9580
SELECT MAX ( ALL - - 2 ) AS col2 FROM tab2 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + col1 < + + 22
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9583
SELECT + SUM( DISTINCT + col0 ) AS col2, - 41 AS col2 FROM tab1 AS cor0
----
227
-41

skipif mysql # not compatible
query II rowsort label-9583
SELECT + SUM ( DISTINCT + col0 ) AS col2, - 41 AS col2 FROM tab1 AS cor0
----
227
-41

query I rowsort
SELECT ALL + col1 * - - col1 AS col2 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9585
SELECT * FROM tab1 WHERE NOT - - col2 + + - CAST( 59 AS SIGNED ) NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9585
SELECT * FROM tab1 WHERE NOT - - col2 + + - CAST ( 59 AS INTEGER ) NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT col0 AS col2, col1 * - 68 + 55 * col2 FROM tab2
----
46
-2203
64
-3036
75
-1366

query I rowsort
SELECT - 55 + + + 88 FROM tab0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9588
SELECT CAST( NULL AS SIGNED ) AS col0, + 43 * + col1 * col1 FROM tab2
----
NULL
111843
NULL
193027
NULL
254947

skipif mysql # not compatible
query II rowsort label-9588
SELECT CAST ( NULL AS INTEGER ) AS col0, + 43 * + col1 * col1 FROM tab2
----
NULL
111843
NULL
193027
NULL
254947

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT ALL col2 + + - col2 DIV - - 59 col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9589
SELECT ALL col2 + + - col2 / - - 59 col2 FROM tab1
----
58
67
95

query I rowsort
SELECT DISTINCT - + col1 + - col0 + - 57 FROM tab2 AS cor0
----
-154
-198
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + - COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9591
SELECT + - COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 83 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 12
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT ALL + - CAST( NULL AS SIGNED ) * + 53 + - 37 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 53 + - 37 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 85 * - col2 * 1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 96 + 82 FROM tab0 AS cor0
----
178

query I rowsort
SELECT DISTINCT + col2 - - + col2 FROM tab2 cor0
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT + 99 DIV - ( col1 ) + - col2 * + + col1 AS col1 FROM tab2 AS cor0
----
-1174
-3081
-3887

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 99 / - ( col1 ) + - col2 * + + col1 AS col1 FROM tab2 AS cor0
----
-1174
-3081
-3887

query II rowsort
SELECT + 78 + - 89 AS col1, - 32 FROM tab1 cor0
----
-11
-32
-11
-32
-11
-32

query II rowsort
SELECT DISTINCT - col2 AS col0, - 87 * + col2 * - col1 FROM tab2
----
-23
102051
-40
267960
-58
338082

query I rowsort
SELECT - col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - 71 * + + 40 FROM tab2 AS cor0
----
-2840
-2840
-2840

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( + 0 * + - col2 )
----

query I rowsort
SELECT col1 * + 13 * col1 FROM tab2
----
33813
58357
77077

query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
29

query I rowsort
SELECT + 31 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL - - 9 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 75 / - col0 <= + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT DISTINCT + 8 AS col1, COUNT( * ) AS col1 FROM tab2 cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT + 8 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0
----
8
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT - COUNT( + + col2 ), + 90 + - + SUM( DISTINCT + 27 ) * - + 1 AS col0 FROM tab2 AS cor0
----
-3
117

skipif mysql # not compatible
query II rowsort label-9611
SELECT - COUNT ( + + col2 ), + 90 + - + SUM ( DISTINCT + 27 ) * - + 1 AS col0 FROM tab2 AS cor0
----
-3
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9612
SELECT col1, + CAST( + 63 AS SIGNED ) FROM tab0 AS cor0
----
1
63
21
63
81
63

skipif mysql # not compatible
query II rowsort label-9612
SELECT col1, + CAST ( + 63 AS INTEGER ) FROM tab0 AS cor0
----
1
63
21
63
81
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 58 <= 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT + - CAST( NULL AS SIGNED ) / - - 43 * - col1 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT + - CAST ( NULL AS INTEGER ) / - - 43 * - col1 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT + - MAX( DISTINCT + - col0 ), SUM( - ( 12 ) ) AS col1 FROM tab1 AS cor0
----
51
-36

skipif mysql # not compatible
query II rowsort label-9615
SELECT + - MAX ( DISTINCT + - col0 ), SUM ( - ( 12 ) ) AS col1 FROM tab1 AS cor0
----
51
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT + + 65 / + SUM( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT + + 65 / + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query II rowsort
SELECT DISTINCT + col1, - 8 FROM tab1 AS cor0
----
14
-8
47
-8
5
-8

query II rowsort
SELECT ALL + 93, 61 * + + 98 AS col0 FROM tab0 AS cor0
----
93
5978
93
5978
93
5978

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT MAX( ALL - 51 ) * + + 97 AS col2 FROM tab2
----
-4947

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT MAX ( ALL - 51 ) * + + 97 AS col2 FROM tab2
----
-4947

query I rowsort
SELECT ALL col1 + - 83 - col2 AS col2 FROM tab0
----
-181
-49
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT col2 DIV + col0 * - - 90 + + 95 * + col0 FROM tab2
----
4370
6080
7125

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT col2 / + col0 * - - 90 + + 95 * + col0 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL + SUM( ALL + - ( 55 ) ) + + + COUNT( * ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + SUM ( ALL + - ( 55 ) ) + + + COUNT ( * ) FROM tab0 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT DISTINCT + COUNT( * ) * - 39 / MAX( + col2 ) * + MAX( 57 ) FROM tab2 cor0 WHERE NOT ( NOT + col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT + COUNT ( * ) * - 39 / MAX ( + col2 ) * + MAX ( 57 ) FROM tab2 cor0 WHERE NOT ( NOT + col0 IS NULL )
----
NULL

query II rowsort
SELECT - + col0 + - col2, col2 FROM tab0 AS cor0
----
-196
99
-62
47
-97
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT - COUNT( * ) + 65 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9627
SELECT DISTINCT - COUNT ( * ) + 65 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
56

query I rowsort
SELECT ALL 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query II rowsort
SELECT col0 AS col0, + col0 + + col1 * - 97 FROM tab2 AS cor0
----
46
-4901
64
-7405
75
-6424

query I rowsort
SELECT ALL 65 + - + 32 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT + - col1 - + + col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT DISTINCT COUNT( * ) - + + 75 AS col2 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT COUNT ( * ) - + + 75 AS col2 FROM tab2 cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL MAX( ALL - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) col0 FROM tab0, tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9634
SELECT ALL MAX ( ALL - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0 FROM tab0, tab1 cor0
----
NULL

query I rowsort
SELECT + 20 * + col2 + + + col0 + col0 * col0 * col2 AS col2 FROM tab1
----
251667
427540
564559

query I rowsort
SELECT ALL col2 + col1 * - col0 AS col2 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT col0 + - 40 AS col2 FROM tab0
----
-25
47
57

query I rowsort
SELECT ALL - 9 * - col0 FROM tab1
----
459
765
819

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT ( - + COUNT( * ) ) AS col2, 82 AS col0 FROM tab2
----
-3
82

skipif mysql # not compatible
query II rowsort label-9639
SELECT ( - + COUNT ( * ) ) AS col2, 82 AS col0 FROM tab2
----
-3
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT DISTINCT - - col2 DIV + col1 + - 81 FROM tab0 AS cor0
----
-81
18

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - - col2 / + col1 + - 81 FROM tab0 AS cor0
----
-81
18

query I rowsort
SELECT ALL 26 + + 60 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT + MAX( 94 ) + + 10 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
104

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + MAX ( 94 ) + + 10 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
104

query I rowsort
SELECT ( - + col2 ) * - col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-9645
SELECT ALL + 47, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
47
-3

skipif mysql # not compatible
query II rowsort label-9645
SELECT ALL + 47, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
47
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 / col2 + col2 = + 16 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT MAX( DISTINCT + + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9647
SELECT MAX ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9648
SELECT DISTINCT COUNT( - CAST( + col0 AS SIGNED ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9648
SELECT DISTINCT COUNT ( - CAST ( + col0 AS INTEGER ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT ALL - + col0, col2 + col1 AS col2 FROM tab0 cor0
----
-15
128
-87
31
-97
100

query I rowsort
SELECT ALL + ( - 84 ) AS col2 FROM tab2 cor0
----
-84
-84
-84

query II rowsort
SELECT col1, col2 * - + 51 AS col2 FROM tab1 cor0
----
14
-4896
47
-3468
5
-3009

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT - MAX( + 44 ) AS col2 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - MAX ( + 44 ) AS col2 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL + MAX( DISTINCT + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + MAX ( DISTINCT + col2 ) FROM tab2 cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( 91 ) NOT BETWEEN - col0 AND - ( + + 82 ) )
----

query I rowsort
SELECT DISTINCT - - 71 FROM tab0 cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT - col0 DIV - 44 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9656
SELECT - col0 / - 44 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT DISTINCT col2 * col0 + + col2 * col2 + 73 DIV col1 + - - 74 * - + col0 AS col1 FROM tab1 AS cor0
----
10343
2220
4079

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT col2 * col0 + + col2 * col2 + 73 / col1 + - - 74 * - + col0 AS col1 FROM tab1 AS cor0
----
10343
2220
4079

query II rowsort
SELECT ALL col0, col1 + col1 FROM tab0
----
15
162
87
42
97
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT - 70 * col0 + col1 - + CAST( + - 54 AS SIGNED ) + 48 + - col0 * + col2 * - col2 + col2 FROM tab0
----
2743
32315
944109

skipif mysql # not compatible
query I rowsort label-9659
SELECT - 70 * col0 + col1 - + CAST ( + - 54 AS INTEGER ) + 48 + - col0 * + col2 * - col2 + col2 FROM tab0
----
2743
32315
944109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT ( - + col2 ) * ( + CAST( - col2 AS SIGNED ) ) + ( - - 84 ) * col1 FROM tab1
----
10392
3901
8572

skipif mysql # not compatible
query I rowsort label-9660
SELECT ( - + col2 ) * ( + CAST ( - col2 AS INTEGER ) ) + ( - - 84 ) * col1 FROM tab1
----
10392
3901
8572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - 70 + col2 AS col0 FROM tab1
----
-11
-2
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL + ( - MIN( - - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + ( - MIN ( - - col2 ) ) FROM tab1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE col0 / + + 36 * - CAST( NULL AS SIGNED ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE col0 / + + 36 * - CAST ( NULL AS INTEGER ) >= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 87 <= - col0 * - + 48 + - + 75 - + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + 69 AS col1, - 40 FROM tab2 AS cor0
----
69
-40
69
-40
69
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9667
SELECT ( + ( + CAST( NULL AS SIGNED ) ) ) - - 30 AS col0, + ( - 42 ) + - COUNT( * ) FROM tab0, tab1 AS cor0
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-9667
SELECT ( + ( + CAST ( NULL AS INTEGER ) ) ) - - 30 AS col0, + ( - 42 ) + - COUNT ( * ) FROM tab0, tab1 AS cor0
----
NULL
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 4 AND - col1
----

query I rowsort
SELECT DISTINCT col1 * + col2 + + - 59 AS col2 FROM tab2 AS cor0
----
1114
3021
3827

query I rowsort
SELECT ALL + col2 * + 59 FROM tab1 AS cor0 WHERE ( 77 ) IS NOT NULL
----
3481
4012
5664

query II rowsort
SELECT - - 30 * + + col2, 0 * + col0 AS col1 FROM tab1 AS cor0
----
1770
0
2040
0
2880
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT - CAST( + - 84 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-9672
SELECT - CAST ( + - 84 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT - 48 AS col0 FROM tab1 cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab2 AS cor0
----
-91
-91
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 95 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 42 ) * col0 * + - col2 FROM tab0
----
-29610
-36540
-403326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT - ( col0 ) FROM tab2 WHERE NULL IS NOT NULL AND - CAST( + col2 AS SIGNED ) - col0 * + - col2 BETWEEN NULL AND ( 98 )
----

skipif mysql # not compatible
query I rowsort label-9677
SELECT - ( col0 ) FROM tab2 WHERE NULL IS NOT NULL AND - CAST ( + col2 AS INTEGER ) - col0 * + - col2 BETWEEN NULL AND ( 98 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT DISTINCT COUNT( * ) DIV 56 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT COUNT ( * ) / 56 FROM tab1
----
0

query I rowsort
SELECT 16 * + 3 FROM tab2
----
48
48
48

query I rowsort
SELECT DISTINCT - + ( + + col2 ) FROM tab1 cor0 WHERE NOT 22 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - ( - 50 ) AS col2 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT + + 15 AS col1 FROM tab0 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9683
SELECT ALL + CAST( NULL AS DECIMAL ) - - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + CAST ( NULL AS REAL ) - - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9684
SELECT ALL + 20 DIV + - col2 * 4 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + 20 / + - col2 * 4 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9685
SELECT MAX( - - col2 ) AS col1, - 47 FROM tab0 AS cor0
----
99
-47

skipif mysql # not compatible
query II rowsort label-9685
SELECT MAX ( - - col2 ) AS col1, - 47 FROM tab0 AS cor0
----
99
-47

query I rowsort
SELECT - 79 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-9687
SELECT - col1 DIV + col1, + col1 - + col1 AS col2 FROM tab2 AS cor0
----
-1
0
-1
0
-1
0

skipif mysql # not compatible
query II rowsort label-9687
SELECT - col1 / + col1, + col1 - + col1 AS col2 FROM tab2 AS cor0
----
-1
0
-1
0
-1
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND + col2
----

query I rowsort
SELECT col2 - + + col0 * - 93 FROM tab1 WHERE 29 / - 73 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2, tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 < col1 * col0 * 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT + COUNT( * ) + COUNT( ALL - col1 ) + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + COUNT ( * ) + COUNT ( ALL - col1 ) + + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT + col1 + 63 - - - 78 FROM tab0
----
-14
6
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9694
SELECT - 98 + + CAST( NULL AS SIGNED ) - - + col2, - 83 AS col1 FROM tab1 AS cor0
----
NULL
-83
NULL
-83
NULL
-83

skipif mysql # not compatible
query II rowsort label-9694
SELECT - 98 + + CAST ( NULL AS INTEGER ) - - + col2, - 83 AS col1 FROM tab1 AS cor0
----
NULL
-83
NULL
-83
NULL
-83

query I rowsort
SELECT DISTINCT - ( - - 97 ) AS col0 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT + 43 + COUNT( * ) * + 74 FROM tab1 cor0
----
265

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + 43 + COUNT ( * ) * + 74 FROM tab1 cor0
----
265

query II rowsort
SELECT ALL col2, 44 AS col0 FROM tab1
----
59
44
68
44
96
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT MIN( - 63 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT MIN ( - 63 ) FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT ALL 51, - COUNT( * ) + - 97 AS col0 FROM tab0
----
51
-100

skipif mysql # not compatible
query II rowsort label-9699
SELECT ALL 51, - COUNT ( * ) + - 97 AS col0 FROM tab0
----
51
-100

query I rowsort
SELECT ALL col2 * + 10 + col0 AS col0 FROM tab2
----
276
464
655

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT COUNT( * ) * + MIN( + col2 ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9701
SELECT COUNT ( * ) * + MIN ( + col2 ) AS col0 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL COUNT( + + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL COUNT ( + + col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 62 - col1 FROM tab1 AS cor0
----
15
48
57

query II rowsort
SELECT ALL - col2 AS col0, - col0 - + col1 FROM tab1 AS cor0
----
-59
-90
-68
-138
-96
-65

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL = + col0 * 31 + - col0 - + - col0 + - ( + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL = + col0 * 31 + - col0 - + - col0 + - ( + 14 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * + col0 * + + col0 col2 FROM tab1
----
-215883
-599675
-687323

onlyif mysql # aggregate syntax: 
query II rowsort label-9709
SELECT DISTINCT COUNT( * ) * COUNT( * ), MIN( 91 ) AS col2 FROM tab1
----
9
91

skipif mysql # not compatible
query II rowsort label-9709
SELECT DISTINCT COUNT ( * ) * COUNT ( * ), MIN ( 91 ) AS col2 FROM tab1
----
9
91

query I rowsort
SELECT + ( - - 21 ) * + - col2 FROM tab1
----
-1239
-1428
-2016

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 10 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 49 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + + 39 - + MIN( ALL + 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-9713
SELECT + + 39 - + MIN ( ALL + 59 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT - 78 - - + CAST( - ( + CAST( col2 AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-137
-146
-174

skipif mysql # not compatible
query I rowsort label-9714
SELECT - 78 - - + CAST ( - ( + CAST ( col2 AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-137
-146
-174

query I rowsort
SELECT DISTINCT + 4 + col0 AS col0 FROM tab2
----
50
68
79

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL + COUNT( * ) + - 55 AS col1 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL + COUNT ( * ) + - 55 AS col1 FROM tab1
----
-52

query I rowsort
SELECT DISTINCT + + 16 AS col0 FROM tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT + - 79 + + 73 + - col0 * + col1 FROM tab0 AS cor0
----
-103
-1221
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - ( + ( - COUNT( * ) ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9720
SELECT - ( + ( - COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT col1 + + + 11 FROM tab0 AS cor0
----
12
32
92

query I rowsort
SELECT + 17 + col2 AS col2 FROM tab1
----
113
76
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9723
SELECT ALL * FROM tab2 WHERE + - ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9723
SELECT ALL * FROM tab2 WHERE + - ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL COUNT( * ) + + + 37 + + COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL COUNT ( * ) + + + 37 + + COUNT ( * ) FROM tab2 AS cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 20 - - - ( + 37 ) col2 FROM tab0 AS cor0
----
-1657
-457
-57

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE ( + + col0 ) + + + col1 - - 68 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 17 * 18 AS col2 FROM tab0 AS cor0
----
306

query I rowsort
SELECT - + ( + 28 ) AS col1 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL + + 78 AS col1 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) > 67
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9731
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) > 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT MIN( ALL - CAST( + col2 AS SIGNED ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9733
SELECT MIN ( ALL - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + SUM( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9735
SELECT + SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT + MAX( ALL - + ( col0 ) ) * - 81 FROM tab2
----
3726

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT + MAX ( ALL - + ( col0 ) ) * - 81 FROM tab2
----
3726

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 4 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL 32 * COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL 32 * COUNT ( * ) FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( + col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT - + MIN( ALL - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9741
SELECT - + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT + + 7 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9742
SELECT + + 7 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( DISTINCT - col0 ) + + 34 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT - col0 ) + + 34 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 * 7 + - + col2 FROM tab2 AS cor0
----
-345
-488
-583

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT col2 DIV + col1 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9745
SELECT col2 / + col1 col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9746
SELECT * FROM tab2 AS cor0 WHERE ( ( col1 + - col1 + + + col1 <= + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9746
SELECT * FROM tab2 AS cor0 WHERE ( ( col1 + - col1 + + + col1 <= + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9747
SELECT DISTINCT col1 DIV - 80 + col0 AS col0, col2 + - col1 FROM tab1 AS cor0
----
51
82
85
54
91
21

skipif mysql # not compatible
query II rowsort label-9747
SELECT DISTINCT col1 / - 80 + col0 AS col0, col2 + - col1 FROM tab1 AS cor0
----
51
82
85
54
91
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT ALL 77 DIV col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL 77 / col0 FROM tab0
----
0
0
5

query I rowsort
SELECT DISTINCT col0 * - 32 + 89 + - col2 FROM tab0
----
-2705
-3114
-438

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE + col2 * - col2 + 62 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col1 + - - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT - AVG ( ALL + 88 ) - CAST( NULL AS SIGNED ) * SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - AVG ( ALL + 88 ) - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + - col0 col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT DISTINCT + - 71 - + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + - 71 - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + col2 * - + 66 AS col0 FROM tab0 AS cor0
----
-3102
-6534
-660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + 88
----

query I rowsort
SELECT ALL + + ( + ( - - col0 ) ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 76 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT + SUM( - 87 ) AS col1 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-9760
SELECT + SUM ( - 87 ) AS col1 FROM tab1
----
-261

query I rowsort
SELECT col2 * - + col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT - ( + - SUM( ( col0 ) ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - ( + - SUM ( ( col0 ) ) ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76 + + - col2 col2, + 44 AS col1 FROM tab2
----
18
44
36
44
53
44

query I rowsort
SELECT DISTINCT + - col0 + + 73 AS col1 FROM tab0 cor0
----
-14
-24
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9765
SELECT ALL - + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 50 * + col2 AS col0, 81 FROM tab1 AS cor0
----
2950
81
3400
81
4800
81

query I rowsort
SELECT DISTINCT - 81 * - + col0 - + + col2 FROM tab0 AS cor0
----
1168
7037
7758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT ALL ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL <> - 99 + - col2
----

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL <> - 99 + - col2
----

query I rowsort
SELECT ALL col1 * + 32 * + col2 FROM tab2
----
124352
37536
98560

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT MAX( + col0 ) * - 76 + COUNT( * ) AS col0 FROM tab1
----
-6913

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT MAX ( + col0 ) * - 76 + COUNT ( * ) AS col0 FROM tab1
----
-6913

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL - 98 + - MAX( + - 3 ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL - 98 + - MAX ( + - 3 ) FROM tab2
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + 26, col1 col0 FROM tab0
----
-1222
81
-2574
1
-260
21

query I rowsort
SELECT ALL - col1 + - col0 - - col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col1 FROM tab2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT + - col2 DIV col0 AS col2 FROM tab1 WHERE ( - col1 * col0 IS NOT NULL )
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT + - col2 / col0 AS col2 FROM tab1 WHERE ( - col1 * col0 IS NOT NULL )
----
-1
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= - 76
----

query I rowsort
SELECT ALL - + 27 + - col0 + + - col1 AS col0 FROM tab1 cor0
----
-117
-165
-92

query I rowsort
SELECT DISTINCT - - ( col2 ) + - - 90 FROM tab0 AS cor0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT + + MIN( + col1 ) - COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9780
SELECT + + MIN ( + col1 ) - COUNT ( * ) FROM tab0 AS cor0
----
-2

query II rowsort
SELECT - - col2 * - + 98, col2 FROM tab2 AS cor0
----
-2254
23
-3920
40
-5684
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL 49 * + 1 * - + COUNT( * ) AS col2 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL 49 * + 1 * - + COUNT ( * ) AS col2 FROM tab2
----
-147

query I rowsort
SELECT - 50 * + col0 AS col1 FROM tab2 cor0
----
-2300
-3200
-3750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 col2 FROM tab1 AS cor0
----
58

query I rowsort
SELECT + 35 * - + 71 AS col1 FROM tab0 cor0
----
-2485
-2485
-2485

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 83 + + 24 + col1 + + col0 / + col0 NOT BETWEEN - col0 AND NULL )
----

query II rowsort
SELECT + + 78, + 62 AS col2 FROM tab0 AS cor0
----
78
62
78
62
78
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 * - col0 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT - 47 DIV col1 + + col1 FROM tab0 AS cor0
----
-46
19
81

skipif mysql # not compatible
query I rowsort label-9789
SELECT - 47 / col1 + + col1 FROM tab0 AS cor0
----
-46
19
81

query I rowsort
SELECT DISTINCT + col1 * - - ( - + col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - + 60 AS col1 FROM tab2 cor0
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = + col2 OR - 64 + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT - MIN( + + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT - MIN ( + + col2 ) FROM tab0
----
-10

query I rowsort
SELECT + col2 * - col1 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
15178240
19527150
2751858

query I rowsort
SELECT ALL 44 * col0 + 74 FROM tab2 AS cor0
----
2098
2890
3374

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9796
SELECT ALL + 92 col0, col1 FROM tab2 cor0 WHERE NOT + col2 + ( + CAST( 34 AS SIGNED ) ) NOT IN ( col0, ( + 71 ) * + 73 - - 91, col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9796
SELECT ALL + 92 col0, col1 FROM tab2 cor0 WHERE NOT + col2 + ( + CAST ( 34 AS INTEGER ) ) NOT IN ( col0, ( + 71 ) * + 73 - - 91, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9797
SELECT CAST( NULL AS SIGNED ) + + + SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT CAST ( NULL AS INTEGER ) + + + SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( - col1 ) + - col0 + + col1 * + - col2 AS col0 FROM tab2 AS cor0
----
-1270
-3221
-4028

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT DISTINCT + 2 * + + 31 * 4 + 29 DIV - 47 FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT + 2 * + + 31 * 4 + 29 / - 47 FROM tab1 AS cor0
----
248

query III rowsort
SELECT * FROM tab0 WHERE 71 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9801
SELECT col0 DIV col2 + + 41 AS col0, col1 AS col2 FROM tab0
----
41
1
41
81
49
21

skipif mysql # not compatible
query II rowsort label-9801
SELECT col0 / col2 + + 41 AS col0, col1 AS col2 FROM tab0
----
41
1
41
81
49
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT - col1 DIV + 78 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT - col1 / + 78 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 81 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ( + - COUNT( * ) ) + COUNT( * ) FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT ( + - COUNT ( * ) ) + COUNT ( * ) FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + 32 AS col0 FROM tab2
----
109
83
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 <= + 37 / - ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL - + COUNT( * ) * + COUNT( - col2 ) AS col0 FROM tab0 cor0 WHERE + 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - + COUNT ( * ) * + COUNT ( - col2 ) AS col0 FROM tab0 cor0 WHERE + 97 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 / + col1 * + 51 AS col2 FROM tab1 AS cor0 WHERE 70 IS NULL
----

query I rowsort
SELECT DISTINCT + 2 + + col0 AS col1 FROM tab2 AS cor0
----
48
66
77

query I rowsort
SELECT + - col2 - + - 93 FROM tab2 AS cor0
----
35
53
70

query I rowsort
SELECT DISTINCT col0 * col1 - + col1 FROM tab1 cor0
----
420
4230
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL - CAST( - + ( + ( + 12 ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - CAST ( - + ( + ( + 12 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9814
SELECT ALL - + CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL - + CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT DISTINCT - col0 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - col0 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - ( col2 ) * + col0 + + 59 AS col1 FROM tab0
----
-646
-811
-9544

onlyif mysql # aggregate syntax: 
query II rowsort label-9817
SELECT DISTINCT + 7, COUNT( * ) AS col1 FROM tab2
----
7
3

skipif mysql # not compatible
query II rowsort label-9817
SELECT DISTINCT + 7, COUNT ( * ) AS col1 FROM tab2
----
7
3

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + col1 + + col1 + - 49 + + 64 FROM tab2
----
117
149
169

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT - COUNT( * ) * - 31 + + + MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - COUNT ( * ) * - 31 + + + MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
144

query I rowsort
SELECT ALL 99 + ( - col0 ) FROM tab2 AS cor0
----
24
35
53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + 92 AND - - col2 - - col2 * + - 27
----

query I rowsort
SELECT ALL col1 * 61 AS col0 FROM tab0 cor0
----
1281
4941
61

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + col1 * - 59 FROM tab1 cor0
----
-2773
-295
-826

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 16 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL + col2 * - ( CAST( + - ( - col0 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + col2 * - ( CAST ( + - ( - col0 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 22 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT ( COUNT( * ) ) DIV + + 64 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT ( COUNT ( * ) ) / + + 64 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9831
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 58 + - col2 <> - ( + ( - col1 ) ) * - - CAST( + - col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9831
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 58 + - col2 <> - ( + ( - col1 ) ) * - - CAST ( + - col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT DISTINCT + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT ALL ( + 47 ) AS col0 FROM tab1
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT col0 + - - col1 + + + ( 27 ) DIV + col2 - + 54 col0 FROM tab2
----
44
87
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9834
SELECT col0 + - - col1 + + + ( 27 ) / + col2 - + 54 col0 FROM tab2
----
44
87
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, col1 col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 33 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( ( + col2 ) )
----

query I rowsort
SELECT + 90 * + 50 + col1 * + col2 AS col2 FROM tab1
----
4795
5844
7696

query I rowsort
SELECT + col1 * + 92 FROM tab1
----
1288
4324
460

query I rowsort
SELECT ALL - col0 * ( col0 ) + col1 AS col0 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT 63 * col0 FROM tab1
----
3213
5355
5733

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 33 > ( col0 * + 47 )
----

query I rowsort
SELECT ALL col0 + + 41 FROM tab1 WHERE 23 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 83 > ( col1 )
----

query I rowsort
SELECT ALL 23 * ( - col0 ) + col2 * ( ( 11 ) ) AS col0 FROM tab0
----
-1142
-1891
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT COUNT( * ) * 60 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-9846
SELECT COUNT ( * ) * 60 FROM tab2
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-9847
SELECT ALL - 64 DIV + col1 + - col0 FROM tab2
----
-47
-64
-75

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - 64 / + col1 + - col0 FROM tab2
----
-47
-64
-75

query I rowsort
SELECT 24 + 54 AS col0 FROM tab0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT 30 * SUM( - 22 * + 12 ) FROM tab2
----
-23760

skipif mysql # not compatible
query I rowsort label-9849
SELECT 30 * SUM ( - 22 * + 12 ) FROM tab2
----
-23760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9850
SELECT + 50 * ( SUM( CAST( + 0 AS SIGNED ) ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT + 50 * ( SUM ( CAST ( + 0 AS INTEGER ) ) ) AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + ( - 99 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9853
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) DIV 84 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9853
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) / 84 col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - COUNT( * ) + + 36 AS col0 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9854
SELECT - COUNT ( * ) + + 36 AS col0 FROM tab2
----
33

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT 8 * + col2 IS NOT NULL
----

query I rowsort
SELECT 12 * 74 + + col0 AS col2 FROM tab0
----
903
975
985

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9857
SELECT DISTINCT + col0 DIV - CAST( col0 AS SIGNED ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT + col0 / - CAST ( col0 AS INTEGER ) FROM tab1
----
-1

query I rowsort
SELECT + col0 + 47 * + col0 AS col1 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT - 54 AS col0 FROM tab0 WHERE ( NULL ) IN ( - 47 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT col2 = col1 * + 2 + ( col1 + col2 * col2 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT DISTINCT + CAST( col2 AS SIGNED ) FROM tab0 WHERE NOT col1 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT + CAST ( col2 AS INTEGER ) FROM tab0 WHERE NOT col1 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT - 42 - MIN( - col2 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - 42 - MIN ( - col2 ) FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT CAST( col2 AS SIGNED ) + 20 AS col1 FROM tab0
----
119
30
67

skipif mysql # not compatible
query I rowsort label-9864
SELECT CAST ( col2 AS INTEGER ) + 20 AS col1 FROM tab0
----
119
30
67

query I rowsort
SELECT DISTINCT col1 * 0 + col1 AS col0 FROM tab2 WHERE ( NULL ) > 69
----

query I rowsort
SELECT ALL ( - 14 ) + + col2 FROM tab1
----
45
54
82

query I rowsort
SELECT DISTINCT - 53 + ( col2 ) FROM tab1
----
15
43
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT - 54 DIV + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT - 54 / + col0 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 79 + - 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 93 ) * col1 FROM tab2 cor0
----
-4743
-6231
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT MAX( - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT MAX ( - col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + col1 * - 62 FROM tab2 AS cor0
----
-3162
-4154
-4774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 * col1 + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 54 BETWEEN + col2 * col0 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * 92 + - col1 FROM tab2 WHERE ( 47 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT DISTINCT + MAX( col0 ) DIV 18 AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT + MAX ( col0 ) / 18 AS col0 FROM tab1 cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 74 = - 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 57 FROM tab2 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + + COUNT( 97 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9882
SELECT + + COUNT ( 97 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9883
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + 82 AS SIGNED ) * + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9883
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + 82 AS INTEGER ) * + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT + CAST( NULL AS SIGNED ) * - 82 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT + CAST ( NULL AS INTEGER ) * - 82 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 15 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( - col2 ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - + MAX( + col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9887
SELECT - + MAX ( + col1 ) col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - col1 * + 82 AS col0 FROM tab2 AS cor0
----
-4182
-5494
-6314

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 90 = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col0 * - col2 + col2 ) <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( col2 ) < col2 * col1
----
-2

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( col2 ) < col2 * col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT SUM( DISTINCT - col1 ) DIV - 28 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9892
SELECT SUM ( DISTINCT - col1 ) / - 28 FROM tab0
----
3

query I rowsort
SELECT ALL - col2 * + - ( ( col1 ) ) FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT ALL - col2 DIV - ( col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL - col2 / - ( col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab1 WHERE + col2 + - 26 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE + 52 * 50 BETWEEN ( NULL ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9898
SELECT DISTINCT * FROM tab2 WHERE col1 / - col1 + 35 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9898
SELECT DISTINCT * FROM tab2 WHERE col1 / - col1 + 35 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9899
SELECT ALL - CAST( NULL AS DECIMAL ) + col0 - col1 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL - CAST ( NULL AS REAL ) + col0 - col1 * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT - 51 * - COUNT( * ) * - 12 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1833

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - 51 * - COUNT ( * ) * - 12 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1833

query I rowsort
SELECT ALL + col0 + - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * col0 + - col1 * - 65 FROM tab0 AS cor0
----
5490
8934
9474

query I rowsort
SELECT - 25 + + col1 AS col0 FROM tab0 AS cor0
----
-24
-4
56

query I rowsort
SELECT ALL - col1 * + - col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT - col1 * - ( - + 4 ) FROM tab0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT - COUNT( * ) col1 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-9906
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 0 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + SUM( ALL + col0 ) AS col2 FROM tab1 WHERE - - col1 * col1 IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-9908
SELECT + SUM ( ALL + col0 ) AS col2 FROM tab1 WHERE - - col1 * col1 IS NOT NULL
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ( - + SUM( DISTINCT 37 ) ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-9909
SELECT ( - + SUM ( DISTINCT 37 ) ) FROM tab1
----
-37

query I rowsort
SELECT DISTINCT col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + col1 * - 13 + ( + col1 ) - col0 FROM tab2 AS cor0
----
-658
-879
-988

query I rowsort
SELECT ALL col1 * 25 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT - 95 - - + 21 + col1 + CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-46
-64
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9913
SELECT - 95 - - + 21 + col1 + CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-46
-64
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( ( - - col0 ) ) + 66 col1 FROM tab1 AS cor0
----
117
151
157

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT ALL + col1 DIV - col2 - col0 + + 21 * - 83 FROM tab0 cor0
----
-1759
-1832
-1840

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL + col1 / - col2 - col0 + + 21 * - 83 FROM tab0 cor0
----
-1759
-1832
-1840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9916
SELECT 9 * + CAST( NULL AS DECIMAL ) * + COUNT( * ) - AVG ( DISTINCT 2 ) / - 5 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT 9 * + CAST ( NULL AS REAL ) * + COUNT ( * ) - AVG ( DISTINCT 2 ) / - 5 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( col0 ) > - col0
----
-3

skipif mysql # not compatible
query I rowsort label-9917
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( col0 ) > - col0
----
-3

query I rowsort
SELECT ALL - + 77 * - - col0 - - col2 FROM tab0 AS cor0
----
-1108
-6689
-7370

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 0 / + 31 BETWEEN + col0 AND col2 * col0
----

query I rowsort
SELECT ALL - col2 - + col2 * + col2 + + 36 FROM tab0 AS cor0
----
-2220
-74
-9864

query II rowsort
SELECT ALL + 1 AS col1, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * - + col1 + 41 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ( ( + col1 ) ) * + - col0 - col2 * - 66 AS col2 FROM tab1
----
211
3469
5622

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9924
SELECT * FROM tab1 WHERE NOT - col1 * + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9924
SELECT * FROM tab1 WHERE NOT - col1 * + CAST ( NULL AS REAL ) <> NULL
----

query II rowsort
SELECT - 32 * - 87, + col0 FROM tab2
----
2784
46
2784
64
2784
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 14 * + 23 - col2 * + 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL MIN( DISTINCT col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL MIN ( DISTINCT col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT - 6 FROM tab2 WHERE NOT ( NULL ) IN ( - 22 )
----

query I rowsort
SELECT - col2 * - + ( + 19 ) FROM tab0
----
1881
190
893

query I rowsort
SELECT ( - - 75 ) * + col0 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT - ( + + ( - col0 ) ) FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ) col0, col2 col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT + - SUM( + ( - - ( 49 ) ) ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT + - SUM ( + ( - - ( 49 ) ) ) FROM tab1 AS cor0
----
-147

query I rowsort
SELECT ALL col0 + - 31 FROM tab2 AS cor0
----
15
33
44

query II rowsort
SELECT + col0 * col0 AS col2, ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 41 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9937
SELECT * FROM tab2 AS cor0 WHERE NULL <> NULL AND NOT - col1 NOT BETWEEN NULL AND - col2 + - CAST( - 41 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9937
SELECT * FROM tab2 AS cor0 WHERE NULL <> NULL AND NOT - col1 NOT BETWEEN NULL AND - col2 + - CAST ( - 41 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 AS cor0 WHERE NOT - col2 / - col0 = ( col0 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( - ( 83 ) + col1 )
----

query I rowsort
SELECT DISTINCT + ( + 64 ) FROM tab1
----
64

query I rowsort
SELECT DISTINCT col1 * + 79 FROM tab2
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + 17 * + MIN( DISTINCT + + col2 ) FROM tab2
----
391

skipif mysql # not compatible
query I rowsort label-9942
SELECT + 17 * + MIN ( DISTINCT + + col2 ) FROM tab2
----
391

query II rowsort
SELECT + col1, + 77 + col0 * col0 FROM tab1
----
14
2678
47
8358
5
7302

query I rowsort
SELECT ALL 86 * 61 + + ( - col1 ) AS col0 FROM tab1
----
5199
5232
5241

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT COUNT( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9946
SELECT COUNT ( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 86 * - + col1 + 62 + - + col2 * - - col2 AS col2 FROM tab0 AS cor0
----
-9653
1768
4819

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT col2 + + 3 DIV col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9948
SELECT col2 + + 3 / col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL 82 + COUNT( * ) FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL 82 + COUNT ( * ) FROM tab1 cor0
----
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + 19 ) > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - - 92 AND + col1 * 82 * + - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT DISTINCT - 65 * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT - 65 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL + MAX( + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL + MAX ( + + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT - + col1 * - 63 FROM tab2 AS cor0
----
3213
4221
4851

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9955
SELECT + - MIN( DISTINCT - col0 ) * - - CAST( NULL AS DECIMAL ) / - - ( - 56 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT + - MIN ( DISTINCT - col0 ) * - - CAST ( NULL AS REAL ) / - - ( - 56 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT CAST( - + 43 AS SIGNED ) * - col1 * col2 FROM tab1 AS cor0
----
12685
137428
57792

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT CAST ( - + 43 AS INTEGER ) * - col1 * col2 FROM tab1 AS cor0
----
12685
137428
57792

query I rowsort
SELECT DISTINCT 28 FROM tab0 WHERE - 76 * 92 / 69 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT + 24 * - - MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
1224

skipif mysql # not compatible
query I rowsort label-9958
SELECT + 24 * - - MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT DISTINCT + ( + col0 ) DIV 99 DIV + col0 + + 99 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT + ( + col0 ) / 99 / + col0 + + 99 FROM tab0
----
99

query II rowsort
SELECT col1, - col1 AS col2 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT + 42 * COUNT( * ) AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 42 * COUNT ( * ) AS col2 FROM tab1
----
126

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL COUNT( + + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL COUNT ( + + col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT COUNT( ALL + 77 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT COUNT ( ALL + 77 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT MAX( + + 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT MAX ( + + 78 ) AS col0 FROM tab0
----
78

query II rowsort
SELECT DISTINCT - - col2 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT ALL col2 * - ( + 68 ) * - col0 FROM tab1 AS cor0
----
332928
341020
420784

query I rowsort
SELECT - col1 * col2 * col0 + - col1 FROM tab2 AS cor0
----
-197197
-291517
-54009

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT MAX( + + 67 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9969
SELECT MAX ( + + 67 ) FROM tab1 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT - 98 DIV + - 55 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9970
SELECT - 98 / + - 55 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 * - + col2 + + ( - col1 ) + + col2 * col0 + - col1 * 77 FROM tab2 WHERE NOT - 58 IS NULL
----
-3449
-4240
-5046

query I rowsort
SELECT DISTINCT - ( - + 89 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT - - CAST( NULL AS SIGNED ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9973
SELECT - - CAST ( NULL AS INTEGER ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9974
SELECT ALL col2 + + col1 AS col2, CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
110
51
115
91
64
85

skipif mysql # not compatible
query II rowsort label-9974
SELECT ALL col2 + + col1 AS col2, CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
110
51
115
91
64
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL - COUNT( * ) + - + COUNT( * ) + - SUM( ALL + + ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) + - SUM ( ALL + + ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT DISTINCT + CAST( + + 78 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-3588
-4992
-5850

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT + CAST ( + + 78 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-3588
-4992
-5850

query I rowsort
SELECT + 32 * - 3 FROM tab2 AS cor0 WHERE NULL <> + 77 * + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col2 AS col2, ( + - col0 ) col0 FROM tab2 cor0
----
1058
-46
2560
-64
4350
-75

query I rowsort
SELECT ALL col0 * - - 21 + col1 FROM tab1 cor0
----
1085
1790
1958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9980
SELECT - CAST( - 77 AS SIGNED ) DIV + - 33 - + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9980
SELECT - CAST ( - 77 AS INTEGER ) / + - 33 - + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( 24 ) / - 9, col1 )
----

query I rowsort
SELECT + col0 + - col1 * + 19 FROM tab2
----
-1198
-1399
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - 53 + - - COUNT( * ) + - 43 AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-9983
SELECT - 53 + - - COUNT ( * ) + - 43 AS col2 FROM tab1
----
-93

query I rowsort
SELECT DISTINCT + col0 + - + 79 FROM tab2
----
-15
-33
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL - + ( + - COUNT( * ) ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - + ( + - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT + col2 DIV + 59 + + col0 * - col0 + + - 5 + col2 + col1 - ( - 93 ) col1 FROM tab1 AS cor0
----
-2402
-7072
-8077

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9986
SELECT + col2 / + 59 + + col0 * - col0 + + - 5 + col2 + col1 - ( - 93 ) col1 FROM tab1 AS cor0
----
-2402
-7072
-8077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT + ( + col0 ) + CAST( 14 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
101
111
29

skipif mysql # not compatible
query I rowsort label-9987
SELECT + ( + col0 ) + CAST ( 14 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
101
111
29

query I rowsort
SELECT + 14 + + 62 + - col1 AS col2 FROM tab1 AS cor0
----
29
62
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL + MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL + MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9990
SELECT ALL 50 AS col2, ( - COUNT( * ) ) AS col0 FROM tab2
----
50
-3

skipif mysql # not compatible
query II rowsort label-9990
SELECT ALL 50 AS col2, ( - COUNT ( * ) ) AS col0 FROM tab2
----
50
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT MIN( DISTINCT - - 52 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT MIN ( DISTINCT - - 52 ) FROM tab2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT + COUNT( * ) DIV + MIN( DISTINCT + - 62 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT + COUNT ( * ) / + MIN ( DISTINCT + - 62 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * + - 49 col2 FROM tab1 AS cor0
----
-2744
-2744
-2744

onlyif mysql # DIV for integer division: 
query II rowsort label-9994
SELECT + - col2 DIV - col2 - col0 DIV col1 col2, + col0 AS col0 FROM tab0 AS cor0
----
-3
87
-96
97
1
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9994
SELECT + - col2 / - col2 - col0 / col1 col2, + col0 AS col0 FROM tab0 AS cor0
----
-3
87
-96
97
1
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9995
SELECT ALL - COUNT( * ) DIV COUNT( * ) DIV 5 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL - COUNT ( * ) / COUNT ( * ) / 5 AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT + + col1 * + col2 AS col1, - ( + + ( + - 71 ) ) FROM tab0 AS cor0
----
210
71
3807
71
99
71

query I rowsort
SELECT ALL col0 * - col0 AS col2 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT + 6 * - - ( + + 64 ) * - 18 FROM tab2
----
-6912
-6912
-6912

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 61 >= NULL
----

