hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < - 49 + - - 12 + + + col1
----

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

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

query I rowsort
SELECT col1 * - - 93 + - + 69 AS col2 FROM tab1
----
1233
396
4302

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

query I rowsort
SELECT col2 * + 99 AS col1 FROM tab1
----
5841
6732
9504

query II rowsort
SELECT ALL col1, col2 + 11 * - 52 FROM tab2 AS cor0
----
51
-549
67
-514
77
-532

query I rowsort
SELECT + + 76 AS col2 FROM tab0 cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-14
SELECT DISTINCT - col1, ( CAST( - 83 AS SIGNED ) ) * - + 83 AS col2 FROM tab1 AS cor0
----
-14
6889
-47
6889
-5
6889

skipif mysql # not compatible
query II rowsort label-14
SELECT DISTINCT - col1, ( CAST ( - 83 AS INTEGER ) ) * - + 83 AS col2 FROM tab1 AS cor0
----
-14
6889
-47
6889
-5
6889

query I rowsort
SELECT ALL col2 * - col0 - - 98 FROM tab1 AS cor0
----
-4798
-4917
-6090

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

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

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

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

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

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

query I rowsort
SELECT + col0 * col1 * + - 32 AS col0 FROM tab2 AS cor0
----
-157696
-160800
-75072

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - MIN( ALL - col0 ) - - + 67 + + - 65 * ( + COUNT( * ) ) AS col2 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-23
SELECT - MIN ( ALL - col0 ) - - + 67 + + - 65 * ( + COUNT ( * ) ) AS col2 FROM tab0
----
-31

query I rowsort
SELECT 11 - 44 AS col1 FROM tab0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab0 WHERE 9 / - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col2 + ( 6 ) FROM tab2
----
1606
3370
535

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

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

query I rowsort
SELECT - 86 * - 74 + - col1 FROM tab0
----
6283
6343
6363

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + 86 + + + MAX( ALL 28 ) * - - COUNT( * ) FROM tab1 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-29
SELECT + 86 + + + MAX ( ALL 28 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
170

query I rowsort
SELECT - 53 + + col1 AS col1 FROM tab0 AS cor0
----
-32
-52
28

query I rowsort
SELECT - - 40 * ( - col1 ) + + col2 - - col1 FROM tab2 AS cor0
----
-1966
-2555
-2963

query I rowsort
SELECT 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

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

query II rowsort
SELECT col0, col1 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 0 IS NULL
----
46
2346
64
4928
75
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col1 col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-36
SELECT - col1 + col0 + + col1 - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-36
SELECT - col1 + col0 + + col1 - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL
----
0
NULL
0
NULL
0
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + - MAX( + - 52 ) AS col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + - MAX ( + - 52 ) AS col1 FROM tab2 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, ( - col0 ) AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT + 72 * COUNT( * ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT + 72 * COUNT ( * ) FROM tab0 AS cor0
----
216

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-43
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 8 / CAST( NULL AS SIGNED ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-43
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 8 / CAST ( NULL AS INTEGER ) > NULL )
----

query I rowsort
SELECT DISTINCT col2 * ( - - col1 ) + + - col2 AS col1 FROM tab2
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL + + MIN( DISTINCT - 84 ) AS col1 FROM tab1 WHERE NOT 55 + 66 IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + + MIN ( DISTINCT - 84 ) AS col1 FROM tab1 WHERE NOT 55 + 66 IS NULL
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + COUNT( * ) * AVG ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE - col1 < - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + COUNT ( * ) * AVG ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE - col1 < - + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT col2 DIV + col2 - - col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-48
SELECT col2 / + col2 - - col1 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT col0 + col1 - - col0 + - - col1 * col2 FROM tab1
----
1460
3425
470

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 37 ) IS NULL
----

query I rowsort
SELECT + col1 + - + 90 AS col2 FROM tab1 AS cor0
----
-43
-76
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + col2 * col0 * 9 + + 91 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-53
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + col2 * col0 * 9 + + 91 IS NOT NULL )
----
0

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

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

query I rowsort
SELECT ALL + 29 + - ( + 33 ) FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL - + col1 DIV - col1 + + - col0 + + + col1 FROM tab2 cor0
----
-7
14
6

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL - + col1 / - col1 + + - col0 + + + col1 FROM tab2 cor0
----
-7
14
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-58
SELECT * FROM tab2 WHERE CAST( + col1 AS SIGNED ) + - 73 IS NULL
----

skipif mysql # not compatible
query III rowsort label-58
SELECT * FROM tab2 WHERE CAST ( + col1 AS INTEGER ) + - 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT COUNT( * ) + - + COUNT( 51 ) * COUNT( * ) + + 30 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT COUNT ( * ) + - + COUNT ( 51 ) * COUNT ( * ) + + 30 FROM tab1
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - 16 * + + MAX( + - col1 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-61
SELECT - 16 * + + MAX ( + - col1 ) FROM tab1
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT + SUM( ALL - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-64
SELECT + SUM ( ALL - + col1 ) FROM tab0
----
-103

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ( + MAX( - + 40 ) ) * + 27 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT ( + MAX ( - + 40 ) ) * + 27 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL col2, ( - + col1 ) + + col0 * ( + - 86 ) * col1 - - 37 FROM tab0 cor0
----
10
-157106
47
-104534
99
-8306

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

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

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

skipif mysql # not compatible
query II rowsort label-71
SELECT ALL + - col1, col0 / + ( + col1 ) + 41 AS col2 FROM tab2 AS cor0
----
-51
41
-67
42
-77
41

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

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

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

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

query I rowsort
SELECT ( - - col2 ) FROM tab2 AS cor0
----
23
40
58

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

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

skipif mysql # not compatible
query II rowsort label-77
SELECT + COUNT ( 93 ), + COUNT ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
3
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-79
SELECT + COUNT( * ) AS col1, + 33 FROM tab0
----
3
33

skipif mysql # not compatible
query II rowsort label-79
SELECT + COUNT ( * ) AS col1, + 33 FROM tab0
----
3
33

query I rowsort
SELECT ALL col1 * 93 + - - col0 * - 22 * + 7 FROM tab2
----
-2341
-2695
-5319

query II rowsort
SELECT DISTINCT - col2, + col2 * - ( - col0 ) AS col1 FROM tab1
----
-59
5015
-68
6188
-96
4896

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

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

skipif mysql # not compatible
query I rowsort label-83
SELECT - - COUNT ( * ) + + 1 FROM tab0 cor0
----
4

query I rowsort
SELECT + ( - - 73 ) + col1 FROM tab2 cor0
----
124
140
150

query II rowsort
SELECT ALL - 51 * col1 * - + col2 * - col0, col2 FROM tab0 AS cor0
----
-2912355
47
-489753
99
-931770
10

query I rowsort
SELECT ALL col0 * + col0 - - - col1 AS col0 FROM tab2
----
2065
4019
5558

query I rowsort
SELECT DISTINCT + + col0 * - + col2 + col0 AS col2 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - ( + SUM( DISTINCT - col2 ) ) * + 15 AS col0 FROM tab1 AS cor0
----
3345

skipif mysql # not compatible
query I rowsort label-88
SELECT - ( + SUM ( DISTINCT - col2 ) ) * + 15 AS col0 FROM tab1 AS cor0
----
3345

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT ALL COUNT( * ) DIV MIN( - 4 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL COUNT ( * ) / MIN ( - 4 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 - 50 FROM tab1 cor0
----
18
46
9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL MIN( ALL - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL MIN ( ALL - col1 ) FROM tab0
----
-81

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT ( 82 >= + col1 )
----

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

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

query I rowsort
SELECT ALL - 85 AS col2 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - - 70 * + col0 FROM tab1 AS cor0
----
3570
5950
6370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( 3 ) * + 45 - + col2 col2 FROM tab0 cor0
----
125
36
88

query I rowsort
SELECT DISTINCT - col1 * + - 48 FROM tab0 AS cor0
----
1008
3888
48

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

skipif mysql # not compatible
query II rowsort label-101
SELECT ALL - CAST ( - col0 AS INTEGER ), col2 FROM tab0
----
15
47
87
10
97
99

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT DISTINCT 93 AS col2, MAX( - + col1 ) AS col1 FROM tab2
----
93
-51

skipif mysql # not compatible
query II rowsort label-104
SELECT DISTINCT 93 AS col2, MAX ( - + col1 ) AS col1 FROM tab2
----
93
-51

query I rowsort
SELECT + + col1 * + col1 * + + col1 * + + col1 FROM tab0 cor0
----
1
194481
43046721

query I rowsort
SELECT - 58 + + col2 FROM tab1 AS cor0 WHERE NOT col2 < + 52
----
1
10
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-107
SELECT col2 col1, CAST( NULL AS SIGNED ) + + col2 / - + CAST( + + col0 AS SIGNED ) + 32 + + - 37 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-107
SELECT col2 col1, CAST ( NULL AS INTEGER ) + + col2 / - + CAST ( + + col0 AS INTEGER ) + 32 + + - 37 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - MIN( - - ( - col0 ) ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-109
SELECT - MIN ( - - ( - col0 ) ) FROM tab1 cor0
----
91

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

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

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

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

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

query II rowsort
SELECT col0 + - col1 AS col1, + col2 FROM tab1
----
37
96
44
68
80
59

query II rowsort
SELECT 76 + - 38 AS col0, + 56 AS col1 FROM tab0
----
38
56
38
56
38
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - col1 + + col1 + + col2 + - 36 col1, 81 FROM tab2
----
-1135
81
-2999
81
-3797
81

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-117
SELECT - - 67 FROM tab2 cor0 WHERE + ( - + 91 ) BETWEEN NULL AND col1 * - col1 * + 64 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-117
SELECT - - 67 FROM tab2 cor0 WHERE + ( - + 91 ) BETWEEN NULL AND col1 * - col1 * + 64 + CAST ( NULL AS REAL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-118
SELECT DISTINCT + 42 - - SUM ( - col0 ) col0 FROM tab1 AS cor0
----
-185

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

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

query II rowsort
SELECT ALL + col2 AS col0, + col2 * - col0 * + - col1 * 33 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
1780614
40
6504960
58
9617850

query I rowsort
SELECT - col1 + - + ( - + col1 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT DISTINCT SUM( ALL - - col0 ) * - 14 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT SUM ( ALL - - col0 ) * - 14 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT DISTINCT 39 + + COUNT( * ) FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT 39 + + COUNT ( * ) FROM tab2 cor0
----
42

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

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

query II rowsort
SELECT ALL - col0 AS col2, col0 * - 51 AS col1 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
-51
-2601
-85
-4335
-91
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ALL + COUNT( * ) - + 84 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + COUNT ( * ) - + 84 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 45 / - - col1 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 / - + col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-131
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col0 * col0 * + 68 * - + CAST( NULL AS SIGNED ) + 1
----

skipif mysql # not compatible
query III rowsort label-131
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col0 * col0 * + 68 * - + CAST ( NULL AS INTEGER ) + 1
----

query II rowsort
SELECT col0 * + 5 AS col2, col0 FROM tab1
----
255
51
425
85
455
91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT DISTINCT ( 69 ) AS col0, SUM( - col1 ) FROM tab0
----
69
-103

skipif mysql # not compatible
query II rowsort label-134
SELECT DISTINCT ( 69 ) AS col0, SUM ( - col1 ) FROM tab0
----
69
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT - - SUM( - - 19 ) + - SUM( col2 ) + - + 13 FROM tab0 WHERE NOT - col1 * - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT - - SUM ( - - 19 ) + - SUM ( col2 ) + - + 13 FROM tab0 WHERE NOT - col1 * - col2 <> NULL
----
NULL

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

query II rowsort
SELECT ALL 28 * + 2 * + + 95 * - 77, - col0 AS col1 FROM tab2
----
-409640
-46
-409640
-64
-409640
-75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * - col1 * - col2 col2 FROM tab0
----
-1470
-26649
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT - ( + - COUNT( * ) ) * - 67 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - ( + - COUNT ( * ) ) * - 67 FROM tab2 AS cor0
----
-201

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT ALL - + 4 DIV 28 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - + 4 / 28 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT + MAX( + + 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT + MAX ( + + 12 ) FROM tab2
----
12

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-145
SELECT + 41 * 7 + + + 64 + - col2 DIV 2, + 68 AS col1 FROM tab1 AS cor0
----
303
68
317
68
322
68

skipif mysql # not compatible
query II rowsort label-145
SELECT + 41 * 7 + + + 64 + - col2 / 2, + 68 AS col1 FROM tab1 AS cor0
----
303
68
317
68
322
68

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 27 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT 68 * col1 + + 50 - + + col0 FROM tab1 AS cor0
----
305
3155
951

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

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

query I rowsort
SELECT - 6 * + - ( - 60 ) * + col0 AS col2 FROM tab0 AS cor0
----
-31320
-34920
-5400

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

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab1 WHERE ( - col2 ) <> 17
----
3481
4624
9216

query I rowsort
SELECT ( - + 70 ) FROM tab2
----
-70
-70
-70

query I rowsort
SELECT ALL - 68 * + 96 + + col1 AS col2 FROM tab0
----
-6447
-6507
-6527

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

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

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab1 WHERE NOT - - 59 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-157
SELECT DISTINCT - col0 AS col0, - col2 DIV - - col1 FROM tab1
----
-51
-6
-85
-11
-91
-1

skipif mysql # not compatible
query II rowsort label-157
SELECT DISTINCT - col0 AS col0, - col2 / - - col1 FROM tab1
----
-51
-6
-85
-11
-91
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-158
SELECT - ( - 25 ) AS col0, + COUNT( * ) FROM tab0 WHERE NULL <= ( - col0 + 89 )
----
25
0

skipif mysql # not compatible
query II rowsort label-158
SELECT - ( - 25 ) AS col0, + COUNT ( * ) FROM tab0 WHERE NULL <= ( - col0 + 89 )
----
25
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68, + 23 col2 FROM tab2
----
68
23
68
23
68
23

query I rowsort
SELECT + ( + 66 ) + + 45 AS col0 FROM tab0 AS cor0
----
111
111
111

query II rowsort
SELECT + - 41 + - + 13 + + col0 - - col1 AS col0, + 37 / - col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-164
SELECT ALL + SUM( ALL - 96 ) AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-164
SELECT ALL + SUM ( ALL - 96 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-288
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL MAX( - + 54 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL MAX ( - + 54 ) FROM tab2 AS cor0
----
-54

query I rowsort
SELECT + - 79 AS col1 FROM tab0 cor0
----
-79
-79
-79

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

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

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

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

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

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

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

query I rowsort
SELECT col2 * 5 * - + 88 AS col2 FROM tab1
----
-25960
-29920
-42240

query I rowsort
SELECT ALL 19 / + col2 * + + col1 - + col1 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( 16 ) FROM tab1
----
16
16
16

query II rowsort
SELECT DISTINCT 42, col2 FROM tab0
----
42
10
42
47
42
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL 27 + + MAX( ALL + 85 ) AS col0 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT - 29 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL 27 + + MAX ( ALL + 85 ) AS col0 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT - 29 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL COUNT( * ) * - 36 * - + COUNT( * ) col1 FROM tab1
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-180
SELECT ALL COUNT ( * ) * - 36 * - + COUNT ( * ) col1 FROM tab1
----
324

query I rowsort
SELECT 53 * 38 FROM tab1 AS cor0
----
2014
2014
2014

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

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

query I rowsort
SELECT ALL - - 90 AS col1 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + 59 + + col2 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT - 75 + + - col0 + + col2 + - 82 DIV - col2 AS col0 FROM tab1 AS cor0
----
-100
-30
-97

skipif mysql # not compatible
query I rowsort label-185
SELECT - 75 + + - col0 + + col2 + - 82 / - col2 AS col0 FROM tab1 AS cor0
----
-100
-30
-97

query I rowsort
SELECT DISTINCT - col2 + + ( + 35 ) * + 37 FROM tab0
----
1196
1248
1285

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT MAX( - 71 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-189
SELECT MAX ( - 71 ) FROM tab2
----
-71

query I rowsort
SELECT col0 FROM tab2 WHERE NULL = - + 4 + + + col0 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT - ( - 95 ) * - 61 * col1 + + col1 * 88 DIV col1 AS col2 FROM tab2
----
-295457
-388177
-446127

skipif mysql # not compatible
query I rowsort label-191
SELECT - ( - 95 ) * - 61 * col1 + + col1 * 88 / col1 AS col2 FROM tab2
----
-295457
-388177
-446127

query I rowsort
SELECT DISTINCT + + col2 - 9 AS col0 FROM tab2 AS cor0
----
14
31
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 13 <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-194
SELECT ALL - + CAST( - 35 AS SIGNED ) + + col0 AS col0 FROM tab0 cor0
----
122
132
50

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL - + CAST ( - 35 AS INTEGER ) + + col0 AS col0 FROM tab0 cor0
----
122
132
50

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

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

query I rowsort
SELECT ALL 25 + - col1 FROM tab2 AS cor0
----
-26
-42
-52

query II rowsort
SELECT 8 AS col0, 19 + - col1 AS col2 FROM tab1 AS cor0
----
8
-28
8
14
8
5

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

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

query II rowsort
SELECT + - 67 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-67
51
-67
85
-67
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT - 62 * - COUNT( * ) * 16 * - COUNT( * ) FROM tab1
----
-8928

skipif mysql # not compatible
query I rowsort label-201
SELECT - 62 * - COUNT ( * ) * 16 * - COUNT ( * ) FROM tab1
----
-8928

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

query I rowsort
SELECT - 29 * 78 AS col0 FROM tab1
----
-2262
-2262
-2262

query II rowsort
SELECT - 47 * + 61 AS col1, - col0 * - col0 AS col1 FROM tab1
----
-2867
2601
-2867
7225
-2867
8281

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 14 + 46 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT DISTINCT + MAX( 27 ) AS col2, + COUNT( - col0 ) FROM tab1
----
27
3

skipif mysql # not compatible
query II rowsort label-207
SELECT DISTINCT + MAX ( 27 ) AS col2, + COUNT ( - col0 ) FROM tab1
----
27
3

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL 35 + MIN( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL 35 + MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-62

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= + 62 + + - 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-211
SELECT col2 + col2 + + 46 AS col2, + CAST( - col1 AS SIGNED ) FROM tab1
----
164
-5
182
-47
238
-14

skipif mysql # not compatible
query II rowsort label-211
SELECT col2 + col2 + + 46 AS col2, + CAST ( - col1 AS INTEGER ) FROM tab1
----
164
-5
182
-47
238
-14

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

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

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

query I rowsort
SELECT - ( 95 ) * col1 AS col2 FROM tab2 AS cor0
----
-4845
-6365
-7315

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

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

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

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

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL - ( + COUNT ( * ) ) + + SUM ( DISTINCT + + ( + col2 ) ) + + COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-218
SELECT col2, ( + CAST( + - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-218
SELECT col2, ( + CAST ( + - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 85 + + 18 ) < + ( col2 )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 25 FROM tab1 AS cor0 WHERE 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + ( COUNT( * ) ) + - 72 + 98 FROM tab1 cor0
----
29

skipif mysql # not compatible
query I rowsort label-224
SELECT + ( COUNT ( * ) ) + - 72 + 98 FROM tab1 cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 * col2 + + col1 col1, - 67 + - + col2 AS col1 FROM tab1 AS cor0
----
25080
-126
290883
-135
68558
-163

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-227
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col1, col2 col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 48 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-229
SELECT DISTINCT + ( - COUNT( * ) ) * - + COUNT( * ) * CAST( + 3 AS SIGNED ) AS col2, - MAX( 16 ) AS col2 FROM tab2 AS cor0
----
27
-16

skipif mysql # not compatible
query II rowsort label-229
SELECT DISTINCT + ( - COUNT ( * ) ) * - + COUNT ( * ) * CAST ( + 3 AS INTEGER ) AS col2, - MAX ( 16 ) AS col2 FROM tab2 AS cor0
----
27
-16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-231
SELECT ALL + MAX( DISTINCT + col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL + MAX ( DISTINCT + col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
-25

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT COUNT( * ) + + 85 col2 FROM tab1
----
88

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

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - 34 * + col0 * col2 + - 76 FROM tab0
----
-24046
-29656
-326578

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT MIN( 47 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-239
SELECT MIN ( 47 ) AS col0 FROM tab1 AS cor0
----
47

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

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

query I rowsort
SELECT - ( - - 90 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

query III rowsort
SELECT * FROM tab1 WHERE col2 * 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-245
SELECT ALL + COUNT( * ), + MAX( 98 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
98

skipif mysql # not compatible
query II rowsort label-245
SELECT ALL + COUNT ( * ), + MAX ( 98 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ALL + - 5 + + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-14

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL + - 5 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-14

query I rowsort
SELECT ALL + - 68 AS col2 FROM tab2 AS cor0
----
-68
-68
-68

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

query I rowsort
SELECT ALL + col0 - + + 61 FROM tab1 AS cor0
----
-10
24
30

query I rowsort
SELECT ALL - 74 * + ( + - col1 ) AS col0 FROM tab0 cor0
----
1554
5994
74

query I rowsort
SELECT ALL - + col1 + - ( + col0 ) FROM tab2 cor0
----
-141
-142
-97

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

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

query II rowsort
SELECT ALL col0 * + - col0 * + col2, col2 AS col0 FROM tab1
----
-249696
96
-426275
59
-563108
68

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

skipif mysql # not compatible
query I rowsort label-255
SELECT - SUM ( - 81 ) AS col0 FROM tab0
----
243

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 col1, - 79 + + col1 FROM tab0 cor0
----
83
-58
83
-78
83
2

query I rowsort
SELECT ALL + 1 + - col0 FROM tab2 WHERE NOT - col1 IN ( col2 )
----
-45
-63
-74

query I rowsort
SELECT col0 + col0 * col2 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT - ( col2 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT - ( col2 ) <> NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

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

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

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT + col0 - + 39 * - col2 > ( - 20 - + ( - col2 + + 72 ) * col0 )
----

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

skipif mysql # not compatible
query I rowsort label-265
SELECT + CAST ( + 58 AS INTEGER ) FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT + COUNT( ALL + 12 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-266
SELECT + COUNT ( ALL + 12 ) FROM tab0
----
3

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

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE + col0 BETWEEN - col2 * + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT 57 - COUNT( * ) * SUM( + col0 ) FROM tab1
----
-624

skipif mysql # not compatible
query I rowsort label-269
SELECT 57 - COUNT ( * ) * SUM ( + col0 ) FROM tab1
----
-624

query I rowsort
SELECT ( + 55 ) - + col2 * - 60 FROM tab2
----
1435
2455
3535

query I rowsort
SELECT DISTINCT + 23 + - col2 * - 60 FROM tab2
----
1403
2423
3503

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE 15 IN ( - 15 / - ( - 57 * col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT 87 * - 75 + COUNT( * ) FROM tab0
----
-6522

skipif mysql # not compatible
query I rowsort label-275
SELECT 87 * - 75 + COUNT ( * ) FROM tab0
----
-6522

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * 43 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
-2537
-2924
-4128

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( col0 )
----

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

query I rowsort
SELECT DISTINCT col2 - - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
144
147
159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT COUNT( DISTINCT + 99 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-283
SELECT COUNT ( DISTINCT + 99 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 / col2 ) IN ( + 29 )
----

query I rowsort
SELECT 87 * + col2 + + 57 FROM tab1 AS cor0
----
5190
5973
8409

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-286
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( CAST( NULL AS DECIMAL ) + 8 )
----

skipif mysql # not compatible
query I rowsort label-286
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( CAST ( NULL AS REAL ) + 8 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT 46 AS col2 FROM tab0 WHERE ( + col2 + + col0 ) NOT BETWEEN ( col0 * CAST( 96 / col0 AS SIGNED ) ) AND + col2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-288
SELECT 46 AS col2 FROM tab0 WHERE ( + col2 + + col0 ) NOT BETWEEN ( col0 * CAST ( 96 / col0 AS INTEGER ) ) AND + col2
----
46
46
46

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

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

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

query I rowsort
SELECT DISTINCT + 26 - + col2 * - col1 FROM tab0 AS cor0
----
125
236
3833

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + COUNT( * ) + - 40 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-40

skipif mysql # not compatible
query I rowsort label-293
SELECT + COUNT ( * ) + - 40 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-40

query I rowsort
SELECT - - 56 * + 73 FROM tab1 cor0
----
4088
4088
4088

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT ( - 84 ) * col2 + col0 > NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 * 61 ) BETWEEN ( NULL ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT MAX( col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND col0 + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT MAX ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND col0 + - 64
----
NULL

query I rowsort
SELECT 52 * ( 15 ) - + col2 AS col1 FROM tab0 AS cor0
----
681
733
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT - CAST( NULL AS SIGNED ) - col1 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-300
SELECT - CAST ( NULL AS INTEGER ) - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT 40 DIV - 94 + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-304
SELECT 40 / - 94 + col0 AS col1 FROM tab1
----
51
85
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-306
SELECT ALL * FROM tab0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) * + ( + col0 ) + - col2 / col0 )
----

skipif mysql # not compatible
query III rowsort label-306
SELECT ALL * FROM tab0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) * + ( + col0 ) + - col2 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT COUNT( 4 ) + + 51 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-307
SELECT COUNT ( 4 ) + + 51 FROM tab0
----
54

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( - col0 ) > NULL
----

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab0
----
-34

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL < + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + col2 ) + + 38 IN ( + ( col0 ) )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( col2 )
----
51
85
91

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col2 / + ( - col0 * + col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + 17 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 5 NOT BETWEEN ( 31 / col2 + ( ( + 87 ) ) ) AND NULL
----

query I rowsort
SELECT DISTINCT - - 11 * - col1 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT DISTINCT + 93 * col0 FROM tab2 AS cor0
----
4278
5952
6975

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

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL 32 * - + ( + SUM ( ( CAST ( NULL AS INTEGER ) ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT 94 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
103

skipif mysql # not compatible
query I rowsort label-319
SELECT 94 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
103

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

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

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

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

query I rowsort
SELECT ALL + - col1 * col1 + + - col2 * + 94 AS col2 FROM tab2 AS cor0
----
-4763
-9689
-9941

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT + + 96 AS col0, - COUNT( * ) + + + 24 FROM tab2 AS cor0
----
96
21

skipif mysql # not compatible
query II rowsort label-324
SELECT + + 96 AS col0, - COUNT ( * ) + + + 24 FROM tab2 AS cor0
----
96
21

onlyif mysql # DIV for integer division: 
query II rowsort label-325
SELECT - - col0 AS col2, col2 DIV - + 70 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-325
SELECT - - col0 AS col2, col2 / - + 70 FROM tab2 AS cor0
----
46
0
64
0
75
0

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

query I rowsort
SELECT ALL - + col2 + - 98 + col2 * 69 FROM tab1 AS cor0
----
3914
4526
6430

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL + 99 * + COUNT( * ) col1 FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-328
SELECT ALL + 99 * + COUNT ( * ) col1 FROM tab0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT col2 + - col2 + - 69 AS col0 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT 59 + + col1 FROM tab1
----
106
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - COUNT( * ) + 14 AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - COUNT ( * ) + 14 AS col0 FROM tab2
----
11

query I rowsort
SELECT DISTINCT col0 * + + 40 FROM tab1
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT COUNT( * ) + + 85 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-333
SELECT COUNT ( * ) + + 85 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN + + col1 * 3 + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-334
SELECT COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN + + col1 * 3 + col1 AND NULL
----
0

query I rowsort
SELECT ALL ( - col0 ) + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT - - COUNT( * ) + + COUNT( ALL 34 ) + + - ( ( + MAX( 36 ) ) ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( ALL 34 ) + + - ( ( + MAX ( 36 ) ) ) AS col2 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT + - col0 + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT SUM( DISTINCT - + ( col0 ) ) - + - COUNT( * ) AS col0 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-340
SELECT SUM ( DISTINCT - + ( col0 ) ) - + - COUNT ( * ) AS col0 FROM tab1
----
-224

query I rowsort
SELECT ALL 31 + + col0 AS col1 FROM tab2 WHERE NOT - ( 72 ) + + + 30 NOT BETWEEN + ( ( - col2 ) ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( + + ( + 82 ) ) + + 96 FROM tab0
----
14

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

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

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

query I rowsort
SELECT ALL - 10 + + - col0 FROM tab2
----
-56
-74
-85

query I rowsort
SELECT - - 43 + + col0 FROM tab2 AS cor0
----
107
118
89

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 70 )
----

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

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

query I rowsort
SELECT ALL 10 - + col0 + - col2 * + 72 AS col0 FROM tab0 cor0
----
-3389
-7215
-797

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-352
SELECT + - 74 + + 51 + + ( COUNT( + col2 ) ) + - MAX( DISTINCT 26 - + CAST( NULL AS DECIMAL ) * + col0 ) * + 64 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT + - 74 + + 51 + + ( COUNT ( + col2 ) ) + - MAX ( DISTINCT 26 - + CAST ( NULL AS REAL ) * + col0 ) * + 64 FROM tab0 cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-354
SELECT ALL - 2 + + CAST( - 51 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, - col2 * - 75 )
----

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - 2 + + CAST ( - 51 AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, - col2 * - 75 )
----

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

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

query I rowsort
SELECT - - 41 * + col1 AS col2 FROM tab2 AS cor0
----
2091
2747
3157

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 19 BETWEEN NULL AND + col0 * 96 + + col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - SUM( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + 18 ) = + - col1
----
-185

skipif mysql # not compatible
query I rowsort label-359
SELECT - SUM ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + 18 ) = + - col1
----
-185

query I rowsort
SELECT 50 * - col1 * + col0 FROM tab0
----
-4850
-60750
-91350

query I rowsort
SELECT + col2 * + col1 * col1 * - 60 FROM tab0
----
-18502020
-264600
-5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT - MIN( + - 17 ) * + CAST( + 29 AS SIGNED ) AS col2 FROM tab2
----
493

skipif mysql # not compatible
query I rowsort label-362
SELECT - MIN ( + - 17 ) * + CAST ( + 29 AS INTEGER ) AS col2 FROM tab2
----
493

query II rowsort
SELECT + col0, - col0 + - 68 FROM tab2
----
46
-114
64
-132
75
-143

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

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

query I rowsort
SELECT DISTINCT 84 * - - 56 + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4755
4789
4795

query I rowsort
SELECT ALL - col0 - 54 AS col2 FROM tab2 WHERE - ( - 84 ) <= + - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-369
SELECT 21 + CAST( 19 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 * + + 9 - col1 * + col0 / 53 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-369
SELECT 21 + CAST ( 19 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 * + + 9 - col1 * + col0 / 53 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-370
SELECT DISTINCT + - COUNT( * ) AS col2, 22 - + + 40 + + 36 col1 FROM tab0 AS cor0
----
-3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-370
SELECT DISTINCT + - COUNT ( * ) AS col2, 22 - + + 40 + + 36 col1 FROM tab0 AS cor0
----
-3
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 44, 54 - + 26 + + col0 * - 28 col0 FROM tab0 AS cor0
----
-44
-2408
-44
-2688
-44
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col0 IN ( - 79 / - CAST( NULL AS SIGNED ) + + col0 - - col0 * 73 )
----

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col0 IN ( - 79 / - CAST ( NULL AS INTEGER ) + + col0 - - col0 * 73 )
----

query I rowsort
SELECT + - 66 * 57 FROM tab2 AS cor0
----
-3762
-3762
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-374
SELECT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT + - col2 * - 39 AS col2 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT - MAX( - + 29 ) AS col2 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT - MAX ( - + 29 ) AS col2 FROM tab1 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT + col2 DIV col0 * + + 0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-379
SELECT + col2 / col0 * + + 0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-380
SELECT MIN ( DISTINCT ( - + 12 ) ) FROM tab2 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - + col2 > - 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - 93 + ( - 80 ) AS col1 FROM tab1
----
-173
-173
-173

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-385
SELECT * FROM tab0 WHERE ( col1 + - - CAST( - col1 AS SIGNED ) ) IN ( col2 + - - ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-385
SELECT * FROM tab0 WHERE ( col1 + - - CAST ( - col1 AS INTEGER ) ) IN ( col2 + - - ( + col0 ) )
----

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

query I rowsort
SELECT ALL 63 + - + 17 FROM tab2
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT MAX( ALL col1 ) + + - COUNT( * ) + ( 69 ) - + COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-388
SELECT MAX ( ALL col1 ) + + - COUNT ( * ) + ( 69 ) - + COUNT ( * ) FROM tab0 AS cor0
----
144

query II rowsort
SELECT DISTINCT + col0, col1 * - + col0 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT 76 + - - col2 + - col0 DIV + col1 FROM tab0 AS cor0
----
123
78
82

skipif mysql # not compatible
query I rowsort label-390
SELECT 76 + - - col2 + - col0 / + col1 FROM tab0 AS cor0
----
123
78
82

query I rowsort
SELECT ALL + col0 + 12 FROM tab0 AS cor0
----
109
27
99

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> - 76
----

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

query I rowsort
SELECT col0 - + + 82 FROM tab1 AS cor0
----
-31
3
9

query I rowsort
SELECT col0 * + 63 AS col2 FROM tab1 AS cor0
----
3213
5355
5733

query I rowsort
SELECT - col1 * - + 88 - + col2 FROM tab2 AS cor0
----
4465
5838
6736

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT DISTINCT col1 DIV - col1 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT col1 / - col1 AS col1 FROM tab0
----
-1

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

query II rowsort
SELECT - 15 AS col0, 30 AS col0 FROM tab2
----
-15
30
-15
30
-15
30

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT MIN( ( ( col1 ) ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT MIN ( ( ( col1 ) ) ) FROM tab1
----
5

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

query I rowsort
SELECT - - 8 * - col2 - + + col2 FROM tab0 AS cor0
----
-423
-891
-90

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

query II rowsort
SELECT DISTINCT col2, 20 FROM tab2 AS cor0
----
23
20
40
20
58
20

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

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

query I rowsort
SELECT + 59 * - col1 AS col1 FROM tab1
----
-2773
-295
-826

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - col1 <= - col2
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-408
SELECT + col0 AS col0, CAST( + 39 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
39
85
39
91
39

skipif mysql # not compatible
query II rowsort label-408
SELECT + col0 AS col0, CAST ( + 39 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
39
85
39
91
39

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT DISTINCT + 97 + - 58 DIV col2 AS col1 FROM tab0
----
92
96
97

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT + 97 + - 58 / col2 AS col1 FROM tab0
----
92
96
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT + 27 * + CAST( NULL AS SIGNED ) / + col0 + + 99 + - 56 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT + 27 * + CAST ( NULL AS INTEGER ) / + col0 + + 99 + - 56 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-418
SELECT DISTINCT - COUNT( DISTINCT ( 18 ) ) DIV COUNT( * ) + + 91 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT - COUNT ( DISTINCT ( 18 ) ) / COUNT ( * ) + + 91 FROM tab2
----
91

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + - 81 + + + 53, 6 + col2 )
----

query I rowsort
SELECT ALL col0 + + - ( col0 ) * + + 69 FROM tab1
----
-3468
-5780
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT ALL + 18 * CAST( 85 AS SIGNED ) + col0 FROM tab1
----
1581
1615
1621

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL + 18 * CAST ( 85 AS INTEGER ) + col0 FROM tab1
----
1581
1615
1621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40 col0, + col2 FROM tab1 WHERE + col0 - - 50 * - + col1 + + - col2 IS NOT NULL
----
-40
59
-40
68
-40
96

query I rowsort
SELECT DISTINCT 1 * col1 FROM tab2 cor0 WHERE NOT 76 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-424
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 26 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT CAST ( NULL AS REAL ) * - 26 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT + + 81 * + COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + + 81 * + COUNT ( * ) FROM tab0 AS cor0
----
243

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

query II rowsort
SELECT ALL + + col2 * + 64 AS col2, col1 FROM tab2 AS cor0
----
1472
51
2560
77
3712
67

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT col0 - + 75 * col2 DIV 35 AS col1 FROM tab0
----
-115
-85
66

skipif mysql # not compatible
query I rowsort label-428
SELECT col0 - + 75 * col2 / 35 AS col1 FROM tab0
----
-115
-85
66

query I rowsort
SELECT + col2 * + col0 + + + col2 AS col1 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query II rowsort label-430
SELECT DISTINCT - COUNT( * ), 17 AS col1 FROM tab1 AS cor0
----
-3
17

skipif mysql # not compatible
query II rowsort label-430
SELECT DISTINCT - COUNT ( * ), 17 AS col1 FROM tab1 AS cor0
----
-3
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL COUNT( + 56 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL COUNT ( + 56 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 col2, 6 FROM tab1 AS cor0
----
-17
6
-17
6
-17
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT MAX( 79 ) * + 75 FROM tab1 AS cor0
----
5925

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT MAX ( 79 ) * + 75 FROM tab1 AS cor0
----
5925

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

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT - ( + col2 ) NOT IN ( + 25 * - + col1 + + col1 + + - 19 / + ( - col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-439
SELECT - 30 DIV COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-439
SELECT - 30 / COUNT ( * ) FROM tab2
----
-10

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + - 53 * - col1 <= NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-444
SELECT ALL - - CAST( NULL AS SIGNED ) * - + 41 - - + COUNT( - col2 ) AS col1, - COUNT( * ) * 48 AS col2 FROM tab0 cor0
----
NULL
-144

skipif mysql # not compatible
query II rowsort label-444
SELECT ALL - - CAST ( NULL AS INTEGER ) * - + 41 - - + COUNT ( - col2 ) AS col1, - COUNT ( * ) * 48 AS col2 FROM tab0 cor0
----
NULL
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT DISTINCT - + ( col0 ) DIV + + col2 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT - + ( col0 ) / + + col2 FROM tab0 AS cor0
----
-8
0

query I rowsort
SELECT ALL - col0 * + - 39 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-448
SELECT + COUNT ( DISTINCT 82 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT ALL - 67 * - col0 FROM tab0 AS cor0
----
1005
5829
6499

query II rowsort
SELECT - col0, col2 * + col0 AS col0 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT ALL - 13 + + col0 AS col2 FROM tab1 AS cor0
----
38
72
78

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

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

query I rowsort
SELECT DISTINCT - 98 + 18 * + 90 FROM tab1
----
1522

query I rowsort
SELECT + 69 - + - col1 FROM tab1
----
116
74
83

query II rowsort
SELECT DISTINCT col1 + col1 AS col1, - 74 FROM tab0
----
162
-74
2
-74
42
-74

query II rowsort
SELECT DISTINCT 9 - + + col1 - col0 * + col0, + 22 AS col1 FROM tab2
----
-2158
22
-4164
22
-5683
22

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

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

query I rowsort
SELECT DISTINCT 55 + 92 FROM tab1
----
147

query I rowsort
SELECT + 40 * col2 + - ( + - col1 ) + col2 * col1 * + col1 FROM tab1 cor0
----
152979
22670
3840

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

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT + - ( - + 71 ) + ( 29 ) - - 79 DIV - col2 AS col0 FROM tab0 cor0
----
100
93
99

skipif mysql # not compatible
query I rowsort label-462
SELECT + - ( - + 71 ) + ( 29 ) - - 79 / - col2 AS col0 FROM tab0 cor0
----
100
93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + - MIN( + 11 ) * + MIN( + col2 ) - + 36 FROM tab0 AS cor0
----
954

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + - MIN ( + 11 ) * + MIN ( + col2 ) - + 36 FROM tab0 AS cor0
----
954

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT DISTINCT ( - SUM( DISTINCT - col1 ) ) DIV 94 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT ( - SUM ( DISTINCT - col1 ) ) / 94 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT ALL + - 55 * COUNT( * ), - 59 AS col1 FROM tab0 AS cor0
----
-165
-59

skipif mysql # not compatible
query II rowsort label-469
SELECT ALL + - 55 * COUNT ( * ), - 59 AS col1 FROM tab0 AS cor0
----
-165
-59

query I rowsort
SELECT DISTINCT + col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT - SUM( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - SUM ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - - 89 * - COUNT( * ) * + 19 * + + COUNT( * ) FROM tab1 cor0
----
-15219

skipif mysql # not compatible
query I rowsort label-472
SELECT - - 89 * - COUNT ( * ) * + 19 * + + COUNT ( * ) FROM tab1 cor0
----
-15219

query I rowsort
SELECT ( - - col0 ) AS col2 FROM tab2
----
46
64
75

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

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

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

query I rowsort
SELECT ALL - 70 * 68 FROM tab0
----
-4760
-4760
-4760

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

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - + 52 / 72 / - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - 95, col1 + + col2 AS col2 FROM tab0 AS cor0
----
-95
100
-95
128
-95
31

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL + SUM( ALL + 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + SUM ( ALL + 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

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

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

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

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

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

query I rowsort
SELECT col0 + - + 69 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-23
-5
6

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT 28 AS col2 FROM tab1 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT DISTINCT MIN( ALL ( - ( 21 ) ) ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT MIN ( ALL ( - ( 21 ) ) ) FROM tab2
----
-21

query II rowsort
SELECT + 48 AS col2, 19 AS col1 FROM tab0
----
48
19
48
19
48
19

query I rowsort
SELECT ALL - ( + 33 ) - + col0 FROM tab0
----
-120
-130
-48

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

query II rowsort
SELECT 77 AS col1, + 17 AS col2 FROM tab1
----
77
17
77
17
77
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT DISTINCT MAX( ( - + 7 ) ) - + 69 * 7 FROM tab2
----
-490

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT MAX ( ( - + 7 ) ) - + 69 * 7 FROM tab2
----
-490

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

query I rowsort
SELECT DISTINCT 55 - - + col0 AS col1 FROM tab1 AS cor0
----
106
140
146

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( col2, + 68 + + 42 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-498
SELECT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-499
SELECT + col0 / - col2, - col2 col1 FROM tab2
----
-1
-40
-1
-58
-2
-23

query I rowsort
SELECT 44 + 40 FROM ( tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 91, col2, + col1, + - 68, - 34 * - col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-504
SELECT ALL + - col0 - + - 24 FROM tab1 AS cor0 WHERE + 38 * + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + - col0 - + - 24 FROM tab1 AS cor0 WHERE + 38 * + CAST ( NULL AS INTEGER ) > NULL
----

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

query I rowsort
SELECT DISTINCT 87 * col0 + col0 AS col0 FROM tab1 cor0
----
4488
7480
8008

query II rowsort
SELECT - - 32 * + + col2, - col0 AS col0 FROM tab2 AS cor0
----
1280
-64
1856
-75
736
-46

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

query I rowsort
SELECT + col2 * 11 * col0 FROM tab2
----
11638
28160
47850

query II rowsort
SELECT ALL 70 + + 72 AS col2, + col0 * + col0 AS col0 FROM tab1
----
142
2601
142
7225
142
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT ALL col1 DIV - 18 AS col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL col1 / - 18 AS col2 FROM tab0
----
-1
-4
0

query I rowsort
SELECT DISTINCT 10 * + + 68 FROM tab2
----
680

query II rowsort
SELECT ALL - col1 * + col1 AS col2, + 53 AS col0 FROM tab2
----
-2601
53
-4489
53
-5929
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 33, - 73 col2 FROM tab1
----
1947
-73
2244
-73
3168
-73

query I rowsort
SELECT ALL - 42 + - col1 + - col1 + + - col0 FROM tab0
----
-141
-171
-219

query I rowsort
SELECT DISTINCT 37 * + 11 FROM tab1
----
407

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - 89 ) NOT BETWEEN NULL AND - 55 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-521
SELECT ALL + + CAST ( + - ( + 48 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT + - 76 * 15 + - 14 FROM tab0 AS cor0
----
-1154
-1154
-1154

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

query I rowsort
SELECT ALL col2 - - col1 - + - col2 FROM tab2
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ( MAX( ALL - 95 ) ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-525
SELECT ( MAX ( ALL - 95 ) ) FROM tab0
----
-95

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - col2 / 81 AS col1 FROM tab1 AS cor0
----
-1
0
0

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

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

query II rowsort
SELECT - - col2 AS col1, 4 + col2 * + + col2 - - 98 AS col1 FROM tab2 AS cor0
----
23
631
40
1702
58
3466

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

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

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

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT - ( + + MIN ( DISTINCT + 50 ) ) FROM tab2 cor0
----
-50

query I rowsort
SELECT col1 * + col1 - + col1 AS col0 FROM tab2 AS cor0
----
2550
4422
5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - ( 23 ) col0 FROM tab0
----
122
33
70

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT DISTINCT - col1 + - + 77 DIV ( 82 ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - col1 + - + 77 / ( 82 ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - 98 * + col2 + + col2 FROM tab0
----
-4559
-9603
-970

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT ALL + - 41 * ( col1 ) DIV - 85 FROM tab2 AS cor0
----
24
32
37

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + - 41 * ( col1 ) / - 85 FROM tab2 AS cor0
----
24
32
37

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT - ( - - CAST( + col0 AS SIGNED ) ) * + 11 FROM tab2
----
-506
-704
-825

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT - ( - - CAST ( + col0 AS INTEGER ) ) * + 11 FROM tab2
----
-506
-704
-825

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

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

query I rowsort
SELECT ALL - col0 + - + 73 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT 80 * + COUNT( * ) * + ( 92 ) FROM tab0 AS cor0
----
22080

skipif mysql # not compatible
query I rowsort label-545
SELECT 80 * + COUNT ( * ) * + ( 92 ) FROM tab0 AS cor0
----
22080

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0 WHERE - col1 = 12
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE - col1 = 12
----
0

query II rowsort
SELECT + 87 AS col1, - 91 AS col2 FROM tab0 cor0
----
87
-91
87
-91
87
-91

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-551
SELECT ALL - 20 * + ( + + COUNT( + col2 ) ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 20 * + ( + + COUNT ( + col2 ) ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 44 + - 94 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT ALL CAST( 43 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
43
43
43

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL CAST ( 43 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
43
43
43

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

query I rowsort
SELECT 49 + - col0 FROM tab2
----
-15
-26
3

query I rowsort
SELECT + col1 * 59 * + + 45 * - col1 * - col1 * + col0 * + 26 * 30 / col1 AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE + 80 * 72 NOT BETWEEN - 52 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 - - - 10 AS col2 FROM tab1
----
-5
37
4

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT - - 97 DIV + ( ( + 72 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - - 97 / + ( ( + 72 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

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

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT + COUNT ( * ) - + + 0 FROM tab0
----
3

query I rowsort
SELECT + col2 + + + col1 * + col1 FROM tab1
----
2277
292
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-568
SELECT ALL + CAST( + + col2 AS SIGNED ) AS col0, - 98 + - col1 FROM tab0 cor0
----
10
-119
47
-179
99
-99

skipif mysql # not compatible
query II rowsort label-568
SELECT ALL + CAST ( + + col2 AS INTEGER ) AS col0, - 98 + - col1 FROM tab0 cor0
----
10
-119
47
-179
99
-99

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE 33 < - col1 OR NULL IS NULL
----
51
67
77

query I rowsort
SELECT col0 * + col2 * + col0 AS col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL - - CAST( NULL AS SIGNED ) * 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - - CAST ( NULL AS INTEGER ) * 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT DISTINCT - COUNT( * ) * + 29 AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - COUNT ( * ) * + 29 AS col0 FROM tab2
----
-87

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-575
SELECT COUNT( * ) DIV + - 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-575
SELECT COUNT ( * ) / + - 99 FROM tab2
----
0

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + col1 + + 6 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, - 93 + - 57 + + ( 84 ) AS col2 FROM tab2
----
51
-66
67
-66
77
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - SUM( ALL + + 11 ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-579
SELECT - SUM ( ALL + + 11 ) AS col1 FROM tab1
----
-33

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-581
SELECT DISTINCT + SUM ( DISTINCT - col2 ) col2 FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 * - 58 + - 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT + ( - col2 ) * - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-583
SELECT + ( - col2 ) * - col1 / - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT CAST( NULL AS SIGNED ) * - 17 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-585
SELECT CAST ( NULL AS INTEGER ) * - 17 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 44 AS col0 FROM tab1
----
44
44
44

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 91 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-591
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2, + MAX( + - col0 ) FROM tab0 AS cor0 WHERE + col1 = NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-591
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, + MAX ( + - col0 ) FROM tab0 AS cor0 WHERE + col1 = NULL
----
NULL
NULL

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

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 22 + + ( + 94 ) >= - + ( - col1 ) + - + col2
----

query I rowsort
SELECT ALL - col0 + + - col0 * - 40 FROM tab1 AS cor0
----
1989
3315
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT COUNT( DISTINCT + ( 85 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-595
SELECT COUNT ( DISTINCT + ( 85 ) ) FROM tab1 AS cor0
----
1

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

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

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= + col2 + + 62
----
10
47
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL COUNT( * ) + + 22 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL COUNT ( * ) + + 22 FROM tab0
----
25

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT - col1 + + CAST( + + 60 AS SIGNED ) FROM tab2 AS cor0
----
-17
-7
9

skipif mysql # not compatible
query I rowsort label-604
SELECT - col1 + + CAST ( + + 60 AS INTEGER ) FROM tab2 AS cor0
----
-17
-7
9

query I rowsort
SELECT + col1 + + 35 FROM tab1 AS cor0
----
40
49
82

query I rowsort
SELECT + + 41 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 36 + + col0 col0, col1 AS col1 FROM tab1
----
121
5
127
47
87
14

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + - COUNT( DISTINCT + 7 ) - - COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-608
SELECT + - COUNT ( DISTINCT + 7 ) - - COUNT ( * ) FROM tab2 AS cor0
----
2

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

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

query I rowsort
SELECT + 0 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 42 * + col0 * - + col0 FROM tab0 AS cor0
----
-317898
-395178
-9450

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

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT 61 DIV + + 52 col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-620
SELECT 61 / + + 52 col2 FROM tab0
----
1
1
1

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL OR NULL <> + col1 / + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query III rowsort label-623
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 12 * - - 21 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL 54 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

query I rowsort
SELECT ALL + + col0 + 97 FROM tab1 AS cor0
----
148
182
188

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

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

query I rowsort
SELECT ALL - - 18 + + + col2 AS col2 FROM tab2 cor0
----
41
58
76

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

query II rowsort
SELECT 1 + + - col0 * + + col2 - 81 + + 30, + 22 + + col2 + + col0 AS col2 FROM tab0
----
-755
84
-920
119
-9653
218

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL 50 * - + SUM( 48 ) + 82, - 50 AS col1 FROM tab1
----
-7118
-50

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL 50 * - + SUM ( 48 ) + 82, - 50 AS col1 FROM tab1
----
-7118
-50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-639
SELECT DISTINCT + AVG ( col0 ) + ( + CAST( NULL AS SIGNED ) ) * + AVG ( ALL + - CAST( + 41 AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT + AVG ( col0 ) + ( + CAST ( NULL AS INTEGER ) ) * + AVG ( ALL + - CAST ( + 41 AS REAL ) ) AS col2 FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT col1 * - col2 - - 98 FROM tab1 AS cor0
----
-1246
-197
-3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + 5 * - 27 col2 FROM tab2
----
-2
-31
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL + COUNT( * ) * + COUNT( * ) - - 8 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL + COUNT ( * ) * + COUNT ( * ) - - 8 FROM tab2
----
17

query I rowsort
SELECT DISTINCT - + ( + + 82 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-647
SELECT ALL + col1 / - col2 / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + col1 / - col2 / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-649
SELECT + col2 col1, + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + - col2 * - 20 FROM tab0 AS cor0
----
1980
200
940

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

query I rowsort
SELECT DISTINCT - 82 * - ( + + col0 ) FROM tab2 AS cor0
----
3772
5248
6150

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

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

query I rowsort
SELECT - 6 * ( + - col2 ) - - col0 FROM tab2 cor0
----
184
304
423

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT + col1 DIV + col1 col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-656
SELECT + col1 / + col1 col0 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-657
SELECT DISTINCT - 63, col1 DIV 25 AS col2 FROM tab0
----
-63
0
-63
3

skipif mysql # not compatible
query II rowsort label-657
SELECT DISTINCT - 63, col1 / 25 AS col2 FROM tab0
----
-63
0
-63
3

query I rowsort
SELECT - col0 * - + 39 FROM tab2
----
1794
2496
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT - 32 DIV 91 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-659
SELECT - 32 / 91 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - 4, col2 AS col1 FROM tab2
----
-4
23
-4
40
-4
58

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( 7 ) * - - col1 + - col1 / + 11 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-662
SELECT - COUNT ( * ) * - - MIN ( ALL + col1 ) FROM tab0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT DISTINCT + MAX( + col1 ) * + 14 * - 13 + + 55 + 25 AS col2 FROM tab1
----
-8474

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT + MAX ( + col1 ) * + 14 * - 13 + + 55 + 25 AS col2 FROM tab1
----
-8474

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-666
SELECT ALL + col2, col1 * + CAST( NULL AS SIGNED ) + 30 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-666
SELECT ALL + col2, col1 * + CAST ( NULL AS INTEGER ) + 30 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - ( - SUM( + + col2 ) ) * + 59 FROM tab2 AS cor0
----
7139

skipif mysql # not compatible
query I rowsort label-667
SELECT - ( - SUM ( + + col2 ) ) * + 59 FROM tab2 AS cor0
----
7139

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

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT col0 DIV 92 * - 8 + col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-669
SELECT col0 / 92 * - 8 + col2 AS col2 FROM tab1
----
59
68
96

query II rowsort
SELECT + col1 + - col2, col1 + + col1 AS col2 FROM tab0
----
-98
2
11
42
34
162

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
76

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

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

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

query I rowsort
SELECT - - col2 * + + 87 AS col0 FROM tab1 AS cor0
----
5133
5916
8352

query II rowsort
SELECT - 98 * + col1, - col1 AS col1 FROM tab0 AS cor0
----
-2058
-21
-7938
-81
-98
-1

query I rowsort
SELECT ALL - 30 * - 68 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 54 * + - 85 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL - COUNT( * ) * + 15 + 28 - - - 56 AS col0 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - COUNT ( * ) * + 15 + 28 - - - 56 AS col0 FROM tab0 AS cor0
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-680
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE + CAST( - 83 AS SIGNED ) * - + ( col2 ) + + - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE + CAST ( - 83 AS INTEGER ) * - + ( col2 ) + + - col2 BETWEEN NULL AND NULL
----
0

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

query I rowsort
SELECT DISTINCT 25 + + col0 * - - col1 FROM tab1
----
4302
450
739

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT DISTINCT 52 DIV col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT 52 / col2 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT - col1 * - - 45 * + col1 + + + ( - + col0 ) - col2 * col2 * + col1 + + - col2 FROM tab0
----
-10042
-22042
-474236

query I rowsort
SELECT DISTINCT 69 * + - col2 - + col0 + - col1 AS col0 FROM tab0
----
-3339
-6929
-798

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

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

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

query I rowsort
SELECT DISTINCT + - 34 FROM tab0 WHERE NOT + 32 <= col1
----
-34

query I rowsort
SELECT - ( + 35 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

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

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

query II rowsort
SELECT + col1 / + col0 * + 66 + 81 * - col2 + + col2 AS col1, col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT MAX( ALL 57 ) AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT MAX ( ALL 57 ) AS col2 FROM tab1 AS cor0
----
57

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

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

query I rowsort
SELECT DISTINCT - col1 * + + 85 * col2 AS col0 FROM tab1 AS cor0
----
-114240
-25075
-271660

query II rowsort
SELECT + 66 AS col0, - col0 FROM tab2 WHERE NOT col2 * - - col1 * - + 94 = NULL
----

query I rowsort
SELECT + col1 * + - col0 - + + col0 + - 21 * - col2 FROM tab1 WHERE NOT + 4 BETWEEN NULL AND col2
----

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

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

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL <> ( 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT + ( - + SUM( col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-700
SELECT + ( - + SUM ( col1 ) ) FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT - 15 DIV + - 54 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-701
SELECT - 15 / + - 54 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ALL ( + + col0 ) + + 44 FROM tab0
----
131
141
59

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

query III rowsort
SELECT * FROM tab0 WHERE + + col2 BETWEEN NULL AND - - col0 * col2 + - col1
----

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

skipif mysql # not compatible
query I rowsort label-707
SELECT - + col1 + + - col0 + + 69 * ( CAST ( NULL AS REAL ) ) * - - col0 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 74 + + - 6 * + col2 FROM tab0 cor0
----
-134
-356
-668

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

query I rowsort
SELECT - + col2 + + - 43 + + 71 AS col2 FROM tab0 cor0
----
-19
-71
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 22 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 22 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 <> + col1
----
3

skipif mysql # not compatible
query I rowsort label-713
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 <> + col1
----
3

query I rowsort
SELECT - col2 + - col0 * + + 6 * - + 11 * 59 AS col0 FROM tab0 AS cor0
----
338768
377619
58363

onlyif mysql # aggregate syntax: 
query II rowsort label-715
SELECT ALL COUNT( * ), COUNT( * ) FROM tab1, tab1 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-715
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1, tab1 AS cor0
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 69 IS NULL
----

query I rowsort
SELECT 75 + + - 54 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL + col1 + + 14 * - col2 AS col0 FROM tab2 WHERE ( + 83 + + 93 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( 81 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( - + ( - 38 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( - + ( - 38 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT - ( + col1 ) * + ( - 89 ) - - CAST( - col0 AS SIGNED ) col1 FROM tab0
----
-8
1782
7194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-721
SELECT - ( + col1 ) * + ( - 89 ) - - CAST ( - col0 AS INTEGER ) col1 FROM tab0
----
-8
1782
7194

query I rowsort
SELECT - col2 - + - col1 FROM tab0 WHERE NULL >= + - col2
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT COUNT( DISTINCT - col0 ), 77 AS col2 FROM tab0
----
3
77

skipif mysql # not compatible
query II rowsort label-724
SELECT COUNT ( DISTINCT - col0 ), 77 AS col2 FROM tab0
----
3
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT col1 - + - 55 + - col1 + + + col1 * ( - - 66 ) * 67 DIV + col1 AS col2 FROM tab1 AS cor0
----
4477
4477
4477

skipif mysql # not compatible
query I rowsort label-726
SELECT col1 - + - 55 + - col1 + + + col1 * ( - - 66 ) * 67 / + col1 AS col2 FROM tab1 AS cor0
----
4477
4477
4477

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL - COUNT( * ) * COUNT( * ) - - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - COUNT ( * ) * COUNT ( * ) - - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-56

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 11 * - 38 * + 12 + + col0 * ( - - 29 ) IS NOT NULL
----

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

query I rowsort
SELECT ( col1 ) * + 5 + col2 FROM tab1
----
166
303
84

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

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

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

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

query I rowsort
SELECT DISTINCT ( + - ( + 41 ) ) FROM tab0
----
-41

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

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

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

query I rowsort
SELECT + 91 + 75 FROM tab0
----
166
166
166

query I rowsort
SELECT 70 * col0 * + + col2 * col1 + col2 AS col0 FROM tab1
----
1755309
20358588
4798176

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * - 13 + + + col0 + + col2 + col1 = NULL
----

query I rowsort
SELECT ALL 96 * - 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 59dbac93aa0e4c69654d4ae9125c34fa

query I rowsort
SELECT + 77 * + + col2 + - + 79 AS col2 FROM tab0 AS cor0
----
3540
691
7544

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-748
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + col0 * + 68 * + col1 * + + CAST( - - col2 AS SIGNED ) <> - + col2 + - CAST( + + col1 AS DECIMAL )
----
-3

skipif mysql # not compatible
query I rowsort label-748
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 * + 68 * + col1 * + + CAST ( - - col2 AS INTEGER ) <> - + col2 + - CAST ( + + col1 AS REAL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT 92 * + 5 * COUNT( * ) FROM tab1 AS cor0
----
1380

skipif mysql # not compatible
query I rowsort label-749
SELECT 92 * + 5 * COUNT ( * ) FROM tab1 AS cor0
----
1380

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-752
SELECT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
6

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

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

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT ALL + col2 - + 38 FROM tab0
----
-28
61
9

query I rowsort
SELECT ALL + col1 - - 49 AS col1 FROM tab1
----
54
63
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + 96 * - COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-758
SELECT + 96 * - COUNT ( * ) FROM tab1
----
-288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL - 95 * + 44 + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-4171

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - 95 * + 44 + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-4171

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-762
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + 55 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-762
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + 55 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT + SUM( ALL + 86 ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-763
SELECT + SUM ( ALL + 86 ) FROM tab2 AS cor0
----
258

query I rowsort
SELECT ALL + + 34 AS col2 FROM tab2 AS cor0
----
34
34
34

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

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

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

query I rowsort
SELECT col0 + - 33 * col0 AS col1 FROM tab0
----
-2784
-3104
-480

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL + MIN( DISTINCT + 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + MIN ( DISTINCT + 43 ) FROM tab2 AS cor0
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + COUNT( * ) * 56 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-772
SELECT + COUNT ( * ) * 56 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL 43 * + SUM( 58 ) FROM tab0
----
7482

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL 43 * + SUM ( 58 ) FROM tab0
----
7482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT + CAST( + 81 AS SIGNED ) + col2 FROM tab1
----
140
149
177

skipif mysql # not compatible
query I rowsort label-774
SELECT + CAST ( + 81 AS INTEGER ) + col2 FROM tab1
----
140
149
177

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT MAX( 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT MAX ( 35 ) FROM tab2
----
35

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT 43 * - COUNT( * ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-781
SELECT 43 * - COUNT ( * ) FROM tab2
----
-129

query I rowsort
SELECT - ( col0 ) FROM tab2 WHERE NOT + col1 - col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT + 36 - - MAX( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
111

skipif mysql # not compatible
query I rowsort label-783
SELECT + 36 - - MAX ( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT 49 * COUNT( * ) AS col0 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-784
SELECT 49 * COUNT ( * ) AS col0 FROM tab1
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 84 col1 FROM tab0
----
1764
6804
84

query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( - col1 + 43 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE + col0 / + 33 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT MIN( 73 ) AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-789
SELECT MIN ( 73 ) AS col2 FROM tab1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT + 31 * + COUNT( * ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + 31 * + COUNT ( * ) AS col2 FROM tab2
----
93

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-793
SELECT ( CAST ( - col1 AS INTEGER ) ) col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col2 / 4 - 62 FROM tab0 WHERE NOT ( + 0 ) < NULL
----

query I rowsort
SELECT ALL 89 * + 30 FROM tab0
----
2670
2670
2670

query I rowsort
SELECT DISTINCT - col1 + col1 * 78 AS col2 FROM tab0
----
1617
6237
77

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

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

query I rowsort
SELECT DISTINCT - col1 * 66 FROM tab1 AS cor0
----
-3102
-330
-924

query I rowsort
SELECT ALL - ( + 31 ) * col0 AS col0 FROM tab1 AS cor0
----
-1581
-2635
-2821

query I rowsort
SELECT DISTINCT + col2 * ( - 50 ) AS col2 FROM tab1 AS cor0
----
-2950
-3400
-4800

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 26 IN ( - col1 )
----
51
67
77

query I rowsort
SELECT ( col0 ) * + 10 FROM tab1 WHERE NOT + col0 IS NULL
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL - COUNT( col0 ) col2 FROM tab0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT + col1 * CAST( - ( - col0 ) * 56 AS SIGNED ) AS col2 FROM tab1
----
23800
239512
39984

skipif mysql # not compatible
query I rowsort label-805
SELECT + col1 * CAST ( - ( - col0 ) * 56 AS INTEGER ) AS col2 FROM tab1
----
23800
239512
39984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 / - col0 col2 FROM tab0 WHERE NOT NULL <> + col0 * - 1
----

query I rowsort
SELECT ALL 85 FROM tab2 WHERE NOT col0 < col1 * col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT CAST( ( 88 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-809
SELECT CAST ( ( 88 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
88
88
88

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

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - 88 / col1 FROM tab1 AS cor0
----
-1
-17
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT DISTINCT - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + SUM( ALL col0 ) FROM tab1 AS cor0 WHERE ( col0 * + col0 ) IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + SUM ( ALL col0 ) FROM tab1 AS cor0 WHERE ( col0 * + col0 ) IS NOT NULL
----
227

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 46 + 15 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT ALL 98 DIV 89 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL 98 / 89 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 48 * col0 FROM tab0 AS cor0 WHERE NOT 75 IS NULL
----
4176
4656
720

query I rowsort
SELECT - ( 36 ) FROM tab2 AS cor0
----
-36
-36
-36

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

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

query I rowsort
SELECT ALL col0 + + + 4 FROM tab2
----
50
68
79

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

query I rowsort
SELECT - col1 * + + ( 29 ) * + col0 FROM tab2
----
-142912
-145725
-68034

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

query I rowsort
SELECT + 78 * - 2 * + col2 FROM tab2
----
-3588
-6240
-9048

query I rowsort
SELECT - 97 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-4462
-6208
-7275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT MIN( + 48 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT MIN ( + 48 ) FROM tab1
----
48

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

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

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0 cor0
----
78
78
78

query I rowsort
SELECT - - col0 + - 64 FROM tab0 AS cor0
----
-49
23
33

query I rowsort
SELECT + col2 + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE - 79 > NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL + COUNT( DISTINCT + col1 ) + + 50 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + COUNT ( DISTINCT + col1 ) + + 50 FROM tab2 AS cor0
----
53

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + - - col0 + 95 + - + col0 FROM tab1
----
146
180
186

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT - col1 IS NULL AND NULL IN ( col1 )
----

query I rowsort
SELECT + col0 + - - col1 + - - col1 AS col1 FROM tab2
----
148
209
218

query I rowsort
SELECT ALL - 26 + 95 AS col0 FROM tab0
----
69
69
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-846
SELECT + col0 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) + col0 <> 73 * 71
----

skipif mysql # not compatible
query I rowsort label-846
SELECT + col0 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) + col0 <> 73 * 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT 35 DIV 33 - - col0 * + col2 FROM tab1 WHERE NOT - + col1 = - ( col0 )
----
4897
5016
6189

skipif mysql # not compatible
query I rowsort label-847
SELECT 35 / 33 - - col0 * + col2 FROM tab1 WHERE NOT - + col1 = - ( col0 )
----
4897
5016
6189

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT - col2 BETWEEN - col1 AND - - 22
----
-59
-68
-96

query I rowsort
SELECT + ( + 7 ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query II rowsort
SELECT col1 AS col2, 13 FROM tab0
----
1
13
21
13
81
13

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 42 - + 71 * + - 81 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT ALL - ( + 70 ) DIV + ( - col1 ) AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - ( + 70 ) / + ( - col1 ) AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + 2 + 37 FROM tab1 AS cor0
----
39

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

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

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

query I rowsort
SELECT ALL - col2 + 18 AS col2 FROM tab0
----
-29
-81
8

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

query I rowsort
SELECT ALL ( ( + 56 ) ) FROM tab0 WHERE NOT ( + col1 * col0 NOT BETWEEN ( + 64 ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL + + col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + + col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - 43 * + 63 FROM tab1
----
-2709
-2709
-2709

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

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

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

query I rowsort
SELECT DISTINCT - 98 + + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-157
-166
-194

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT - - 13 >= NULL )
----

query I rowsort
SELECT DISTINCT - col2 * col2 * + 14 - - + col0 AS col1 FROM tab2 AS cor0
----
-22336
-47021
-7360

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-879
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 + ( col1 ) col1 FROM tab1 AS cor0 WHERE NOT col1 / - col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + - 94 FROM tab1 AS cor0
----
-5546
-6392
-9024

query I rowsort
SELECT + ( + - col1 ) * + col2 * - 16 FROM tab1 AS cor0
----
21504
4720
51136

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

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

skipif mysql # not compatible
query I rowsort label-883
SELECT CAST ( + - 76 AS INTEGER ) FROM tab0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT ALL + 23 AS col0, 8 * - - ( - - COUNT( * ) ) FROM tab2
----
23
24

skipif mysql # not compatible
query II rowsort label-884
SELECT ALL + 23 AS col0, 8 * - - ( - - COUNT ( * ) ) FROM tab2
----
23
24

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT 46 DIV COUNT( * ) * - MAX( + 97 ) AS col0 FROM tab2
----
-1455

skipif mysql # not compatible
query I rowsort label-888
SELECT 46 / COUNT ( * ) * - MAX ( + 97 ) AS col0 FROM tab2
----
-1455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 WHERE - col1 + - col2 <= ( col2 * 45 / - col2 - - - ( - - CAST( + col1 AS SIGNED ) ) * col1 + 1 )
----
-2

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - 2 AS col1 FROM tab0 AS cor0 WHERE - col1 + - col2 <= ( col2 * 45 / - col2 - - - ( - - CAST ( + col1 AS INTEGER ) ) * col1 + 1 )
----
-2

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 15 col1, + col1 AS col0, + + col2 / + 99 FROM tab1 AS cor0 WHERE NOT - col1 * col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT DISTINCT CAST( + + 33 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT CAST ( + + 33 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * 70 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - + col2 + + 0 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col1 ) FROM tab1 WHERE - col1 + + + 13 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 77 + + + 7 * - + ( + col1 ) FROM tab0 WHERE - + col2 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT DISTINCT 6 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT 6 / col1 FROM tab2
----
0

query I rowsort
SELECT ALL col1 + col1 - + 23 FROM tab2
----
111
131
79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-903
SELECT * FROM tab2 WHERE NOT + col1 IN ( + ( - 40 ), 80 ) AND NOT CAST( NULL AS SIGNED ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-903
SELECT * FROM tab2 WHERE NOT + col1 IN ( + ( - 40 ), 80 ) AND NOT CAST ( NULL AS INTEGER ) NOT IN ( + col1 )
----

query I rowsort
SELECT - 11 / - ( - + col0 ) FROM tab1 cor0 WHERE col0 IN ( - col0 )
----

query II rowsort
SELECT ALL col1, 9 + - - 48 AS col1 FROM tab2 AS cor0
----
51
57
67
57
77
57

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

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

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

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

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND 46
----

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

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

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

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

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

query I rowsort
SELECT + + col2 * + - 15 + 67 FROM tab0 AS cor0
----
-1418
-638
-83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-915
SELECT ALL - + MIN( DISTINCT 91 ) * + COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( 43 + - + col1 + CAST( 1 AS SIGNED ) + - + ( - 15 ) / + 41 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - + MIN ( DISTINCT 91 ) * + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( 43 + - + col1 + CAST ( 1 AS INTEGER ) + - + ( - 15 ) / + 41 ) <= ( NULL )
----
NULL

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

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

query I rowsort
SELECT - + col1 * - + col1 FROM tab2 AS cor0
----
2601
4489
5929

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

query I rowsort
SELECT + 39 * - col0 FROM tab0 cor0
----
-3393
-3783
-585

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT col1 * - col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL 12 * - COUNT( * ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL 12 * - COUNT ( * ) AS col2 FROM tab1
----
-36

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) + - + ( COUNT ( * ) ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + 92 - - - col1 + - + col0 * - + col0 - + 31 + - + col1 * + + 68 col2 FROM tab1
----
14
1696
47
5099
5
6941

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

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

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

query II rowsort
SELECT ALL + - 50 AS col1, col1 FROM tab2 AS cor0
----
-50
51
-50
67
-50
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT + + ( - CAST( - col0 AS SIGNED ) ) + - + col1 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-933
SELECT + + ( - CAST ( - col0 AS INTEGER ) ) + - + col1 FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT DISTINCT + col2 AS col2, - 48 FROM tab1 AS cor0
----
59
-48
68
-48
96
-48

query I rowsort
SELECT - 21 AS col1 FROM tab1 AS cor0 WHERE - 3 <> + 40
----
-21
-21
-21

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * + col1 BETWEEN + 44 * col0 AND - - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL + 95 + + COUNT( * ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + 95 + + COUNT ( * ) AS col0 FROM tab1
----
98

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL COUNT( * ) - - - 47 + + ( 96 ), SUM( DISTINCT col2 ) AS col1 FROM tab0
----
52
156

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL COUNT ( * ) - - - 47 + + ( 96 ), SUM ( DISTINCT col2 ) AS col1 FROM tab0
----
52
156

query I rowsort
SELECT + + 55 AS col1 FROM tab2 WHERE + col2 * - col1 + + col1 IS NOT NULL
----
55
55
55

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NOT NULL OR col0 * - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1 WHERE NOT - 55 IS NULL
----
-79

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

query II rowsort
SELECT col0 - + - 60 AS col2, - col1 + - - 5 FROM tab2 AS cor0
----
106
-46
124
-72
135
-62

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

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

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + 99 * MIN ( col2 ) FROM tab0
----
990

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ( COUNT( * ) ) col0 FROM tab0 cor0 WHERE NOT 52 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-952
SELECT ( COUNT ( * ) ) col0 FROM tab0 cor0 WHERE NOT 52 <> NULL
----
0

query I rowsort
SELECT ALL ( + col0 ) * + - 44 AS col2 FROM tab0 AS cor0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-954
SELECT ALL - 49 DIV COUNT( * ) col2 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-954
SELECT ALL - 49 / COUNT ( * ) col2 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT 78 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + - 57 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT + COUNT( DISTINCT 70 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + COUNT ( DISTINCT 70 ) FROM tab1
----
1

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-961
SELECT ALL * FROM tab2 WHERE NOT - + CAST( - col0 AS SIGNED ) - 47 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-961
SELECT ALL * FROM tab2 WHERE NOT - + CAST ( - col0 AS INTEGER ) - 47 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT + MAX( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT + MAX ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

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

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 WHERE NOT 31 * - - col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT - 5 - - 45 FROM tab2 AS cor0 WHERE 82 * 65 + - col0 IS NOT NULL
----
40
40
40

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----

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

query II rowsort
SELECT ALL col0 * - 12 + + + 23, col0 FROM tab0
----
-1021
87
-1141
97
-157
15

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

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

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

query I rowsort
SELECT col1 - - 88 FROM tab0
----
109
169
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT COUNT( * ) * + - COUNT( * ) + + + 37 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-979
SELECT COUNT ( * ) * + - COUNT ( * ) + + + 37 FROM tab1
----
28

query I rowsort
SELECT DISTINCT col2 * ( - 40 ) + - col2 * col2 FROM tab2
----
-1449
-3200
-5684

query I rowsort
SELECT ALL + 47 * - 33 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e814a0eb11727b0eb776536f2339cb6

query I rowsort
SELECT DISTINCT + 61 + - col0 AS col1 FROM tab1
----
-24
-30
10

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT - 19 DIV - 51 * + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-988
SELECT - 19 / - 51 * + col1 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT 38 * COUNT( * ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT 38 * COUNT ( * ) FROM tab0 AS cor0
----
114

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

query I rowsort
SELECT ALL - + ( 80 ) * - col1 FROM tab0 AS cor0
----
1680
6480
80

query I rowsort
SELECT DISTINCT - 70 * 23 + - col2 + - + 99 AS col2 FROM tab0 AS cor0
----
-1719
-1756
-1808

query I rowsort
SELECT - col0 * + 70 AS col0 FROM tab2 AS cor0
----
-3220
-4480
-5250

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT + + 35 DIV - + col1 AS col2 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + + 35 / - + col1 AS col2 FROM tab1 AS cor0
----
-2
-7
0

query I rowsort
SELECT DISTINCT - ( 77 ) FROM tab0 AS cor0
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT - COUNT( ALL - ( - col1 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-998
SELECT - COUNT ( ALL - ( - col1 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL + 28 * - col2 FROM tab0
----
-1316
-2772
-280

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 92 + + col0 <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT DISTINCT - col1 DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT - col1 / + + col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL > ( + col1 ) + + col0 + col0 * - - 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT col2 * + col0 * + 79 - + - col0 DIV col2 AS col2 FROM tab2 AS cor0
----
202241
343651
83584

skipif mysql # not compatible
query I rowsort label-1003
SELECT col2 * + col0 * + 79 - + - col0 / col2 AS col2 FROM tab2 AS cor0
----
202241
343651
83584

query I rowsort
SELECT ALL ( 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1007
SELECT * FROM tab1 WHERE ( - col1 - - 74 + + ( - col2 ) - + - col2 + - ( col2 ) / - col2 * + + CAST( NULL AS SIGNED ) NOT BETWEEN - - 16 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-1007
SELECT * FROM tab1 WHERE ( - col1 - - 74 + + ( - col2 ) - + - col2 + - ( col2 ) / - col2 * + + CAST ( NULL AS INTEGER ) NOT BETWEEN - - 16 AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1008
SELECT 46 + + COUNT( DISTINCT + + col2 ) DIV - ( 28 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1008
SELECT 46 + + COUNT ( DISTINCT + + col2 ) / - ( 28 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL + + SUM( DISTINCT 61 ) AS col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + + SUM ( DISTINCT 61 ) AS col1 FROM tab2 AS cor0
----
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT DISTINCT col1 + - col0 DIV - - 14 FROM tab1 cor0
----
-1
11
41

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT col1 + - col0 / - - 14 FROM tab1 cor0
----
-1
11
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT + ( + 63 ) + - - COUNT( * ) - - 81 AS col2 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + ( + 63 ) + - - COUNT ( * ) - - 81 AS col2 FROM tab1
----
147

query I rowsort
SELECT 65 * - col2 AS col1 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT - COUNT( * ) + + 66 * + 69 col0 FROM tab0
----
4551

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1015
SELECT DISTINCT - COUNT ( * ) + + 66 * + 69 col0 FROM tab0
----
4551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL col1 - - 55 + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-43
66
89

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL col1 - - 55 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-43
66
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - SUM( + + 24 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1017
SELECT - SUM ( + + 24 ) AS col0 FROM tab2
----
-72

query I rowsort
SELECT 14 - + + col0 + - ( 83 ) * + col1 + col1 AS col2 FROM tab2
----
-4214
-5555
-6364

query I rowsort
SELECT col0 - - + col2 + + + ( + + col2 ) AS col2 FROM tab0
----
107
109
295

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT DISTINCT - 48 - + 20 / + col0 * CAST( NULL AS SIGNED ) * - col2 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1021
SELECT DISTINCT - 48 - + 20 / + col0 * CAST ( NULL AS INTEGER ) * - col2 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1023
SELECT COUNT( - 71 ) DIV COUNT( * ) col1, + 5 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 )
----
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1023
SELECT COUNT ( - 71 ) / COUNT ( * ) col1, + 5 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 )
----
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 < - col0 * col0 + - - col0 + col2 * + col0
----
87
21
10

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1027
SELECT ALL CAST( NULL AS DECIMAL ), + ( + col0 ) - col1 col2 FROM tab2
----
NULL
-13
NULL
-5
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1027
SELECT ALL CAST ( NULL AS REAL ), + ( + col0 ) - col1 col2 FROM tab2
----
NULL
-13
NULL
-5
NULL
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT + + 41 * + MIN( + col1 ) FROM tab2 cor0
----
2091

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT + + 41 * + MIN ( + col1 ) FROM tab2 cor0
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 97 * + - ( col2 ) * + - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 97 * + - ( col2 ) * + - col2 <> NULL
----
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT ( 75 ) * + col0 * + + col1 FROM tab2
----
175950
369600
376875

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL 14 * + SUM( - 74 ) FROM tab1
----
-3108

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL 14 * + SUM ( - 74 ) FROM tab1
----
-3108

query I rowsort
SELECT DISTINCT - + 23 FROM tab0 cor0
----
-23

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + COUNT( * ) * 35 - SUM( DISTINCT - 39 ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1046
SELECT + COUNT ( * ) * 35 - SUM ( DISTINCT - 39 ) FROM tab2 AS cor0
----
144

query I rowsort
SELECT + - col2 - - + col1 * - - 25 * col0 AS col0 FROM tab0 AS cor0
----
2326
30328
45665

query I rowsort
SELECT + - col0 - - - 10 AS col1 FROM tab0 AS cor0
----
-107
-25
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT - 67 + - - COUNT( - - 4 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-1049
SELECT - 67 + - - COUNT ( - - 4 ) FROM tab0
----
-64

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 5 - - + 86 FROM tab0
----
91
91
91

query I rowsort
SELECT + 74 + col0 - + - ( + col1 ) * col1 FROM tab0
----
172
602
6650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 6 FROM tab0 WHERE col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 6 FROM tab0 WHERE col1 < NULL
----

query II rowsort
SELECT - col0 AS col0, ( - col1 ) FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT ALL - - 38 AS col2, COUNT( DISTINCT + 4 ) AS col2 FROM tab1 AS cor0
----
38
1

skipif mysql # not compatible
query II rowsort label-1055
SELECT ALL - - 38 AS col2, COUNT ( DISTINCT + 4 ) AS col2 FROM tab1 AS cor0
----
38
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1056
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1056
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

query I rowsort
SELECT ALL - - AVG ( ALL col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 - - - 33 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT MIN( ALL 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1059
SELECT MIN ( ALL 71 ) FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + COUNT( * ) * + COUNT( * ) + + 56 AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1060
SELECT + COUNT ( * ) * + COUNT ( * ) + + 56 AS col0 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL - 51 FROM tab0 cor0 WHERE NOT 11 IS NULL
----
-51
-51
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1064
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL + COUNT( * ) * + 78 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + COUNT ( * ) * + 78 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

query I rowsort
SELECT - + 30 AS col1 FROM tab2 cor0
----
-30
-30
-30

query II rowsort
SELECT DISTINCT - 93 + + col0, col2 AS col0 FROM tab0 AS cor0
----
-6
10
-78
47
4
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1069
SELECT - SUM( - + col1 ), CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
103
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1069
SELECT - SUM ( - + col1 ), CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
103
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT + MAX( DISTINCT col0 ) + + MIN( DISTINCT col2 ) + + 73 AS col2 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-1070
SELECT + MAX ( DISTINCT col0 ) + + MIN ( DISTINCT col2 ) + + 73 AS col2 FROM tab2
----
171

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1071
SELECT + col0 AS col2 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) >= + + ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-1071
SELECT + col0 AS col2 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) >= + + ( - + col2 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 + + col2 AS col0 FROM tab1
----
3535
4645
9298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1074
SELECT DISTINCT 44 DIV + - COUNT( * ) AS col2 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT 44 / + - COUNT ( * ) AS col2 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT - ( + COUNT( * ) ) * + 33 col2 FROM tab0
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL 91 * - - COUNT( * ) * + 93 * + 40 FROM tab1 AS cor0
----
1015560

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL 91 * - - COUNT ( * ) * + 93 * + 40 FROM tab1 AS cor0
----
1015560

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE - ( col0 ) + + + ( + col1 ) <= + 39
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT 11 + + + COUNT( * ) + - COUNT( * ) * 14 * 74 FROM tab1 AS cor0
----
-3094

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT 11 + + + COUNT ( * ) + - COUNT ( * ) * 14 * 74 FROM tab1 AS cor0
----
-3094

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL + 4 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL + 4 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT 43 + col0 - col2 FROM tab2
----
60
66
67

query I rowsort
SELECT + 45 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 26 ) IS NOT NULL
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) / COUNT( * ) + - ( - + 5 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / COUNT ( * ) + - ( - + 5 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 34 * col0 + + + col1 * - - ( - - col2 ) - - 19 AS col2 FROM tab2
----
2756
5275
6455

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1085
SELECT * FROM tab2 WHERE + col2 NOT IN ( + - 59 + + ( 76 ), col1, + CAST( NULL AS SIGNED ), col1, - 19, col1 )
----

skipif mysql # not compatible
query III rowsort label-1085
SELECT * FROM tab2 WHERE + col2 NOT IN ( + - 59 + + ( 76 ), col1, + CAST ( NULL AS INTEGER ), col1, - 19, col1 )
----

query I rowsort
SELECT ALL - + col2 * + 32 * + 86 * - - col2 - - - col1 + - 76 FROM tab0 AS cor0
----
-26972429
-275297
-6079325

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 66 >= NULL
----

query I rowsort
SELECT - 82 * 84 + + + col1 AS col1 FROM tab2 AS cor0
----
-6811
-6821
-6837

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + - 8, + col0 * 23, - + 88, - + 13 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT - col2 / + - 61 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT CAST( + COUNT( - - col0 ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1091
SELECT CAST ( + COUNT ( - - col0 ) AS INTEGER ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ALL 67 * 4 + + 0 + col2 * + 98 AS col2, - col0 + col2 FROM tab0
----
1248
-77
4874
32
9970
2

query I rowsort
SELECT - 16 * + 37 FROM tab1
----
-592
-592
-592

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 / - 99 * ( - - ( - - col1 ) ) NOT BETWEEN - - 11 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT 23 FROM tab1 AS cor0 WHERE NOT NULL = col2 * + - col2 + - - col2
----

query II rowsort
SELECT DISTINCT - + col0 AS col1, ( - col1 ) * + 20 + + col1 AS col0 FROM tab0 AS cor0
----
-15
-1539
-87
-399
-97
-19

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

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

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + 16 * col0 AS col2 FROM tab2
----
1024
1200
736

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

query I rowsort
SELECT ALL + 44 FROM tab2 WHERE NOT - 68 * col0 + + - 15 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col1, + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-14
192
-47
136
-5
118

query II rowsort
SELECT DISTINCT - 79 AS col2, - col2 FROM tab0 AS cor0
----
-79
-10
-79
-47
-79
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT + COUNT( * ) + - 33 FROM tab2 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + COUNT ( * ) + - 33 FROM tab2 cor0
----
-30

query I rowsort
SELECT + 23 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - - MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT DISTINCT 9 + - SUM( DISTINCT - 51 ) col1 FROM tab0 AS cor0
----
60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT DISTINCT + col1 DIV + col2 + + - col2 AS col1 FROM tab0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT + col1 / + col2 + + - col2 AS col1 FROM tab0
----
-46
-8
-99

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

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

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

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

query I rowsort
SELECT DISTINCT + 22 + - col0 AS col2 FROM tab1
----
-29
-63
-69

query I rowsort
SELECT + 5 FROM tab2 AS cor0 WHERE NULL > - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL - - COUNT( DISTINCT 39 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL - - COUNT ( DISTINCT 39 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( - col1 ) + - - col0 * col1 - col2 ) <= col1 - 9
----

query II rowsort
SELECT col0 + - - col0 AS col2, 51 FROM tab1 AS cor0
----
102
51
170
51
182
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT - COUNT( * ) * + MIN( ALL + + 60 ) col0 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1119
SELECT DISTINCT - COUNT ( * ) * + MIN ( ALL + + 60 ) col0 FROM tab0 AS cor0
----
-180

query I rowsort
SELECT col2 + - 77 + - col1 + 72 AS col0 FROM tab1 AS cor0
----
16
49
77

query II rowsort
SELECT - 54 + - + col0 AS col1, + ( - 63 ) FROM tab0 AS cor0
----
-141
-63
-151
-63
-69
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 + + 70 * - col2 col1 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT + MIN( DISTINCT + 83 ) AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-1123
SELECT + MIN ( DISTINCT + 83 ) AS col1 FROM tab1
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + - 37 - ( + 89 ) col0 FROM tab1 AS cor0
----
-1976
-3234
-3456

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT DISTINCT CAST( ( - 96 ) AS SIGNED ) * 42 AS col2 FROM tab2 AS cor0
----
-4032

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT CAST ( ( - 96 ) AS INTEGER ) * 42 AS col2 FROM tab2 AS cor0
----
-4032

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

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

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

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

query I rowsort
SELECT ALL 5 * 75 AS col1 FROM tab0 AS cor0
----
375
375
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT + + MAX( DISTINCT + 45 ) DIV - MAX( ALL + - 56 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT + + MAX ( DISTINCT + 45 ) / - MAX ( ALL + - 56 ) FROM tab2 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - col0 / + col2 AS col1 FROM tab0 AS cor0
----
-8
0

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( - + ( + 34 ) - + col0 * - - ( - + 15 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1136
SELECT ALL + MIN( ALL + ( - col0 ) ) DIV + 5 AS col2, - SUM( - col1 ) FROM tab2
----
-15
195

skipif mysql # not compatible
query II rowsort label-1136
SELECT ALL + MIN ( ALL + ( - col0 ) ) / + 5 AS col2, - SUM ( - col1 ) FROM tab2
----
-15
195

query I rowsort
SELECT ALL + 80 AS col1 FROM tab0 WHERE NOT 92 * - col2 BETWEEN NULL AND + - col1
----

query I rowsort
SELECT ( - col0 ) * - + col0 AS col1 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 < + col0 + - ( - col0 ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT - SUM( ALL 13 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - SUM ( ALL 13 ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT DISTINCT MIN( + col0 ) AS col2, 88 AS col0 FROM tab0 AS cor0
----
15
88

skipif mysql # not compatible
query II rowsort label-1141
SELECT DISTINCT MIN ( + col0 ) AS col2, 88 AS col0 FROM tab0 AS cor0
----
15
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - 45 * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - 45 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
405

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + - col2 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT + col2 / - - 47 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT + + col0 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + + col0 * col0 IS NULL
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1147
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + 98 + + CAST( NULL AS SIGNED ) + - 45 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + 98 + + CAST ( NULL AS INTEGER ) + - 45 IS NOT NULL
----
14
47
5

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT ALL - 68 + 91 DIV - col2 FROM tab0 AS cor0
----
-68
-69
-77

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL - 68 + 91 / - col2 FROM tab0 AS cor0
----
-68
-69
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT - 95 + - col1 - + + ( + col1 ) + ( + col1 ) DIV - col1 + + - col0 FROM tab1 AS cor0
----
-175
-191
-281

skipif mysql # not compatible
query I rowsort label-1151
SELECT - 95 + - col1 - + + ( + col1 ) + ( + col1 ) / - col1 + + - col0 FROM tab1 AS cor0
----
-175
-191
-281

query I rowsort
SELECT DISTINCT + - 81 + col2 FROM tab2 AS cor0
----
-23
-41
-58

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

query I rowsort
SELECT ALL + 19 FROM tab1 AS cor0 WHERE col1 * - 6 * - col2 * + - col1 + 83 IS NOT NULL
----
19
19
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL COUNT( * ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL COUNT ( * ) FROM tab0, tab0 AS cor0
----
9

query I rowsort
SELECT col2 + + 65 - col1 FROM tab2
----
28
37
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1159
SELECT col0 + - 33 DIV + 95 AS col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1159
SELECT col0 + - 33 / + 95 AS col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL 37 + + + col2 / CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL - MIN( 45 ) AS col0 FROM tab1 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - MIN ( 45 ) AS col0 FROM tab1 cor0
----
-45

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT COUNT( * ) * - 29 + COUNT( * ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1164
SELECT COUNT ( * ) * - 29 + COUNT ( * ) FROM tab1
----
-84

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - col2 + + + col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # aggregate syntax: 
query II rowsort label-1166
SELECT DISTINCT + COUNT( * ) * COUNT( * ), - 41 AS col2 FROM tab2 AS cor0
----
9
-41

skipif mysql # not compatible
query II rowsort label-1166
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ), - 41 AS col2 FROM tab2 AS cor0
----
9
-41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + + col0 ), col1, + 92, + 80 + col0 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT NULL NOT IN ( - 65, col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT 97 DIV + 36 AS col2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1171
SELECT 97 / + 36 AS col2 FROM tab0 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( col0 ) - - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1173
SELECT ALL CAST( + col2 AS SIGNED ) col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1173
SELECT ALL CAST ( + col2 AS INTEGER ) col2 FROM tab2
----
23
40
58

query I rowsort
SELECT 78 * - col1 AS col0 FROM tab1
----
-1092
-3666
-390

query I rowsort
SELECT col1 * - 84 FROM tab1
----
-1176
-3948
-420

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

query II rowsort
SELECT 59, + ( col0 ) AS col2 FROM tab2 cor0
----
59
46
59
64
59
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + ( - SUM( DISTINCT + 46 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-1179
SELECT + ( - SUM ( DISTINCT + 46 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

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

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

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

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

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

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

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

query I rowsort
SELECT + - 76 AS col1 FROM tab2 cor0
----
-76
-76
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL + 39 + + COUNT( DISTINCT - col1 ) + + + 64 AS col0 FROM tab1
----
106

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + 39 + + COUNT ( DISTINCT - col1 ) + + + 64 AS col0 FROM tab1
----
106

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

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

query I rowsort
SELECT DISTINCT col1 - - + col0 + + col2 * + 50 FROM tab1
----
3040
3538
4865

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1189
SELECT * FROM tab0 WHERE + 80 = - CAST( + 13 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1189
SELECT * FROM tab0 WHERE + 80 = - CAST ( + 13 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1190
SELECT ALL - col2 - + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - 21 * - col1 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1192
SELECT - - 82 DIV 36 + - COUNT( ALL col2 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1192
SELECT - - 82 / 36 + - COUNT ( ALL col2 ) col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col2 * + col0 AS col1 FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col0 * + + col1 * - + 50 FROM tab1
----
-21250
-213850
-35700

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 72 col2 FROM tab0 AS cor0 WHERE NOT - 28 * + 80 IS NULL
----
-25
-62
27

query II rowsort
SELECT - col1 AS col1, - col2 * - col2 FROM tab0 AS cor0
----
-1
9801
-21
100
-81
2209

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT DISTINCT + 89 + + - ( MAX( ALL - col0 ) ) AS col0, + 71 col2 FROM tab2 AS cor0 WHERE NOT 74 <> NULL
----
NULL
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1201
SELECT DISTINCT + 89 + + - ( MAX ( ALL - col0 ) ) AS col0, + 71 col2 FROM tab2 AS cor0 WHERE NOT 74 <> NULL
----
NULL
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL col0 * + 83 FROM tab2
----
3818
5312
6225

query I rowsort
SELECT - col2 * + 1 FROM tab2
----
-23
-40
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT 8 DIV 2 AS col1 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1208
SELECT 8 / 2 AS col1 FROM tab1
----
4
4
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1209
SELECT ALL - CAST( NULL AS DECIMAL ) * + 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - CAST ( NULL AS REAL ) * + 54 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1210
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + + + 69 > - 69
----

skipif mysql # not compatible
query III rowsort label-1210
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + + + 69 > - 69
----

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

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

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT 92 / - ( + col0 ) FROM tab2
----
-1
-2

query I rowsort
SELECT 47 + + col1 AS col0 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT - 34 DIV + COUNT( * ) + ( + + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1214
SELECT - 34 / + COUNT ( * ) + ( + + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5

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

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

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

query II rowsort
SELECT DISTINCT col0 + + + 57 * col2 * + ( + col1 ) AS col2, col0 FROM tab0
----
12057
87
217014
15
5740
97

query I rowsort
SELECT ALL col1 * + col2 + + + col1 AS col1 FROM tab1
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT DISTINCT - CAST( - col1 AS SIGNED ) - + - 23 * - 82 * + 7 FROM tab1
----
-13155
-13188
-13197

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) - + - 23 * - 82 * + 7 FROM tab1
----
-13155
-13188
-13197

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT - - ( + + 64 ) - - - MAX( DISTINCT - col1 ) AS col1, 31 AS col1 FROM tab2 AS cor0
----
115
31

skipif mysql # not compatible
query II rowsort label-1220
SELECT - - ( + + 64 ) - - - MAX ( DISTINCT - col1 ) AS col1, 31 AS col1 FROM tab2 AS cor0
----
115
31

query I rowsort
SELECT ALL - - col2 - + + col0 + col1 * - col2 FROM tab1 cor0
----
-1299
-321
-3219

query II rowsort
SELECT + col2, 13 * - - col0 * + 64 FROM tab1
----
59
70720
68
75712
96
42432

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1225
SELECT CAST( NULL AS SIGNED ), + AVG ( ALL - 7 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 73 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1225
SELECT CAST ( NULL AS INTEGER ), + AVG ( ALL - 7 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 73 IS NOT NULL
----
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - ( - col0 ) - + 91 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT - CAST( 80 AS SIGNED ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - CAST ( 80 AS INTEGER ) FROM tab1 AS cor0
----
-80

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 15 ) * 1 * - 55 col2 FROM tab1
----
-825
-825
-825

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

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT + COUNT ( ALL - col0 ) FROM tab2
----
3

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

query II rowsort
SELECT col2 AS col2, ( 79 ) * - col0 AS col1 FROM tab1
----
59
-6715
68
-7189
96
-4029

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT - MAX( col1 ) * 27 AS col1 FROM tab1
----
-1269

skipif mysql # not compatible
query I rowsort label-1235
SELECT - MAX ( col1 ) * 27 AS col1 FROM tab1
----
-1269

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

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

query I rowsort
SELECT + col2 * + col2 * + 55 AS col2 FROM tab1
----
191455
254320
506880

query I rowsort
SELECT ALL + 86 * - + col2 * - + col1 FROM tab0
----
18060
327402
8514

query I rowsort
SELECT - col0 * - + 66 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT - ( - 75 ) * + + col2 AS col2 FROM tab1
----
4425
5100
7200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT COUNT( * ) * - 10 * - 81 AS col2 FROM tab2
----
2430

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT COUNT ( * ) * - 10 * - 81 AS col2 FROM tab2
----
2430

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + ( - 29 ) ) + - col0 col0, 83 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - + 86 + + - 41 FROM tab0 AS cor0
----
-127
-127
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT COUNT( * ) + + - MIN( - 6 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1246
SELECT COUNT ( * ) + + - MIN ( - 6 ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT DISTINCT col1 * + col0 + + col2 + - - col0 * ( + - ( col1 ) ) DIV + col0 + + + col2 + col0 * col0 AS col0 FROM tab0
----
1453
9395
9703

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT col1 * + col0 + + col2 + - - col0 * ( + - ( col1 ) ) / + col0 + + + col2 + col0 * col0 AS col0 FROM tab0
----
1453
9395
9703

query I rowsort
SELECT ALL + col2 * 70 + + 20 FROM tab2
----
1630
2820
4080

query I rowsort
SELECT DISTINCT col1 * + 80 + + col0 + + col1 AS col0 FROM tab2
----
4177
5502
6301

query I rowsort
SELECT ALL - 29 - ( + 58 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query I rowsort
SELECT ALL - col2 - - - col2 AS col1 FROM tab0 cor0
----
-198
-20
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + 52 >= - 50
----

query I rowsort
SELECT ALL - 66 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT col1 * + + 70 * - col1 FROM tab1 AS cor0
----
-13720
-154630
-1750

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < - col0 + + 12
----

query I rowsort
SELECT + col0 * + + ( col1 ) - col2 AS col1 FROM tab1 cor0
----
366
4209
618

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

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

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

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

query I rowsort
SELECT + col2 + 68 FROM tab2
----
108
126
91

query I rowsort
SELECT ALL col0 + - 80 FROM tab0
----
-65
17
7

query I rowsort
SELECT ALL - 58 + - + col1 AS col2 FROM tab1
----
-105
-63
-72

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - - 42 + + col0 col2, 68 + - 74 AS col1 FROM tab2
----
1978
-6
2752
-6
3225
-6

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

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

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

skipif mysql # not compatible
query I rowsort label-1271
SELECT SUM ( + col2 ) AS col2 FROM tab0
----
156

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

skipif mysql # not compatible
query I rowsort label-1272
SELECT CAST ( NULL AS REAL ) * col1 + - 56 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 WHERE - 80 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT + 63 - - COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT + 63 - - COUNT ( * ) FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT DISTINCT col2 DIV + col1 + + col1 FROM tab1 WHERE + 82 <= col0 + + 86
----
16
20
48

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT col2 / + col1 + + col1 FROM tab1 WHERE + 82 <= col0 + + 86
----
16
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT - SUM( ALL + col2 ) + + 44 FROM tab1
----
-179

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT - SUM ( ALL + col2 ) + + 44 FROM tab1
----
-179

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( ( - col0 ) - col2 ) > ( + 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT DISTINCT + ( + MIN( col0 ) ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT + ( + MIN ( col0 ) ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - col1 col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL 41 AS col2 FROM tab0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT ALL 73 / - col0 AS col0 FROM tab0 WHERE NOT 28 > ( - 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT ALL col1 FROM tab2 WHERE NOT CAST( - col2 AS SIGNED ) = - col1 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL col1 FROM tab2 WHERE NOT CAST ( - col2 AS INTEGER ) = - col1 / + CAST ( NULL AS INTEGER )
----

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

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

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

query I rowsort
SELECT DISTINCT + 78 * + 31 FROM tab1
----
2418

query I rowsort
SELECT col0 + 75 AS col1 FROM tab1 WHERE NULL IN ( + col0 + - col2 )
----

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

query I rowsort
SELECT ALL col0 * 99 AS col2 FROM tab0
----
1485
8613
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE 5 < col2 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - col0 * - 6 AS col1 FROM tab0
----
522
582
90

query I rowsort
SELECT + 41 * - col1 FROM tab1
----
-1927
-205
-574

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT + SUM( - 69 ) + + SUM( 7 ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT + SUM ( - 69 ) + + SUM ( 7 ) FROM tab1
----
-186

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

query I rowsort
SELECT DISTINCT - 42 + + 48 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( col2 ) - col1 col1 FROM tab0 AS cor0 WHERE - col1 + ( - col0 ) * - 17 = col1
----

query I rowsort
SELECT ALL + col2 + 20 * - col2 FROM tab2 AS cor0
----
-1102
-437
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT - SUM( ALL 93 ) AS col2 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-1300
SELECT - SUM ( ALL 93 ) AS col2 FROM tab0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT 60 + - COUNT( * ) * + 27 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT 60 + - COUNT ( * ) * + 27 FROM tab1
----
-21

query I rowsort
SELECT 54 + + col1 FROM tab0
----
135
55
75

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

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL > + 4 + - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 + 37 * col1 col0 FROM tab0 cor0
----
1647
3702
9640

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 44 + - 46 * ( 95 * + 37 ) ) NOT BETWEEN + 45 AND ( - 77 )
----

query I rowsort
SELECT DISTINCT col0 * - col0 - - 87 AS col2 FROM tab0 AS cor0
----
-138
-7482
-9322

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

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

query I rowsort
SELECT - + 44 + + 34 AS col1 FROM tab0 AS cor0
----
-10
-10
-10

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

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

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

query I rowsort
SELECT ALL - col0 * - ( - col2 ) + 13 FROM tab0 AS cor0
----
-692
-857
-9590

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 < ( 15 )
----
87
21
10

query I rowsort
SELECT - 87 FROM tab2 WHERE NULL IS NULL
----
-87
-87
-87

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

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

query I rowsort
SELECT DISTINCT - 92 + - ( + col2 ) * - 88 FROM tab2
----
1932
3428
5012

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT + ( - ( COUNT ( * ) ) ) + 8 FROM tab1
----
5

query I rowsort
SELECT ALL + 24 + 50 AS col2 FROM tab1
----
74
74
74

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

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

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

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

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-1324
SELECT CAST( + + COUNT( * ) AS SIGNED ) * - 73 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1324
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * - 73 FROM tab0 AS cor0
----
-219

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL - COUNT( DISTINCT 9 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - COUNT ( DISTINCT 9 ) FROM tab2
----
-1

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

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

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

query I rowsort
SELECT DISTINCT 8 * - col0 + 93 AS col2 FROM tab2 AS cor0
----
-275
-419
-507

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT ALL + col0 DIV - ( 21 ) AS col1 FROM tab1 cor0
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + col0 / - ( 21 ) AS col1 FROM tab1 cor0
----
-2
-4
-4

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1334
SELECT - 2 col1 FROM tab2 cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
-2
-2
-2

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

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

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

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

query I rowsort
SELECT ALL col2 * - col2 + - col2 + 39 AS col1 FROM tab2 AS cor0
----
-1601
-3383
-513

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NULL = - + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 10 col1 FROM tab2
----
-460
-640
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT DISTINCT + 52 DIV ( ( 11 ) ) FROM tab0 AS cor0 WHERE NOT ( NOT ( + ( - col0 ) ) IS NOT NULL )
----
4

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + 52 / ( ( 11 ) ) FROM tab0 AS cor0 WHERE NOT ( NOT ( + ( - col0 ) ) IS NOT NULL )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT - CAST( col1 AS SIGNED ) + + 1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-1350
SELECT - CAST ( col1 AS INTEGER ) + + 1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT col2 * + col1 + + - ( + + col2 ) * - col2 + + 28 * col0 AS col1 FROM tab1 AS cor0
----
10368
11988
6156

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1353
SELECT + + CAST ( NULL AS REAL ) col0 FROM tab2 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 80 + - + col0 AS col2 FROM tab1
----
-131
-165
-171

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + - col2 / + col1 / + col2
----

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( + col1 * + 0 ) AND 24
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1360
SELECT + 89 - COUNT( ALL - - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-1360
SELECT + 89 - COUNT ( ALL - - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
86

query I rowsort
SELECT - col1 / + col2 + + col1 * col1 AS col1 FROM tab0 AS cor0 WHERE + col1 - + col2 * + col2 * - col2 IN ( col2 * - 66 )
----

query I rowsort
SELECT - + 68 - + col0 AS col2 FROM tab1 AS cor0
----
-119
-153
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT 66 * + MAX( DISTINCT 48 ) FROM tab2 AS cor0
----
3168

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT 66 * + MAX ( DISTINCT 48 ) FROM tab2 AS cor0
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + COUNT( * ) + - - COUNT( * ) + + COUNT( * ) * + 82 - + ( - 66 ) FROM tab2 AS cor0
----
318

skipif mysql # not compatible
query I rowsort label-1364
SELECT + COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) * + 82 - + ( - 66 ) FROM tab2 AS cor0
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT 75 + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1365
SELECT 75 + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT - col0 + - col1 - + + 30 FROM tab2 AS cor0
----
-127
-171
-172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1367
SELECT ALL * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) <= - col2
----

skipif mysql # not compatible
query III rowsort label-1367
SELECT ALL * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1368
SELECT col1, - CAST( NULL AS SIGNED ) * + 1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1368
SELECT col1, - CAST ( NULL AS INTEGER ) * + 1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT ALL + col2, + 51 + + - col2 * - col2 * 14 FROM tab1
----
59
48785
68
64787
96
129075

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT COUNT( * ) * 27 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT COUNT ( * ) * 27 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - COUNT( * ) * - 43 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - COUNT ( * ) * - 43 FROM tab0 AS cor0
----
129

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT MIN ( col2 ) FROM tab2 AS cor0
----
23

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 * - 86 AS col2, col0 AS col1 FROM tab1 AS cor0
----
-4386
51
-7310
85
-7826
91

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - 26 + + - 68 NOT IN ( 97 + - 79, col2 )
----

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1390
SELECT 34 + COUNT( * ) DIV + 8 * + 21 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1390
SELECT 34 + COUNT ( * ) / + 8 * + 21 FROM tab1
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT ALL - 30 + + - CAST( col1 AS SIGNED ) * 4 FROM tab2
----
-234
-298
-338

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - 30 + + - CAST ( col1 AS INTEGER ) * 4 FROM tab2
----
-234
-298
-338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col1 ) * + - col2 + - col0 col0 FROM tab1
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT SUM( DISTINCT 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1394
SELECT SUM ( DISTINCT 8 ) FROM tab0
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT MAX( DISTINCT 3 ) col1 FROM tab0
----
3

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

query II rowsort
SELECT DISTINCT 5 * + 70 + - 28, 12 AS col0 FROM tab2 AS cor0
----
322
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1398
SELECT DISTINCT 61, SUM( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
61
199

skipif mysql # not compatible
query II rowsort label-1398
SELECT DISTINCT 61, SUM ( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
61
199

query I rowsort
SELECT + col1 + + 56 FROM tab2
----
107
123
133

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

query I rowsort
SELECT - 5 + - col2 - - col1 * + + 21 AS col0 FROM tab0
----
-83
1649
426

query II rowsort
SELECT DISTINCT + col0 + + + 41, + col2 AS col0 FROM tab1
----
126
59
132
68
92
96

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

query I rowsort
SELECT - + col1 + col0 * + col1 AS col1 FROM tab1 cor0
----
420
4230
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab2 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT + 52 * - MAX( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-5148

skipif mysql # not compatible
query I rowsort label-1406
SELECT + 52 * - MAX ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-5148

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT COUNT( ALL 60 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT COUNT ( ALL 60 ) FROM tab1
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1411
SELECT + col2 / + + col2 col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT 4 * - - ( - COUNT( * ) ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1412
SELECT 4 * - - ( - COUNT ( * ) ) AS col0 FROM tab0
----
-12

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1416
SELECT ALL + col1, - 95 - + col0 * - + CAST( - col1 AS SIGNED ) * + ( col1 ) FROM tab2
----
51
-119741
67
-336770
77
-379551

skipif mysql # not compatible
query II rowsort label-1416
SELECT ALL + col1, - 95 - + col0 * - + CAST ( - col1 AS INTEGER ) * + ( col1 ) FROM tab2
----
51
-119741
67
-336770
77
-379551

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1418
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( - + col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1418
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( - + col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 * - col2 * - col1 AND NULL
----

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE col0 > ( + col2 )
----
59
68

query I rowsort
SELECT 6 FROM tab1 cor0 WHERE NULL IS NULL
----
6
6
6

query I rowsort
SELECT DISTINCT + + col2 + 70 + - 65 * col0 FROM tab0 AS cor0 WHERE + 70 <> NULL
----

query I rowsort
SELECT ALL - + ( + + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT + + 61 AS col0, + col2 FROM tab2 AS cor0
----
61
23
61
40
61
58

query II rowsort
SELECT - - col1 AS col2, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - col0 + - - 52 AS col2 FROM tab0
----
-35
-45
37

query I rowsort
SELECT ALL col0 + - + ( - col1 ) + 46 AS col1 FROM tab1
----
111
136
184

query II rowsort
SELECT DISTINCT ( + + col2 ) + - - col0 AS col1, col1 * 57 AS col1 FROM tab0
----
196
57
62
4617
97
1197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + col2 col2 FROM tab0
----
110
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL - COUNT( * ) + + - MAX( - + col2 ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COUNT ( * ) + + - MAX ( - + col2 ) AS col1 FROM tab2
----
20

query I rowsort
SELECT - col1 + + 5 FROM tab1 AS cor0
----
-42
-9
0

query I rowsort
SELECT ALL - 51 - + - 51 + + col1 * - - col2 AS col1 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL - 62 * - + 41 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
7626

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - 62 * - + 41 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col2 FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - MIN( DISTINCT 63 ) AS col0 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1436
SELECT - MIN ( DISTINCT 63 ) AS col0 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT - 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT 91 AS col0, + COUNT( - col0 ) FROM tab0
----
91
3

skipif mysql # not compatible
query II rowsort label-1438
SELECT 91 AS col0, + COUNT ( - col0 ) FROM tab0
----
91
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1439
SELECT - + COUNT( * ) AS col0, 47 FROM tab2 cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-1439
SELECT - + COUNT ( * ) AS col0, 47 FROM tab2 cor0
----
-3
47

query II rowsort
SELECT + ( + col1 ) * - col1, col0 FROM tab0 AS cor0
----
-1
97
-441
87
-6561
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - ( - 92 ) FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT col2 * - + 10 FROM tab0 AS cor0
----
-100
-470
-990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1445
SELECT + col1 DIV 80 + - - col1 FROM tab1 WHERE NOT - 29 + + + 48 + col0 * + col2 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1445
SELECT + col1 / 80 + - - col1 FROM tab1 WHERE NOT - 29 + + + 48 + col0 * + col2 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT COUNT( * ) FROM tab1 WHERE NOT + col0 + - 41 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1446
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col0 + - 41 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - ( - SUM( + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1447
SELECT - ( - SUM ( + col0 ) ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT - SUM( + + col0 ) * - 11 FROM tab1 AS cor0
----
2497

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - SUM ( + + col0 ) * - 11 FROM tab1 AS cor0
----
2497

query I rowsort
SELECT - col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT + + col0 * - col0 + + 44 AS col0 FROM tab1 cor0
----
-2557
-7181
-8237

query I rowsort
SELECT + col1 * + col1 + - col0 * ( - col1 ) * + + col2 - - 62 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
203111
296001
56621

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT 29 DIV - - ( - col1 ) + - - 92 * col0 FROM tab1 AS cor0
----
4690
7815
8372

skipif mysql # not compatible
query I rowsort label-1452
SELECT 29 / - - ( - col1 ) + - - 92 * col0 FROM tab1 AS cor0
----
4690
7815
8372

query I rowsort
SELECT col0 + 18 * - col0 + col1 - + + 65 FROM tab2 AS cor0
----
-1076
-1273
-796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1454
SELECT + SUM( ALL - col2 ) DIV + 95 + - 20 DIV - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1454
SELECT + SUM ( ALL - col2 ) / + 95 + - 20 / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL 29 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - col0 + - 37 AS col1 FROM tab2 AS cor0
----
-101
-112
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * - + col2 col0 FROM tab0 AS cor0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL 91 * - COUNT( ALL + col0 ) + - COUNT( * ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 91 * - COUNT ( ALL + col0 ) + - COUNT ( * ) FROM tab1
----
-276

query I rowsort
SELECT ALL col0 * + col2 * col0 * + col1 FROM tab1 WHERE + col1 IS NOT NULL
----
2131375
26466076
3495744

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT COUNT( * ), - 57 AS col0 FROM tab2
----
3
-57

skipif mysql # not compatible
query II rowsort label-1460
SELECT COUNT ( * ), - 57 AS col0 FROM tab2
----
3
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL SUM( + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL SUM ( + col2 ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT - col1 * + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT - col1 * + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, - ( + - 64 ) + 91 * col1 * + 28 FROM tab1
----
14
35736
47
119820
5
12804

query I rowsort
SELECT DISTINCT ( + - 16 ) FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT - 13, 28 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-13
25

skipif mysql # not compatible
query II rowsort label-1465
SELECT - 13, 28 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-13
25

query I rowsort
SELECT DISTINCT + col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT - MIN( DISTINCT 50 ) AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1468
SELECT - MIN ( DISTINCT 50 ) AS col1 FROM tab2
----
-50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + + - 40 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * col2 col0 FROM tab1 AS cor0
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + MAX( DISTINCT + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + MAX ( DISTINCT + col1 ) FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT SUM( ALL - + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT SUM ( ALL - + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL - - ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - - ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 63 * - - col2 FROM tab2
----
1449
2520
3654

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT - col0 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT - col0 / 83 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT ( - 54 ) DIV + + 38 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT ( - 54 ) / + + 38 FROM tab0
----
-1

query I rowsort
SELECT + ( 94 ) AS col0 FROM tab2
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL MIN( 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL MIN ( 76 ) FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT + MAX( - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1479
SELECT + MAX ( - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT MAX( ALL - + 79 ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT MAX ( ALL - + 79 ) FROM tab0 AS cor0
----
-79

query II rowsort
SELECT col0 + 99 AS col2, + col1 FROM tab2
----
145
51
163
77
174
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL MIN( DISTINCT - 84 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL MIN ( DISTINCT - 84 ) FROM tab0 AS cor0
----
-84

query II rowsort
SELECT DISTINCT 90 + - col2 AS col0, + col1 FROM tab2 AS cor0
----
32
67
50
77
67
51

query I rowsort
SELECT + 4 - + + col1 AS col2 FROM tab0 AS cor0
----
-17
-77
3

query I rowsort
SELECT DISTINCT - col1 + - 87 * + col0 FROM tab0 AS cor0
----
-1386
-7590
-8440

query II rowsort
SELECT - ( 59 ) - + 45, col1 FROM tab1
----
-104
14
-104
47
-104
5

query I rowsort
SELECT - 37 + - col1 FROM tab1
----
-42
-51
-84

query I rowsort
SELECT DISTINCT col0 + - 69 - - 36 FROM tab0
----
-18
54
64

query I rowsort
SELECT DISTINCT 90 - + col2 + + + 76 FROM tab2
----
108
126
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT ALL CAST( NULL AS SIGNED ) + + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL CAST ( NULL AS INTEGER ) + + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 47 AS col1 FROM tab2 WHERE - + col2 + - - col1 IS NULL
----

query I rowsort
SELECT - + col0 FROM tab0 WHERE - + ( + - col0 ) = + 83 + - ( - col1 )
----

query I rowsort
SELECT ALL col1 - col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - ( + + col0 ) + + 17 FROM tab0 AS cor0
----
-70
-80
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT DISTINCT ( + - 19 ) * - col0 - CAST( NULL AS SIGNED ) + - 94 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT ( + - 19 ) * - col0 - CAST ( NULL AS INTEGER ) + - 94 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 14 BETWEEN NULL AND + 37
----

query I rowsort
SELECT DISTINCT - col0 - - + col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL + MIN( - ( + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL + MIN ( - ( + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-81

query I rowsort
SELECT DISTINCT - + col2 - + - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - 45 * + + COUNT( * ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-1501
SELECT - 45 * + + COUNT ( * ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT ALL col0 * + + col2 * + + 82 AS col2 FROM tab0 AS cor0
----
57810
71340
787446

query I rowsort
SELECT DISTINCT - col2 * + - 80 AS col2 FROM tab0 AS cor0
----
3760
7920
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 93 col1, col2 col0 FROM tab2 AS cor0
----
93
23
93
40
93
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT DISTINCT + col0 DIV - + col1 AS col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT + col0 / - + col1 AS col2 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT - 76 * 2 + + col0 FROM tab1 AS cor0
----
-101
-61
-67

query I rowsort
SELECT DISTINCT - col1 * - + col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1508
SELECT ALL + 43 DIV + 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + 43 / + 90 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 * - - 73 col2 FROM tab2 AS cor0
----
-224840
-283678
-85629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT DISTINCT MAX( DISTINCT - col0 ) DIV + COUNT( + col1 ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT MAX ( DISTINCT - col0 ) / + COUNT ( + col1 ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT + - col1 * - - col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1512
SELECT ALL - - ( + CAST( NULL AS DECIMAL ) ) / 0 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - - ( + CAST ( NULL AS REAL ) ) / 0 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1513
SELECT + MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - - col2 * - + 15 AS col0 FROM tab1 AS cor0
----
-1020
-1440
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * + col0 col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + 61
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT ALL - 19 DIV + 32 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - 19 / + 32 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - - col1 + + - col1, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT DISTINCT - + COUNT( * ) * - + MIN( ALL 18 ) + 58 + SUM( - + 32 ) col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1520
SELECT DISTINCT - + COUNT ( * ) * - + MIN ( ALL 18 ) + 58 + SUM ( - + 32 ) col1 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT COUNT( DISTINCT + - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + - ( 0 ) + + 39 * COUNT( * ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-1522
SELECT + - ( 0 ) + + 39 * COUNT ( * ) FROM tab1 AS cor0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1523
SELECT DISTINCT + 62 - + ( - CAST( + COUNT( - - ( - + 57 ) ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT - 42 * col0 * col2 < + 82 * - col0
----
62

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + 62 - + ( - CAST ( + COUNT ( - - ( - + 57 ) ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT - 42 * col0 * col2 < + 82 * - col0
----
62

query II rowsort
SELECT - + col2 + + col2 + + + col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT DISTINCT + col0 * - - CAST( 19 AS SIGNED ) * - + col1 AS col2 FROM tab0 AS cor0
----
-1843
-23085
-34713

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + col0 * - - CAST ( 19 AS INTEGER ) * - + col1 AS col2 FROM tab0 AS cor0
----
-1843
-23085
-34713

query I rowsort
SELECT DISTINCT + 61 * - col0 FROM tab1 cor0
----
-3111
-5185
-5551

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 52 + - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 87 FROM tab1 AS cor0 WHERE + col1 > NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 38 >= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NULL < + col0
----
0

query I rowsort
SELECT + 54 - col1 FROM tab2
----
-13
-23
3

query I rowsort
SELECT DISTINCT col1 - 28 AS col0 FROM tab1
----
-14
-23
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + COUNT( DISTINCT + col2 ) * - - 89 AS col0 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + COUNT ( DISTINCT + col2 ) * - - 89 AS col0 FROM tab0
----
267

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) >= - + col2 + + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 3 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT - ( - 38 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 56 col2 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1540
SELECT DISTINCT ( + 77 ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT ( + 77 ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT ALL col1 DIV - 77 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL col1 / - 77 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 37 FROM tab0 AS cor0 WHERE NOT - col1 * 59 IS NULL
----
37
37
37

query II rowsort
SELECT DISTINCT - - 64, + col2 FROM tab2 AS cor0
----
64
23
64
40
64
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT COUNT( * ) * + + 11 AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1545
SELECT COUNT ( * ) * + + 11 AS col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - COUNT( DISTINCT - ( - 97 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1546
SELECT - COUNT ( DISTINCT - ( - 97 ) ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1547
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1547
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col1, + 63 + 0 * + col2 AS col2 FROM tab2
----
46
63
64
63
75
63

query II rowsort
SELECT + 88, col1 FROM tab2
----
88
51
88
67
88
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1551
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + + ( + - 14 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1551
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + + ( + - 14 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 86, - col2 col2 FROM tab1 cor0
----
86
-59
86
-68
86
-96

query II rowsort
SELECT ALL 54, + col0 FROM tab0 AS cor0
----
54
15
54
87
54
97

query I rowsort
SELECT + - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT ALL + + 89 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + + 89 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1556
SELECT DISTINCT + - 91 + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT + - 91 + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 84 + col2 * + col1 FROM tab2 AS cor0
----
1257
3164
3970

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT MAX( col0 ) AS col1, COUNT( ALL - ( 95 ) ) FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-1558
SELECT MAX ( col0 ) AS col1, COUNT ( ALL - ( 95 ) ) FROM tab0
----
97
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT - col0 - ( col2 ) DIV - col2 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - col0 - ( col2 ) / - col2 FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT - 32 * col0 - + col1 AS col0 FROM tab0 AS cor0
----
-2805
-3105
-561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1562
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1562
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL MAX( + - col1 ) AS col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL MAX ( + - col1 ) AS col0 FROM tab1 cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT - - 44 DIV - + col0 + col2 + col2 AS col0 FROM tab2 cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1564
SELECT - - 44 / - + col0 + col2 + col2 AS col0 FROM tab2 cor0
----
116
46
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + - col2 * - - col1 * - col0 BETWEEN NULL AND NULL AND NOT - 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + ( 42 ) + ( + + MAX( 43 ) ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + ( 42 ) + ( + + MAX ( 43 ) ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL 96 - COUNT( * ) - - + 55 FROM tab0
----
148

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL 96 - COUNT ( * ) - - + 55 FROM tab0
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT COUNT( * ) AS col1, 77 FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-1568
SELECT COUNT ( * ) AS col1, 77 FROM tab2
----
3
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT MAX( - CAST( - - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1569
SELECT MAX ( - CAST ( - - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + ( - col0 ) * + - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1571
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - ( + 74 ) FROM tab0 AS cor0
----
-74
-74
-74

query II rowsort
SELECT + col1, 37 FROM tab0 cor0
----
1
37
21
37
81
37

query I rowsort
SELECT col1 * col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT + - 89 DIV - col2 - col0 * + col0 FROM tab1 AS cor0
----
-2601
-7224
-8280

skipif mysql # not compatible
query I rowsort label-1575
SELECT + - 89 / - col2 - col0 * + col0 FROM tab1 AS cor0
----
-2601
-7224
-8280

query I rowsort
SELECT + ( - + ( + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + - MIN( DISTINCT - 97 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1577
SELECT + - MIN ( DISTINCT - 97 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + ( - + col1 ) + + 30 + + col1 + - 56 FROM tab0 AS cor0
----
-26
-26
-26

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT ALL ( - 97 ) + 30 AS col1 FROM tab1
----
-67
-67
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1582
SELECT ALL SUM( DISTINCT 23 ) DIV 68 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1582
SELECT ALL SUM ( DISTINCT 23 ) / 68 col2 FROM tab2
----
0

query I rowsort
SELECT - + col2 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 94 FROM tab2
----
19
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL COUNT( * ) * + COUNT( * ) * - MAX( - - col0 ) FROM tab2
----
-675

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - MAX ( - - col0 ) FROM tab2
----
-675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * - ( + - 29 ) * + col0 col1 FROM tab1
----
1047625
1056006
11287003

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT DISTINCT + + ( - col1 ) + col0 DIV + col1 + + col2 FROM tab2 AS cor0
----
-28
-37
-8

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT + + ( - col1 ) + col0 / + col1 + + col2 FROM tab2 AS cor0
----
-28
-37
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT ALL 64 DIV - col2 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
168
194
29

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL 64 / - col2 + col0 + + col0 AS col1 FROM tab0 AS cor0
----
168
194
29

query I rowsort
SELECT ALL col1 - + col0 + col1 FROM tab0
----
-45
-95
147

query I rowsort
SELECT 19 + ( 96 ) FROM tab0
----
115
115
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT - 16 * - CAST( + - col1 AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1592
SELECT - 16 * - CAST ( + - col1 AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + 96 IN ( - col0 + - col0 / + - col0, col1, col0, 86, - ( - - 12 ) * + col0 * - col0 + ( - + 44 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT 57 DIV 62 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT 57 / 62 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL - MIN( 46 ) AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - MIN ( 46 ) AS col1 FROM tab1
----
-46

query I rowsort
SELECT + ( + col2 ) * - 55 FROM tab1
----
-3245
-3740
-5280

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 <= - ( - - col2 ) ) OR NOT + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + COUNT( + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1600
SELECT + COUNT ( + col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 / - - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT - 83 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 + CAST( - + col2 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT - - col1 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > - 82 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1607
SELECT DISTINCT + col2 AS col2, 30 * + - ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1607
SELECT DISTINCT + col2 AS col2, 30 * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 86 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT COUNT( ALL col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1610
SELECT COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL + COUNT( * ) + - - ( - MIN( + 68 ) ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + COUNT ( * ) + - - ( - MIN ( + 68 ) ) FROM tab2
----
-65

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col1 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1613
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ), 78 AS col1 FROM tab2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-1613
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ), 78 AS col1 FROM tab2
----
NULL
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1615
SELECT + 60 * - MAX( - 98 ) + - 67 - 9 DIV + 46 FROM tab1
----
5813

skipif mysql # not compatible
query I rowsort label-1615
SELECT + 60 * - MAX ( - 98 ) + - 67 - 9 / + 46 FROM tab1
----
5813

query I rowsort
SELECT ALL col2 + - + 85 AS col1 FROM tab0
----
-38
-75
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1617
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 AS col0, col0 * + 6 AS col1 FROM tab1 AS cor0
----
NULL
306
NULL
510
NULL
546

skipif mysql # not compatible
query II rowsort label-1617
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col0, col0 * + 6 AS col1 FROM tab1 AS cor0
----
NULL
306
NULL
510
NULL
546

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 WHERE + 64 NOT BETWEEN NULL AND 68
----

query I rowsort
SELECT ALL 46 + - 50 FROM tab0
----
-4
-4
-4

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT + 83 IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 - - col1 * - col0, col1 col2 FROM tab2 AS cor0
----
-2397
51
-5005
77
-5092
67

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT + 94 - - + COUNT( * ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT + 94 - - + COUNT ( * ) FROM tab2 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL - 4 DIV + 57 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - 4 / + 57 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT ( NULL ) = - 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - col2 * - 45 + + - 7 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - col2 * - 45 + + - 7 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT - + 24 * - col0 AS col1 FROM tab0 AS cor0
----
2088
2328
360

query I rowsort
SELECT DISTINCT - col1 * + - 76 * + col1 FROM tab1 AS cor0
----
14896
167884
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT + COUNT( 67 ) DIV - + 47 - - 20 AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + COUNT ( 67 ) / - + 47 - - 20 AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT + - 74 * - 70 AS col0 FROM tab1 cor0
----
5180
5180
5180

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL MIN( 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-1631
SELECT ALL MIN ( ALL - - col1 ) col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1632
SELECT - - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE NOT 91 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1632
SELECT - - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 WHERE NOT 91 >= NULL
----

query II rowsort
SELECT col0 AS col1, - 84 * col0 AS col2 FROM tab1 AS cor0
----
51
-4284
85
-7140
91
-7644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 64 ) col0 FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + - col1 IS NULL
----

query I rowsort
SELECT + 57 * col0 * + col2 FROM tab1
----
279072
285855
352716

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 15
----

query I rowsort
SELECT - ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + - col1, col0, - 1, - col2 - + col1, - col2 )
----

query I rowsort
SELECT - col1 * + - 90 FROM tab2 AS cor0
----
4590
6030
6930

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT + COUNT( * ) + + - 52 AS col0, + 94 FROM tab0 cor0
----
-49
94

skipif mysql # not compatible
query II rowsort label-1641
SELECT + COUNT ( * ) + + - 52 AS col0, + 94 FROM tab0 cor0
----
-49
94

query I rowsort
SELECT DISTINCT col1 + 67 * - col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT + 21 * + ( + 76 ) AS col2 FROM tab2 AS cor0
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1644
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2, + 85 * - CAST( - - 10 AS SIGNED ) FROM tab1 AS cor0
----
0
-850

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2, + 85 * - CAST ( - - 10 AS INTEGER ) FROM tab1 AS cor0
----
0
-850

query III rowsort
SELECT * FROM tab0 WHERE - 94 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL - 20 DIV + + col1 + + col2 col0 FROM tab1
----
55
68
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1646
SELECT ALL - 20 / + + col1 + + col2 col0 FROM tab1
----
55
68
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 + ( - col2 ) col1 FROM tab2
----
-11
-29
6

query I rowsort
SELECT col0 + - col1 FROM tab2 WHERE col2 IS NOT NULL
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT 56 - - - COUNT( col0 ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 56 - - - COUNT ( col0 ) FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + COUNT( - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1650
SELECT + COUNT ( - col0 ) FROM tab0
----
3

query II rowsort
SELECT ALL 20, 55 AS col2 FROM tab0
----
20
55
20
55
20
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, + col0 * + 96 col1 FROM tab2
----
-46
4416
-64
6144
-75
7200

query I rowsort
SELECT col2 * + 93 AS col0 FROM tab1
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT COUNT( * ) * + 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1654
SELECT COUNT ( * ) * + 66 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL ( COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT ALL ( COUNT ( * ) ) col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT 57 * - - MIN( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
1311

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT 57 * - - MIN ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
1311

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + + 64 > col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT + COUNT( col0 ) - + MAX( + - ( + - col2 ) ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL AND NOT + col1 <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + COUNT ( col0 ) - + MAX ( + - ( + - col2 ) ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL AND NOT + col1 <> + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT + COUNT( * ) - - 54 - COUNT( * ) * - 30 col0 FROM tab1
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT DISTINCT + COUNT ( * ) - - 54 - COUNT ( * ) * - 30 col0 FROM tab1
----
147

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 / + - col1, col2 - - - col2, - + col0, + col0, - 31 )
----

query II rowsort
SELECT + col1 + + - col0, - col0 FROM tab2 AS cor0 WHERE NOT col2 + col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1663
SELECT DISTINCT - - COUNT( * ) / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - - COUNT ( * ) / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL - col2 DIV 96 * + 58 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - col2 / 96 * + 58 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL MAX( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL MAX ( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 63 * - - col2 FROM tab0 AS cor0
----
2961
6237
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col2 col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT ALL COUNT( * ), - 88 + + - COUNT( * ) AS col0 FROM tab0
----
3
-91

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL COUNT ( * ), - 88 + + - COUNT ( * ) AS col0 FROM tab0
----
3
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT - COUNT( * ) * + + 67 AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-1671
SELECT - COUNT ( * ) * + + 67 AS col2 FROM tab2
----
-201

query II rowsort
SELECT + 80 * + col0 * + col0, - col0 AS col0 FROM tab0
----
18000
-15
605520
-87
752720
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT - col1 AS col0, - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 26 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL MAX( + 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL MAX ( + 50 ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL COUNT( ALL + 48 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL COUNT ( ALL + 48 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT - + 21 * SUM( - - 6 ) AS col0 FROM tab2 WHERE + + 98 * - - 99 * - - col1 * + 91 + + + 9 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - + 21 * SUM ( - - 6 ) AS col0 FROM tab2 WHERE + + 98 * - - 99 * - - col1 * + 91 + + + 9 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT MIN( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1679
SELECT MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 23 * 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT ALL - - col2 DIV col0 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1681
SELECT ALL - - col2 / col0 col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT + 95 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-1682
SELECT + 95 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT DISTINCT - ( - col2 ) + - + col0 DIV col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - ( - col2 ) + - + col0 / col0 FROM tab0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT 92 + - COUNT( * ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1684
SELECT 92 + - COUNT ( * ) FROM tab1
----
89

query I rowsort
SELECT ALL + col0 * col0 * 31 * - - col0 FROM tab1
----
19037875
23360701
4112181

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL + - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1686
SELECT ALL + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT DISTINCT MAX( ALL col2 ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-1689
SELECT DISTINCT MAX ( ALL col2 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
99
3

query I rowsort
SELECT + 77 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 72 * + + 88 * + - col1 AND + col0 * - + 68 + - + col1 / 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ( + - ( + + COUNT( ALL col2 ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1691
SELECT ( + - ( + + COUNT ( ALL col2 ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE col0 + - ( + col1 ) + + col1 / + + col0 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1693
SELECT - col2 DIV - + CAST( + - col0 AS SIGNED ) FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT - col2 / - + CAST ( + - col0 AS INTEGER ) FROM tab0 cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 35 + col2 + - - 33 + + col0 col2 FROM tab2 AS cor0
----
137
172
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - MIN( ALL - 61 ) AS col2 FROM tab1 WHERE col1 - 2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - MIN ( ALL - 61 ) AS col2 FROM tab1 WHERE col1 - 2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - 5 + + - COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-1697
SELECT - 5 + + - COUNT ( * ) FROM tab1
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 98 col1 FROM tab0
----
17
77
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT DISTINCT + col0 DIV - 52 + 11 FROM tab0
----
10
11

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + col0 / - 52 + 11 FROM tab0
----
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + + col0 * + col1 col0 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT ALL - ( - col0 ) AS col0 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL - ( - col0 ) AS col0 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1703
SELECT ALL * FROM tab1 WHERE - col0 + + - col0 + + col2 * - col0 NOT IN ( - ( - - CAST( + col1 AS SIGNED ) ) * 53, + 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1703
SELECT ALL * FROM tab1 WHERE - col0 + + - col0 + + col2 * - col0 NOT IN ( - ( - - CAST ( + col1 AS INTEGER ) ) * 53, + 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1704
SELECT ALL + 36 AS col2, col2 DIV - 85 FROM tab0
----
36
-1
36
0
36
0

skipif mysql # not compatible
query II rowsort label-1704
SELECT ALL + 36 AS col2, col2 / - 85 FROM tab0
----
36
-1
36
0
36
0

query I rowsort
SELECT DISTINCT - col2 * 48 FROM tab0 AS cor0
----
-2256
-4752
-480

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1706
SELECT * FROM tab2 AS cor0 WHERE NOT + 93 IN ( + - col1 * - col2, - col2, + CAST( NULL AS SIGNED ), - 77 / - 10 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-1706
SELECT * FROM tab2 AS cor0 WHERE NOT + 93 IN ( + - col1 * - col2, - col2, + CAST ( NULL AS INTEGER ), - 77 / - 10 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT - COUNT( ALL 78 ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT - COUNT ( ALL 78 ) col1 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT 50 * + col1 DIV col1 * - - col0 FROM tab1 AS cor0
----
2550
4250
4550

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT 50 * + col1 / col1 * - - col0 FROM tab1 AS cor0
----
2550
4250
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT + COUNT( * ) * - 63 * - + 20 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
3780

skipif mysql # not compatible
query I rowsort label-1709
SELECT + COUNT ( * ) * - 63 * - + 20 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
3780

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - AVG ( + col2 ) + 84 FROM tab0 AS cor0 WHERE NOT ( + - col2 ) * 56 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT - col0 > - ( + - col2 ) / + col2 + - + 75 + + 80
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * - col2 * + 25 AS col1 FROM tab0
----
-2475
-5250
-95175

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT COUNT( * ) * - 35 * - - MIN( - 99 ) FROM tab1
----
10395

skipif mysql # not compatible
query I rowsort label-1714
SELECT COUNT ( * ) * - 35 * - - MIN ( - 99 ) FROM tab1
----
10395

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 87 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1718
SELECT CAST( NULL AS DECIMAL ) + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT CAST ( NULL AS REAL ) + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1720
SELECT ALL + col1, + col1 + + col0 DIV + 26 - - col0 AS col0 FROM tab0 AS cor0
----
1
101
21
111
81
96

skipif mysql # not compatible
query II rowsort label-1720
SELECT ALL + col1, + col1 + + col0 / + 26 - - col0 AS col0 FROM tab0 AS cor0
----
1
101
21
111
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL + - 41 * - COUNT( * ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + - 41 * - COUNT ( * ) FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1722
SELECT DISTINCT - 54 DIV 97 * + COUNT( * ) + + 33 AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT - 54 / 97 * + COUNT ( * ) + + 33 AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT - + CAST( - + col1 AS SIGNED ) * + 30 + 91 + + col1 + + + col2 - - - col0 + - - 20 - + col2 FROM tab0 AS cor0
----
2607
45
675

skipif mysql # not compatible
query I rowsort label-1723
SELECT - + CAST ( - + col1 AS INTEGER ) * + 30 + 91 + + col1 + + + col2 - - - col0 + - - 20 - + col2 FROM tab0 AS cor0
----
2607
45
675

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 89 FROM tab2 cor0 WHERE - 13 = NULL
----

query I rowsort
SELECT ALL 2 - - col0 - + col2 AS col0 FROM tab1
----
-43
25
28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN - col0 * col0 AND 28 + - - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT - COUNT( DISTINCT + 31 ) + + MIN( ALL - + 31 ) col0 FROM tab2
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1728
SELECT DISTINCT - COUNT ( DISTINCT + 31 ) + + MIN ( ALL - + 31 ) col0 FROM tab2
----
-32

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - 20 FROM tab1 WHERE NULL IS NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT CAST( 11 AS SIGNED ) FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1732
SELECT CAST ( 11 AS INTEGER ) FROM tab0
----
11
11
11

query II rowsort
SELECT ALL col2 AS col1, - 0 AS col2 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT 78 - + + 70 AS col0 FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - 42 * - + col2 + + - 5 ) IN ( + col1 / 89, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - 42 * - + col2 + + - 5 ) IN ( + col1 / 89, col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1736
SELECT DISTINCT + 43 AS col0, CAST( NULL AS SIGNED ) + - 46 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1736
SELECT DISTINCT + 43 AS col0, CAST ( NULL AS INTEGER ) + - 46 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
43
NULL

query II rowsort
SELECT DISTINCT + + 79 AS col2, + 33 * + + col0 / + - 95 - - col1 FROM tab1 WHERE NOT NULL BETWEEN + 73 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT + + SUM( - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + + SUM ( - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 58 ) col2 FROM tab2 AS cor0
----
58
58
58

query II rowsort
SELECT - col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1742
SELECT - SUM( DISTINCT + + CAST( + + col2 AS SIGNED ) ) AS col0, + 48 AS col1 FROM tab2
----
-121
48

skipif mysql # not compatible
query II rowsort label-1742
SELECT - SUM ( DISTINCT + + CAST ( + + col2 AS INTEGER ) ) AS col0, + 48 AS col1 FROM tab2
----
-121
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + COUNT( ALL - 9 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1743
SELECT + COUNT ( ALL - 9 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 53 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 53 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - 47, col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT - MAX( + + 90 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT - MAX ( + + 90 ) FROM tab0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1748
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col0 + CAST( NULL AS SIGNED ) >= col0
----

skipif mysql # not compatible
query III rowsort label-1748
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col0 + CAST ( NULL AS INTEGER ) >= col0
----

query I rowsort
SELECT DISTINCT + - col0 + 65 FROM tab2 AS cor0
----
-10
1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1750
SELECT ALL + 6 AS col0, 16 + - CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
6
13

skipif mysql # not compatible
query II rowsort label-1750
SELECT ALL + 6 AS col0, 16 + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
6
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1751
SELECT ALL * FROM tab1 cor0 WHERE - ( - - ( - - col2 ) ) <= CAST( - col2 AS SIGNED ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1751
SELECT ALL * FROM tab1 cor0 WHERE - ( - - ( - - col2 ) ) <= CAST ( - col2 AS INTEGER ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col0, col0 + + col1 * - + 90, + col1 / + - 81 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT ALL 39 * + 73 + col2 * CAST( col1 AS SIGNED ) FROM tab2
----
4020
5927
6733

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL 39 * + 73 + col2 * CAST ( col1 AS INTEGER ) FROM tab2
----
4020
5927
6733

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL COUNT( * ) * - SUM( 51 ) FROM tab2
----
-459

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL COUNT ( * ) * - SUM ( 51 ) FROM tab2
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL - SUM( - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - SUM ( - col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT * FROM tab2 WHERE ( + ( 52 ) + col2 ) IS NULL
----

query I rowsort
SELECT 48 * 81 FROM tab1 WHERE NOT + 54 * - col1 + + col2 IN ( - col0 * 95 )
----
3888
3888
3888

query I rowsort
SELECT DISTINCT + AVG ( 25 ) AS col1 FROM tab2 WHERE NOT col1 + col2 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1760
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND - 78
----

skipif mysql # not compatible
query III rowsort label-1760
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT - SUM( - 47 ) + COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-1761
SELECT - SUM ( - 47 ) + COUNT ( * ) FROM tab0
----
144

query III rowsort
SELECT * FROM tab1 WHERE 67 - 72 > col0 * + ( col0 )
----

query I rowsort
SELECT DISTINCT - 78 + - col1 AS col2 FROM tab0
----
-159
-79
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 35 * ( - col0 ) IN ( ( 86 ) * col1 )
----

query I rowsort
SELECT ALL col2 + col1 FROM tab2 WHERE ( col0 * col0 ) IN ( - ( 88 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + 25 AS col2 FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL COUNT( * ) * - 46 AS col0 FROM tab1 WHERE ( NULL ) <= ( - col2 / col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL COUNT ( * ) * - 46 AS col0 FROM tab1 WHERE ( NULL ) <= ( - col2 / col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + 80 * - 15 + COUNT( * ) col1 FROM tab0
----
-1197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1770
SELECT + 80 * - 15 + COUNT ( * ) col1 FROM tab0
----
-1197

query I rowsort
SELECT col0 + col0 * 43 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT DISTINCT 38 * + col0 AS col2 FROM tab1
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT 49 + + MIN( ALL + 85 ) AS col1 FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT 49 + + MIN ( ALL + 85 ) AS col1 FROM tab0
----
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 32 col0 FROM tab0
----
2592
32
672

query I rowsort
SELECT 88 * col2 AS col0 FROM tab2
----
2024
3520
5104

query I rowsort
SELECT - ( 37 ) * - col0 AS col2 FROM tab0
----
3219
3589
555

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT - col2 NOT BETWEEN - col0 AND + col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT MAX( DISTINCT + 74 ) * + COUNT( * ) AS col1 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-1778
SELECT MAX ( DISTINCT + 74 ) * + COUNT ( * ) AS col1 FROM tab1
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT ALL - ( - col0 ) DIV col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - ( - col0 ) / col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab1 WHERE NOT col0 * col0 NOT IN ( - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab1 WHERE NOT col0 * col0 NOT IN ( - 15 )
----
0

query I rowsort
SELECT ( + 68 ) - col0 FROM tab1
----
-17
-23
17

query I rowsort
SELECT DISTINCT - col0 * + 14 FROM tab2
----
-1050
-644
-896

query III rowsort
SELECT * FROM tab0 WHERE 81 BETWEEN 3 AND col1
----
15
81
47

query I rowsort
SELECT DISTINCT + col1 + + 17 FROM tab0 WHERE NOT col0 IN ( - col0 + 28 )
----
18
38
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT DISTINCT - ( + col2 ) DIV col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - ( + col2 ) / col0 AS col0 FROM tab0
----
-1
-3
0

query I rowsort
SELECT DISTINCT - 15 - + 44 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT + 96 FROM tab0 AS cor0 WHERE NOT ( 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1788
SELECT + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1789
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) = col1
----

skipif mysql # not compatible
query III rowsort label-1789
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT ALL CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - SUM( 92 ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1791
SELECT - SUM ( 92 ) FROM tab2 AS cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT + COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT + COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - ( - 21 ) * COUNT( * ) col1 FROM tab1 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1793
SELECT - ( - 21 ) * COUNT ( * ) col1 FROM tab1 cor0
----
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 71 FROM tab2 AS cor0 CROSS JOIN tab0
----
-71

query I rowsort
SELECT ( + 5 ) AS col2 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT - MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - 47 ) IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL ( 36 ) FROM tab2 AS cor0 WHERE ( - 54 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT - MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT - MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1803
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - ( - MIN( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1804
SELECT - ( - MIN ( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 * - 63 col1 FROM tab1 cor0 WHERE NULL <> ( col1 )
----

query I rowsort
SELECT DISTINCT - - col1 * + 48 FROM tab0 AS cor0
----
1008
3888
48

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT - col2 / - ( col0 * - 70 ) BETWEEN - 32 + 83 AND col0 * col2
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 96 + - ( col2 + col2 ) BETWEEN 92 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 58 ) IN ( 74 + - col2 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col0 + 0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT CAST( + + SUM( + col0 ) AS SIGNED ) * + 31 AS col2 FROM tab2
----
5735

skipif mysql # not compatible
query I rowsort label-1812
SELECT CAST ( + + SUM ( + col0 ) AS INTEGER ) * + 31 AS col2 FROM tab2
----
5735

query I rowsort
SELECT - 36 * col1 * 13 FROM tab1
----
-21996
-2340
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1814
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT + - ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1815
SELECT + - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL + + 98 + COUNT( * ) FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + + 98 + COUNT ( * ) FROM tab1 AS cor0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT col1 + - col2 + - col0 - col2 DIV col2 FROM tab2
----
-19
-28
-67

skipif mysql # not compatible
query I rowsort label-1817
SELECT col1 + - col2 + - col0 - col2 / col2 FROM tab2
----
-19
-28
-67

query I rowsort
SELECT DISTINCT - col1 + 93 FROM tab0 cor0 WHERE + ( + + col0 ) - 32 * 12 IS NOT NULL
----
12
72
92

query I rowsort
SELECT 83 * - + col2 AS col0 FROM tab1 AS cor0
----
-4897
-5644
-7968

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 + + col0 AS col2 FROM tab1 AS cor0
----
4415
515
779

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL + COUNT( + col1 ) * 70 AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL + COUNT ( + col1 ) * 70 AS col1 FROM tab1 AS cor0
----
210

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - 32 * + - col2 < col1
----
15
87
97

query I rowsort
SELECT ALL - 47 * + col0 + + 62 AS col0 FROM tab2 AS cor0
----
-2100
-2946
-3463

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col0 - + col1 + + col1 * col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL - ( - 51 ) + + MIN( - 0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - ( - 51 ) + + MIN ( - 0 ) AS col2 FROM tab1
----
51

query II rowsort
SELECT + ( - col0 ) AS col1, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT 43 * + 58 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
2494

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( + ( + 61 ) * + + col2 * col0 )
----

query I rowsort
SELECT ALL + 75 AS col0 FROM tab0 cor0
----
75
75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 * - 56 * ( - 11 ) AS col2 FROM tab0 AS cor0
----
129360
2345112
60984

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - 16 / - 31 NOT IN ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 35 * + + col2 + + - col0 * + col0 FROM tab1 AS cor0
----
-5160
-5901
759

query I rowsort
SELECT col1 * - 86 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - MIN( - 73 ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-1835
SELECT - MIN ( - 73 ) AS col0 FROM tab2
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1837
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 < - - ( - col1 ) - CAST( col0 AS SIGNED ) + + col2 * - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1837
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 < - - ( - col1 ) - CAST ( col0 AS INTEGER ) + + col2 * - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 83 + - col0 + + col2 / - col2 * - 93 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 72 ) BETWEEN 53 + + ( - - 83 ) + - col0 * 2 AND col1
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col1 ) AND + ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT + MIN( + 72 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1842
SELECT + MIN ( + 72 ) AS col2 FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 < + + col2 * 42 * + col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT + CAST( NULL AS SIGNED ) / - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1844
SELECT + CAST ( NULL AS INTEGER ) / - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----

query II rowsort
SELECT ALL 75 + ( - col1 ) AS col2, - col0 AS col1 FROM tab2 AS cor0
----
-2
-64
24
-46
8
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + - col1
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + col2 IS NULL
----
10
47
99

query II rowsort
SELECT - col1 AS col2, - 57 * - - 2 * + - col0 FROM tab1
----
-14
5814
-47
10374
-5
9690

query I rowsort
SELECT - col1 * + col1 * - - 98 AS col2 FROM tab0
----
-43218
-642978
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - 49 + - - SUM( ALL + col0 ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - 49 + - - SUM ( ALL + col0 ) FROM tab0
----
150

query I rowsort
SELECT + 26 * + + col1 AS col0 FROM tab0
----
2106
26
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 + + col2 + + - col0 + - col0 * 21 col1 FROM tab0
----
-1904
-2035
-283

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 69 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 31 AS col2 FROM tab0 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1855
SELECT ALL - + CAST( NULL AS SIGNED ) col0, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1855
SELECT ALL - + CAST ( NULL AS INTEGER ) col0, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT DISTINCT col1 * col1 DIV - col0 + + + 47 + + + col0 FROM tab0
----
-375
129
144

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT col1 * col1 / - col0 + + + 47 + + + col0 FROM tab0
----
-375
129
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE 88 <= ( - col2 / - + col2 + + 87 + col2 * 45 + - 68 )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 75 IS NULL
----

query I rowsort
SELECT ALL - col0 * 53 AS col0 FROM tab0 AS cor0
----
-4611
-5141
-795

query I rowsort
SELECT + + 49 * - 9 - - col0 FROM tab2 AS cor0
----
-366
-377
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT - - COUNT( * ) + - + COUNT( - 25 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT - - COUNT ( * ) + - + COUNT ( - 25 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 22 BETWEEN ( 42 ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT - + 45 + - col1 DIV + 77 FROM tab0 cor0
----
-45
-45
-46

skipif mysql # not compatible
query I rowsort label-1863
SELECT - + 45 + - col1 / + 77 FROM tab0 cor0
----
-45
-45
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + - col1 DIV 2 AS col0 FROM tab0 AS cor0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-1864
SELECT + - col1 / 2 AS col0 FROM tab0 AS cor0
----
-10
-40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - COUNT( * ) * + + SUM( ALL 91 ) FROM tab0 cor0
----
-819

skipif mysql # not compatible
query I rowsort label-1865
SELECT - COUNT ( * ) * + + SUM ( ALL 91 ) FROM tab0 cor0
----
-819

query I rowsort
SELECT + 68 * + - col2 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - MIN( DISTINCT + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1867
SELECT - MIN ( DISTINCT + col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 52 * - + 60 FROM tab1
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + + 59 * - + MIN( DISTINCT - col0 ) / + MIN( + col2 ) AS col1 FROM tab1 WHERE NOT NULL <> + col0 * col2 * col1 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT + + 59 * - + MIN ( DISTINCT - col0 ) / + MIN ( + col2 ) AS col1 FROM tab1 WHERE NOT NULL <> + col0 * col2 * col1 * - 12
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT - 64 * - - 0 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - 64 * - - 0 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 66 + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + - 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ( + ( 44 ) ) AS col1 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1876
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT - col2, + 16 - + 88 FROM tab1 AS cor0 WHERE NOT 19 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL SUM( 80 ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL SUM ( 80 ) FROM tab2 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT DISTINCT - + COUNT( * ) + + 18 col2, + COUNT( ALL + + 1 ) FROM tab1 AS cor0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1879
SELECT DISTINCT - + COUNT ( * ) + + 18 col2, + COUNT ( ALL + + 1 ) FROM tab1 AS cor0
----
15
3

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NULL >= - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT DISTINCT + 82 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT + 82 / col2 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - - col0 + + + col1 * - + 69 * + + col1 AS col0 FROM tab1 AS cor0
----
-13473
-152330
-1640

query I rowsort
SELECT DISTINCT - ( - 80 ) * + + 65 + 89 + - col2 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
5231
5249
5266

query II rowsort
SELECT ALL - 31, col1 + 89 AS col1 FROM tab1
----
-31
103
-31
136
-31
94

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - ( - 93 ) * - col0 * col0
----

query I rowsort
SELECT + ( 84 ) AS col2 FROM tab2
----
84
84
84

query I rowsort
SELECT + 45 * - col1 AS col1 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT - 11 * - 66 FROM tab0
----
726
726
726

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT - 31 DIV - col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - 31 / - col1 AS col0 FROM tab1
----
0
2
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1891
SELECT 32 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-1891
SELECT 32 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
32
NULL
32
NULL
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + 94 * COUNT( * ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-1892
SELECT + 94 * COUNT ( * ) FROM tab1 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT COUNT( - col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT COUNT ( - col1 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - + col1 + 39 AS col0 FROM tab1 cor0
----
-8
25
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1895
SELECT DISTINCT + col1 * - col0 - + + col0 + 17 DIV + col0 FROM tab0
----
-1229
-1914
-194

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + col1 * - col0 - + + col0 + 17 / + col0 FROM tab0
----
-1229
-1914
-194

query II rowsort
SELECT DISTINCT + 42 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
42
59
42
68
42
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT - 16 * - ( - col0 ) AS col2 FROM tab2
----
-1024
-1200
-736

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT col1 DIV 29 * col0 FROM tab2
----
128
150
46

skipif mysql # not compatible
query I rowsort label-1900
SELECT col1 / 29 * col0 FROM tab2
----
128
150
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * + - col0 ) BETWEEN + col2 * - - 72 AND - ( + 36 ) - - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT ALL - - ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL + MAX( ALL ( - + 15 ) ) * 90 col2 FROM tab1
----
-1350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT ALL + MAX ( ALL ( - + 15 ) ) * 90 col2 FROM tab1
----
-1350

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1908
SELECT + COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
70
70
70

query I rowsort
SELECT - col2 * - 56 AS col1 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - - SUM( + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1911
SELECT - - SUM ( + col0 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col1 * 58
----

query I rowsort
SELECT 51 + - col2 FROM tab2
----
-7
11
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL col1 + + - 30 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL col1 + + - 30 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 + - col2 col2, ( 42 ) FROM tab2
----
34
42
52
42
69
42

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + ( + col0 ) / - col0 + col1 NOT BETWEEN + 47 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * + 58 - - 36 AS col2 FROM tab0
----
5082
5662
906

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE col1 * + - col2 / 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT - 71 + COUNT( * ) AS col2 FROM tab0 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 71 + COUNT ( * ) AS col2 FROM tab0 cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + COUNT( - col2 ) - - MIN( DISTINCT - ( + + col1 ) ) AS col1 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + COUNT ( - col2 ) - - MIN ( DISTINCT - ( + + col1 ) ) AS col1 FROM tab0
----
-78

query I rowsort
SELECT + 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT - 69 * CAST( NULL AS SIGNED ) + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT - 69 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 41 * 46 AS col0 FROM tab1
----
1886

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL + 48 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + 48 / col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT - - 16 AS col2 FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1929
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 96 AS col0, col1 col1 FROM tab2 AS cor0
----
-96
51
-96
67
-96
77

query II rowsort
SELECT DISTINCT 6 AS col0, col2 FROM tab1 AS cor0
----
6
59
6
68
6
96

query I rowsort
SELECT - + col1 * + + col2 FROM tab2 cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 ) / - + 17 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 63 AS col1, 91 FROM tab0
----
63
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - MAX( ALL + col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1938
SELECT - MAX ( ALL + col1 ) AS col1 FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 BETWEEN - col1 * + col0 AND NULL
----

query I rowsort
SELECT + col1 * + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 22, + col2 + + col1 AS col1 FROM tab2 cor0
----
22
117
22
125
22
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + - COUNT( * ) * 8 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1942
SELECT + - COUNT ( * ) * 8 FROM tab0 AS cor0
----
-24

query II rowsort
SELECT ALL 58, col0 + - col0 + col1 AS col1 FROM tab2 AS cor0
----
58
51
58
67
58
77

query I rowsort
SELECT DISTINCT + 66 + 36 AS col2 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT MIN( + + 79 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
79

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT MIN ( + + 79 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1946
SELECT DISTINCT - 39 * col1, CAST( NULL AS SIGNED ) * - - 20 / + col0 * - 46 + + + col1 AS col2 FROM tab2
----
-1989
NULL
-2613
NULL
-3003
NULL

skipif mysql # not compatible
query II rowsort label-1946
SELECT DISTINCT - 39 * col1, CAST ( NULL AS INTEGER ) * - - 20 / + col0 * - 46 + + + col1 AS col2 FROM tab2
----
-1989
NULL
-2613
NULL
-3003
NULL

query I rowsort
SELECT 92 + 97 AS col0 FROM tab0
----
189
189
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT 52 AS col1 FROM tab2 AS cor0 WHERE + 26 IS NULL AND NOT ( + CAST( - 75 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1948
SELECT 52 AS col1 FROM tab2 AS cor0 WHERE + 26 IS NULL AND NOT ( + CAST ( - 75 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT + CAST( NULL AS SIGNED ) + - - col2 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT + CAST ( NULL AS INTEGER ) + - - col2 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - + 32 FROM tab2 AS cor0
----
19
35
45

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT + + col1 DIV + + 22 - + 38 + - - col1 AS col1 FROM tab2 AS cor0
----
15
32
42

skipif mysql # not compatible
query I rowsort label-1952
SELECT + + col1 / + + 22 - + 38 + - - col1 AS col1 FROM tab2 AS cor0
----
15
32
42

query I rowsort
SELECT - 2 + + + col1 * + col1 FROM tab1 cor0
----
194
2207
23

query I rowsort
SELECT - 40 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT ALL col1 + + col0 DIV 35 FROM tab1 AS cor0
----
15
49
7

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL col1 + + col0 / 35 FROM tab1 AS cor0
----
15
49
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1956
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + MIN( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + MIN ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 16 FROM tab2 WHERE col1 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + 28 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - 76 IS NULL
----
-23
-40
-58

query II rowsort
SELECT - col1, + col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 23 / + + 54 * + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 col2 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 65 NOT BETWEEN + col0 * + col2 AND - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - SUM( 85 ) AS col1 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-1965
SELECT - SUM ( 85 ) AS col1 FROM tab0
----
-255

query I rowsort
SELECT ( - + col1 ) * col0 * col1 FROM tab0 cor0 WHERE NOT NULL <= 73
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND + 51 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + COUNT( DISTINCT + + 73 ) * - + 61 AS col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( DISTINCT + + 73 ) * - + 61 AS col0 FROM tab1 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + 43 * - COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-1969
SELECT + 43 * - COUNT ( * ) FROM tab0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL COUNT( * ) * + 87 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL COUNT ( * ) * + 87 FROM tab1
----
261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1971
SELECT ALL + CAST( col0 AS SIGNED ) DIV - col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + CAST ( col0 AS INTEGER ) / - col2 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT SUM( DISTINCT - col0 ) * 16 AS col0 FROM tab2
----
-2960

skipif mysql # not compatible
query I rowsort label-1972
SELECT SUM ( DISTINCT - col0 ) * 16 AS col0 FROM tab2
----
-2960

query I rowsort
SELECT - col2 * - + col1 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( DISTINCT - - col1 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( DISTINCT - - col1 ) FROM tab2
----
3
3

query II rowsort
SELECT col0, + col0 * col2 FROM tab1
----
51
4896
85
5015
91
6188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1976
SELECT + col2 / CAST( NULL AS DECIMAL ) * col0 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT + col2 / CAST ( NULL AS REAL ) * col0 * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL + SUM( DISTINCT - 1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + SUM ( DISTINCT - 1 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1978
SELECT - COUNT( * ) DIV + 21 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT - COUNT ( * ) / + 21 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 + 54 FROM tab0 cor0
----
-27
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - MAX( col2 ) + 22 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1980
SELECT - MAX ( col2 ) + 22 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col0 FROM tab1
----
3
3

query I rowsort
SELECT + 74 * 43 FROM tab2
----
3182
3182
3182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + 1 col0 FROM tab0 cor0
----
-15
1
-87
1
-97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT ALL - COUNT( * ) AS col0, - 83 FROM tab1 AS cor0
----
-3
-83

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL - COUNT ( * ) AS col0, - 83 FROM tab1 AS cor0
----
-3
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 * + - col2 col2 FROM tab2 AS cor0
----
1817
3160
4582

query I rowsort
SELECT - 12 AS col0 FROM tab0 AS cor0 WHERE NULL = 6
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - 3 FROM tab0 AS cor0
----
10
-3
47
-3
99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col2, - col2 col1 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT 70 + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE + col1 >= col0
----
70

skipif mysql # not compatible
query I rowsort label-1989
SELECT 70 + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 >= col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT COUNT( * ) - + 47 AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1990
SELECT COUNT ( * ) - + 47 AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL + + col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT DISTINCT - ( 13 ) - - col0, col0 + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 3 * + col2 = NULL
----

query I rowsort
SELECT - - ( - col1 ) + col1 - + - col2 + + col1 * 52 * 53 + col1 FROM tab0 AS cor0
----
223364
2856
57907

query I rowsort
SELECT col1 + + + 77 * col0 AS col2 FROM tab2
----
3593
5005
5842

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT 51 + - + COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1995
SELECT 51 + - + COUNT ( * ) FROM tab0
----
48

query I rowsort
SELECT DISTINCT 15 + col1 AS col1 FROM tab2
----
66
82
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT + MIN( + 0 ) - + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT + MIN ( + 0 ) - + COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL - col2 + + 98 * - 98 FROM tab1
----
-9663
-9672
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT COUNT( * ) AS col2 FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 70 * + 13 col0 FROM tab2 AS cor0
----
41860
58240
68250

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT - 96 + + col1 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 76
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 BETWEEN col1 AND + ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 0 * + col0 * - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT + - COUNT( * ) + + + ( - ( - - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT + - COUNT ( * ) + + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT - 38 * - - 86 * - - COUNT( * ) FROM tab0
----
-9804

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT - 38 * - - 86 * - - COUNT ( * ) FROM tab0
----
-9804

query I rowsort
SELECT ALL col0 * + col2 * + - 58 AS col2 FROM tab2 AS cor0
----
-148480
-252300
-61364

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE + 30 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( 25 ) AS col0 FROM tab2 cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2 * + - col2
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2 * + - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2012
SELECT ALL - col1 * CAST( 95 AS SIGNED ) * + 14 AS col0, 7 FROM tab0 AS cor0
----
-107730
7
-1330
7
-27930
7

skipif mysql # not compatible
query II rowsort label-2012
SELECT ALL - col1 * CAST ( 95 AS INTEGER ) * + 14 AS col0, 7 FROM tab0 AS cor0
----
-107730
7
-1330
7
-27930
7

query II rowsort
SELECT + col2, - 31 * + + col1 AS col0 FROM tab1 AS cor0
----
59
-155
68
-1457
96
-434

query I rowsort
SELECT + col2 * - + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL ( + 99 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, col0 col2 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - MAX( + - 28 ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2017
SELECT - MAX ( + - 28 ) AS col1 FROM tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT + col0 / - - col2 * - - col1 * + col2 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT ALL + - 10 DIV 60 * - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + - 10 / 60 * - col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col1 + - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( col0 + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2023
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - CAST( 20 AS SIGNED ) FROM tab1
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - CAST ( 20 AS INTEGER ) FROM tab1
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL + MIN( - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL + MIN ( - col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT col0 + - col0 * - 90 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + COUNT( * ) + 20 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2027
SELECT + COUNT ( * ) + 20 FROM tab1 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - COUNT( * ) + - MAX( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2029
SELECT - COUNT ( * ) + - MAX ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + 45 + - - 64 AS col1 FROM tab0 AS cor0
----
109
109
109

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 23 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL + col0 * 17 * + 1 + - 18 DIV + col0 + - - col1 + - col0 FROM tab0 AS cor0
----
1413
1553
320

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + col0 * 17 * + 1 + - 18 / + col0 + - - col1 + - col0 FROM tab0 AS cor0
----
1413
1553
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT DISTINCT - ( COUNT( * ) ) * COUNT( * ) + + 90 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - ( COUNT ( * ) ) * COUNT ( * ) + + 90 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2035
SELECT DISTINCT + COUNT( * ) * + ( - MAX( DISTINCT + col2 ) ), CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-288
NULL

skipif mysql # not compatible
query II rowsort label-2035
SELECT DISTINCT + COUNT ( * ) * + ( - MAX ( DISTINCT + col2 ) ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-288
NULL

query II rowsort
SELECT + col1 * - col2 AS col2, col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT ALL + col1 + - + col1 DIV + + col0 AS col1 FROM tab0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + col1 + - + col1 / + + col0 AS col1 FROM tab0
----
1
21
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2038
SELECT ALL - col2 * CAST( - - col1 AS DECIMAL ) * + col2 + col1 AS col0 FROM tab2 WHERE NULL <> - col0
----

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - col2 * CAST ( - - col1 AS REAL ) * + col2 + col1 AS col0 FROM tab2 WHERE NULL <> - col0
----

query I rowsort
SELECT 12 - col1 AS col1 FROM tab2
----
-39
-55
-65

query I rowsort
SELECT DISTINCT ( - 80 ) FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT 89 - - SUM( DISTINCT 15 ) col0 FROM tab2
----
104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT 89 - - SUM ( DISTINCT 15 ) col0 FROM tab2
----
104

query II rowsort
SELECT - col0 AS col0, - ( + col2 ) + - 90 FROM tab1 cor0
----
-51
-186
-85
-149
-91
-158

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 9 BETWEEN + 38 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT - 29 * - + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - 29 * - + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 * col2 + - col0 + - - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2046
SELECT ALL - COUNT( * ) DIV - 36 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - COUNT ( * ) / - 36 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col2 * + 61, col2 AS col2 FROM tab1 AS cor0
----
3599
59
4148
68
5856
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2048
SELECT DISTINCT CAST( + + col1 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT ALL COUNT( * ) * 83 AS col1, - 67 FROM tab0 AS cor0
----
249
-67

skipif mysql # not compatible
query II rowsort label-2049
SELECT ALL COUNT ( * ) * 83 AS col1, - 67 FROM tab0 AS cor0
----
249
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT ALL col2 DIV ( - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL col2 / ( - col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * 52 FROM tab0
----
2444
5148
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT + CAST( + - 40 AS SIGNED ) FROM tab0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-2053
SELECT + CAST ( + - 40 AS INTEGER ) FROM tab0
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <> - ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 66 ) AS col1 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL - - col1 - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + col2 col0, - col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT ALL ( + col2 ) DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL ( + col2 ) / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - col2 * - + 4 - + col1 FROM tab2 AS cor0
----
165
41
83

query I rowsort
SELECT - col1 + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-11
-34
98

query I rowsort
SELECT + 6 + 22 * col1 * - + 23 AS col1 FROM tab0 cor0
----
-10620
-40980
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT 78 DIV 22 + - + col0 + - - ( + - col0 ) DIV - + 87 FROM tab1
----
-48
-82
-87

skipif mysql # not compatible
query I rowsort label-2064
SELECT 78 / 22 + - + col0 + - - ( + - col0 ) / - + 87 FROM tab1
----
-48
-82
-87

query I rowsort
SELECT - 67 + + 23 FROM tab0
----
-44
-44
-44

query II rowsort
SELECT ALL col1 + + col2 - 29, ( - col1 ) + - col2 AS col0 FROM tab1
----
35
-64
81
-110
86
-115

query I rowsort
SELECT ALL col0 - + 7 + - 39 FROM tab0
----
-31
41
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND - - col1 * + ( col0 ) + + ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col1 / - + col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT CAST( - 41 AS SIGNED ) col1 FROM tab1
----
-41
-41
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT CAST ( - 41 AS INTEGER ) col1 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE + 87 * + 74 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 11 AND col0 + 41 OR col0 NOT BETWEEN - 19 AND + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 79 AS col2, col1 FROM tab2 AS cor0
----
79
51
79
67
79
77

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + 59 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
59
59
59

query II rowsort
SELECT - + col1 AS col2, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT DISTINCT - col0 * + ( - col1 ) AS col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL <> col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT + CAST( - + 45 AS SIGNED ) col2 FROM tab1 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2081
SELECT + CAST ( - + 45 AS INTEGER ) col2 FROM tab1 AS cor0
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - - col0 NOT IN ( + + col1 * + col1, 0, - 21 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + col1
----

query I rowsort
SELECT col1 + + 74 + + col0 * 85 FROM tab1 AS cor0
----
4423
7304
7856

query I rowsort
SELECT - - 78 + col0 * - col0 + col2 FROM tab0 AS cor0
----
-100
-7481
-9232

query I rowsort
SELECT - col2 * + 32 + + 63 FROM tab0 AS cor0
----
-1441
-257
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + - col1 col0 FROM tab2 AS cor0
----
-12
-28
-38

query II rowsort
SELECT DISTINCT col0 + + - col1, col0 AS col2 FROM tab1
----
37
51
44
91
80
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT CAST( - + AVG ( + col2 ) AS SIGNED ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-2089
SELECT CAST ( - + AVG ( + col2 ) AS INTEGER ) FROM tab0
----
-52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2092
SELECT 3 DIV - MIN( DISTINCT + 7 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT 3 / - MIN ( DISTINCT + 7 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2093
SELECT DISTINCT + col1, 10 AS col0 FROM tab2 cor0 WHERE NOT col0 + + ( + - CAST( 67 AS SIGNED ) ) >= + 26
----
51
10
67
10
77
10

skipif mysql # not compatible
query II rowsort label-2093
SELECT DISTINCT + col1, 10 AS col0 FROM tab2 cor0 WHERE NOT col0 + + ( + - CAST ( 67 AS INTEGER ) ) >= + 26
----
51
10
67
10
77
10

query II rowsort
SELECT col2 * col0 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
1058
-51
2560
-77
4350
-67

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( NOT 35 + col2 + + 40 >= + 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col2 * 24 FROM tab0 AS cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2098
SELECT + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 99 FROM tab0 AS cor0 WHERE - ( - col1 ) > 25
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - ( + ( col2 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - ( + ( col2 ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT DISTINCT 32 DIV + + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT 32 / + + col1 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + + col0 NOT BETWEEN - col2 - + 62 AND - + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 + - + 3 >= NULL
----

query II rowsort
SELECT 4 * + + col1 AS col0, col0 * + col1 AS col0 FROM tab2
----
204
2346
268
5025
308
4928

query I rowsort
SELECT 83 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
83
83
83

query I rowsort
SELECT ALL + 43 * 92 FROM tab2 AS cor0
----
3956
3956
3956

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + SUM( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2107
SELECT + SUM ( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + - 43 + + - 82 AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 23726b3acc81d0da778ac9662bc92c2b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL + col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 97 * - col2 col0 FROM tab2
----
102626
248320
421950

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2112
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - col1 + + + col2 / - - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT 34 < col1
----
1
21

query I rowsort
SELECT DISTINCT + + col0 * + col1 + - col1 FROM tab0 AS cor0
----
1134
1806
96

query II rowsort
SELECT + - 91 - - 14 * + col2 AS col0, col2 FROM tab1 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT ALL + col2 + - - 70 AS col0 FROM tab0 AS cor0
----
117
169
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT col1 + - CAST( - col0 AS SIGNED ) col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2118
SELECT col1 + - CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
138
65
90

query I rowsort
SELECT 85 + + col2 AS col1 FROM tab2
----
108
125
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT col0 * - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT col0 * - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0
----
-9

query II rowsort
SELECT ALL col1 AS col2, + col2 + + col2 FROM tab2
----
51
46
67
116
77
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT - 94 + - col1 + 56 + 0 + - + 84 / 19 * - + CAST( + - 2 AS SIGNED ) * - - col1 col1 FROM tab2 WHERE ( 10 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT - 94 + - col1 + 56 + 0 + - + 84 / 19 * - + CAST ( + - 2 AS INTEGER ) * - - col1 col1 FROM tab2 WHERE ( 10 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT 4 + + 44 - + + MIN( + col0 ) AS col1 FROM tab0 WHERE NULL IN ( col1, col2, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT 4 + + 44 - + + MIN ( + col0 ) AS col1 FROM tab0 WHERE NULL IN ( col1, col2, - col1 )
----
NULL

query II rowsort
SELECT DISTINCT 93, - 46 AS col1 FROM tab0 AS cor0
----
93
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + - COUNT( * ) + 20 + + MIN( ALL - col0 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-2127
SELECT + - COUNT ( * ) + 20 + + MIN ( ALL - col0 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-208

query I rowsort
SELECT - + col2 * - + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT - 55 AS col0 FROM tab0 AS cor0 WHERE col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT DISTINCT - CAST( NULL AS SIGNED ) + SUM( + 51 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + SUM ( + 51 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL - + COUNT( * ) FROM tab1 WHERE 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE 41 IS NULL
----
0

query I rowsort
SELECT + - 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT ALL 96 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * - + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL - - col1 * + + 68 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT SUM( col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + COUNT( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2137
SELECT + COUNT ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * + 29 AS col2 FROM tab0 AS cor0
----
1363
2871
290

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col2
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 79 * 45 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT 67 DIV - 27 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2141
SELECT 67 / - 27 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL col1 * col0 * col0 AS col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT NULL > + col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( - col2, col0 + + ( col0 ), + - col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL MAX( + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL MAX ( + col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT - 35 col0, COUNT( * ) AS col0 FROM tab1
----
-35
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2146
SELECT - 35 col0, COUNT ( * ) AS col0 FROM tab1
----
-35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 * + 6 FROM tab2 cor0
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT - + SUM( + 37 ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - + SUM ( + 37 ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN - 59 AND + 26 * + col0 + - - col2
----
14
47
5

query I rowsort
SELECT 89 * + col2 FROM tab2 cor0
----
2047
3560
5162

query I rowsort
SELECT ALL - + ( - 34 ) FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + 63 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT 13 + COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT 13 + COUNT ( * ) FROM tab2
----
16

query III rowsort
SELECT * FROM tab1 WHERE NOT - 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 75
----

query I rowsort
SELECT - col0 + - col0 + 47 FROM tab1 cor0
----
-123
-135
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + SUM( - 21 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + SUM ( - 21 ) FROM tab1 AS cor0
----
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT col1 + - - col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 12 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT MIN( DISTINCT + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT ALL col1 + - col2 + + col0 + + col2 - - col2 FROM tab2
----
120
181
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 - + col1 + - col0 col1 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT - col1 + col2 * 14 AS col1 FROM tab0 WHERE + - 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT COUNT ( DISTINCT - col2 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 59 / + + col0 >= NULL
----

query I rowsort
SELECT DISTINCT 18 + + 9 FROM tab0
----
27

query II rowsort
SELECT + col2 AS col0, col0 * - col0 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col0
----

query I rowsort
SELECT ALL + col1 * col1 * - - 31 AS col2 FROM tab0 AS cor0
----
13671
203391
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT - COUNT( * ) * - SUM( ALL + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col0 ) + - + col0 col2 FROM tab2 AS cor0 WHERE NOT col1 * 23 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT col1 DIV - 73 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT col1 / - 73 FROM tab2
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 66 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( 90 ) FROM tab1
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT SUM( - col1 ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2181
SELECT SUM ( - col1 ) col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL + MIN( col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT - 35 DIV col2 AS col0 FROM tab0 cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT - 35 / col2 AS col0 FROM tab0 cor0
----
-3
0

query I rowsort
SELECT DISTINCT - + 47 + col2 AS col0 FROM tab1 AS cor0
----
12
21
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 60 - - col0 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT 58 + 77 + + 1 * + - COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT 58 + 77 + + 1 * + - COUNT ( * ) FROM tab0
----
132

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - ( + col0 ) + + 89 < NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE + col2 * col0 NOT BETWEEN + 12 AND - col1
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2189
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2189
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( 64 ) AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT - 36 - - ( - col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - ( + - col0 ) + + 33 AS col0 FROM tab1 AS cor0
----
118
124
84

query I rowsort
SELECT 44 + + + col2 + - - col1 FROM tab1
----
108
154
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + 77 + MAX( ALL col1 ) FROM tab2
----
154

skipif mysql # not compatible
query I rowsort label-2196
SELECT + 77 + MAX ( ALL col1 ) FROM tab2
----
154

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + 97 * - - col0
----

query II rowsort
SELECT ALL col0 - - + 11, + col0 AS col2 FROM tab0
----
108
97
26
15
98
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 + - 23 AS col0 FROM tab2
----
-69
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL - CAST( NULL AS SIGNED ) + 16 / + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - CAST ( NULL AS INTEGER ) + 16 / + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 69 + col2 FROM tab0
----
3290
6930
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - + 10 AS col2, col2 col2 FROM tab2
----
-56
23
-74
40
-85
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2204
SELECT CAST( NULL AS DECIMAL ) AS col1, col1 FROM tab0 WHERE + col2 <> - col2 + - + col0 / + - col1
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2204
SELECT CAST ( NULL AS REAL ) AS col1, col1 FROM tab0 WHERE + col2 <> - col2 + - + col0 / + - col1
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + COUNT( * ) + + ( + - ( + MAX( - col1 ) ) ) + + - 53 * COUNT( * ) * - COUNT( * ) FROM tab2
----
531

skipif mysql # not compatible
query I rowsort label-2205
SELECT + COUNT ( * ) + + ( + - ( + MAX ( - col1 ) ) ) + + - 53 * COUNT ( * ) * - COUNT ( * ) FROM tab2
----
531

query I rowsort
SELECT DISTINCT - 21 * + + col1 FROM tab1 AS cor0
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + ( - 98 ) AS col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT 55 AS col1 FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT - 65 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT DISTINCT + col1 * - col0 * - 4 AS col2 FROM tab1 AS cor0
----
1700
17108
2856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 col2, + col1 - col0 AS col1, - - col0 FROM tab2 AS cor0
----
9 values hashing to 1e3f6dc3dffcfdb1d2928f44b2fcffbf

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2213
SELECT - SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT 3 * + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-153
-255
-273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2215
SELECT - + col2 AS col1, CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-2215
SELECT - + col2 AS col1, CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT - COUNT( * ) * - 67 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - COUNT ( * ) * - 67 FROM tab2 AS cor0
----
201

query I rowsort
SELECT ALL + - ( - 43 ) FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT 3 * + + col0 * - 43 AS col2 FROM tab0
----
-11223
-12513
-1935

query I rowsort
SELECT DISTINCT + 35 * - - col1 * - 33 FROM tab2
----
-58905
-77385
-88935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * + col2 col1 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT + 55 * - ( COUNT( * ) ) FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-2221
SELECT + 55 * - ( COUNT ( * ) ) FROM tab0
----
-165

query I rowsort
SELECT 81 * + - col0 AS col2 FROM tab2
----
-3726
-5184
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT DISTINCT - + 54 DIV - col2 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT - + 54 / - col2 AS col1 FROM tab2 AS cor0
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 46 / - + 9 IS NULL
----

query I rowsort
SELECT ALL - col2 + + col1 + + col0 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT + - CAST( - ( col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2226
SELECT + - CAST ( - ( col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab2 cor0
----
1219
3144
3961

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE NULL BETWEEN - ( - 29 ) AND col0 / + ( + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE NULL BETWEEN - ( - 29 ) AND col0 / + ( + + 54 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT DISTINCT - 93 DIV col2 DIV - + 94 * col0 + - 48 col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT DISTINCT - 93 / col2 / - + 94 * col0 + - 48 col2 FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2231
SELECT ALL - col1 * + col2 AS col2, - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-2231
SELECT ALL - col1 * + col2 AS col2, - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT DISTINCT + - col0 DIV + 91 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + - col0 / + 91 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2233
SELECT DISTINCT - col0 DIV col1 AS col2, + col1 FROM tab0 AS cor0
----
-4
21
-97
1
0
81

skipif mysql # not compatible
query II rowsort label-2233
SELECT DISTINCT - col0 / col1 AS col2, + col1 FROM tab0 AS cor0
----
-4
21
-97
1
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * + - col2 + + col1 col1 FROM tab1 AS cor0
----
3899
4535
6350

query I rowsort
SELECT ALL - 70 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 >= NULL
----

query II rowsort
SELECT ALL - 75 + + - 6 AS col2, col0 FROM tab0 AS cor0
----
-81
15
-81
87
-81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE col2 * + col1 * + col1 + + + ( + 17 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE col2 * + col1 * + col1 + + + ( + 17 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL 40 + + COUNT( * ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL 40 + + COUNT ( * ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT COUNT( * ) - COUNT( ALL + 30 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2240
SELECT COUNT ( * ) - COUNT ( ALL + 30 ) FROM tab2
----
0

query I rowsort
SELECT ALL ( - 79 ) - - ( - + col2 ) FROM tab2
----
-102
-119
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 55 col2 FROM tab2 AS cor0
----
55
55
55

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 9 >= 6 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2244
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2244
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( 28 ) > NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MIN( + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2247
SELECT MIN ( + col0 ) FROM tab2
----
46

query I rowsort
SELECT ALL - 7 - - col2 AS col0 FROM tab2
----
16
33
51

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 44 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( 21 ) IS NULL
----

query I rowsort
SELECT ALL + 47 * 56 + + col2 FROM tab1 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 46 IN ( col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * col0 + ( + 15 - col0 * col2 ) * + col0 AS col0 FROM tab0 WHERE 71 IS NOT NULL
----
-11055
-75255
-939639

query I rowsort
SELECT DISTINCT - col0 + - 33 * 9 FROM tab0
----
-312
-384
-394

query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND ( - 89 + col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT COUNT( * ) - 86 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-2256
SELECT COUNT ( * ) - 86 FROM tab2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT - col1 - col1 DIV col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2257
SELECT - col1 - col1 / col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT 68 * col1 + CAST( col0 + - col2 AS SIGNED ) AS col2 FROM tab1
----
3219
366
907

skipif mysql # not compatible
query I rowsort label-2258
SELECT 68 * col1 + CAST ( col0 + - col2 AS INTEGER ) AS col2 FROM tab1
----
3219
366
907

query I rowsort
SELECT 19 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
19
19
19

query I rowsort
SELECT ALL col2 * + 85 FROM tab1
----
5015
5780
8160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2261
SELECT col0 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT col0 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL ( MIN( ALL col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL ( MIN ( ALL col1 ) ) FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2263
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + CAST( col2 AS SIGNED ) * - col0 AND + 12 / + col0
----

skipif mysql # not compatible
query III rowsort label-2263
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + CAST ( col2 AS INTEGER ) * - col0 AND + 12 / + col0
----

query I rowsort
SELECT ALL 83 FROM tab2 AS cor0 WHERE NULL >= col0
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 < ( + ( 19 ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL MAX( ALL 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL MAX ( ALL 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - SUM( DISTINCT + 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - SUM ( DISTINCT + 44 ) FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL - col2 + col1 * + 91 AS col2 FROM tab0 AS cor0
----
-8
1901
7324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT CAST( ( - col1 ) AS SIGNED ) * col2 + + 4 AS col2 FROM tab1 AS cor0
----
-1340
-291
-3192

skipif mysql # not compatible
query I rowsort label-2269
SELECT CAST ( ( - col1 ) AS INTEGER ) * col2 + + 4 AS col2 FROM tab1 AS cor0
----
-1340
-291
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / - col2 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT COUNT( * ) * SUM( DISTINCT col1 ) - 5 col2 FROM tab2 AS cor0 WHERE ( - 85 + 63 ) IS NOT NULL
----
580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2272
SELECT COUNT ( * ) * SUM ( DISTINCT col1 ) - 5 col2 FROM tab2 AS cor0 WHERE ( - 85 + 63 ) IS NOT NULL
----
580

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT + + ( + 76 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + + ( + 76 ) / + col0 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT + - 25 * - col0 - + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT + - 25 * - col0 - + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT + CAST( NULL AS SIGNED ) - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT + CAST ( NULL AS INTEGER ) - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) - + 34 AS col1 FROM tab0 AS cor0
----
-115
-35
-55

query I rowsort
SELECT 22 - + 49 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + + col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
182
20
2162

query I rowsort
SELECT DISTINCT 7 + - col1 * + 59 AS col1 FROM tab1 AS cor0
----
-2766
-288
-819

query I rowsort
SELECT + - col0 + - 23 AS col0 FROM tab0 AS cor0
----
-110
-120
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2282
SELECT CAST( NULL AS DECIMAL ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT CAST ( NULL AS REAL ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT ( ( MIN( ALL - col1 ) ) ) * - 43 + - 99 FROM tab1
----
1922

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT ( ( MIN ( ALL - col1 ) ) ) * - 43 + - 99 FROM tab1
----
1922

query I rowsort
SELECT ALL 4 + + 69 + - 38 AS col0 FROM tab0
----
35
35
35

query I rowsort
SELECT - 99 + + col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 49 - - col0 FROM tab1
----
100
134
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT - ( - - col1 ) + + ( col0 ) DIV - 73 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - ( - - col1 ) + + ( col0 ) / - 73 FROM tab2
----
-51
-68
-77

query I rowsort
SELECT DISTINCT col0 * - - col2 - - col1 FROM tab0
----
786
891
9604

query I rowsort
SELECT + 38 AS col0 FROM tab0 WHERE col0 / - col1 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL IN ( + 53 / + col0 + + col2 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( 99 / 96 ) NOT IN ( col2 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT - COUNT( * ) * + COUNT( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 * 23 - col0 ) > + ( + col0 ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT + + ( CAST( NULL AS SIGNED ) ) + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2294
SELECT + + ( CAST ( NULL AS INTEGER ) ) + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT 76 IS NULL
----
14
47
5

query I rowsort
SELECT 56 + - 38 FROM tab0 WHERE NOT + 58 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 58 * - 14 + + 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-793

query II rowsort
SELECT DISTINCT + col1, + col1 + 81 AS col0 FROM tab1 AS cor0
----
14
95
47
128
5
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 / - col1 col1 FROM tab1 AS cor0 WHERE NOT col2 * 68 * + 22 NOT BETWEEN ( 29 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + col2 IN ( - col2 - - 57 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - col0 * + - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - ( 67 ) FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + 91 * + + col1 AS col1 FROM tab2 AS cor0
----
4641
6097
7007

query I rowsort
SELECT - ( + + 60 ) AS col1 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 25 * + col2 )
----

query II rowsort
SELECT ALL col1, 30 FROM tab2 AS cor0
----
51
30
67
30
77
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 + - col2 + 34 * col1 < + ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2308
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 + - col2 + 34 * col1 < + ( - col0 )
----
3

query I rowsort
SELECT ALL - 53 / + col1 + 6 AS col1 FROM tab1 cor0 WHERE ( col2 ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2310
SELECT 84 + + - CAST( NULL AS DECIMAL ) + + AVG ( col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT 84 + + - CAST ( NULL AS REAL ) + + AVG ( col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 53 - + CAST( col0 AS SIGNED ) + col0 / - 56 BETWEEN col0 AND NULL
----
87
97

skipif mysql # not compatible
query I rowsort label-2312
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 53 - + CAST ( col0 AS INTEGER ) + col0 / - 56 BETWEEN col0 AND NULL
----
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT DISTINCT - SUM( + + col2 ), - COUNT( * ) AS col2 FROM tab2
----
-121
-3

skipif mysql # not compatible
query II rowsort label-2313
SELECT DISTINCT - SUM ( + + col2 ), - COUNT ( * ) AS col2 FROM tab2
----
-121
-3

query I rowsort
SELECT ALL col0 + 60 + - - col1 AS col0 FROM tab0
----
156
158
168

query I rowsort
SELECT ALL + 40 + + - col0 * - ( 29 ) FROM tab2
----
1374
1896
2215

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 93 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + CAST( - + col2 AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + CAST ( - + col2 AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 - + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - ( + col0 ) FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 13 ) BETWEEN NULL AND - col1 * col1 + + 11
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + MAX( - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2322
SELECT + MAX ( - col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - COUNT( * ) * + - SUM( 40 ) AS col1 FROM tab2
----
360

skipif mysql # not compatible
query I rowsort label-2323
SELECT - COUNT ( * ) * + - SUM ( 40 ) AS col1 FROM tab2
----
360

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> ( ( + ( 54 ) ) + col0 )
----

query I rowsort
SELECT 70 * + col2 FROM tab1 AS cor0
----
4130
4760
6720

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT + col1 * + + col2 * - col2 DIV - col2 + - - col0 FROM tab1
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-2327
SELECT + col1 * + + col2 * - col2 / - col2 + - - col0 FROM tab1
----
1395
3287
380

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE 7 IS NULL
----

query I rowsort
SELECT - 51 * col2 + - 43 FROM tab0 AS cor0
----
-2440
-5092
-553

query I rowsort
SELECT DISTINCT col0 * + - ( - 51 ) FROM tab2 AS cor0
----
2346
3264
3825

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 >= NULL
----

query I rowsort
SELECT ALL - + col1 * - 95 AS col2 FROM tab1 AS cor0
----
1330
4465
475

query I rowsort
SELECT DISTINCT col0 * + 19 AS col2 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT 28 * + 43 AS col1 FROM tab1 cor0
----
1204
1204
1204

query I rowsort
SELECT DISTINCT col2 * - 69 FROM tab0 cor0
----
-3243
-6831
-690

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 3 < + + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) > - 10
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) > - 10
----
0

query I rowsort
SELECT ALL - - 24 + col2 FROM tab2 AS cor0
----
47
64
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2339
SELECT ALL 66 FROM tab2 AS cor0 WHERE NOT - CAST( ( + col2 ) AS DECIMAL ) < - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 66 FROM tab2 AS cor0 WHERE NOT - CAST ( ( + col2 ) AS REAL ) < - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 * col1 * + + col0 * 49 FROM tab1
----
104125
489804
9849931

query II rowsort
SELECT - col2 AS col0, 71 AS col2 FROM tab0
----
-10
71
-47
71
-99
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT DISTINCT 19 DIV + 24 * col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT 19 / + 24 * col0 FROM tab0
----
0

query II rowsort
SELECT - col0, - col0 AS col2 FROM tab1
----
-51
-51
-85
-85
-91
-91

query II rowsort
SELECT ALL col2, col0 + - - col2 * - 68 FROM tab2
----
23
-1518
40
-2656
58
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT SUM( DISTINCT + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT SUM ( DISTINCT + - col2 ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 1 col0, - col0 * + col2 col1 FROM tab0 AS cor0 WHERE col2 * - col0 IS NOT NULL
----
1
-705
1
-870
1
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 col2 FROM tab0 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----
0

query I rowsort
SELECT + 85 * - col2 AS col1 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT ALL + - 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( + col1 + + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * + - col1 >= NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + + - 85 * - col2 ) < ( col0 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( - 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT ALL + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + ( - MIN( + - col0 ) ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2356
SELECT + ( - MIN ( + - col0 ) ) col2 FROM tab1 AS cor0
----
91

query II rowsort
SELECT ( ( + col1 ) ), 88 FROM tab1
----
14
88
47
88
5
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / - + col2 * + 92 / + - col1 + col2 > ( + 57 )
----
97
1
99

query II rowsort
SELECT ALL - col2 AS col2, - ( 91 ) + - 26 AS col0 FROM tab2
----
-23
-117
-40
-117
-58
-117

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 >= + + col1
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2362
SELECT col2 AS col2, 25 + + col0 + + - col2 AS col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
10
102
47
-7
99
23

skipif mysql # not compatible
query II rowsort label-2362
SELECT col2 AS col2, 25 + + col0 + + - col2 AS col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
10
102
47
-7
99
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT ALL col0 + CAST( NULL AS SIGNED ) / col0 * + col2 - - 4 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL col0 + CAST ( NULL AS INTEGER ) / col0 * + col2 - - 4 + col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col0 FROM tab1
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 42 > NULL
----

query II rowsort
SELECT ALL col0, + col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL + - ( ( ( + - MIN( 33 ) ) ) ) AS col2 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + - ( ( ( + - MIN ( 33 ) ) ) ) AS col2 FROM tab2 cor0
----
33

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col0 * + col1 + + col2 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT + - col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT COUNT( * ) + ( + - SUM( 63 ) ) col2 FROM tab1
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2372
SELECT DISTINCT COUNT ( * ) + ( + - SUM ( 63 ) ) col2 FROM tab1
----
-186

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT DISTINCT 71 * - + MAX( ALL - col2 ) FROM tab1
----
4189

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT 71 * - + MAX ( ALL - col2 ) FROM tab1
----
4189

query I rowsort
SELECT ALL + 18 * - - 46 FROM tab0
----
828
828
828

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 16 FROM tab0 cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - - 9 * + + COUNT( + - col1 ) - + COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2378
SELECT - - 9 * + + COUNT ( + - col1 ) - + COUNT ( * ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col0 * - + col0
----

query I rowsort
SELECT ALL - 4 FROM tab1 cor0 WHERE NOT col1 + - - 37 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 * - col0 AS col0, + col2 * - - col0 * col1 + + 85 col0 FROM tab2 cor0
----
-2392
54043
-3328
197205
-3900
291535

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2383
SELECT ALL CAST( col2 AS SIGNED ) col1, 9 AS col0 FROM tab0 AS cor0
----
10
9
47
9
99
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2383
SELECT ALL CAST ( col2 AS INTEGER ) col1, 9 AS col0 FROM tab0 AS cor0
----
10
9
47
9
99
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2384
SELECT + - col2 * + col0 AS col1, col1 * + col1 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

skipif mysql # not compatible
query II rowsort label-2384
SELECT + - col2 * + col0 AS col1, col1 * + col1 + - + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
-1058
NULL
-2560
NULL
-4350
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - + col1 + col0 + 52 * + col0, + col0 / col0 / 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT DISTINCT - + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - + col1 / + col0 AS col2 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NULL ) > ( + col1 ) ) )
----

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col0 BETWEEN + col0 AND NULL
----
-59
59
-68
68
-96
96

query II rowsort
SELECT ALL - 2 AS col0, col0 FROM tab0
----
-2
15
-2
87
-2
97

query I rowsort
SELECT ALL + ( - col1 ) * + + 17 * + + col2 + 89 FROM tab0 AS cor0
----
-1594
-3481
-64630

query I rowsort
SELECT DISTINCT - - 95 + - 88 + col1 FROM tab1 AS cor0
----
12
21
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - - 44 + + - 22 + + 3 col1, col0 AS col0 FROM tab2 AS cor0
----
100
75
71
46
89
64

query I rowsort
SELECT + 99 * - - col2 + col1 + + col1 AS col1 FROM tab1 cor0
----
5851
6826
9532

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT + 80 DIV col2 FROM tab1 AS cor0 WHERE 0 >= + - col2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 80 / col2 FROM tab1 AS cor0 WHERE 0 >= + - col2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT + COUNT( * ) col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2395
SELECT + COUNT ( * ) col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - 94 + + 26 AS col2 FROM tab2 AS cor0
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col0 + + col0, 81 + 8 AS col1 FROM tab0
----
174
89
194
89
30
89

query I rowsort
SELECT DISTINCT + 44 + col1 FROM tab1
----
49
58
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT 45 * - col1 DIV - + col1 AS col2 FROM tab1
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2400
SELECT 45 * - col1 / - + col1 AS col2 FROM tab1
----
45
45
45

query I rowsort
SELECT - ( + ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 14 * + - col0 AS col0 FROM tab2
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ( + ( - MIN( col1 ) ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2403
SELECT ( + ( - MIN ( col1 ) ) ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + + col2 * + col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT col2 * - - 92 AS col2 FROM tab0 cor0
----
4324
9108
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT - - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 24 * - + col0 FROM tab0 AS cor0
----
2088
2328
360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 / - col1 - - - col1 IS NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( 89 ) IS NOT NULL
----

query I rowsort
SELECT 46 + + col1 * 72 - + + 70 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3648
4800
5520

query II rowsort
SELECT DISTINCT + - col0, col0 * - col2 - + + col2 * 23 AS col1 FROM tab1 AS cor0
----
-51
-7104
-85
-6372
-91
-7752

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT SUM( - col2 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT SUM ( - col2 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2414
SELECT - COUNT( * ) DIV 33 col0, MIN( DISTINCT + col0 ) FROM tab0
----
0
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2414
SELECT - COUNT ( * ) / 33 col0, MIN ( DISTINCT + col0 ) FROM tab0
----
0
15

query II rowsort
SELECT - ( - ( - - 79 ) ) * - 15 AS col1, + ( - + col2 ) FROM tab2
----
-1185
-23
-1185
-40
-1185
-58

query I rowsort
SELECT ALL 27 * + - col1 AS col2 FROM tab0
----
-2187
-27
-567

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 57 NOT IN ( - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) * + 99 + + - ( - 49 ) > - 55 * - + 70
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT - 39 * - COUNT( * ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT - 39 * - COUNT ( * ) FROM tab2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT - - 92 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2420
SELECT - - 92 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( + col0 ) + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( 82 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2423
SELECT col0 DIV 85 DIV col0 + 92 + - col2 DIV - col0 AS col0, - 42 + col2 FROM tab0
----
92
-32
93
57
95
5

skipif mysql # not compatible
query II rowsort label-2423
SELECT col0 / 85 / col0 + 92 + - col2 / - col0 AS col0, - 42 + col2 FROM tab0
----
92
-32
93
57
95
5

query I rowsort
SELECT ALL 12 + - 44 - 46 AS col1 FROM tab1
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT - CAST( + 73 AS SIGNED ) + + col1 FROM tab1
----
-26
-59
-68

skipif mysql # not compatible
query I rowsort label-2425
SELECT - CAST ( + 73 AS INTEGER ) + + col1 FROM tab1
----
-26
-59
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT ALL COUNT( * ) AS col1, 1 AS col0 FROM tab0
----
3
1

skipif mysql # not compatible
query II rowsort label-2426
SELECT ALL COUNT ( * ) AS col1, 1 AS col0 FROM tab0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL + COUNT( * ) - + + 42 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + COUNT ( * ) - + + 42 FROM tab0
----
-39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 32 > + col1 * + + col2 - - - col1 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + ( - 85 ) ) AS col2 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT DISTINCT + COUNT( * ) - 78 * + SUM( DISTINCT - col1 ) FROM tab2
----
15213

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + COUNT ( * ) - 78 * + SUM ( DISTINCT - col1 ) FROM tab2
----
15213

query I rowsort
SELECT DISTINCT + - 12 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT 74 FROM tab2 AS cor0 WHERE NOT col1 * + col0 * + col0 * col1 * + + 22 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * ( - 66 ) + - + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 16 FROM tab2 cor0
----
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT + col0 * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2437
SELECT 9 DIV - 47 AS col2, 31 AS col1 FROM tab2 cor0
----
0
31
0
31
0
31

skipif mysql # not compatible
query II rowsort label-2437
SELECT 9 / - 47 AS col2, 31 AS col1 FROM tab2 cor0
----
0
31
0
31
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - - ( - - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2438
SELECT - - ( - - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + 6 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 6 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col2 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT + CAST( NULL AS SIGNED ) * + MAX( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ( - MIN( DISTINCT - - col2 ) ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2443
SELECT ( - MIN ( DISTINCT - - col2 ) ) col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT MIN( ALL + - 41 ) AS col1 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT MIN ( ALL + - 41 ) AS col1 FROM tab2
----
-41

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT SUM( - 55 ) AS col1 FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
-165

skipif mysql # not compatible
query I rowsort label-2446
SELECT SUM ( - 55 ) AS col1 FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT ALL - COUNT( * ) col2, + 95 AS col0 FROM tab1 AS cor0
----
-3
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2447
SELECT ALL - COUNT ( * ) col2, + 95 AS col0 FROM tab1 AS cor0
----
-3
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - ( - SUM( col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2448
SELECT - ( - SUM ( col0 ) ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL MAX( + + col2 ) FROM tab2 AS cor0 WHERE + col0 + + ( 75 ) - col2 + + + col1 >= + col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL MAX ( + + col2 ) FROM tab2 AS cor0 WHERE + col0 + + ( 75 ) - col2 + + + col1 >= + col0 * col1
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 66 - - col1 + + 65 * - ( 42 ) + + 19 - ( + col0 ) * + 49 FROM tab1 AS cor0
----
-5079
-6720
-6966

query II rowsort
SELECT - col1 AS col1, + 36 AS col0 FROM tab0 AS cor0
----
-1
36
-21
36
-81
36

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 13 / + col2 <> 5
----

query I rowsort
SELECT - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query III rowsort
SELECT * FROM tab2 WHERE + - col2 IN ( col2 * - 39 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2455
SELECT 43 + + COUNT( DISTINCT + + 29 ) * - - 50 DIV + 2 AS col2 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-2455
SELECT 43 + + COUNT ( DISTINCT + + 29 ) * - - 50 / + 2 AS col2 FROM tab2
----
68

query I rowsort
SELECT col2 + + - 73 FROM tab0 AS cor0
----
-26
-63
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 col1 FROM tab1 AS cor0 WHERE ( + col0 * - col2 IS NOT NULL )
----
-18
-18
-18

query II rowsort
SELECT + col0 + col1 AS col2, - col0 AS col2 FROM tab2 cor0
----
141
-64
142
-75
97
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT - SUM( + - CAST( NULL AS SIGNED ) ) + + SUM( DISTINCT - 8 ) * - 62 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT - SUM ( + - CAST ( NULL AS INTEGER ) ) + + SUM ( DISTINCT - 8 ) * - 62 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2460
SELECT + + CAST( - col0 AS SIGNED ) DIV + col0 + - col1 AS col2, - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2
99
-22
210
-82
3807

skipif mysql # not compatible
query II rowsort label-2460
SELECT + + CAST ( - col0 AS INTEGER ) / + col0 + - col1 AS col2, - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2
99
-22
210
-82
3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 AS col2, - 8 + - 87 col2 FROM tab1 AS cor0 WHERE NOT 84 + col0 * + col2 IS NULL
----
-59
-95
-68
-95
-96
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT - + col2 DIV - - col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2463
SELECT - + col2 / - - col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT ALL CAST( + - 21 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL CAST ( + - 21 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT + COUNT( * ) + - MAX( ALL + + 32 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + COUNT ( * ) + - MAX ( ALL + + 32 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT DISTINCT 18 FROM tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - - 15 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND + ( - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT DISTINCT + COUNT( * ) + + + 74 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + COUNT ( * ) + + + 74 FROM tab1
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col2 + + col2 col0 FROM tab0
----
107
109
295

query I rowsort
SELECT col1 * - + ( + col2 ) - col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL MIN( ALL + 92 ) * - - COUNT( * ) + - COUNT( * ) + COUNT( * ) * + 94 * 86 FROM tab2
----
24525

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL MIN ( ALL + 92 ) * - - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * + 94 * 86 FROM tab2
----
24525

query I rowsort
SELECT - col0 FROM tab0 WHERE 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + 53 * + MIN( + - 41 ) + ( - + 24 ) col1 FROM tab2 AS cor0
----
-2197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2473
SELECT + 53 * + MIN ( + - 41 ) + ( - + 24 ) col1 FROM tab2 AS cor0
----
-2197

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT DISTINCT COUNT( * ) - - 72 + + COUNT( * ) FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT COUNT ( * ) - - 72 + + COUNT ( * ) FROM tab2 cor0
----
78

query I rowsort
SELECT DISTINCT + col2 * + + col0 + - 20 AS col0 FROM tab0 cor0
----
685
850
9583

query I rowsort
SELECT DISTINCT 88 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 * - + CAST( + col1 AS SIGNED ) * - 17 * + 19 * - col0 + - 92 / - col1 * - + col0 BETWEEN - 56 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 92 * - + CAST ( + col1 AS INTEGER ) * - 17 * + 19 * - col0 + - 92 / - col1 * - + col0 BETWEEN - 56 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL + ( - COUNT( - CAST( 35 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + ( - COUNT ( - CAST ( 35 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 + - - 96 AS col1 FROM tab2 AS cor0
----
1269
3176
3982

query II rowsort
SELECT + col2, col1 + + ( - col1 ) FROM tab2 AS cor0
----
23
0
40
0
58
0

query II rowsort
SELECT ALL + col0, 39 AS col1 FROM tab0 AS cor0
----
15
39
87
39
97
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + 79 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT + MIN( - 61 ) col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT DISTINCT + MIN ( - 61 ) col0 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT ( + 65 ) FROM tab1
----
65
65
65

query I rowsort
SELECT 86 FROM tab0 WHERE NOT col2 / col1 + - 96 * col2 + - col2 + 8 + + col0 >= + col0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT MIN( + + ( 91 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2487
SELECT MIN ( + + ( 91 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2488
SELECT COUNT( * ) DIV - 1, + COUNT( * ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2488
SELECT COUNT ( * ) / - 1, + COUNT ( * ) AS col2 FROM tab0
----
-3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2489
SELECT col0 DIV - - col0 AS col1, col1 + + 59 FROM tab0
----
1
140
1
60
1
80

skipif mysql # not compatible
query II rowsort label-2489
SELECT col0 / - - col0 AS col1, col1 + + 59 FROM tab0
----
1
140
1
60
1
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT ALL 5 DIV - + 19 * - 91 - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 5 / - + 19 * - 91 - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 28 col1 FROM tab1
----
1316
140
392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT - 13 DIV COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2492
SELECT - 13 / COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT ( - 98 ) AS col2 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2495
SELECT - CAST( + 18 AS SIGNED ), col2 - + - col0 + 23 AS col2 FROM tab0
----
-18
120
-18
219
-18
85

skipif mysql # not compatible
query II rowsort label-2495
SELECT - CAST ( + 18 AS INTEGER ), col2 - + - col0 + 23 AS col2 FROM tab0
----
-18
120
-18
219
-18
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT - 88 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT - 88 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 71 ) col0 FROM tab0 cor0
----
71
71
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + + 20 FROM tab0 cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT + col1 + + col0 DIV col0 col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2501
SELECT + col1 + + col0 / col0 col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT - col1 * 31 + col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-1604
-2094
-2411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2504
SELECT CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + 0 FROM tab2 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT COUNT( * ) + + ( - 79 ) FROM tab2 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2507
SELECT COUNT ( * ) + + ( - 79 ) FROM tab2 cor0
----
-76

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 6 = 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 + + - col2 - col2 col1 FROM tab2
----
17
23
24

query I rowsort
SELECT col2 + + col0 - 64 + + ( + 6 ) FROM tab0
----
138
39
4

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE ( - 80 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 22 FROM tab2, tab1 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT + col0 DIV - col1 - - col1 FROM tab1 cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + col0 / - col1 - - col1 FROM tab1 cor0
----
-12
11
46

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - 87 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL + + MAX( ( - 21 ) ) FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + + MAX ( ( - 21 ) ) FROM tab0 cor0
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2516
SELECT ALL - 19 / col1 * + + CAST( NULL AS DECIMAL ) * - col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - 19 / col1 * + + CAST ( NULL AS REAL ) * - col2 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT COUNT( - - col0 ) AS col0, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2518
SELECT COUNT ( - - col0 ) AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + MIN( + - 87 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-2519
SELECT + MIN ( + - 87 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2520
SELECT ALL - AVG ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - AVG ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 32 * + 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to edf385a3df64b15ca096a627e886a624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2522
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - MIN( - + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2523
SELECT - MIN ( - + col0 ) AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT ALL - - 37 FROM tab1 AS cor0 WHERE 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT + - 44 * + CAST( NULL AS SIGNED ) * - 13 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT + - 44 * + CAST ( NULL AS INTEGER ) * - 13 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT MIN( ALL - 25 ) AS col2 FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2526
SELECT MIN ( ALL - 25 ) AS col2 FROM tab2 cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, + 28 col2 FROM tab2 cor0
----
-46
28
-64
28
-75
28

query I rowsort
SELECT - 23 * + col0 * + col2 FROM tab2
----
-100050
-24334
-58880

query I rowsort
SELECT ALL - + col1 FROM tab0 WHERE NOT + 19 <= + col1
----
-1

query II rowsort
SELECT ALL 7, col1 + + 31 + + 71 * - col0 + + col2 AS col0 FROM tab1
----
7
-3480
7
-5940
7
-6315

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT DISTINCT COUNT( * ) AS col2, MAX( ALL - 46 ) AS col0 FROM tab0 AS cor0
----
3
-46

skipif mysql # not compatible
query II rowsort label-2531
SELECT DISTINCT COUNT ( * ) AS col2, MAX ( ALL - 46 ) AS col0 FROM tab0 AS cor0
----
3
-46

query II rowsort
SELECT ALL - - 93 AS col0, - col1 + col2 FROM tab0 AS cor0
----
93
-11
93
-34
93
98

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 + - + col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query II rowsort
SELECT + 44 + + 94, 35 AS col2 FROM tab1 AS cor0
----
138
35
138
35
138
35

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < 0
----

query I rowsort
SELECT + 49 + + col2 AS col0 FROM tab1 cor0
----
108
117
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL MIN ( col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE col2 + + + col2 IS NULL
----

query I rowsort
SELECT col1 - - ( - col1 ) * - - col2 + + + 82 AS col2 FROM tab2
----
-1040
-2921
-3737

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT COUNT( DISTINCT - + col1 ) - - 70 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2543
SELECT COUNT ( DISTINCT - + col1 ) - - 70 FROM tab1
----
73

query I rowsort
SELECT ALL col1 - - - col0 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-2545
SELECT - col2 DIV + col2 - + - col0, - col0 AS col1 FROM tab0
----
14
-15
86
-87
96
-97

skipif mysql # not compatible
query II rowsort label-2545
SELECT - col2 / + col2 - + - col0, - col0 AS col1 FROM tab0
----
14
-15
86
-87
96
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + - col2 col1 FROM tab0
----
196
62
97

query I rowsort
SELECT col2 - - + 15 FROM tab0
----
114
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + COUNT( + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + COUNT ( + col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL col1 * - 40 * - 45 * + col2 AS col0 FROM tab2
----
2111400
5544000
6994800

query I rowsort
SELECT DISTINCT - 10 * + ( - + 35 ) AS col1 FROM tab2 AS cor0
----
350

query II rowsort
SELECT ALL - 52 * + - ( - + 43 ), col0 * + + 23 AS col2 FROM tab1 AS cor0
----
-2236
1173
-2236
1955
-2236
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL + 37 * ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + 37 * ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab1 WHERE NOT NULL BETWEEN - - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab1 WHERE NOT NULL BETWEEN - - col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT + 1 DIV + col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2555
SELECT + 1 / + col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT - COUNT( * ) * 10 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT - COUNT ( * ) * 10 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL COUNT( * ) * - + 21 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL COUNT ( * ) * - + 21 FROM tab0 cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 65
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2559
SELECT DISTINCT + COUNT( * ) DIV - 9 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + COUNT ( * ) / - 9 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT - COUNT( * ) AS col1, 93 col0 FROM tab2
----
-3
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2560
SELECT - COUNT ( * ) AS col1, 93 col0 FROM tab2
----
-3
93

query I rowsort
SELECT ( + col0 ) * + 95 AS col2 FROM tab0
----
1425
8265
9215

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2562
SELECT ALL * FROM tab1 WHERE ( - col2 * col2 * + CAST( NULL AS DECIMAL ) / col0 - col1 + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2562
SELECT ALL * FROM tab1 WHERE ( - col2 * col2 * + CAST ( NULL AS REAL ) / col0 - col1 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 + + - 72 FROM tab0
----
-19

query I rowsort
SELECT DISTINCT ( 29 ) * col1 * + col0 FROM tab2
----
142912
145725
68034

query II rowsort
SELECT + 2 + - ( + col1 ), + col2 AS col2 FROM tab0
----
-19
10
-79
47
1
99

query I rowsort
SELECT ALL - col2 + ( col0 ) + - col1 + 13 FROM tab0
----
-100
10
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2567
SELECT ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT col0 + - + col1, col1 + + - 11 AS col1 FROM tab2
----
-13
66
-5
40
8
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT - + col1 + - col1 - col1 / + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT - + col1 + - col1 - col1 / + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32 + - - col1 col2, + ( - + 38 ) * - col1 + + 91 * - col0 FROM tab0 AS cor0
----
-11
-7119
-31
-8789
49
1713

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT + + col0 DIV + + col1 - 63 + - col0 FROM tab2 cor0 WHERE ( NOT + + col1 IS NULL )
----
-109
-127
-137

skipif mysql # not compatible
query I rowsort label-2571
SELECT + + col0 / + + col1 - 63 + - col0 FROM tab2 cor0 WHERE ( NOT + + col1 IS NULL )
----
-109
-127
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2572
SELECT DISTINCT 3 + - + CAST( - - col1 AS SIGNED ) * - - col0 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-2343
NULL
-4925
NULL
-5022
NULL

skipif mysql # not compatible
query II rowsort label-2572
SELECT DISTINCT 3 + - + CAST ( - - col1 AS INTEGER ) * - - col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-2343
NULL
-4925
NULL
-5022
NULL

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT ALL ( + col0 ) + + + 7 FROM tab2
----
53
71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT COUNT( * ) * SUM( ALL 45 ) col1 FROM tab2
----
405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2576
SELECT COUNT ( * ) * SUM ( ALL 45 ) col1 FROM tab2
----
405

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2578
SELECT * FROM tab2 WHERE NOT col0 * - - CAST( - col2 AS SIGNED ) BETWEEN - col1 AND col1 + - CAST( NULL AS SIGNED ) * - col2 + + col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2578
SELECT * FROM tab2 WHERE NOT col0 * - - CAST ( - col2 AS INTEGER ) BETWEEN - col1 AND col1 + - CAST ( NULL AS INTEGER ) * - col2 + + col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 * + - 2 AS col2, col1 + + + col2 + - col0 FROM tab1
----
-118
-21
-136
24
-192
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL - - CAST( + ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - - CAST ( + ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT ALL - COUNT( 29 ) col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2581
SELECT ALL - COUNT ( 29 ) col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT SUM( DISTINCT - - 96 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT SUM ( DISTINCT - - 96 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL CAST( NULL AS SIGNED ) * - - 41 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL CAST ( NULL AS INTEGER ) * - - 41 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT + col2 * col2 * CAST( 39 AS SIGNED ) * + - col0 FROM tab1 AS cor0
----
-11539515
-16410576
-18330624

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + col2 * col2 * CAST ( 39 AS INTEGER ) * + - col0 FROM tab1 AS cor0
----
-11539515
-16410576
-18330624

query II rowsort
SELECT DISTINCT - + 99 AS col1, + 95 AS col2 FROM tab0 AS cor0
----
-99
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2586
SELECT DISTINCT - - COUNT( DISTINCT - col2 ) DIV - + 52 + + MIN( - col1 ) + - + MIN( ALL + - col1 ) * - COUNT( * ) + - + 53 FROM tab2 cor0
----
-361

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT - - COUNT ( DISTINCT - col2 ) / - + 52 + + MIN ( - col1 ) + - + MIN ( ALL + - col1 ) * - COUNT ( * ) + - + 53 FROM tab2 cor0
----
-361

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT + COUNT( + - 84 ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + COUNT ( + - 84 ) + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL - 29 + ( + col2 ) FROM tab0
----
-19
18
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL COUNT( * ) * - + 64 * - 11 FROM tab2
----
2112

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL COUNT ( * ) * - + 64 * - 11 FROM tab2
----
2112

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN + col2 * + col0 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT DISTINCT - col0 DIV - - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - col0 / - - col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + COUNT( * ) * + 98 + 89 FROM tab2 WHERE 19 BETWEEN + col0 AND - + col2
----
89

skipif mysql # not compatible
query I rowsort label-2592
SELECT + COUNT ( * ) * + 98 + 89 FROM tab2 WHERE 19 BETWEEN + col0 AND - + col2
----
89

query I rowsort
SELECT ALL col1 * + - col2 + + col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT + 58 * col0 DIV - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-116
-75
-92

skipif mysql # not compatible
query I rowsort label-2594
SELECT + 58 * col0 / - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-116
-75
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2595
SELECT DISTINCT CAST( + 15 AS SIGNED ) DIV + - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT CAST ( + 15 AS INTEGER ) / + - col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 83 IN ( + col1, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN - ( + 64 ) + - 21 + 98 AND - + col2 - - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + 67 AS col0 FROM tab0
----
114
166
77

query I rowsort
SELECT ALL 36 - + 42 FROM tab1
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL MIN( DISTINCT - 27 ) - - SUM( col2 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL MIN ( DISTINCT - 27 ) - - SUM ( col2 ) FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + MAX( col1 ) FROM tab0 AS cor0 WHERE NOT + 63 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + MAX ( col1 ) FROM tab0 AS cor0 WHERE NOT + 63 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + ( COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2605
SELECT DISTINCT + ( COUNT ( * ) ) col0 FROM tab0
----
3

query I rowsort
SELECT ( + 51 ) AS col1 FROM tab0
----
51
51
51

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-46
-64
-75

query II rowsort
SELECT col2 AS col1, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - ( MAX( DISTINCT + 54 ) ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2611
SELECT - ( MAX ( DISTINCT + 54 ) ) FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) / - - col2 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2612
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - - col2 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT + - col2 AS col0 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * + col0, col2 AS col2 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

query I rowsort
SELECT - 32 * + - col0 AS col1 FROM tab2 AS cor0
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + SUM( + - 94 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-2617
SELECT + SUM ( + - 94 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT 5 DIV - col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT 5 / - col1 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL MAX( - ( - 96 ) ) AS col2 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL MAX ( - ( - 96 ) ) AS col2 FROM tab2 cor0
----
96

query I rowsort
SELECT ALL - + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - + 66 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT 15 * + MAX( - - 44 ) + - + SUM( ALL + + col1 ) * ( + - COUNT( * ) ) FROM tab0 AS cor0
----
969

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT 15 * + MAX ( - - 44 ) + - + SUM ( ALL + + col1 ) * ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
969

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2624
SELECT ALL + 29 + + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + 29 + + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT 44 + - SUM( DISTINCT - - col0 ) + + CAST( 38 AS SIGNED ) FROM tab1 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT 44 + - SUM ( DISTINCT - - col0 ) + + CAST ( 38 AS INTEGER ) FROM tab1 AS cor0
----
-145

query I rowsort
SELECT ALL + + 54 * - - col1 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
5100
8643
9086

query I rowsort
SELECT 69 + col2 FROM tab2
----
109
127
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - 30 col2 FROM tab0
----
2610
2910
450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT col1 + + col2 DIV 67 AS col0 FROM tab0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-2630
SELECT col1 + + col2 / 67 AS col0 FROM tab0
----
2
21
81

query I rowsort
SELECT + ( - col2 ) + - ( - col0 ) FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab1 WHERE - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 94 AS col2, + col0 col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL COUNT( DISTINCT + 17 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL COUNT ( DISTINCT + 17 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT + MIN( + - col0 ) DIV - - 3 AS col1 FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2635
SELECT + MIN ( + - col0 ) / - - 3 AS col1 FROM tab2 cor0
----
-25

query I rowsort
SELECT DISTINCT 25 * - col2 * - col0 + - col0 FROM tab0 AS cor0
----
17610
21663
239978

query I rowsort
SELECT DISTINCT + ( - - 77 ) + col1 FROM tab0 AS cor0
----
158
78
98

query I rowsort
SELECT ( col1 ) - - 73 AS col0 FROM tab2
----
124
140
150

query I rowsort
SELECT ALL - 91 * + - 69 FROM tab2
----
6279
6279
6279

query I rowsort
SELECT + + 46 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
46
46
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 70 * col2 * - - 26 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2642
SELECT ALL - - 72 * - + MAX( 88 ) + + SUM( - CAST( NULL AS SIGNED ) ) * - ( COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - - 72 * - + MAX ( 88 ) + + SUM ( - CAST ( NULL AS INTEGER ) ) * - ( COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT + + COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2643
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT + COUNT( * ) * - - 27 + 80 AS col2 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + COUNT ( * ) * - - 27 + 80 AS col2 FROM tab2 AS cor0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) * + 72 * - col0 AS col2 FROM tab0 cor0
----
-16200
-544968
-677448

skipif mysql # not compatible
query I rowsort label-2645
SELECT CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) * + 72 * - col0 AS col2 FROM tab0 cor0
----
-16200
-544968
-677448

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2646
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT - col2 DIV + - 32 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2647
SELECT - col2 / + - 32 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 40 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 65 * 7 FROM tab2
----
-455
-455
-455

query III rowsort
SELECT * FROM tab2 WHERE NOT + 41 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - COUNT( * ) * - 33 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-2651
SELECT - COUNT ( * ) * - 33 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT + MIN( DISTINCT - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab1
----
-91

query I rowsort
SELECT ALL col1 * 37 AS col2 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + 24 * - + MIN( DISTINCT + - 99 ) + + MAX( ALL - 31 ) AS col1 FROM tab2 cor0
----
2345

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 24 * - + MIN ( DISTINCT + - 99 ) + + MAX ( ALL - 31 ) AS col1 FROM tab2 cor0
----
2345

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + - COUNT( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + - COUNT ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 97 col1, - col2 * - - col1 * col0 FROM tab0 AS cor0
----
-97
-18270
-97
-57105
-97
-9603

query I rowsort
SELECT ( + - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT + col1 DIV - col1 + col2 + - + col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2659
SELECT + col1 / - col1 + col2 + - + col2 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col1 + + + col1 AS col0 FROM tab1 cor0
----
10
28
94

query II rowsort
SELECT DISTINCT ( - col2 ) AS col1, - col1 + col1 FROM tab0 cor0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL COUNT( DISTINCT 28 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL COUNT ( DISTINCT 28 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2663
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - + 1 + - + 43 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT col0 + + 47 FROM tab2 AS cor0
----
111
122
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 28 + 39 col0 FROM tab1 cor0
----
118
152
158

query I rowsort
SELECT - + col0 * + - col1 AS col2 FROM tab2 WHERE NULL BETWEEN - + 64 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 45 >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT ALL - col1 + col0 * + col2 DIV - col2 AS col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - col1 + col0 * + col2 / - col2 AS col0 FROM tab2
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 3 ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT ALL MIN( DISTINCT + col2 ) AS col2, ( + 24 ) - + COUNT( * ) AS col1 FROM tab0
----
10
21

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL MIN ( DISTINCT + col2 ) AS col2, ( + 24 ) - + COUNT ( * ) AS col1 FROM tab0
----
10
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2672
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT - ( + + 82 ) - col0 + 85 DIV col0 AS col1 FROM tab1
----
-132
-166
-173

skipif mysql # not compatible
query I rowsort label-2673
SELECT - ( + + 82 ) - col0 + 85 / col0 AS col1 FROM tab1
----
-132
-166
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 45 + - + col1 col2 FROM tab0
----
2034
429
4454

query II rowsort
SELECT DISTINCT - 71 * - col0 AS col2, - col0 FROM tab0 AS cor0
----
1065
-15
6177
-87
6887
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + - col2 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 * - col1, col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2678
SELECT * FROM tab0 WHERE ( + 38 * - 54 * col1 * + + CAST( NULL AS DECIMAL ) + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2678
SELECT * FROM tab0 WHERE ( + 38 * - 54 * col1 * + + CAST ( NULL AS REAL ) + - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT ALL + ( col0 ) - CAST( col2 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + ( col0 ) - CAST ( col2 AS INTEGER ) FROM tab2
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * col2 col0 FROM tab0
----
3807
8019
810

query I rowsort
SELECT DISTINCT col2 * col0 * col0 * - 13 + + 32 AS col1 FROM tab2 AS cor0
----
-2129888
-4241218
-632652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT ALL + + COUNT( * ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + + COUNT ( * ) / + - COUNT ( * ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ( - + MAX( ALL + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2685
SELECT ( - + MAX ( ALL + col1 ) ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2686
SELECT * FROM tab2 WHERE + col1 * + 64 + - CAST( NULL AS SIGNED ) BETWEEN - col1 AND + + 40 / + + col1 + ( + - 94 ) + col2 + - col2 * - + col2 * - 24 * col2 OR NOT ( col1 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2686
SELECT * FROM tab2 WHERE + col1 * + 64 + - CAST ( NULL AS INTEGER ) BETWEEN - col1 AND + + 40 / + + col1 + ( + - 94 ) + col2 + - col2 * - + col2 * - 24 * col2 OR NOT ( col1 IS NOT NULL )
----

query I rowsort
SELECT 93 * + 48 * 87 * col0 FROM tab0
----
33788016
37671696
5825520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT SUM( + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT SUM ( + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT + + MAX( + 46 ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + + MAX ( + 46 ) AS col0 FROM tab0 AS cor0
----
46

query I rowsort
SELECT ALL 26 AS col0 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT ALL + ( col2 ) + 91 FROM tab2
----
114
131
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 14 + - 79 * + 79 col0 FROM tab1
----
-6136
-6142
-6176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( - 45 ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2695
SELECT DISTINCT - SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col0 FROM tab1 AS cor0
----
38
38
38

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN col2 AND - col2
----

query II rowsort
SELECT - - col1 * 73 + - col0 * col2 + - 56 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-9586
1
5152
81
607
21

query I rowsort
SELECT + col0 * col1 + - col2 FROM tab2 cor0
----
2323
4888
4967

query I rowsort
SELECT ALL 12 * + + col0 FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT ALL - 26 + - col1 FROM tab1
----
-31
-40
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2702
SELECT - 26 * - col2 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT - 26 * - col2 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 34 * + 15 - - col1 FROM tab2
----
561
577
587

query I rowsort
SELECT DISTINCT 68 + - col0 * - col0 FROM tab2
----
2184
4164
5693

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 * col0 + + 14 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 * col0 + + 14 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 93 = NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 40 - - + col1 - + 97 + col1 * - - col0 FROM tab0
----
2591
41
4439

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2709
SELECT - + col1 * + + CAST( NULL AS DECIMAL ) + + - 85 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-2709
SELECT - + col1 * + + CAST ( NULL AS REAL ) + + - 85 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT col0 - - + col2 AS col0, ( + 17 ) AS col1, col1 FROM tab0 AS cor0
----
9 values hashing to 307ccaf4f5b5f352da15d6ae29c2f652

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NULL <> col0 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NULL <> col0 * + col2
----
0

query I rowsort
SELECT DISTINCT 35 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL - COUNT( ALL 81 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - COUNT ( ALL 81 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT 23 * + COUNT( * ) * - + 5 * - - COUNT( col0 ) FROM tab0 AS cor0
----
-1035

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT 23 * + COUNT ( * ) * - + 5 * - - COUNT ( col0 ) FROM tab0 AS cor0
----
-1035

query I rowsort
SELECT + ( col1 ) * - 90 FROM tab0 AS cor0
----
-1890
-7290
-90

query I rowsort
SELECT col1 * col2 * 8 * + col2 * col1 AS col0 FROM tab1
----
14450688
696200
81715328

query I rowsort
SELECT 2 * col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2718
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2718
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL ( COUNT( * ) ) * - 49 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL ( COUNT ( * ) ) * - 49 FROM tab0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT DISTINCT - CAST( - 66 AS SIGNED ) * - col0 AS col0 FROM tab1
----
-3366
-5610
-6006

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * - col0 AS col0 FROM tab1
----
-3366
-5610
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT 13 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT 13 / col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL - 98 * col0 DIV + - col0 AS col0 FROM tab0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - 98 * col0 / + - col0 AS col0 FROM tab0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT ALL - 92 DIV col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - 92 / col1 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + 79 * + 47 AS col1 FROM tab1 AS cor0
----
-3713
-3713
-3713

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col1
----

query I rowsort
SELECT ALL - col2 * 64 AS col1 FROM tab1
----
-3776
-4352
-6144

query III rowsort
SELECT ALL * FROM tab2 WHERE + 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = col1
----

query I rowsort
SELECT ( 50 ) * col2 AS col0 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT ALL 56 + 45 FROM tab2
----
101
101
101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2731
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + col2 BETWEEN - col0 + + col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-2731
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + col2 BETWEEN - col0 + + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - COUNT( * ) * SUM( DISTINCT 1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2732
SELECT - COUNT ( * ) * SUM ( DISTINCT 1 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT ALL col0 DIV - col0 + + col1 AS col0 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL col0 / - col0 + + col1 AS col0 FROM tab1
----
13
4
46

query I rowsort
SELECT 76 + - 65 FROM tab1 WHERE col1 NOT IN ( 9 )
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 42 * - 19 + - col1 * + ( 33 ) IS NULL
----

query I rowsort
SELECT + col1 * col0 + 33 AS col2 FROM tab0
----
1248
130
1860

query I rowsort
SELECT + col0 * - 48 FROM tab0
----
-4176
-4656
-720

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - 42 / - 45
----

query I rowsort
SELECT 97 * + ( col1 ) + 44 AS col0 FROM tab1
----
1402
4603
529

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT + col0 DIV - 49 + ( 81 ) * - col1 AS col0 FROM tab1 WHERE NOT + 62 * + 29 IS NULL
----
-1135
-3808
-406

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + col0 / - 49 + ( 81 ) * - col1 AS col0 FROM tab1 WHERE NOT + 62 * + 29 IS NULL
----
-1135
-3808
-406

query I rowsort
SELECT ALL 98 * col2 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL col1 * 93 FROM tab1
----
1302
4371
465

query III rowsort
SELECT * FROM tab1 WHERE - 67 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + 79 * - MIN( + ( + 75 ) ) AS col1 FROM tab2
----
-5925

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + 79 * - MIN ( + ( + 75 ) ) AS col1 FROM tab2
----
-5925

query I rowsort
SELECT ALL + col0 * + col2 FROM tab1 WHERE NOT ( col0 ) > ( + col2 )
----
4896

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col1 ) <= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab2 WHERE NOT NULL BETWEEN + col2 AND ( - col1 )
----

query I rowsort
SELECT ALL + 20 - col2 AS col1 FROM tab1
----
-39
-48
-76

query I rowsort
SELECT DISTINCT col0 * - 9 AS col1 FROM tab1 WHERE - col1 * - 94 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 64 > + 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT col1 DIV ( + 5 ) col2 FROM tab0
----
0
16
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT col1 / ( + 5 ) col2 FROM tab0
----
0
16
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2752
SELECT ALL 47 DIV COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL 47 / COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT col2 - 81 * 9 FROM tab1
----
-633
-661
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 85 + col0 col2 FROM tab2
----
4381
5770
6609

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2755
SELECT ALL - CAST( NULL AS DECIMAL ) * + col2 - 40 AS col0 FROM tab2 WHERE - 73 IN ( 96 )
----

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - CAST ( NULL AS REAL ) * + col2 - 40 AS col0 FROM tab2 WHERE - 73 IN ( 96 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + 38 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 86 * - 79 ) IN ( 15 * 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 22 * - col1 FROM tab2
----
1122
1474
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT COUNT( * ) FROM tab0 WHERE NOT + ( - 5 ) - + col1 NOT IN ( col2 * 50 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT COUNT ( * ) FROM tab0 WHERE NOT + ( - 5 ) - + col1 NOT IN ( col2 * 50 + - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2760
SELECT COUNT ( DISTINCT - col2 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 46 ) > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2762
SELECT DISTINCT * FROM tab0 WHERE NULL > - CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-2762
SELECT DISTINCT * FROM tab0 WHERE NULL > - CAST ( NULL AS INTEGER ) * col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT 99 + 59 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - 6 - col1 * + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT 99 + 59 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 6 - col1 * + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + 6 NOT IN ( + CAST( - col0 AS SIGNED ) * 93 )
----

skipif mysql # not compatible
query I rowsort label-2767
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + 6 NOT IN ( + CAST ( - col0 AS INTEGER ) * 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL COUNT( 96 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL COUNT ( 96 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + ( - col2 + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + ( - col2 + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 3 AS col0 FROM tab1 AS cor0
----
-153
-255
-273

query I rowsort
SELECT DISTINCT + 58 * col0 AS col0 FROM tab0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - MAX( col0 ) col1 FROM tab2 WHERE NOT ( - col2 ) = 74
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2773
SELECT - MAX ( col0 ) col1 FROM tab2 WHERE NOT ( - col2 ) = 74
----
-75

query I rowsort
SELECT ALL - 25 * + - col2 AS col2 FROM tab2
----
1000
1450
575

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col0 BETWEEN NULL AND ( + 60 )
----
-59
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) * 61 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2776
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) * 61 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 1 * col2 * col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - col0 BETWEEN + col1 AND 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT 91 * COUNT( * ) AS col0 FROM tab2 WHERE NOT 39 / 90 BETWEEN ( col0 * col2 ) AND ( + col0 )
----
273

skipif mysql # not compatible
query I rowsort label-2780
SELECT 91 * COUNT ( * ) AS col0 FROM tab2 WHERE NOT 39 / 90 BETWEEN ( col0 * col2 ) AND ( + col0 )
----
273

query I rowsort
SELECT ALL ( + 23 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 67 / 65 AND + 33 + 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 cor0 WHERE NOT ( - 57 ) < 52 * + col1
----

query I rowsort
SELECT + + col1 + - col0 * - 14 FROM tab1 AS cor0
----
1195
1321
728

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + 14 + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE col2 IN ( col1 )
----
14

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + 14 + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IN ( col1 )
----
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= col2
----

query II rowsort
SELECT 68, - 85 AS col1 FROM tab1
----
68
-85
68
-85
68
-85

query I rowsort
SELECT - 69 AS col1 FROM tab0 WHERE ( + 91 ) NOT BETWEEN col2 * - 69 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT ALL + + COUNT( * ) col2, 89 + 93 col1 FROM tab1 AS cor0
----
3
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2788
SELECT ALL + + COUNT ( * ) col2, 89 + 93 col1 FROM tab1 AS cor0
----
3
182

query I rowsort
SELECT + + col2 * + - col2 * - 77 - col2 FROM tab0 AS cor0
----
170046
754578
7690

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND ( - + 56 )
----

query I rowsort
SELECT + col0 * + col2 * - col2 + 5 FROM tab1 AS cor0
----
-295880
-420779
-470011

query I rowsort
SELECT 2 + - col2 AS col2 FROM tab1 cor0
----
-57
-66
-94

query I rowsort
SELECT + - col2 + + - col1 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT DISTINCT col0 + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT col0 + + col1 / col1 AS col0 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT + 75 + - + col2 * + col0 FROM tab0
----
-630
-795
-9528

query I rowsort
SELECT 92 + - ( + col2 ) - + ( + 62 ) * - col2 AS col1 FROM tab0
----
2959
6131
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT DISTINCT - 31 + CAST( - col1 AS SIGNED ) FROM tab0
----
-112
-32
-52

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - 31 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-112
-32
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT ALL + CAST( NULL AS SIGNED ) / + 84 + + col2 + + col2 + 16 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + CAST ( NULL AS INTEGER ) / + 84 + + col2 + + col2 + 16 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT ALL - col1 + ( + + 81 ) + - col0 DIV ( 14 + col1 ) FROM tab1
----
33
66
72

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - col1 + ( + + 81 ) + - col0 / ( 14 + col1 ) FROM tab1
----
33
66
72

query I rowsort
SELECT ALL + - col1 * col1 FROM tab1 WHERE + col0 IS NOT NULL
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab1
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT + MIN( col2 ) FROM tab0 WHERE ( - col2 / col1 ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT + MIN ( col2 ) FROM tab0 WHERE ( - col2 / col1 ) IS NOT NULL
----
10

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT ALL col2 DIV - ( + 66 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL col2 / - ( + 66 ) AS col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT MAX( DISTINCT - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT MAX ( DISTINCT - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2808
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0, - COUNT( * ) * - 69 * + COUNT( * ) FROM tab0 AS cor0
----
3
621

skipif mysql # not compatible
query II rowsort label-2808
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0, - COUNT ( * ) * - 69 * + COUNT ( * ) FROM tab0 AS cor0
----
3
621

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2809
SELECT - CAST( NULL AS SIGNED ) / + + 57 AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2809
SELECT - CAST ( NULL AS INTEGER ) / + + 57 AS col1, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * col0 * + 41 FROM tab1
----
200736
205615
253708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2813
SELECT DISTINCT COUNT( * ), - COUNT( * ) DIV - 35 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
0

skipif mysql # not compatible
query II rowsort label-2813
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) / - 35 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - - MAX( ALL + - 63 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2814
SELECT - - MAX ( ALL + - 63 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2815
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2815
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 7 col1 FROM tab1
----
-413
-476
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT MAX( ALL 40 ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN - col2 AND - 66
----
40

skipif mysql # not compatible
query I rowsort label-2817
SELECT MAX ( ALL 40 ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN - col2 AND - 66
----
40

query I rowsort
SELECT - 43 FROM tab2 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - COUNT( * ) * 37 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-2819
SELECT - COUNT ( * ) * 37 FROM tab0
----
-111

query I rowsort
SELECT + col1 * + 97 AS col0 FROM tab1
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT - COUNT( * ) * - COUNT( ALL col2 ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2821
SELECT - COUNT ( * ) * - COUNT ( ALL col2 ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2822
SELECT + 65 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( - 44 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-2822
SELECT + 65 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( - 44 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT - + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - - 21 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2824
SELECT - - 21 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
63

query I rowsort
SELECT ALL - + 30 AS col1 FROM tab1 AS cor0
----
-30
-30
-30

query II rowsort
SELECT + col1 AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - - 97 + - col1 FROM tab0 AS cor0
----
16
76
96

query I rowsort
SELECT - + col1 + 87 FROM tab1 AS cor0
----
40
73
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL + CAST( col1 AS SIGNED ) - - col2 AS col0 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + CAST ( col1 AS INTEGER ) - - col2 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT ( - 68 ) + 96 AS col1 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT - + COUNT( * ) * - MIN( + 88 ) * 98 + - 56 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT - + COUNT ( * ) * - MIN ( + 88 ) * 98 + - 56 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col1 + 5 - - col0 FROM tab1
----
143
70
95

query III rowsort
SELECT * FROM tab1 WHERE - - ( 96 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 9 * col1 * + 77 AS col0 FROM tab2
----
-35343
-46431
-53361

query II rowsort
SELECT 56 * col2, - col0 * + col1 AS col2 FROM tab1 AS cor0
----
3304
-425
3808
-4277
5376
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT ALL + col1 * + + col1 * col2 + col2 FROM tab2 cor0 WHERE col1 <= + CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + col1 * + + col1 * col2 + col2 FROM tab2 cor0 WHERE col1 <= + CAST ( NULL AS INTEGER ) + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 - - 2 AS col2, + col2 - col1 col2 FROM tab2 AS cor0
----
-44
-28
-62
-37
-73
-9

query II rowsort
SELECT DISTINCT + ( + ( col1 ) ) AS col0, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT + ( COUNT( * ) ) + MIN( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT + ( COUNT ( * ) ) + MIN ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT + ( col0 ) * col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT SUM( - + col0 ) * + 29, + COUNT( * ) * - 10 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6583
-27

skipif mysql # not compatible
query II rowsort label-2841
SELECT SUM ( - + col0 ) * + 29, + COUNT ( * ) * - 10 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6583
-27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 = col0 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 44 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) <= + 18 / col2 + - - col1 + + + col1 + + col1
----

query I rowsort
SELECT ALL col2 * + - col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE NOT ( NULL ) >= ( - col1 - + + col1 * col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2845
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 WHERE NOT ( NULL ) >= ( - col1 - + + col1 * col0 )
----
0

query II rowsort
SELECT col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( - col0 * + 6 * 74 + + 54 ) AND col1 / - - col0 + + 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2848
SELECT 78, CAST( AVG ( - col1 ) AS SIGNED ) col1 FROM tab0
----
78
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2848
SELECT 78, CAST ( AVG ( - col1 ) AS INTEGER ) col1 FROM tab0
----
78
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35, + col2 col1 FROM tab0
----
-35
10
-35
47
-35
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2850
SELECT + COUNT( * ) col2, + 2 DIV + 27 AS col1 FROM tab1
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2850
SELECT + COUNT ( * ) col2, + 2 / + 27 AS col1 FROM tab1
----
3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) col0 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2851
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) col0 FROM tab2
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT - CAST( NULL AS SIGNED ) / - SUM( - col2 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2852
SELECT - CAST ( NULL AS INTEGER ) / - SUM ( - col2 ) col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col0 * + ( - col2 ) FROM tab0
----
33135
8700
950697

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN + col0 AND + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 98 ) FROM tab2 AS cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col2 ) > + 36
----
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2857
SELECT DISTINCT col2 + 26 * - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 53 * + CAST( NULL AS DECIMAL ) AND - - col0
----

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT col2 + 26 * - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 53 * + CAST ( NULL AS REAL ) AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + MIN( DISTINCT 80 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + MIN ( DISTINCT 80 ) FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2859
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 92 * + col1 FROM tab1 AS cor0
----
-1288
-4324
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + + COUNT( * ) * - MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + + COUNT ( * ) * - MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - - MIN( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2862
SELECT - - MIN ( ALL + + col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL - 87 + col2 + - - col0 * - - col2 AS col2 FROM tab0
----
665
793
9615

query III rowsort
SELECT * FROM tab1 WHERE + 62 * - col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT COUNT( * ) + + 75 AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT COUNT ( * ) + + 75 AS col2 FROM tab2
----
78

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ( + + col1 ) * - col1 FROM tab0 cor0 WHERE - 48 + - col2 + + 69 * + col2 = - - 66
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE + col2 * - + col1 IS NOT NULL
----
-51
-85
-91

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + - CAST( - + col2 AS SIGNED ) + + + col1 - - ( + + 82 ) - + col0 AND - - col1 AND NULL IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + - CAST ( - + col2 AS INTEGER ) + + + col1 - - ( + + 82 ) - + col0 AND - - col1 AND NULL IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + 30 * 2 * + COUNT( * ) col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2875
SELECT DISTINCT + 30 * 2 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
180

query I rowsort
SELECT - 29 + 98 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT ALL + 1 * col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT + col2 * 69 FROM tab0 cor0
----
3243
6831
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT DISTINCT ( MAX( col2 ) ) * - MAX( + ( + - col1 ) ) + ( + + MIN( DISTINCT + CAST( col2 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 + - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT ( MAX ( col2 ) ) * - MAX ( + ( + - col1 ) ) + ( + + MIN ( DISTINCT + CAST ( col2 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 + - col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( 1 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT col2 DIV col0 * - + 13 AS col2 FROM tab0
----
-13
-39
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT col2 / col0 * - + 13 AS col2 FROM tab0
----
-13
-39
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2883
SELECT DISTINCT - COUNT( DISTINCT 0 ) DIV 40, COUNT( * ) AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-2883
SELECT DISTINCT - COUNT ( DISTINCT 0 ) / 40, COUNT ( * ) AS col1 FROM tab2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL - SUM( + col2 ) * + 61 AS col0 FROM tab1
----
-13603

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - SUM ( + col2 ) * + 61 AS col0 FROM tab1
----
-13603

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT - - MAX( + 59 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT - - MAX ( + 59 ) FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT SUM( ALL - 94 ) AS col0 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-2886
SELECT SUM ( ALL - 94 ) AS col0 FROM tab2 AS cor0
----
-282

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2888
SELECT DISTINCT + - 73 * + CAST( - - 49 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT - CAST( - + col2 AS SIGNED ) + - + col0 NOT IN ( - col2, - col1 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + - 73 * + CAST ( - - 49 AS REAL ) AS col1 FROM tab0 WHERE NOT - CAST ( - + col2 AS INTEGER ) + - + col0 NOT IN ( - col2, - col1 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 71 <= + 28 * + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT + + 67 + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 66 * col0 IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT + + 67 + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 66 * col0 IS NOT NULL
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 1 + ( - + 43 ) + 49 col0 FROM tab1 AS cor0
----
-41
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * - - col2 * col0 * - col2 + 8 col2 FROM tab2 AS cor0
----
-1119333
-18922434
-6553552

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 NOT BETWEEN NULL AND + 18 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col0 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT - - col0 + - - col1 - + ( + col1 ) * + col2 FROM tab0 AS cor0
----
-1
-102
-3711

query I rowsort
SELECT - col2 + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, col1 + - col1 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT - 33 + + + 3 AS col1 FROM tab1 AS cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT + 13 + - col1 DIV + - 96 * - + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
13
13
13

skipif mysql # not compatible
query I rowsort label-2900
SELECT + 13 + - col1 / + - 96 * - + 55 AS col1 FROM tab0 WHERE NULL IS NULL
----
13
13
13

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col0 IS NULL
----

query I rowsort
SELECT - ( + 84 ) * + col0 FROM tab0
----
-1260
-7308
-8148

query I rowsort
SELECT - 64 - 56 AS col1 FROM tab1 AS cor0
----
-120
-120
-120

query I rowsort
SELECT - + 12 - + - col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-78
54
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + + col0 + - ( - 87 ) col0, col1 + + - ( + - col1 ) FROM tab2 AS cor0
----
2433
102
5015
154
5112
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + - + col0 + - col1 - - ( + col1 ) col2 FROM tab0 AS cor0
----
-240
-7656
-9506

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2908
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + + SUM( DISTINCT 60 ) * + + 13 FROM tab2 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-2909
SELECT + + SUM ( DISTINCT 60 ) * + + 13 FROM tab2 AS cor0
----
780

query II rowsort
SELECT col0, 76 AS col0 FROM tab1 AS cor0
----
51
76
85
76
91
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT - + COUNT( * ) * - 87 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - + COUNT ( * ) * - 87 FROM tab0 AS cor0
----
261

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT + - col1 DIV + 7 AS col0 FROM tab2 AS cor0
----
-11
-7
-9

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + - col1 / + 7 AS col0 FROM tab2 AS cor0
----
-11
-7
-9

query II rowsort
SELECT + col1 AS col2, 58 FROM tab2 cor0
----
51
58
67
58
77
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col1 col2 FROM tab1
----
51
-14
85
-5
91
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col2 - col2 FROM tab2
----
-23
0
-40
0
-58
0

query II rowsort
SELECT DISTINCT col2 AS col1, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT - ( - col1 ) * + - 16 AS col0 FROM tab2
----
-1072
-1232
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT 53 DIV - - col0 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2920
SELECT 53 / - - col0 AS col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT CAST( + 32 AS SIGNED ) FROM tab0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2921
SELECT CAST ( + 32 AS INTEGER ) FROM tab0
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + + 60 + 54 >= col2
----

query I rowsort
SELECT ALL + 4 * 14 AS col0 FROM tab0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2924
SELECT - col2 AS col1, + CAST( - ( 11 ) AS SIGNED ), + col0 AS col2 FROM tab1
----
9 values hashing to 1c190254f921ee266adf1f4ad0f72e2d

skipif mysql # not compatible
query III rowsort label-2924
SELECT - col2 AS col1, + CAST ( - ( 11 ) AS INTEGER ), + col0 AS col2 FROM tab1
----
9 values hashing to 1c190254f921ee266adf1f4ad0f72e2d

query I rowsort
SELECT ALL + 3 * - col0 + + col2 FROM tab0 AS cor0
----
-192
-251
2

query I rowsort
SELECT ALL + 49 * + col1 + + + ( + + 67 ) FROM tab1 AS cor0
----
2370
312
753

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2927
SELECT DISTINCT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE ( col0 + CAST( col1 AS DECIMAL ) ) IS NOT NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE ( col0 + CAST ( col1 AS REAL ) ) IS NOT NULL
----
1173
3080
3886

query II rowsort
SELECT ALL - 6 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-6
51
-6
67
-6
77

query I rowsort
SELECT + col2 * + - ( - col2 ) FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2930
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, - 49 * - + col0, + col2, col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT COUNT( - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2932
SELECT COUNT ( - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + 84 / col1, 57 )
----

query I rowsort
SELECT ALL 21 FROM tab2 AS cor0 WHERE NOT NULL > col1 * - + ( - + col1 ) + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * - + col1 + + + col1, + col0 AS col2 FROM tab2 AS cor0
----
-2295
46
-4851
64
-4958
75

query I rowsort
SELECT + col1 + - - ( - col1 ) AS col2 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + + + col2 + + col1 col2 FROM tab0
----
116
144
47

query I rowsort
SELECT DISTINCT - 92 + - col1 FROM tab2
----
-143
-159
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 4 + - - col1 / + + col2 - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 4 + - - col1 / + + col2 - - col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT COUNT( * ) + 55 AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT COUNT ( * ) + 55 AS col2 FROM tab1
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2942
SELECT 67 + + col0 DIV - - col1 AS col1, 36 AS col2 FROM tab1
----
68
36
70
36
84
36

skipif mysql # not compatible
query II rowsort label-2942
SELECT 67 + + col0 / - - col1 AS col1, 36 AS col2 FROM tab1
----
68
36
70
36
84
36

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT 75 + col0 - 45 * - CAST( NULL AS SIGNED ) * 75 + + + ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT 75 + col0 - 45 * - CAST ( NULL AS INTEGER ) * 75 + + + ( col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - 89 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - 89 IS NOT NULL
----
3

query I rowsort
SELECT 93 + + - col0 FROM tab0
----
-4
6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT 80 * + 43 - + + COUNT( + 34 ) col2 FROM tab2 AS cor0
----
3437

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2947
SELECT 80 * + 43 - + + COUNT ( + 34 ) col2 FROM tab2 AS cor0
----
3437

query I rowsort
SELECT ALL + + col1 + 7 AS col2 FROM tab2 AS cor0
----
58
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT + + CAST( 35 AS SIGNED ) FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-2949
SELECT + + CAST ( 35 AS INTEGER ) FROM tab2 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - COUNT( * ) + + - COUNT( * ) FROM tab2 WHERE - - 91 <> - 66
----
-6

skipif mysql # not compatible
query I rowsort label-2950
SELECT - COUNT ( * ) + + - COUNT ( * ) FROM tab2 WHERE - - 91 <> - 66
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT - SUM( ALL - CAST( + 0 AS SIGNED ) ) - - MAX( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 32 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2951
SELECT - SUM ( ALL - CAST ( + 0 AS INTEGER ) ) - - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 32 IS NULL
----
-15

query I rowsort
SELECT - col0 * + 99 FROM tab2 AS cor0
----
-4554
-6336
-7425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 39 + 59 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 IN ( - 16 * - - col0 - - - ( - col2 ) - + col1 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * col1 + - - col2 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 84 col1 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT ALL + - 94 AS col2 FROM tab0 AS cor0
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 43 + - + ( + 87 ) + - col0 * + - col0 >= NULL
----

query I rowsort
SELECT - - ( - 37 ) * - col2 FROM tab2 AS cor0
----
1480
2146
851

query I rowsort
SELECT ALL col1 * 37 AS col0 FROM tab0
----
2997
37
777

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <> - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2967
SELECT + col0 DIV + CAST( col0 AS SIGNED ) + - - 81 FROM tab0 cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2967
SELECT + col0 / + CAST ( col0 AS INTEGER ) + - - 81 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT + col2 + + ( - col1 ) AS col1 FROM tab1
----
21
54
82

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 59 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT - - 10 DIV - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2971
SELECT DISTINCT - - 10 / - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 + + + 8 FROM tab0 AS cor0
----
-7
-79
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT + - CAST( - 28 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + - CAST ( - 28 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
28

query I rowsort
SELECT - + 86 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT DISTINCT + + CAST( - 5 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + + CAST ( - 5 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT col2 * + + col0 * - col1 + - - 41 * col0 FROM tab2 AS cor0
----
-194496
-288375
-52072

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT - + 15 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-2977
SELECT - + 15 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-15
3

query II rowsort
SELECT ALL + - col1 AS col2, - col0 AS col1 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

query II rowsort
SELECT DISTINCT 86 + - + ( 42 ) * - col2 + + - 78, - 83 - - col2 AS col0 FROM tab0
----
1982
-36
4166
16
428
-73

query I rowsort
SELECT - col1 * 36 + + col0 FROM tab0 WHERE col1 / col1 <= NULL
----

query I rowsort
SELECT ALL - col0 * 69 - + col1 - + col1 FROM tab1
----
-3547
-5875
-6373

query I rowsort
SELECT ALL 20 - col0 FROM tab0
----
-67
-77
5

query II rowsort
SELECT 44 - - - col2, + col1 FROM tab0
----
-3
81
-55
1
34
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2984
SELECT + - 93 + + - 45, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-138
3

skipif mysql # not compatible
query II rowsort label-2984
SELECT + - 93 + + - 45, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-138
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT + COUNT( * ) + - + 77 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2985
SELECT + COUNT ( * ) + - + 77 FROM tab2 cor0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2986
SELECT DISTINCT + col2 - CAST( NULL AS DECIMAL ) AS col0, - 86 FROM tab1 AS cor0
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-2986
SELECT DISTINCT + col2 - CAST ( NULL AS REAL ) AS col0, - 86 FROM tab1 AS cor0
----
NULL
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + 31 / - col0
----

query II rowsort
SELECT col0 AS col2, + ( + 19 ) * + - col2 FROM tab0
----
15
-893
87
-190
97
-1881

query I rowsort
SELECT ALL 32 * 98 * col0 FROM tab1
----
159936
266560
285376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT + 71 DIV COUNT( * ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-2990
SELECT + 71 / COUNT ( * ) AS col0 FROM tab0
----
23

query I rowsort
SELECT + ( + + col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT COUNT( * ) AS col2, + COUNT( * ) col2 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2992
SELECT COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab1 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT + - 23, 35 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-23
32

skipif mysql # not compatible
query II rowsort label-2993
SELECT + - 23, 35 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-23
32

query II rowsort
SELECT ALL - col1 AS col0, 80 FROM tab1 AS cor0
----
-14
80
-47
80
-5
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT ( MAX( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT ( MAX ( + col0 ) ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL + 39 AS col2, col0 - 35 * + + ( + + col2 ) AS col1 FROM tab0 AS cor0
----
39
-1630
39
-263
39
-3368

query I rowsort
SELECT DISTINCT - ( + - 60 ) AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2998
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT MAX( + 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2999
SELECT MAX ( + 87 ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL 52 * + 92 * + COUNT( * ) FROM tab2
----
14352

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL 52 * + 92 * + COUNT ( * ) FROM tab2
----
14352

query I rowsort
SELECT DISTINCT - col1 * + col1 * 62 FROM tab1
----
-12152
-136958
-1550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 96 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT SUM( col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT SUM ( col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT DISTINCT ( 98 ) AS col1 FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL - 94 + COUNT( * ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - 94 + COUNT ( * ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - SUM( ALL + - col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - SUM ( ALL + - col2 ) AS col0 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + col0 - + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 / col0 col0 FROM tab1 AS cor0 WHERE NOT - 53 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3010
SELECT * FROM tab0 AS cor0 WHERE ( CAST( - col0 AS SIGNED ) * CAST( NULL AS DECIMAL ) ) < ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT * FROM tab0 AS cor0 WHERE ( CAST ( - col0 AS INTEGER ) * CAST ( NULL AS REAL ) ) < ( + col0 )
----

query I rowsort
SELECT ALL + ( 42 ) FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT col2 * + - col2 - + + 44 FROM tab0 AS cor0
----
-144
-2253
-9845

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col2 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( + col1 ) + - - col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT + - COUNT( * ) + + + ( - - 47 ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
44
-3

skipif mysql # not compatible
query II rowsort label-3015
SELECT + - COUNT ( * ) + + + ( - - 47 ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
44
-3

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3017
SELECT CAST( - - COUNT( * ) AS SIGNED ) + + MAX( col2 ) + - 74 DIV 25 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3017
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + + MAX ( col2 ) + - 74 / 25 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COUNT( * ) + - + 29 - - - COUNT( * ) AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3018
SELECT COUNT ( * ) + - + 29 - - - COUNT ( * ) AS col1 FROM tab1
----
-29

query III rowsort
SELECT * FROM tab0 WHERE ( + 52 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 * col0 * + col0 + - - col1 + + col0 - - 81 AS col2, - col0 AS col1 FROM tab0
----
3552
-15
658692
-87
912852
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - ( - COUNT( 84 ) ) * - + 29 FROM tab0 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3021
SELECT - ( - COUNT ( 84 ) ) * - + 29 FROM tab0 cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL + + COUNT( * ) + - + 65 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
-65

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL + + COUNT ( * ) + - + 65 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT 60 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT 60 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT ALL col0 DIV ( ( - 68 ) ) col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3024
SELECT ALL col0 / ( ( - 68 ) ) col0 FROM tab2
----
-1
0
0

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3026
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-3026
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT - CAST( col1 AS SIGNED ) * col1 * + ( + + 73 ) FROM tab2 AS cor0
----
-189873
-327697
-432817

skipif mysql # not compatible
query I rowsort label-3027
SELECT - CAST ( col1 AS INTEGER ) * col1 * + ( + + 73 ) FROM tab2 AS cor0
----
-189873
-327697
-432817

query I rowsort
SELECT DISTINCT - 86 * - col1 * ( + + col0 ) FROM tab1 AS cor0
----
36550
367822
61404

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - col0 AND - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - MAX( ALL + + 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3030
SELECT - MAX ( ALL + + 46 ) FROM tab1 AS cor0
----
-46

query II rowsort
SELECT ( - col0 ) AS col0, + ( - col2 ) FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-3032
SELECT ALL + + ( + col1 ), - col2 DIV - col2 FROM tab0 AS cor0
----
1
1
21
1
81
1

skipif mysql # not compatible
query II rowsort label-3032
SELECT ALL + + ( + col1 ), - col2 / - col2 FROM tab0 AS cor0
----
1
1
21
1
81
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT 83 AS col0, + MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
83
-5

skipif mysql # not compatible
query II rowsort label-3033
SELECT 83 AS col0, + MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
83
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT ALL COUNT( * ) DIV ( + - SUM( DISTINCT - - col0 ) ) + + COUNT( * ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT ALL COUNT ( * ) / ( + - SUM ( DISTINCT - - col0 ) ) + + COUNT ( * ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( + col2 * + col2 * + + col1 * - col0 IN ( - col2 * + - ( + 42 ), - col1 ) ) )
----

query I rowsort
SELECT - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col0 + + 7 AS col1 FROM tab0 AS cor0
----
-8
-80
-90

query I rowsort
SELECT DISTINCT 66 + 99 FROM tab2 AS cor0
----
165

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 + ( col0 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 15 col2 FROM tab1 AS cor0
----
-1020
-1440
-885

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT + col0 DIV + + 27 AS col2 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-3042
SELECT + col0 / + + 27 AS col2 FROM tab0 AS cor0
----
0
3
3

query I rowsort
SELECT ( + 65 ) AS col0 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 4 + + col1 + - col0 FROM tab0 AS cor0
----
-62
-92
70

query I rowsort
SELECT ALL col0 + + + col0 + - col2 - col0 * + 35 - - col2 AS col0 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT - 27 - col2 AS col2 FROM tab1
----
-123
-86
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 68 * 37 FROM tab1
----
51
2516
85
2516
91
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL + ( MIN( ALL - ( - col0 ) ) ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL + ( MIN ( ALL - ( - col0 ) ) ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT - CAST( - + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3051
SELECT - CAST ( - + col2 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT - AVG ( DISTINCT ( + col0 ) ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - - col1 ) * + - col2 + + - 84 AS col0 FROM tab1 AS cor0
----
-1428
-3280
-379

query I rowsort
SELECT ALL - col0 * + + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL 61 * + 71 AS col2 FROM tab2 AS cor0
----
4331
4331
4331

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + COUNT( DISTINCT col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + COUNT ( DISTINCT col0 ) FROM tab0
----
3

query II rowsort
SELECT + col2 AS col1, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT DISTINCT 39 * col0 DIV - - 95 FROM tab1
----
20
34
37

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT 39 * col0 / - - 95 FROM tab1
----
20
34
37

query I rowsort
SELECT - + col2 / + + col0 AS col2 FROM tab2 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT - 9 * - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - 9 * - COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT - 39 * + - 15 * + 5 AS col2 FROM tab2 AS cor0
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 = NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 NOT BETWEEN - col2 / col1 * + - col0 * + 56 AND + 29
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT - - col2 + + - CAST( NULL AS SIGNED ) + - - col0 / - + 66 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - - col2 + + - CAST ( NULL AS INTEGER ) + - - col0 / - + 66 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 93 AS col2 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT ALL - col2 + - 80 AS col2 FROM tab2 AS cor0
----
-103
-120
-138

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 95 * + - col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 15 * - 38 FROM tab0
----
-570
-570
-570

query I rowsort
SELECT col1 * - + ( - - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / col0 / + - 77 IS NULL
----

query I rowsort
SELECT col1 + - 1 * + - col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL ( + MIN( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL ( + MIN ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT + 11 + - col0 FROM tab1
----
-40
-74
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3075
SELECT * FROM tab1 WHERE - + 98 < + 83 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3075
SELECT * FROM tab1 WHERE - + 98 < + 83 + - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3077
SELECT DISTINCT * FROM tab2 WHERE - - 75 + col0 * + col2 IN ( - col1 * - 54 + - col1 + + 76 + - col0 + 0 + CAST( 30 AS SIGNED ) * + col0 - - 17, col0 )
----

skipif mysql # not compatible
query III rowsort label-3077
SELECT DISTINCT * FROM tab2 WHERE - - 75 + col0 * + col2 IN ( - col1 * - 54 + - col1 + + 76 + - col0 + 0 + CAST ( 30 AS INTEGER ) * + col0 - - 17, col0 )
----

query I rowsort
SELECT DISTINCT + ( col1 ) - col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3079
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3079
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 - col0 + + col2 AS col0 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL - - 42 - COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - - 42 - COUNT ( * ) FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT - COUNT( * ) * 68 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - COUNT ( * ) * 68 FROM tab0 AS cor0
----
-204

query I rowsort
SELECT DISTINCT - - 46 + - 33 AS col0 FROM tab2 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col1 + + 90, 51 col1 FROM tab0 AS cor0
----
132
51
252
51
92
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + col1 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL COUNT( - - ( - - 2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL COUNT ( - - ( - - 2 ) ) FROM tab1
----
3

query I rowsort
SELECT ( col0 ) * - + col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - COUNT( * ) * + 28 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-3089
SELECT - COUNT ( * ) * + 28 FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3090
SELECT DISTINCT col1 * col2 AS col2, CAST( NULL AS SIGNED ) * + - col1 * - col2 * 24 FROM tab1
----
1344
NULL
295
NULL
3196
NULL

skipif mysql # not compatible
query II rowsort label-3090
SELECT DISTINCT col1 * col2 AS col2, CAST ( NULL AS INTEGER ) * + - col1 * - col2 * 24 FROM tab1
----
1344
NULL
295
NULL
3196
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 19 * + ( + col0 ) > + + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - col0 * + + ( 36 ) AS col2 FROM tab1
----
-1836
-3060
-3276

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT DISTINCT col1 * + + CAST( col2 AS SIGNED ) col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3095
SELECT DISTINCT col1 * + + CAST ( col2 AS INTEGER ) col0 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT + 76 DIV - + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3096
SELECT + 76 / - + col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT IN ( - 48 - + col1 )
----

query I rowsort
SELECT + 77 + - col1 AS col1 FROM tab0 AS cor0
----
-4
56
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT ALL - 82 DIV COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - 82 / COUNT ( * ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT DISTINCT col0 + - - 63 FROM tab2 AS cor0
----
109
127
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT + + col1 * + ( - col1 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT + + col1 * + ( - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + + SUM( col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + + SUM ( col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - col0 + col0 + - col2 + + - col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT - col2 + + 88 FROM tab2 AS cor0
----
30
48
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT + + 63 + - COUNT( * ) + 27 + COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3105
SELECT + + 63 + - COUNT ( * ) + 27 + COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT + 9 + - col1 FROM tab1 AS cor0
----
-38
-5
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT + COUNT( * ) FROM tab0, tab0 AS cor0 WHERE 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE 50 IS NULL
----
0

query I rowsort
SELECT DISTINCT 63 FROM tab2 WHERE + col1 IS NOT NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL COUNT( * ) + + - ( + SUM( + col0 ) ) col0 FROM tab2
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT ALL COUNT ( * ) + + - ( + SUM ( + col0 ) ) col0 FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL COUNT( * ) * + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT col0 + + + 76 FROM tab1
----
127
161
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT + ( - ( - + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT + ( - ( - + COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT + ( + + COUNT( * ) ) col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3114
SELECT + ( + + COUNT ( * ) ) col2 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3115
SELECT col1 col2, col0 * - + CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) / + col0 / + col1 + - - col2 - 75 AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3115
SELECT col1 col2, col0 * - + CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) / + col0 / + col1 + - - col2 - 75 AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3116
SELECT - col0 DIV + 49 col0, col1 - + col2 AS col0 FROM tab2 AS cor0
----
-1
37
-1
9
0
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3116
SELECT - col0 / + 49 col0, col1 - + col2 AS col0 FROM tab2 AS cor0
----
-1
37
-1
9
0
28

query I rowsort
SELECT - ( + col0 ) - - 95 AS col0 FROM tab0 AS cor0
----
-2
8
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT - + col0 * + + col1 - - col0 DIV - col0 + col2 FROM tab1 AS cor0
----
-367
-4210
-619

skipif mysql # not compatible
query I rowsort label-3118
SELECT - + col0 * + + col1 - - col0 / - col0 + col2 FROM tab1 AS cor0
----
-367
-4210
-619

query I rowsort
SELECT ALL col1 + + 82 * - - col1 FROM tab1 AS cor0
----
1162
3901
415

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( col1 ) * + + 40 + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 19 IS NULL
----

query I rowsort
SELECT + 80 * + 98 AS col2 FROM tab0
----
7840
7840
7840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) col2, + 79 * - - col1 col0 FROM tab2
----
-51
4029
-67
5293
-77
6083

query II rowsort
SELECT ALL + col1 - + col1 AS col2, - col0 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT - + 50 AS col1 FROM tab2 AS cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - col2 >= col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3128
SELECT 11 DIV - + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3128
SELECT 11 / - + COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - ( 17 ) FROM tab2
----
-17

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT 18 * ( + + col2 ) DIV + + ( + col1 ) col0 FROM tab2
----
15
8
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3131
SELECT 18 * ( + + col2 ) / + + ( + col1 ) col0 FROM tab2
----
15
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL SUM( ALL 83 ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL SUM ( ALL 83 ) AS col0 FROM tab1
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT DISTINCT ( - - MIN( ALL - col1 ) ) AS col2, + 77 AS col1 FROM tab1
----
-47
77

skipif mysql # not compatible
query II rowsort label-3133
SELECT DISTINCT ( - - MIN ( ALL - col1 ) ) AS col2, + 77 AS col1 FROM tab1
----
-47
77

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = - ( - - col0 ) - 99 + + + 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT CAST( 72 AS SIGNED ) FROM tab1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-3135
SELECT CAST ( 72 AS INTEGER ) FROM tab1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT MAX( col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3136
SELECT MAX ( col1 ) AS col0 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab2
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT DISTINCT - CAST( 86 AS SIGNED ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - CAST ( 86 AS INTEGER ) FROM tab0 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ( ( - + ( - - COUNT( * ) ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3139
SELECT ( ( - + ( - - COUNT ( * ) ) ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - + 12 AS col1, + col2 * + col0 AS col2 FROM tab2 cor0
----
-12
1058
-12
2560
-12
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT - MAX( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3141
SELECT - MAX ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3143
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT + 66 * COUNT( * ) DIV 12 AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 66 * COUNT ( * ) / 12 AS col1 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - - 3 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + - col1 NOT BETWEEN col0 * - 96 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab1 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - col2 * + + col0 AS col0 FROM tab2 AS cor0 WHERE col0 + - + ( 7 ) <= + 22
----

query I rowsort
SELECT ALL col2 + + 80 AS col0 FROM tab0
----
127
179
90

query I rowsort
SELECT col2 + 7 FROM tab2
----
30
47
65

query I rowsort
SELECT - 6 + - 50 AS col1 FROM tab0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - MAX( - + col2 ) + ( - 95 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-3154
SELECT - MAX ( - + col2 ) + ( - 95 ) FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT 58 + + COUNT( * ) * + + SUM( DISTINCT + col0 ) FROM tab0
----
655

skipif mysql # not compatible
query I rowsort label-3155
SELECT 58 + + COUNT ( * ) * + + SUM ( DISTINCT + col0 ) FROM tab0
----
655

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT - MAX( - - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - MAX ( - - col0 ) FROM tab1
----
-91

query I rowsort
SELECT col1 * - - col1 + + - 82 * - - col1 FROM tab1
----
-1645
-385
-952

query I rowsort
SELECT DISTINCT 92 * - - 50 AS col2 FROM tab1
----
4600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - - 8 FROM tab2 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT + SUM( ALL + 57 ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-3161
SELECT + SUM ( ALL + 57 ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT ALL + col2 * - - col0 + - 70 FROM tab0 AS cor0
----
635
800
9533

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT - + COUNT( * ) col0 FROM tab2 WHERE - - 66 < col2 * - + CAST( col0 AS SIGNED ) + + 21
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3164
SELECT - + COUNT ( * ) col0 FROM tab2 WHERE - - 66 < col2 * - + CAST ( col0 AS INTEGER ) + + 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3165
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + COUNT( - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + COUNT ( - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL + COUNT( * ) * 70 * 88 FROM tab0 AS cor0
----
18480

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + COUNT ( * ) * 70 * 88 FROM tab0 AS cor0
----
18480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT - 30 DIV 62 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT - 30 / 62 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - 35, col1 FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

query II rowsort
SELECT + 78, col1 + - + col2 AS col1 FROM tab0 AS cor0
----
78
-98
78
11
78
34

query I rowsort
SELECT DISTINCT + - 40 AS col2 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - SUM( + ( + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3173
SELECT - SUM ( + ( + col0 ) ) FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 72 * 12 + - 72 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3175
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT - ( - 17 ) AS col0 FROM tab2 AS cor0
----
17

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 = + - col1 * col1 - - + col2 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( - col0 + - col1, col0, - 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 76 + col1 FROM tab2 AS cor0
----
3547
4941
5767

query I rowsort
SELECT DISTINCT + 14 + - col0 AS col1 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT DISTINCT + 58 * - CAST( + + col1 AS SIGNED ) + col1 DIV col1 * - 96 AS col1 FROM tab1
----
-2822
-386
-908

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + 58 * - CAST ( + + col1 AS INTEGER ) + col1 / col1 * - 96 AS col1 FROM tab1
----
-2822
-386
-908

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 54 + + + 5 + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-3183
SELECT 54 + + + 5 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT ALL col0 + - + col1 * + ( col0 ) - + 56 AS col2 FROM tab1
----
-396
-4242
-719

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 24 ) <> col2 + + col0 - + col2 * col1
----

query I rowsort
SELECT DISTINCT + + 77 * - ( + 8 ) * + 96 AS col2 FROM tab2 WHERE NOT NULL > + col2 / - col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT - AVG ( - 0 ) + + CAST( NULL AS SIGNED ) FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * + col2 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT - AVG ( - 0 ) + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * + col2 * col1 IS NULL
----
NULL

query II rowsort
SELECT - col1 * + 42 + - col1, col2 AS col2 FROM tab2
----
-2193
23
-2881
58
-3311
40

query I rowsort
SELECT + ( + - col2 ) + col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + SUM( ALL - col2 ) + + + COUNT( ALL + col2 ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-3190
SELECT + SUM ( ALL - col2 ) + + + COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
-118

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 = NULL
----

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 3 / + MAX( ALL - - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT 3 / + MAX ( ALL - - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3195
SELECT DISTINCT col1 * col1 + CAST( NULL AS DECIMAL ) * + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT col1 * col1 + CAST ( NULL AS REAL ) * + col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * + col1 + - - col2 / 37 * - 76 * col1 IS NULL
----

query I rowsort
SELECT - 35 - + col0 FROM tab1
----
-120
-126
-86

query III rowsort
SELECT * FROM tab2 WHERE - + ( - 32 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) + 83 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + 83 AS col0 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 0 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL + 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL + col2 * - - col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT DISTINCT + CAST( - 5 AS SIGNED ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT + CAST ( - 5 AS INTEGER ) FROM tab2 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 BETWEEN + col2 * + + col0 * - col1 + - + 49 + + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT - - 63 * + - COUNT( * ) FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT - - 63 * + - COUNT ( * ) FROM tab1 AS cor0
----
-189

query I rowsort
SELECT ALL - col0 * - 3 FROM tab1 cor0
----
153
255
273

query I rowsort
SELECT DISTINCT - 0 * + col0 * 15 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, + col1 col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT - col0, 41 * - + col2 AS col1 FROM tab2
----
-46
-943
-64
-1640
-75
-2378

onlyif mysql # DIV for integer division: 
query II rowsort label-3211
SELECT 18 DIV 89, - col2 - + 19 AS col2 FROM tab0
----
0
-118
0
-29
0
-66

skipif mysql # not compatible
query II rowsort label-3211
SELECT 18 / 89, - col2 - + 19 AS col2 FROM tab0
----
0
-118
0
-29
0
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT ALL MIN( + CAST( - 13 AS SIGNED ) ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL MIN ( + CAST ( - 13 AS INTEGER ) ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT DISTINCT 86 col0, + MAX( ALL - 38 ) AS col0 FROM tab1
----
86
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3213
SELECT DISTINCT 86 col0, + MAX ( ALL - 38 ) AS col0 FROM tab1
----
86
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - MIN( col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3214
SELECT - MIN ( col0 ) AS col1 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col2 FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - + col0 * col1 * 5 ) <= NULL
----

query II rowsort
SELECT ALL col1 + col1 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
162
-47
2
-99
42
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - MIN( col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3218
SELECT - MIN ( col2 ) AS col0 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab1
----
-59
-59
-59

query II rowsort
SELECT 63 * - + 24, col1 FROM tab2
----
-1512
51
-1512
67
-1512
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( - 14 ) * col0 < - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - + + col2 / 48 * - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col2 * 70 FROM tab2 AS cor0
----
-1610
-2800
-4060

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NULL = - col2
----

query I rowsort
SELECT ALL ( + col2 ) + + + ( + + col2 ) AS col0 FROM tab0
----
198
20
94

query III rowsort
SELECT * FROM tab0 WHERE - + col0 + + col1 * + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3228
SELECT - 26 + + CAST( NULL AS SIGNED ) + 23, col2 * - col2 * - 30 AS col1 FROM tab0
----
NULL
294030
NULL
3000
NULL
66270

skipif mysql # not compatible
query II rowsort label-3228
SELECT - 26 + + CAST ( NULL AS INTEGER ) + 23, col2 * - col2 * - 30 AS col1 FROM tab0
----
NULL
294030
NULL
3000
NULL
66270

onlyif mysql # DIV for integer division: 
query II rowsort label-3229
SELECT ALL + col1 - col2 DIV - col2 AS col2, - col2 AS col2 FROM tab0
----
2
-99
22
-10
82
-47

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL + col1 - col2 / - col2 AS col2, - col2 AS col2 FROM tab0
----
2
-99
22
-10
82
-47

query I rowsort
SELECT DISTINCT col1 * 11 AS col1 FROM tab2
----
561
737
847

query II rowsort
SELECT col0, - 53 - col2 AS col1 FROM tab0 AS cor0
----
15
-100
87
-63
97
-152

query I rowsort
SELECT + col2 - - + 15 AS col2 FROM tab1 AS cor0
----
111
74
83

query II rowsort
SELECT DISTINCT + 33 * + + col0 * - 31, + col1 AS col2 FROM tab2 AS cor0
----
-47058
51
-65472
77
-76725
67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3234
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE 7 * - col0 BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE 7 * - col0 BETWEEN + CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3235
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( + CAST( NULL AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-3235
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( + CAST ( NULL AS INTEGER ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT COUNT( - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT COUNT ( - col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + 82 + - 23 FROM tab1 WHERE NOT - 89 - 51 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL MIN( ALL + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL MIN ( ALL + col1 ) FROM tab0
----
1

query I rowsort
SELECT col0 - 66 FROM tab0
----
-51
21
31

query I rowsort
SELECT col1 / 80 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND ( - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT + COUNT( DISTINCT + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 19 * col0 IN ( - col0 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT 55 + COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3244
SELECT 55 + COUNT ( * ) FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT - col1 * CAST( NULL AS SIGNED ) + - 88 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3245
SELECT - col1 * CAST ( NULL AS INTEGER ) + - 88 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col1 ) ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 75 AS col2 FROM tab0 WHERE ( - col2 ) + col0 IS NOT NULL
----
75
75
75

query I rowsort
SELECT ALL 17 * 50 AS col1 FROM tab0 WHERE 14 = - 94 * col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL > - col1
----
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL > - col1
----
0

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col0 + - col1 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 * + 40 + col2 AS col2 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT + COUNT( 63 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3252
SELECT + COUNT ( 63 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3253
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) IN ( + CAST( + 17 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-3253
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IN ( + CAST ( + 17 AS INTEGER ) * col0 )
----

query I rowsort
SELECT ALL 89 + 66 FROM tab1
----
155
155
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT COUNT( * ) * + AVG ( col0 ) FROM tab2 WHERE ( col2 / col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT COUNT ( * ) * + AVG ( col0 ) FROM tab2 WHERE ( col2 / col0 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT + 97 * + CAST( col2 AS SIGNED ) - + col1 AS col1 FROM tab1
----
5718
6549
9298

skipif mysql # not compatible
query I rowsort label-3256
SELECT + 97 * + CAST ( col2 AS INTEGER ) - + col1 AS col1 FROM tab1
----
5718
6549
9298

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 48 * + 34
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 22 + 40 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT ALL 23 + - SUM( col0 ) DIV - 92 AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL 23 + - SUM ( col0 ) / - 92 AS col0 FROM tab2
----
25

query I rowsort
SELECT + ( 7 ) * - col1 AS col2 FROM tab2 AS cor0
----
-357
-469
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT DISTINCT col1 + + col2 DIV - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT col1 + + col2 / - col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 76 + - 95 FROM tab1 cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3264
SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT MIN( + col2 ) + 84 AS col0 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-3265
SELECT MIN ( + col2 ) + 84 AS col0 FROM tab1
----
143

query I rowsort
SELECT ( - 24 ) FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( - 97 ) IS NULL
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + - MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + - MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - col2 * - col2 IN ( + col2 / - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( - 98 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( - 98 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT - + COUNT( * ) + 64 AS col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - + COUNT ( * ) + 64 AS col0 FROM tab1 AS cor0
----
61

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col0 * - col1 AS col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + 71 * MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
6816

skipif mysql # not compatible
query I rowsort label-3274
SELECT + 71 * MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
6816

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 + - 81 FROM tab2 AS cor0
----
-132
-148
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT DISTINCT col0 + + col0 + col0 DIV col2 FROM tab1
----
102
171
183

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT col0 + + col0 + col0 / col2 FROM tab1
----
102
171
183

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( col2 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL - CAST( - 84 AS SIGNED ) AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - CAST ( - 84 AS INTEGER ) AS col1 FROM tab0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND col1
----

query I rowsort
SELECT DISTINCT col0 * - 82 + - col2 AS col0 FROM tab0
----
-1277
-7144
-8053

query I rowsort
SELECT ALL 8 + + col1 * col1 AS col0 FROM tab1
----
204
2217
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( - 22 * 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT + 67 - + COUNT( * ) AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + 67 - + COUNT ( * ) AS col2 FROM tab2
----
64

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) + col1 / col0 BETWEEN ( + col1 + - 79 ) AND NULL
----

query I rowsort
SELECT ALL - 61 * - - 63 + 73 FROM tab2
----
-3770
-3770
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE col2 = - 65
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE col2 = - 65
----
0

query I rowsort
SELECT 97 * - col1 FROM tab0 WHERE NULL <= col0 + col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL ( CAST( col0 AS SIGNED ) ) - + col2 AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL ( CAST ( col0 AS INTEGER ) ) - + col2 AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT col0 + + - 45 + - 68 * col1 AS col2 FROM tab1
----
-300
-3150
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL MIN( DISTINCT - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL MIN ( DISTINCT - - col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - COUNT( * ) * + - 49 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3292
SELECT - COUNT ( * ) * + - 49 FROM tab1 AS cor0
----
147

query I rowsort
SELECT col2 * 24 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT - SUM( ALL + ( 34 ) ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - SUM ( ALL + ( 34 ) ) FROM tab2 AS cor0
----
-102

query I rowsort
SELECT ALL - 15 * 28 AS col0 FROM tab2 AS cor0
----
-420
-420
-420

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3297
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT MIN( DISTINCT - ( 98 ) ) FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3299
SELECT MIN ( DISTINCT - ( 98 ) ) FROM tab1 AS cor0
----
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( + col0 )
----
15
81
47

query I rowsort
SELECT ALL + - 54 AS col1 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ( - col0 ) + col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT COUNT( ( + 67 ) ) FROM tab0 AS cor0 WHERE NOT ( - col2 / - ( 30 ) + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3303
SELECT COUNT ( ( + 67 ) ) FROM tab0 AS cor0 WHERE NOT ( - col2 / - ( 30 ) + col2 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= col1 - + 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - ( + SUM( ALL + 76 ) ) AS col2 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3305
SELECT - ( + SUM ( ALL + 76 ) ) AS col2 FROM tab1 AS cor0
----
-228

query I rowsort
SELECT ALL 33 * col1 AS col2 FROM tab0
----
2673
33
693

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( + col0 ) < + 5
----

query I rowsort
SELECT ALL 60 * + + 72 FROM tab2
----
4320
4320
4320

query I rowsort
SELECT col0 * - 96 FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT ALL - + ( 36 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT COUNT( * ) * - CAST( - COUNT( ALL + 47 ) AS SIGNED ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3312
SELECT COUNT ( * ) * - CAST ( - COUNT ( ALL + 47 ) AS INTEGER ) col1 FROM tab1
----
9

query I rowsort
SELECT 92 + - 30 FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT COUNT( * ) + - 75 AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3314
SELECT COUNT ( * ) + - 75 AS col2 FROM tab2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3315
SELECT DISTINCT + COUNT( ALL + + 38 ) AS col1, - CAST( + 81 AS SIGNED ) AS col1 FROM tab1
----
3
-81

skipif mysql # not compatible
query II rowsort label-3315
SELECT DISTINCT + COUNT ( ALL + + 38 ) AS col1, - CAST ( + 81 AS INTEGER ) AS col1 FROM tab1
----
3
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT DISTINCT + ( + MIN( 64 ) ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT + ( + MIN ( 64 ) ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * + + 78 AS col0 FROM tab1
----
3978
6630
7098

query II rowsort
SELECT DISTINCT 33 * col2 AS col2, + col0 FROM tab0
----
1551
15
3267
97
330
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3319
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN col1 * - 65 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3319
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col1 * - 65 AND NULL
----

query I rowsort
SELECT + 1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 88 NOT BETWEEN col2 * - ( col1 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT + - 37 + + COUNT( * ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT + - 37 + + COUNT ( * ) FROM tab2 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE col0 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE col0 <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - CAST( - - col0 AS SIGNED ) + + col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - CAST ( - - col0 AS INTEGER ) + + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT - - 61 * + AVG ( DISTINCT - 72 ) - - MIN( + 55 ) + - 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-3325
SELECT DISTINCT - - 61 * + AVG ( DISTINCT - 72 ) - - MIN ( + 55 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3326
SELECT ALL - + COUNT( * ) DIV - 27 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - + COUNT ( * ) / - 27 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + COUNT( * ) * MAX( + col1 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3327
SELECT + COUNT ( * ) * MAX ( + col1 ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT - + col2 + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-3328
SELECT - + col2 + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT - - col2 + + col1 * + 91 * + col1 FROM tab0 cor0
----
190
40141
597098

query I rowsort
SELECT DISTINCT + - 7 * 86 + col1 - 93 * col0 * col1 AS col0 FROM tab0 AS cor0
----
-113516
-170492
-9622

query I rowsort
SELECT DISTINCT 33 - + col1 FROM tab2
----
-18
-34
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - COUNT( * ) + - - 13 + + + 88 * - SUM( DISTINCT - + 42 ) * + + 28 + - 7 AS col2 FROM tab0
----
103491

skipif mysql # not compatible
query I rowsort label-3332
SELECT - COUNT ( * ) + - - 13 + + + 88 * - SUM ( DISTINCT - + 42 ) * + + 28 + - 7 AS col2 FROM tab0
----
103491

query I rowsort
SELECT ALL + 56 + col0 FROM tab0
----
143
153
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - COUNT( * ) + - ( COUNT( + 97 ) ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - COUNT ( * ) + - ( COUNT ( + 97 ) ) FROM tab2
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 BETWEEN NULL AND - + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL COUNT( * ) - - - SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL COUNT ( * ) - - - SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3337
SELECT DISTINCT - 81, - CAST( NULL AS SIGNED ) col2 FROM tab0
----
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3337
SELECT DISTINCT - 81, - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-81
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 12 + - col0 + - - col2 * col0 + 71 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT + COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT SUM( - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT SUM ( - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + - COUNT( - - col0 ) + + 89 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3343
SELECT + - COUNT ( - - col0 ) + + 89 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + + 88 + - + ( - 79 ) AS col0 FROM tab1 cor0
----
167
167
167

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT 35 + + + 82 DIV - col0 col0 FROM tab0 AS cor0
----
30
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT DISTINCT 35 + + + 82 / - col0 col0 FROM tab0 AS cor0
----
30
35

query I rowsort
SELECT ALL - 14 * + 58 FROM tab0 AS cor0 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + SUM( - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3347
SELECT + SUM ( - + col0 ) FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ALL 76 AS col1, - 33 FROM tab2 WHERE + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * - col0 col1 FROM tab1
----
-3723
-6205
-6643

query III rowsort
SELECT * FROM tab1 WHERE ( + 31 ) + + col1 NOT IN ( - 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3351
SELECT 72 * - - CAST( + col1 AS SIGNED ), - col0 AS col0 FROM tab2
----
3672
-46
4824
-75
5544
-64

skipif mysql # not compatible
query II rowsort label-3351
SELECT 72 * - - CAST ( + col1 AS INTEGER ), - col0 AS col0 FROM tab2
----
3672
-46
4824
-75
5544
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 0 NOT BETWEEN - ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE + 2 + - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE + 2 + - + col2 IS NULL
----
0

query I rowsort
SELECT 12 * - col1 * + - col1 + 64 FROM tab0 cor0
----
5356
76
78796

query I rowsort
SELECT ALL + + col2 + + 57 FROM tab2 AS cor0
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT - 86 + - MAX( col0 ) FROM tab2 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-3356
SELECT - 86 + - MAX ( col0 ) FROM tab2 AS cor0
----
-161

query I rowsort
SELECT DISTINCT - 64 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-64

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + col2 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT 69 * + ( + col0 ) - - 43 + - col2 - - col1 * col1 DIV - 90 FROM tab0
----
6032
6637
959

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT 69 * + ( + col0 ) - - 43 + - col2 - - col1 * col1 / - 90 FROM tab0
----
6032
6637
959

query I rowsort
SELECT 55 * 68 * + col0 FROM tab1
----
190740
317900
340340

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3361
SELECT DISTINCT - CAST( - - CAST( - col0 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - CAST ( - - CAST ( - col0 AS REAL ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col1 * col1 + col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col1 * - col2 + + col0 AS col2 FROM tab0 cor0
----
-123
-2
-3792

query I rowsort
SELECT - + col2 * - + 80 FROM tab0 AS cor0
----
3760
7920
800

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + 30 NOT BETWEEN ( + ( - - col0 ) + col2 / col2 ) AND + ( col2 ) * 43 AND + col0 * + col1 BETWEEN ( + col1 / col1 - - ( col1 + col2 ) ) AND NULL
----

query I rowsort
SELECT - 95 AS col0 FROM tab2
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL COUNT( ALL col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL COUNT ( ALL col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - COUNT( - + col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3369
SELECT - COUNT ( - + col1 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3371
SELECT COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - 20 * + + 81 AS col1 FROM tab0
----
-1620
-1620
-1620

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col0 IS NULL
----
15
87
97

query I rowsort
SELECT col2 + + col0 * - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 54 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 76 AS col2, 10 + + 97 FROM tab2 AS cor0
----
76
107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3377
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT IN ( + CAST( + col2 AS SIGNED ) * - - col1 + - - col1 - + col2, 53 * + 63 + + - CAST( NULL AS SIGNED ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-3377
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT IN ( + CAST ( + col2 AS INTEGER ) * - - col1 + - - col1 - + col2, 53 * + 63 + + - CAST ( NULL AS INTEGER ) / - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT - 98 AS col0, + MIN( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
-98
59

skipif mysql # not compatible
query II rowsort label-3378
SELECT - 98 AS col0, + MIN ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
-98
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + + col0 + - + col1 * 53 AS col1 FROM tab0 cor0
----
-1036
-4325
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col1 col2, col0 FROM tab2
----
117
64
125
75
74
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3382
SELECT + col2 + col2 - ( 5 ) * - - CAST( NULL AS DECIMAL ), 34 * - 19 * - col0 AS col1 FROM tab1
----
NULL
32946
NULL
54910
NULL
58786

skipif mysql # not compatible
query II rowsort label-3382
SELECT + col2 + col2 - ( 5 ) * - - CAST ( NULL AS REAL ), 34 * - 19 * - col0 AS col1 FROM tab1
----
NULL
32946
NULL
54910
NULL
58786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col2 FROM tab1 WHERE NOT + col0 * + col2 * - col1 + col0 * - 89 IS NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - COUNT( * ) * + SUM( DISTINCT + - 27 ) + - COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3384
SELECT - COUNT ( * ) * + SUM ( DISTINCT + - 27 ) + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
72

query I rowsort
SELECT ALL + + 65 AS col2 FROM tab2 cor0
----
65
65
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR + 53 + ( + 64 ) - + 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( 10 ) AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL = + col2 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * 91 col2 FROM tab2 AS cor0
----
2093
3640
5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3390
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3391
SELECT DISTINCT 65 AS col2, col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE CAST( + ( 29 ) AS SIGNED ) * - CAST( + + col2 AS SIGNED ) < col0 * - col0 + + 49
----
65
NULL

skipif mysql # not compatible
query II rowsort label-3391
SELECT DISTINCT 65 AS col2, col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE CAST ( + ( 29 ) AS INTEGER ) * - CAST ( + + col2 AS INTEGER ) < col0 * - col0 + + 49
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT COUNT( * ) - 9 AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT COUNT ( * ) - 9 AS col2 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT - 90 + COUNT( * ) AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT - 90 + COUNT ( * ) AS col2 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL COUNT( * ) FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + 64 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + 64 IS NOT NULL
----
9

query I rowsort
SELECT DISTINCT - 62 - + col2 + + - col2 AS col0 FROM tab0 AS cor0
----
-156
-260
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT + COUNT( ALL + col0 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT + COUNT ( ALL + col0 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 * col0 * - - col0 + + col1, col1 FROM tab0 AS cor0
----
158970
21
18306
81
9410
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT DISTINCT + col0 DIV + + ( 21 ) AS col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT + col0 / + + ( 21 ) AS col0 FROM tab0 AS cor0
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + ( - + MIN( ALL - 9 ) ) * + 87 AS col0 FROM tab2 AS cor0
----
783

skipif mysql # not compatible
query I rowsort label-3400
SELECT + ( - + MIN ( ALL - 9 ) ) * + 87 AS col0 FROM tab2 AS cor0
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + MAX( ALL + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3401
SELECT + MAX ( ALL + + col1 ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * + col2 col1 FROM tab2
----
-2139
-3720
-5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT - COUNT( * ) / MAX( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - COUNT ( * ) / MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col0 FROM tab2
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col2 + + col2 FROM tab2 AS cor0 WHERE ( - 86 ) IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT SUM( DISTINCT + col1 ) + 64 FROM tab0
----
167

skipif mysql # not compatible
query I rowsort label-3408
SELECT SUM ( DISTINCT + col1 ) + 64 FROM tab0
----
167

query I rowsort
SELECT ( + 93 ) + col2 FROM tab1 AS cor0
----
152
161
189

query I rowsort
SELECT col2 / - - col1 / col1 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - 88 + + col0 * col0 FROM tab0 cor0
----
137
7481
9321

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT col2 + + ( - - col1 ) + - 22 DIV + 70 FROM tab2 cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-3412
SELECT col2 + + ( - - col1 ) + - 22 / + 70 FROM tab2 cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT + ( + 76 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-3413
SELECT + ( + 76 ) / col1 AS col0 FROM tab0 AS cor0
----
0
3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - ( + ( - COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3414
SELECT - ( + ( - COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + 9 ) * + ( + col0 ) + - - 8 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT + - COUNT( * ) - + CAST( + + SUM( ALL - 76 ) AS SIGNED ) AS col1 FROM tab0 WHERE + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT + - COUNT ( * ) - + CAST ( + + SUM ( ALL - 76 ) AS INTEGER ) AS col1 FROM tab0 WHERE + + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + 29 - - col0 FROM tab2
----
-1288
-1792
-2100

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= + + 12 + + col1
----
15
81
47

query I rowsort
SELECT + + 57 + + 65 FROM tab2 WHERE NULL <> col2
----

query II rowsort
SELECT ALL col0 AS col0, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT + col1 - 24 DIV - 8 + - col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3421
SELECT + col1 - 24 / - 8 + - col1 FROM tab2
----
3
3
3

query I rowsort
SELECT + col1 - + - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - col2 FROM tab0 WHERE ( NULL ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT 14 * + MAX( DISTINCT + col2 ) FROM tab2
----
812

skipif mysql # not compatible
query I rowsort label-3424
SELECT 14 * + MAX ( DISTINCT + col2 ) FROM tab2
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT - - 94 * + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - - 94 * + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - + col1 col1, + 9 AS col0 FROM tab0 AS cor0
----
-210
9
-3807
9
-99
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col2 / - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT 9 * - - MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-3428
SELECT 9 * - - MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
891

query I rowsort
SELECT - 96 * - + 83 FROM tab1 AS cor0
----
7968
7968
7968

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 / - col0 IN ( + col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT + MIN( col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3431
SELECT DISTINCT + MIN ( col2 ) col2 FROM tab1 AS cor0
----
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT MIN( ALL - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - - col1 + + col0, ( col0 ) - + 29, col0 + 20 * col1, - col1 )
----

query I rowsort
SELECT ALL + ( + - col1 ) * col2 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT 20 DIV - col2 FROM tab1 WHERE NOT + 45 + + + ( - col1 ) * - + col1 BETWEEN col0 AND 46
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT 20 / - col2 FROM tab1 WHERE NOT + 45 + + + ( - col1 ) * - + col1 BETWEEN col0 AND 46
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3439
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 99 >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3443
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + CAST( 7 AS SIGNED ), 81 / + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3443
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + CAST ( 7 AS INTEGER ), 81 / + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND - + ( + + 71 )
----

query I rowsort
SELECT DISTINCT - col2 * - 22 + + 17 AS col1 FROM tab2 AS cor0
----
1293
523
897

onlyif mysql # DIV for integer division: 
query II rowsort label-3446
SELECT ALL - + 16 DIV - 68 AS col1, + col2 AS col0 FROM tab1 cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-3446
SELECT ALL - + 16 / - 68 AS col1, + col2 AS col0 FROM tab1 cor0
----
0
59
0
68
0
96

query I rowsort
SELECT ALL - + col0 * - col2 * - + ( col2 ) + + + 14 + - col0 FROM tab0 cor0
----
-33136
-8773
-950780

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT - MAX( + ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - MAX ( + ( col0 ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT + + col1 + + col2, col0 + 23 AS col2 FROM tab1 AS cor0
----
110
74
115
114
64
108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + col2 + + + 71 + + + col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT - 59 * ( COUNT( * ) ) * COUNT( + + col0 ) DIV - 49 + + 99 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - 59 * ( COUNT ( * ) ) * COUNT ( + + col0 ) / - 49 + + 99 FROM tab2 AS cor0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - MAX( + col2 ) + 42 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - MAX ( + col2 ) + 42 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT DISTINCT + col0 + 92 FROM tab2
----
138
156
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT COUNT( 18 ) + + + 59 AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( 18 ) + + + 59 AS col0 FROM tab2
----
62

query I rowsort
SELECT DISTINCT col0 * col1 - + - col0 AS col1 FROM tab0
----
1230
1914
194

query I rowsort
SELECT ALL col2 + - 68 + + col0 * - col0 FROM tab1
----
-2573
-7234
-8281

query I rowsort
SELECT - 60 * + + 24 * + col0 FROM tab1
----
-122400
-131040
-73440

query I rowsort
SELECT 12 FROM tab0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT 87 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3460
SELECT 87 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 76 FROM tab0 AS cor0 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT ALL - 79 + + - 48 FROM tab1 AS cor0
----
-127
-127
-127

onlyif mysql # DIV for integer division: 
query II rowsort label-3463
SELECT ( 3 ) * col2 - col0 + + 73 DIV - - col2, col1 * - + col0 * + 92 AS col1 FROM tab2 AS cor0
----
100
-462300
26
-215832
57
-453376

skipif mysql # not compatible
query II rowsort label-3463
SELECT ( 3 ) * col2 - col0 + + 73 / - - col2, col1 * - + col0 * + 92 AS col1 FROM tab2 AS cor0
----
100
-462300
26
-215832
57
-453376

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL SUM( DISTINCT - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL SUM ( DISTINCT - col1 ) AS col2 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN - + col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 5 + + 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3468
SELECT ALL CAST( NULL AS SIGNED ), - 53 * - + col2 AS col2 FROM tab1 AS cor0
----
NULL
3127
NULL
3604
NULL
5088

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL CAST ( NULL AS INTEGER ), - 53 * - + col2 AS col2 FROM tab1 AS cor0
----
NULL
3127
NULL
3604
NULL
5088

query II rowsort
SELECT col2 AS col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT + COUNT( + 74 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3470
SELECT DISTINCT + COUNT ( + 74 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT - COUNT( * ) AS col0, - 93 FROM tab2 AS cor0
----
-3
-93

skipif mysql # not compatible
query II rowsort label-3471
SELECT - COUNT ( * ) AS col0, - 93 FROM tab2 AS cor0
----
-3
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 34 * - 89 * + - col1 AS col2 FROM tab0 AS cor0
----
245106
3026
63546

query II rowsort
SELECT ALL + - 41, + col0 * ( 55 ) AS col2 FROM tab0 AS cor0
----
-41
4785
-41
5335
-41
825

query I rowsort
SELECT ALL - ( + - ( - ( + - col0 ) ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 34 col2, - col1 + ( 98 ) FROM tab0 AS cor0
----
-34
17
-34
77
-34
97

query I rowsort
SELECT - ( - col0 ) * + ( + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT + MAX( 72 ) * 57 FROM tab0
----
4104

skipif mysql # not compatible
query I rowsort label-3478
SELECT + MAX ( 72 ) * 57 FROM tab0
----
4104

query I rowsort
SELECT DISTINCT 32 * col0 * - col0 FROM tab0
----
-242208
-301088
-7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3480
SELECT + col1 * ( + + CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NOT + 21 BETWEEN col2 AND - col0 + + col1 + - 79 / - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT + col1 * ( + + CAST ( NULL AS REAL ) ) FROM tab1 WHERE NOT + 21 BETWEEN col2 AND - col0 + + col1 + - 79 / - col1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL - COUNT( * ) * - ( + MAX( DISTINCT + col2 ) ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - COUNT ( * ) * - ( + MAX ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3483
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) * 6 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * 6 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * - col2 * 72 * - 6 FROM tab0
----
304560
375840
4148496

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL 5 * - + COUNT( ALL col2 ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL 5 * - + COUNT ( ALL col2 ) AS col0 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT - + MIN( + col0 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - + MIN ( + col0 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3487
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = col0 / - - ( col1 ) / + 8 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3487
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = col0 / - - ( col1 ) / + 8 * - CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col2 col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - MAX( ALL - col2 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT - MAX ( ALL - col2 ) AS col2 FROM tab1 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 47 AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - col0 + - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col1 col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - - COUNT( - 78 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3494
SELECT - - COUNT ( - 78 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - 46 AS col2, col1 * 55 FROM tab1 AS cor0
----
-46
2585
-46
275
-46
770

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT - - 60 DIV - 74 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT - - 60 / - 74 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT + - col1 + + col1 - + col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT + 24, - 47 FROM tab1 WHERE - 17 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL MIN( - + col1 ) + MAX( ALL 63 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL MIN ( - + col1 ) + MAX ( ALL 63 ) FROM tab1
----
16

query I rowsort
SELECT col0 * - - 72 - 84 FROM tab1
----
3588
6036
6468

query I rowsort
SELECT 84 - col1 FROM tab2
----
17
33
7

query I rowsort
SELECT DISTINCT col0 * + 57 - + 2 + + - 79 + col1 FROM tab2
----
2592
3644
4261

query I rowsort
SELECT + - ( + 73 ) + col0 + + 48 AS col0 FROM tab2 AS cor0
----
21
39
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + ( + MIN( ALL - + ( + - 30 ) ) ) col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3505
SELECT ALL + ( + MIN ( ALL - + ( + - 30 ) ) ) col0 FROM tab0 AS cor0
----
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3507
SELECT - CAST( NULL AS SIGNED ) col2, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3507
SELECT - CAST ( NULL AS INTEGER ) col2, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT DISTINCT - - 58 AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + + 80 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + SUM( + - col1 ) * - - COUNT( * ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-3512
SELECT + SUM ( + - col1 ) * - - COUNT ( * ) FROM tab0
----
-309

query I rowsort
SELECT + 50 * + col1 AS col2 FROM tab0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( * ) * - - 22 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( * ) * - - 22 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3515
SELECT CAST( - col0 AS SIGNED ) AS col0, col0 FROM tab1
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-3515
SELECT CAST ( - col0 AS INTEGER ) AS col0, col0 FROM tab1
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 1 + col0 + 14 FROM tab1
----
100
106
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT - col0 DIV col2 + - + 17 DIV + - col2 + - 5 FROM tab0
----
-12
-5
-5

skipif mysql # not compatible
query I rowsort label-3518
SELECT - col0 / col2 + - + 17 / + - col2 + - 5 FROM tab0
----
-12
-5
-5

query I rowsort
SELECT col1 + - 22 FROM tab1
----
-17
-8
25

query I rowsort
SELECT col1 + + - col2 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT ALL - col1, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT + + ( + - col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT COUNT( * ) + + ( - COUNT( * ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT COUNT ( * ) + + ( - COUNT ( * ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ( + + 95 ) FROM tab1
----
95
95
95

query I rowsort
SELECT ALL ( - - 64 ) + - col2 FROM tab2
----
24
41
6

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL ( + 51 ) AS col2, col0 AS col2 FROM tab1 AS cor0
----
51
51
51
85
51
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 15 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT + 93 * + - col2 FROM tab0 AS cor0
----
-4371
-9207
-930

query I rowsort
SELECT ALL + ( + 71 ) AS col1 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT DISTINCT - COUNT( * ) * - - MIN( + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - COUNT ( * ) * - - MIN ( + col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 6 + - col2 + - + 89 * + - col2 * - col1 FROM tab0 AS cor0
----
-18706
-338876
-8916

query I rowsort
SELECT - col0 + + 0 AS col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + 19 col1 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT 33 + + col1 AS col2 FROM tab0
----
114
34
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT col1 FROM tab0 WHERE + 22 * - col2 * 44 / - col0 + + CAST( + col2 AS SIGNED ) * - + col1 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3537
SELECT col1 FROM tab0 WHERE + 22 * - col2 * 44 / - col0 + + CAST ( + col2 AS INTEGER ) * - + col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT ( + + ( - ( - - col1 ) ) ) - + - col0 AS col2 FROM tab1
----
37
44
80

query II rowsort
SELECT ALL - 18, col0 FROM tab2 AS cor0
----
-18
46
-18
64
-18
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT - + MAX( + 71 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3540
SELECT - + MAX ( + 71 ) FROM tab0 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col1, 91 * + - ( - col1 ) FROM tab2 AS cor0
----
57
4641
57
6097
57
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT col0 DIV - 82 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT col0 / - 82 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT 97 AS col2 FROM tab0 cor0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 52 * + 80 >= + col1 + + col2
----

query II rowsort
SELECT + ( + col1 ), + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - + 25 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
1475
1700
2400

query I rowsort
SELECT + + col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + 79 * col0 col1 FROM tab1 AS cor0
----
386784
396185
488852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT ( - CAST( + AVG ( ALL + 54 ) AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ( - CAST ( + AVG ( ALL + 54 ) AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT 46 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3550
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT 46 IS NULL
----
-3

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + + col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT MIN( - ( + 75 ) ) AS col1 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT MIN ( - ( + 75 ) ) AS col1 FROM tab0
----
-75

query I rowsort
SELECT - + 89 * - col1 AS col0 FROM tab0 AS cor0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT - COUNT( * ) + + MIN( ALL col1 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3554
SELECT - COUNT ( * ) + + MIN ( ALL col1 ) FROM tab1 AS cor0
----
2

query III rowsort
SELECT * FROM tab2 WHERE + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3556
SELECT ALL * FROM tab1 WHERE NOT + col2 * col0 NOT BETWEEN NULL AND - col2 * - CAST( NULL AS SIGNED ) - - - 40 / 57 * - - col1
----

skipif mysql # not compatible
query III rowsort label-3556
SELECT ALL * FROM tab1 WHERE NOT + col2 * col0 NOT BETWEEN NULL AND - col2 * - CAST ( NULL AS INTEGER ) - - - 40 / 57 * - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT CAST( + COUNT( ALL - - 11 ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT CAST ( + COUNT ( ALL - - 11 ) AS INTEGER ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( - col1 ) - + - 47 + + ( 2 ) - - - col2 BETWEEN NULL AND - col2 - - - 67 * 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL - CAST( NULL AS SIGNED ) - + 27 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - CAST ( NULL AS INTEGER ) - + 27 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT COUNT( + 22 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3560
SELECT COUNT ( + 22 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 17 * + 70 * - col2 AS col0 FROM tab2 AS cor0
----
-27370
-47600
-69020

query I rowsort
SELECT ALL + + col2 + - + 76 AS col2 FROM tab2 AS cor0
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3563
SELECT + 54 col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3563
SELECT + 54 col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3564
SELECT * FROM tab1 AS cor0 WHERE ( NOT 84 + - CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3564
SELECT * FROM tab1 AS cor0 WHERE ( NOT 84 + - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT DISTINCT + col2 + - 29 DIV col0 * + 40 * + - 14 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + col2 + - 29 / col0 * + 40 * + - 14 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 + - col0 * col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 23 col0 FROM tab2 AS cor0
----
-51
23
-67
23
-77
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 WHERE + 95 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT ALL COUNT( * ) + + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL COUNT ( * ) + + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> ( 12 / + - 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT + 13 * + 23 * + COUNT( * ) FROM tab2
----
897

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + 13 * + 23 * + COUNT ( * ) FROM tab2
----
897

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3572
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( + col1 AS DECIMAL ) * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( + col1 AS REAL ) * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + 22 * - 29 FROM tab0 AS cor0
----
-638

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3575
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3575
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - - 38 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab1 cor0
----
89

query II rowsort
SELECT DISTINCT + - 98, 70 AS col1 FROM tab1 AS cor0
----
-98
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3579
SELECT - ( + + col1 ) col1 FROM tab2 AS cor0 WHERE NOT - ( - + 37 ) + - 70 * - 62 IN ( + + col1, col1, 60, + col0, - ( - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT - ( + + col1 ) col1 FROM tab2 AS cor0 WHERE NOT - ( - + 37 ) + - 70 * - 62 IN ( + + col1, col1, 60, + col0, - ( - CAST ( NULL AS REAL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + COUNT( * ) * - + 9 AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3580
SELECT + COUNT ( * ) * - + 9 AS col1 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3581
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col1 * - ( - CAST( NULL AS DECIMAL ) ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3581
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col1 * - ( - CAST ( NULL AS REAL ) ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, + 94 FROM tab2 AS cor0
----
51
94
67
94
77
94

query I rowsort
SELECT DISTINCT col0 + - + col0 * - + 80 * + 99 FROM tab2
----
364366
506944
594075

query I rowsort
SELECT DISTINCT + col0 + - col0 - + col2 * + + col0 * 98 * + - 84 AS col0 FROM tab1
----
40303872
41283480
50939616

query I rowsort
SELECT + col1 * - col2 + - col2 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + 3 + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 3 + + COUNT ( * ) AS col0 FROM tab2
----
6

query II rowsort
SELECT - 31 * + ( - col0 ) + col1 + + col1 AS col0, - col2 AS col0 FROM tab2
----
1528
-23
2138
-40
2459
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + - + col1 col1 FROM tab0
----
-20
-80
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 77 + col1 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + MAX( ALL 11 ) * 78 FROM tab1
----
858

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + MAX ( ALL 11 ) * 78 FROM tab1
----
858

query II rowsort
SELECT ALL + - ( + 77 ), + ( - col2 ) AS col2 FROM tab2 cor0
----
-77
-23
-77
-40
-77
-58

query I rowsort
SELECT DISTINCT - col1 + - col2 - + 54 FROM tab2 AS cor0
----
-128
-171
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT + COUNT( * ) - 38 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + COUNT ( * ) - 38 FROM tab1 cor0
----
-35

query I rowsort
SELECT ALL col0 * - 22 + + col0 AS col1 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT DISTINCT - + ( - - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) + - - col1 IN ( - - ( - 37 ) + 35, - 12, + 4 * + - col1 / - - col0, - - col1 - + col2 * - + col2 )
----

query I rowsort
SELECT - - col2 + + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT + + 44 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 * + ( + 50 ) AS col1 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( + 59 ) AS col0 FROM tab0 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col2 FROM tab1
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3604
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-3604
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT DISTINCT 73 * 56 AS col1 FROM tab2
----
4088

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 < + + 57 / 56
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3607
SELECT DISTINCT - CAST( col0 AS SIGNED ) DIV + 30 AS col2 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - CAST ( col0 AS INTEGER ) / + 30 AS col2 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL COUNT( - 72 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3608
SELECT ALL COUNT ( - 72 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NOT ( NULL <= 17 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 + + 89 AS col0 FROM tab2 AS cor0
----
135
153
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + - MAX( DISTINCT - col1 ) + + + COUNT( * ) + - + 18 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3612
SELECT + - MAX ( DISTINCT - col1 ) + + + COUNT ( * ) + - + 18 FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT col1 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 63 AS col1 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT 20 * 38 * + col0 FROM tab1 AS cor0
----
38760
64600
69160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3616
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + - 86 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 / col0 + - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 / col0 + - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT - COUNT( DISTINCT + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3620
SELECT ALL col2 AS col1, col0 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3620
SELECT ALL col2 AS col1, col0 * - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query III rowsort
SELECT * FROM tab2 WHERE NULL = 49
----

query I rowsort
SELECT ALL - col1 + - 32 + + 99 * col0 AS col0 FROM tab0
----
1372
8560
9570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT - + MIN( ALL - CAST( NULL AS SIGNED ) ) * 61 FROM tab1 WHERE NULL <> ( + col1 ) * - 87 - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT - + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 61 FROM tab1 WHERE NULL <> ( + col1 ) * - 87 - + 74
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3627
SELECT + COUNT( * ) - - COUNT( * ) DIV + 86 + + MAX( ALL - col1 ), + ( + COUNT( * ) ) + - 42 AS col2 FROM tab1 AS cor0
----
-2
-39

skipif mysql # not compatible
query II rowsort label-3627
SELECT + COUNT ( * ) - - COUNT ( * ) / + 86 + + MAX ( ALL - col1 ), + ( + COUNT ( * ) ) + - 42 AS col2 FROM tab1 AS cor0
----
-2
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - MAX( DISTINCT - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3629
SELECT ALL + CAST( - 15 AS SIGNED ) AS col1, - 24 AS col1 FROM tab1 cor0
----
-15
-24
-15
-24
-15
-24

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL + CAST ( - 15 AS INTEGER ) AS col1, - 24 AS col1 FROM tab1 cor0
----
-15
-24
-15
-24
-15
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + + COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3630
SELECT + + COUNT ( * ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT + + col1 DIV + 63 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3631
SELECT + + col1 / + 63 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL 90 AS col0 FROM tab0 cor0
----
90
90
90

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + - ( + col1 ) + - col2 * + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + - ( + col1 ) + - col2 * + col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT + SUM( + + 68 ) AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + SUM ( + + 68 ) AS col2 FROM tab0
----
204

query I rowsort
SELECT DISTINCT - col1 * + - 97 * col2 FROM tab1
----
130368
28615
310012

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - - ( + - ( + col1 ) ) - 96 - + col1 + 93 * + 38 BETWEEN - ( 29 ) AND NULL
----

query II rowsort
SELECT + col0, + col1 + - + ( + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 98 IS NOT NULL
----

query III rowsort
SELECT DISTINCT + col2 AS col1, 2 + 77, + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 231f0049ffdaa881506e079b89490101

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL + 94 + COUNT( * ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + 94 + COUNT ( * ) AS col1 FROM tab0 cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT + 57 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 57 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col2 AS col0, - 59 FROM tab0
----
10
-59
47
-59
99
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + COUNT( * ) * 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3644
SELECT + COUNT ( * ) * 11 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT - 62 * COUNT( * ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - 62 * COUNT ( * ) FROM tab2 AS cor0
----
-186

query I rowsort
SELECT DISTINCT + + 99 FROM tab1 AS cor0 WHERE ( NULL ) > - + col1
----

query II rowsort
SELECT + + col0 * - col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - 72 + - + COUNT( * ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - 72 + - + COUNT ( * ) FROM tab1 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT DISTINCT - + CAST( - 25 AS SIGNED ) + - - col1 + + - col0 + col1 * + ( + col1 ) FROM tab0 AS cor0
----
-70
400
6652

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - + CAST ( - 25 AS INTEGER ) + - - col1 + + - col0 + col1 * + ( + col1 ) FROM tab0 AS cor0
----
-70
400
6652

query I rowsort
SELECT DISTINCT + - 40 FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT + + CAST( - 10 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
-9
11
71

skipif mysql # not compatible
query I rowsort label-3653
SELECT + + CAST ( - 10 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
-9
11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + SUM( + col0 ) + - - 36 FROM tab2 AS cor0
----
221

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + SUM ( + col0 ) + - - 36 FROM tab2 AS cor0
----
221

query I rowsort
SELECT DISTINCT 47 + 42 - - 54 * - col1 FROM tab1 AS cor0
----
-181
-2449
-667

query I rowsort
SELECT DISTINCT col1 * - ( ( col1 ) ) + col0 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT + col2 + + ( - col1 ) FROM tab2 cor0
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 * - ( - + ( - col2 ) ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 36 + - col1 FROM tab0
----
-45
15
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + COUNT( * ) + - COUNT( + - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT + COUNT ( * ) + - COUNT ( + - col1 ) FROM tab0
----
0

query I rowsort
SELECT + 96 + + + col2 FROM tab0
----
106
143
195

query II rowsort
SELECT ALL 74 + - - col0 AS col0, - col0 * - col2 AS col2 FROM tab2
----
120
1058
138
2560
149
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT - col1 + + col2 * + CAST( NULL AS SIGNED ) * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT - col1 + + col2 * + CAST ( NULL AS INTEGER ) * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col1 FROM tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT + ( + + 8 ) AS col2 FROM tab0 cor0
----
8

query I rowsort
SELECT 33 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT + col0 DIV - col0 - col1 * col2 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif mysql # not compatible
query I rowsort label-3667
SELECT + col0 / - col0 - col1 * col2 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 - 46 col0 FROM tab1 AS cor0
----
-112
-112
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + SUM( ALL - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-837

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + SUM ( ALL - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-837

query I rowsort
SELECT - 28 - + col2 * + 51 FROM tab1
----
-3037
-3496
-4924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3671
SELECT ALL COUNT( * ) DIV + 23 + + CAST( + - 72 AS SIGNED ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL COUNT ( * ) / + 23 + + CAST ( + - 72 AS INTEGER ) FROM tab0
----
-72

query II rowsort
SELECT + col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, - 66 FROM tab0 AS cor0
----
10
-66
47
-66
99
-66

query II rowsort
SELECT - + col0, col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - MAX( - ( - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3676
SELECT - MAX ( - ( - col1 ) ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT - col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + + 18 AS col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT SUM( - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3679
SELECT SUM ( - - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 94 * - col2 - + col0 FROM tab1 cor0 WHERE NOT 82 + - + 59 BETWEEN col1 AND - 57
----
5461
6301
8973

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT ALL col1 DIV - - col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL col1 / - - col0 AS col0 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - 37 col0, - col0 FROM tab1
----
-2183
-85
-2516
-91
-3552
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + + 99 * + ( - SUM( 34 ) ) FROM tab2 AS cor0
----
-10098

skipif mysql # not compatible
query I rowsort label-3683
SELECT + + 99 * + ( - SUM ( 34 ) ) FROM tab2 AS cor0
----
-10098

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + + MIN( DISTINCT - + 82 ) AS col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3684
SELECT + + MIN ( DISTINCT - + 82 ) AS col0 FROM tab0 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT + + 91 * col2 DIV col1 FROM tab0 AS cor0
----
43
52
9009

skipif mysql # not compatible
query I rowsort label-3685
SELECT + + 91 * col2 / col1 FROM tab0 AS cor0
----
43
52
9009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT - col1 ) DIV - 75 AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - COUNT ( * ) + MAX ( DISTINCT - col1 ) / - 75 AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3687
SELECT ALL * FROM tab0 cor0 WHERE NOT 54 > + CAST( - col1 AS SIGNED ) / - 41 + + + col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-3687
SELECT ALL * FROM tab0 cor0 WHERE NOT 54 > + CAST ( - col1 AS INTEGER ) / - 41 + + + col0
----
87
21
10
97
1
99

query II rowsort
SELECT ALL - + 16, col0 FROM tab2 cor0
----
-16
46
-16
64
-16
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT + MIN( ALL col2 ) * - COUNT( * ) + MAX( ALL - - col0 ) col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3689
SELECT + MIN ( ALL col2 ) * - COUNT ( * ) + MAX ( ALL - - col0 ) col2 FROM tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT - 86 + - 38 AS col0 FROM tab1 AS cor0
----
-124

query II rowsort
SELECT col2 AS col0, col2 FROM tab1 cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - MIN( ALL + col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3692
SELECT - MIN ( ALL + col1 ) FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 21 = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT - SUM( + + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3694
SELECT - SUM ( + + col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + col2 col0 FROM tab2 cor0
----
46
63
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT ALL 16 DIV + - 24 + - ( col2 ) + + col0 * col2 * col2 AS col0 FROM tab1
----
295826
420716
469920

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 16 / + - 24 + - ( col2 ) + + col0 * col2 * col2 AS col0 FROM tab1
----
295826
420716
469920

query I rowsort
SELECT - ( + + 83 ) * - col2 FROM tab1 WHERE NULL IS NULL
----
4897
5644
7968

query II rowsort
SELECT DISTINCT col1, col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col0 + col0 + - col2 / - col0 + - col1 + + - col1 + - + col1 * + col1 IS NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
51
67
77

query I rowsort
SELECT col1 * + col1 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
2573
4480
5892

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT ALL - 20 AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-20
0

skipif mysql # not compatible
query II rowsort label-3703
SELECT ALL - 20 AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT MAX( - 65 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3704
SELECT MAX ( - 65 ) FROM tab0 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / - col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT - CAST( NULL AS SIGNED ) + + + 76 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - CAST ( NULL AS INTEGER ) + + + 76 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3707
SELECT ALL * FROM tab0 WHERE NOT NULL <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3707
SELECT ALL * FROM tab0 WHERE NOT NULL <> - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 97 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3709
SELECT * FROM tab1 WHERE NOT CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3709
SELECT * FROM tab1 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 83 FROM tab0
----
-1743
-6723
-83

query I rowsort
SELECT col1 * + + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT + col1 * + + col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3713
SELECT - COUNT( * ) DIV + + SUM( DISTINCT - + 23 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT - COUNT ( * ) / + + SUM ( DISTINCT - + 23 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT COUNT( * ) + + 50 col1 FROM tab1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3714
SELECT COUNT ( * ) + + 50 col1 FROM tab1
----
53

query I rowsort
SELECT DISTINCT + 3 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 65 AS col0, - col2 FROM tab0 AS cor0
----
65
-10
65
-47
65
-99

query I rowsort
SELECT DISTINCT - 40 + - - 20 AS col1 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL - 14 FROM tab2 WHERE NOT + col0 IN ( - 17 * col0 + 71 )
----
-14
-14
-14

query I rowsort
SELECT 63 + - col1 FROM tab1
----
16
49
58

query I rowsort
SELECT ALL 96 * + col2 FROM tab2
----
2208
3840
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 WHERE NOT 95 > NULL
----

query I rowsort
SELECT - col1 * 27 + col1 * col1 AS col0 FROM tab0
----
-126
-26
4374

query I rowsort
SELECT ALL col2 * + 27 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT SUM( ALL - col1 ) AS col1 FROM tab2 WHERE 76 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT SUM ( ALL - col1 ) AS col1 FROM tab2 WHERE 76 + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - COUNT( + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3725
SELECT - COUNT ( + col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - ( + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3726
SELECT - ( + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL col1 * + 88 - 86 * + col2 FROM tab0
----
-8426
3086
988

query I rowsort
SELECT DISTINCT - 82 FROM tab2 WHERE ( col1 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT MAX( col2 ) * 63 AS col1 FROM tab2 WHERE ( - CAST( col1 AS SIGNED ) + + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT MAX ( col2 ) * 63 AS col1 FROM tab2 WHERE ( - CAST ( col1 AS INTEGER ) + + col0 ) IS NULL
----
NULL

query I rowsort
SELECT ( + 49 ) * col2 FROM tab1
----
2891
3332
4704

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 98 * col0 AS col0 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT col0 * 6 AS col2 FROM tab0
----
522
582
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + ( + col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) = ( NULL )
----

query I rowsort
SELECT + col0 * 36 FROM tab2
----
1656
2304
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + 90 + - COUNT( * ) col0 FROM tab2
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT DISTINCT + 90 + - COUNT ( * ) col0 FROM tab2
----
87

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 25 )
----

query I rowsort
SELECT ( + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - col0 < col0 / - 19 + 62
----
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - col0 < col0 / - 19 + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT + COUNT( * ) * - 85 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT + COUNT ( * ) * - 85 FROM tab1
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col0 + col1 NOT BETWEEN ( col2 * col0 + + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col0 + col1 NOT BETWEEN ( col2 * col0 + + col2 ) AND NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 29 / - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT ALL + col1 DIV col1 - col2 AS col2 FROM tab2 cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + col1 / col1 - col2 AS col2 FROM tab2 cor0
----
-22
-39
-57

query III rowsort
SELECT * FROM tab1 cor0 WHERE 51 NOT BETWEEN NULL AND 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 73 ) * col1 AS col0 FROM tab2 cor0
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - COUNT( * ) * + SUM( ALL + col0 ) FROM tab1 cor0
----
-681

skipif mysql # not compatible
query I rowsort label-3747
SELECT - COUNT ( * ) * + SUM ( ALL + col0 ) FROM tab1 cor0
----
-681

query I rowsort
SELECT DISTINCT + 34 * ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1734
-2890
-3094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT - CAST( NULL AS SIGNED ) * - 26 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT - CAST ( NULL AS INTEGER ) * - 26 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT 38 - + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3750
SELECT 38 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col2 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 + + ( - 92 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 85 AS col1 FROM tab1 AS cor0
----
-4335
-7225
-7735

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * col1 col1 FROM tab1 AS cor0
----
1120
3760
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT ALL COUNT( * ) DIV 79 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3756
SELECT ALL COUNT ( * ) / 79 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + 1 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL ( - - SUM( DISTINCT 19 ) ) AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL ( - - SUM ( DISTINCT 19 ) ) AS col1 FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT - col0 DIV + col2 + - 79 FROM tab2
----
-80
-81

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - col0 / + col2 + - 79 FROM tab2
----
-80
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 WHERE NOT - col0 / - 72 + col2 <= ( NULL ) OR - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 WHERE NOT - col0 / - 72 + col2 <= ( NULL ) OR - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( col2 * ( + col1 * col2 ) ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT COUNT( 16 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT COUNT ( 16 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT col0 + - col1 FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) NOT IN ( col0 )
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT col0 + - col1 FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) NOT IN ( col0 )
----
-66
66
96

query I rowsort
SELECT - 26 AS col2 FROM tab1 WHERE NOT NULL < - 49
----

query I rowsort
SELECT DISTINCT 94 * - - col1 FROM tab2
----
4794
6298
7238

query I rowsort
SELECT DISTINCT + 12 * 72 * + col0 FROM tab1
----
44064
73440
78624

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( - col2 + - col1 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col2 * + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - SUM( ALL + 16 ) col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3770
SELECT - SUM ( ALL + 16 ) col2 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT - 72 + + MIN( - col0 ) FROM tab1 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - 72 + + MIN ( - col0 ) FROM tab1 AS cor0
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT + MAX( DISTINCT + - 78 ) + AVG ( DISTINCT + col0 + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT + MAX ( DISTINCT + - 78 ) + AVG ( DISTINCT + col0 + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT ( + COUNT( * ) ) + - + 43 AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT ( + COUNT ( * ) ) + - + 43 AS col0 FROM tab2
----
-40

query I rowsort
SELECT ALL 39 AS col0 FROM tab0 WHERE NOT 24 + + 85 = col1
----
39
39
39

query I rowsort
SELECT - 22 * - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 16076a595f8815c5a428320c5f0d4d77

query I rowsort
SELECT 90 * 6 - col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
449
455
489

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab0 AS cor0 WHERE NOT + 39 IS NULL
----
225
7569
9409

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - + - 19 * 70 IN ( 62 * + col1 )
----

query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab1 AS cor0 WHERE 8 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL 71 + col0 FROM tab0 WHERE - ( + + col2 ) * - col2 + - 90 * - 12 IS NULL AND 59 * - col0 >= ( NULL )
----

query I rowsort
SELECT col0 - - 88 * col1 FROM tab1
----
1283
4227
525

query I rowsort
SELECT ALL + col2 - - col2 + + - col0 * + + col1 FROM tab1
----
-307
-4141
-522

query III rowsort
SELECT * FROM tab1 WHERE NULL > + - 52
----

query II rowsort
SELECT ALL 85 - 10, + col2 AS col1 FROM tab1
----
75
59
75
68
75
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col1 ) AND NOT col1 NOT BETWEEN - ( col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( - ( col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL - 59 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
37
9

query I rowsort
SELECT ALL - - 89 AS col2 FROM tab0 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * + - 92 * + - col2 col1 FROM tab2
----
146004
253920
368184

query I rowsort
SELECT ( - 11 ) FROM tab1
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3791
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3792
SELECT DISTINCT + MIN( + col1 ) * + 44, MAX( DISTINCT col0 ) AS col0 FROM tab1
----
220
91

skipif mysql # not compatible
query II rowsort label-3792
SELECT DISTINCT + MIN ( + col1 ) * + 44, MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
220
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT ALL + 23 * CAST( - 45 AS SIGNED ) + - 13 FROM tab1 AS cor0
----
-1048
-1048
-1048

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + 23 * CAST ( - 45 AS INTEGER ) + - 13 FROM tab1 AS cor0
----
-1048
-1048
-1048

query I rowsort
SELECT + - 81 AS col2 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL 59 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL 59 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
177

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 * + 91 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3797
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( - 70 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3797
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( - 70 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT + COUNT( * ) + + COUNT( col1 ) - - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT + COUNT ( * ) + + COUNT ( col1 ) - - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
9

query II rowsort
SELECT - - 65, 60 AS col2 FROM tab0 AS cor0
----
65
60
65
60
65
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 29 ) * + + ( + - col1 ) col0 FROM tab0 AS cor0
----
2349
29
609

query I rowsort
SELECT DISTINCT - + col1 * col0 + col0 / - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * col1 AND NULL
----

query I rowsort
SELECT + ( - + col2 ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 + - 41 * - col1 AS col0 FROM tab2
----
2114
2805
3197

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + 73 * COUNT( * ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + 73 * COUNT ( * ) FROM tab1
----
219

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < + col2
----

query I rowsort
SELECT DISTINCT + ( - - ( - + col1 ) ) + - col0 AS col1 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT 30 / 86 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * - 27 AND - + col1
----

query I rowsort
SELECT - col1 + + + col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - 51 + + ( COUNT( * ) ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3809
SELECT - 51 + + ( COUNT ( * ) ) FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT - col1 * + ( CAST( NULL AS SIGNED ) ) + - col2 * col1 AS col1 FROM tab2 WHERE ( NOT ( - col1 ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-3810
SELECT - col1 * + ( CAST ( NULL AS INTEGER ) ) + - col2 * col1 AS col1 FROM tab2 WHERE ( NOT ( - col1 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT CAST( - 22 AS SIGNED ) DIV col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT CAST ( - 22 AS INTEGER ) / col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT - ( 63 ) AS col2 FROM tab0 WHERE ( NULL BETWEEN 98 AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - - 98 + - - COUNT( * ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
101

skipif mysql # not compatible
query I rowsort label-3813
SELECT - - 98 + - - COUNT ( * ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
101

query I rowsort
SELECT ALL - + 43 + + 41 FROM tab0 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 cor0 WHERE col0 > + 83 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( col0 - + 71 ) <= + col1 )
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3818
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3818
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - CAST ( col2 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT - + COUNT( ALL + - col0 ) * + AVG ( + col0 ) + 61 + - 42 FROM tab2 AS cor0 WHERE NOT 14 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - + COUNT ( ALL + - col0 ) * + AVG ( + col0 ) + 61 + - 42 FROM tab2 AS cor0 WHERE NOT 14 <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 1 * + col1 ) IN ( + 58 * - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0 WHERE ( + + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + + col1 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT 65 + + - col2 >= ( + + ( - col1 ) ) )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT - MAX( + + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3824
SELECT - MAX ( + + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + - SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + - SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + SUM( DISTINCT - 5 ) AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-3826
SELECT + SUM ( DISTINCT - 5 ) AS col2 FROM tab2
----
-5

query I rowsort
SELECT ALL - col0 + - 5 - + - col1 * - - 54 + + + ( - col2 ) AS col0 FROM tab1
----
121
2374
604

query I rowsort
SELECT ALL + 45 + - - 88 AS col1 FROM tab2
----
133
133
133

query III rowsort
SELECT * FROM tab1 WHERE NOT + 59 BETWEEN + 23 * + - col2 * 86 AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - MAX( ALL 39 ) * 68 FROM tab0 WHERE - - 43 * - 83 / col0 * - col0 * 34 + - col1 * + col0 IS NOT NULL
----
-2652

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - MAX ( ALL 39 ) * 68 FROM tab0 WHERE - - 43 * - 83 / col0 * - col0 * 34 + - col1 * + col0 IS NOT NULL
----
-2652

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 18 IS NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 + - - 79 + - col2 * + - ( + 33 ) FROM tab1 cor0
----
7041
8143
8511

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( - col1 * - col0 - + 72 + ( col0 ) + + - ( - 59 ) )
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3834
SELECT ALL - + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3834
SELECT ALL - + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT DISTINCT + col0 * + ( - + CAST( + - col2 AS SIGNED ) ) col0 FROM tab2 cor0 WHERE ( NULL ) < ( - 0 * - - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3835
SELECT DISTINCT + col0 * + ( - + CAST ( + - col2 AS INTEGER ) ) col0 FROM tab2 cor0 WHERE ( NULL ) < ( - 0 * - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - - col0 NOT IN ( + + col2 )
----

query I rowsort
SELECT ALL + 8 * + col2 FROM tab2
----
184
320
464

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 63 IS NOT NULL
----

query I rowsort
SELECT + + 51 * col1 + + + col2 - col1 AS col0 FROM tab2 AS cor0
----
2573
3408
3890

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - COUNT( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3840
SELECT - COUNT ( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MIN( DISTINCT col0 ) FROM tab1 AS cor0 WHERE 61 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE 61 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL + COUNT( * ) * + + 3 * - - 53 AS col1 FROM tab2 cor0 WHERE ( col1 * col1 - CAST( NULL AS SIGNED ) * - - 41 ) <= ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + COUNT ( * ) * + + 3 * - - 53 AS col1 FROM tab2 cor0 WHERE ( col1 * col1 - CAST ( NULL AS INTEGER ) * - - 41 ) <= ( + col2 )
----
0

query I rowsort
SELECT ALL + 77 + + - col0 + - - 7 * + + col1 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
2356727
2656205
837553

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - MIN( - ( 89 ) ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3844
SELECT - MIN ( - ( 89 ) ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT ( + 83 ) FROM tab1
----
83

query I rowsort
SELECT ALL col1 + + + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL + col1 - + - ( - col0 ) FROM tab0 WHERE NULL NOT IN ( 57 / + - col0, - ( - 12 ) + + - col1, - col2 )
----

query I rowsort
SELECT ALL + 63 * - 45 FROM tab0
----
-2835
-2835
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT 74 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT 74 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT + col2 * + + col1 * CAST( NULL AS SIGNED ) * + 4 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + col2 * + + col1 * CAST ( NULL AS INTEGER ) * + 4 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 * - + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + - MAX( - - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3854
SELECT + - MAX ( - - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT col0 + + + 41 FROM tab1 AS cor0
----
126
132
92

query I rowsort
SELECT - col0 * - - col2 + + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - 75 * - col0 * 60 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 14 * - col0 + col2 + col1 FROM tab0 AS cor0
----
-1187
-1258
-82

query I rowsort
SELECT + 74 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3860
SELECT - col2 AS col2, col0 + - CAST( NULL AS SIGNED ) * ( 63 ) + + + col0 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-3860
SELECT - col2 AS col2, col0 + - CAST ( NULL AS INTEGER ) * ( 63 ) + + + col0 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT DISTINCT 38, col0 AS col2 FROM tab1 AS cor0
----
38
51
38
85
38
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - 18 * - COUNT( ALL + 41 ) col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3862
SELECT - 18 * - COUNT ( ALL + 41 ) col1 FROM tab1 cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT + col0 DIV - 3 col0 FROM tab0 AS cor0
----
-29
-32
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3863
SELECT + col0 / - 3 col0 FROM tab0 AS cor0
----
-29
-32
-5

query II rowsort
SELECT - + col1 - - col0 * - + 75 * + col2, ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-192077
-64
-326317
-75
-79401
-46

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( + + col2, + 32 ) AND ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 * + - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-3866
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 * + - col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND col1 + 44 + 86 * col2 * - col2 * + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + 80 ) NOT IN ( col2 * - 12 ) AND NOT - col2 * - - col2 IN ( - 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL 92 * - + CAST( NULL AS SIGNED ) / + 72 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL 92 * - + CAST ( NULL AS INTEGER ) / + 72 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT - CAST( NULL AS SIGNED ) / - col2 / - ( + col0 ) / - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT - CAST ( NULL AS INTEGER ) / - col2 / - ( + col0 ) / - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT MIN( DISTINCT - 46 ) col0 FROM tab0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT MIN ( DISTINCT - 46 ) col0 FROM tab0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + + col1 - col0 * + 45 col0 FROM tab1 WHERE col2 + col0 * - + col0 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3874
SELECT + CAST( + + 75 AS SIGNED ) AS col1, - ( 99 ) FROM tab2
----
75
-99
75
-99
75
-99

skipif mysql # not compatible
query II rowsort label-3874
SELECT + CAST ( + + 75 AS INTEGER ) AS col1, - ( 99 ) FROM tab2
----
75
-99
75
-99
75
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - + MAX( + + 99 ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3875
SELECT - + MAX ( + + 99 ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT col0 * col0 * + col2 * col2 * - col1 FROM tab0
----
-15894900
-40259025
-92217609

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - ( - SUM( 1 ) ) - - 38 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - ( - SUM ( 1 ) ) - - 38 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 77 IS NULL
----

query I rowsort
SELECT 82 FROM tab1 cor0 WHERE col1 NOT BETWEEN - col0 AND + + col2
----

query I rowsort
SELECT ALL + 60 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
3074
5105
5507

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3882
SELECT - + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 29 ) / CAST( NULL AS DECIMAL ) * - + col2 NOT IN ( + col2 * col0 * + 67 / - + col0 * - 84, 74 )
----

skipif mysql # not compatible
query III rowsort label-3883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 29 ) / CAST ( NULL AS REAL ) * - + col2 NOT IN ( + col2 * col0 * + 67 / - + col0 * - 84, 74 )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE col2 * col1 + + 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + + COUNT( * ) + + 65 AS col1 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3885
SELECT + + COUNT ( * ) + + 65 AS col1 FROM tab1 AS cor0
----
68

query I rowsort
SELECT - col0 + - col0 - - + col1 * - 84 + + - col1 FROM tab0
----
-1959
-279
-6915

query I rowsort
SELECT DISTINCT + 2 + col1 FROM tab2
----
53
69
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - ( col0 ), col0 * + 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3889
SELECT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) * + 52 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3889
SELECT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) * + 52 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + ( col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 84 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + 15 * - - MAX( + - col2 ) + 71 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 15 * - - MAX ( + - col2 ) + 71 FROM tab0
----
-79

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT ALL - 26 DIV COUNT( * ) + ( + MIN( - col2 ) ) DIV + + 38 - + COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - 26 / COUNT ( * ) + ( + MIN ( - col2 ) ) / + + 38 - + COUNT ( * ) FROM tab0
----
-13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col0, col0 * 68 )
----

query I rowsort
SELECT DISTINCT - 6 + + 94 FROM tab1 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - - 11 IN ( + 58 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT DISTINCT + - 96 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-96

query I rowsort
SELECT + 87 * + col2 AS col0 FROM tab2 AS cor0
----
2001
3480
5046

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 > 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * 20 FROM tab0 cor0
----
1740
1940
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 23 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 23 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 + - col1 * - - col2 * - + col0 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT 90 DIV 14 * col2 FROM tab0
----
282
594
60

skipif mysql # not compatible
query I rowsort label-3906
SELECT 90 / 14 * col2 FROM tab0
----
282
594
60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= - col0
----

query I rowsort
SELECT ALL 13 * + 64 FROM tab2 WHERE col0 - + - 10 <> NULL
----

query II rowsort
SELECT - col0, col0 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT ( + 13 ) AS col0 FROM tab0
----
13

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 AS col1 FROM tab2 WHERE + col0 * - - col2 + + + col2 = ( NULL )
----

query I rowsort
SELECT + - 91 * - 84 AS col2 FROM tab0 AS cor0
----
7644
7644
7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT ALL AVG ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col0 <> 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL AVG ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col0 <> 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL + COUNT( - 61 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + COUNT ( - 61 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col0 + - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT COUNT( - + 13 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3916
SELECT DISTINCT COUNT ( - + 13 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT + COUNT( * ) + - 0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3917
SELECT + COUNT ( * ) + - 0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3918
SELECT - 92 DIV CAST( - + col1 AS SIGNED ), col1 AS col0 FROM tab1 AS cor0
----
1
47
18
5
6
14

skipif mysql # not compatible
query II rowsort label-3918
SELECT - 92 / CAST ( - + col1 AS INTEGER ), col1 AS col0 FROM tab1 AS cor0
----
1
47
18
5
6
14

query I rowsort
SELECT col1 * - ( - ( ( + + col0 ) ) ) * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT AVG ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL 63 DIV 89 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 63 / 89 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - ( col1 ) * col2 AND col1 + + - col2 * - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT + 77 * COUNT( * ) AS col0 FROM tab2 WHERE - - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT + 77 * COUNT ( * ) AS col0 FROM tab2 WHERE - - col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - COUNT( * ) col2 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3924
SELECT ALL - COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL - COUNT( * ) + + 41 AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - COUNT ( * ) + + 41 AS col1 FROM tab2
----
38

query I rowsort
SELECT DISTINCT - 41 - 60 FROM tab0
----
-101

query I rowsort
SELECT - col0 + 2 AS col1 FROM tab0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + - COUNT( * ) + 85 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3928
SELECT + - COUNT ( * ) + 85 FROM tab0 AS cor0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( + col0 ) AND + 75
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3929
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( + col0 ) AND + 75
----
0

query I rowsort
SELECT - - 63 + - 80 AS col1 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL - - ( COUNT( 23 ) ), COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
81

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL - - ( COUNT ( 23 ) ), COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT - - ( COUNT( * ) ) * + 84 AS col2 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - - ( COUNT ( * ) ) * + 84 AS col2 FROM tab0 AS cor0
----
252

query I rowsort
SELECT ( + - 76 ) AS col1 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT 84 * + + 16 + + - ( - MAX( ALL - 39 ) ) + + - 73 * - COUNT( * ) FROM tab0 AS cor0
----
1524

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT 84 * + + 16 + + - ( - MAX ( ALL - 39 ) ) + + - 73 * - COUNT ( * ) FROM tab0 AS cor0
----
1524

query I rowsort
SELECT ALL + - 22 * - 59 + - + col0 AS col0 FROM tab2 AS cor0
----
1223
1234
1252

query I rowsort
SELECT DISTINCT + 64 * + col0 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col2 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col2 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 + - - ( + 1 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - ( SUM( DISTINCT - col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3940
SELECT - ( SUM ( DISTINCT - col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT 59 DIV - - COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3941
SELECT 59 / - - COUNT ( * ) FROM tab1
----
19

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NULL NOT IN ( - - col2 * + col1, + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - 45 * + COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-3943
SELECT - 45 * + COUNT ( * ) FROM tab0
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - + col1 col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + col2 * col2 * - col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) * 72 + - + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + 57, - col1, + col2 )
----

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * 72 + - + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + 57, - col1, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3948
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) + + COUNT( 31 ) DIV + - 32, COUNT( * ) AS col0 FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3948
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) + + COUNT ( 31 ) / + - 32, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 92 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + - 8 AS col2 FROM tab0
----
168
648
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3951
SELECT col0, CAST( 79 AS SIGNED ) AS col1 FROM tab2
----
46
79
64
79
75
79

skipif mysql # not compatible
query II rowsort label-3951
SELECT col0, CAST ( 79 AS INTEGER ) AS col1 FROM tab2
----
46
79
64
79
75
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT ALL + - col2 DIV - - 66 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + - col2 / - - 66 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3955
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) - + - CAST( NULL AS SIGNED ) + 22, COUNT( * ) * - COUNT( * ) DIV - 91 col2 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3955
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + 22, COUNT ( * ) * - COUNT ( * ) / - 91 col2 FROM tab2 AS cor0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT DISTINCT col2 DIV + ( + col2 ) + + 16 FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT col2 / + ( + col2 ) + + 16 FROM tab2 cor0
----
17

query I rowsort
SELECT ALL - - 91 FROM tab2 cor0 WHERE NULL >= + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL - 35 * 82 + + + SUM( DISTINCT - col2 ) FROM tab1
----
-3093

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - 35 * 82 + + + SUM ( DISTINCT - col2 ) FROM tab1
----
-3093

query I rowsort
SELECT + col2 + + 53 FROM tab0
----
100
152
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + 53 <= - 95 * 18 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3961
SELECT 91 + - - col2, + CAST( + 24 AS SIGNED ) + - CAST( - + 45 AS SIGNED ) AS col0 FROM tab1
----
150
69
159
69
187
69

skipif mysql # not compatible
query II rowsort label-3961
SELECT 91 + - - col2, + CAST ( + 24 AS INTEGER ) + - CAST ( - + 45 AS INTEGER ) AS col0 FROM tab1
----
150
69
159
69
187
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN - + col1 - 71 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT AVG ( + CAST( NULL AS SIGNED ) ) * + 61 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) * + 61 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( + 72 ) AS col2 FROM tab2
----
72
72
72

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-3966
SELECT + SUM( col1 ) FROM tab1 AS cor0 WHERE NOT - ( - col1 ) > + col0
----
66

skipif mysql # not compatible
query I rowsort label-3966
SELECT + SUM ( col1 ) FROM tab1 AS cor0 WHERE NOT - ( - col1 ) > + col0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 53 ) col1 FROM tab1 AS cor0
----
-53
-53
-53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - 70 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - - MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3970
SELECT - - MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( * ) * - 52 AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( * ) * - 52 AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT DISTINCT CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3972
SELECT DISTINCT CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3974
SELECT DISTINCT + + col1, - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
14
-14
47
-47
5
-5

skipif mysql # not compatible
query II rowsort label-3974
SELECT DISTINCT + + col1, - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL MIN( ALL + 22 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL MIN ( ALL + 22 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT - SUM( ALL + 57 ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-3976
SELECT - SUM ( ALL + 57 ) FROM tab2
----
-171

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 * 82 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3978
SELECT - 97 DIV MIN( ALL + col1 ) col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3978
SELECT - 97 / MIN ( ALL + col1 ) col0 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= ( col2 * - col1 + - 54 * - + ( - col1 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / + 90 + - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + - col0 + col2 FROM tab2
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 25 FROM tab2
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - COUNT( * ) * COUNT( * ) + - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

skipif mysql # not compatible
query I rowsort label-3984
SELECT - COUNT ( * ) * COUNT ( * ) + - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT - - col2 * col2 + + 8 + - CAST( NULL AS SIGNED ) + col2 + - col2 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT - - col2 * col2 + + 8 + - CAST ( NULL AS INTEGER ) + col2 + - col2 * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3986
SELECT ALL + + col0 DIV - CAST( + - 44 AS SIGNED ) + - - col0 AS col0 FROM tab0 AS cor0
----
15
88
99

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + + col0 / - CAST ( + - 44 AS INTEGER ) + - - col0 AS col0 FROM tab0 AS cor0
----
15
88
99

query I rowsort
SELECT ALL + col2 * - + col0 + + col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT col1 DIV + col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3988
SELECT col1 / + col2 col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + + ( 42 ) * col1 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
1974
-91
210
-85
588
-51

query I rowsort
SELECT + - 23 * col0 * - ( - col1 ) FROM tab2 AS cor0
----
-113344
-115575
-53958

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT ALL COUNT( * ) col0, + 90 FROM tab2 AS cor0
----
3
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3991
SELECT ALL COUNT ( * ) col0, + 90 FROM tab2 AS cor0
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + - MIN( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3992
SELECT + - MIN ( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 WHERE NULL IS NULL
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT + CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > - - col2
----

skipif mysql # not compatible
query I rowsort label-3994
SELECT + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > - - col2
----

query I rowsort
SELECT - col0 - - - col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL + ( col1 ) + + + col0 AS col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - 48 + + COUNT( * ) AS col1 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3997
SELECT - 48 + + COUNT ( * ) AS col1 FROM tab1
----
-45

query I rowsort
SELECT + 67 + - col0 * - + 27 AS col2 FROM tab0
----
2416
2686
472

query I rowsort
SELECT ( + - col0 ) + + col2 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT + ( col2 ) + + - 95 FROM tab1
----
-27
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + MIN( + + col2 ) + + 30 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-4001
SELECT + MIN ( + + col2 ) + + 30 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT 9 + + MAX( DISTINCT - - 83 ) + - COUNT( * ) * 8 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4002
SELECT 9 + + MAX ( DISTINCT - - 83 ) + - COUNT ( * ) * 8 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4003
SELECT DISTINCT - + COUNT( * ) AS col1, 29 + - + 59 FROM tab1 AS cor0
----
-3
-30

skipif mysql # not compatible
query II rowsort label-4003
SELECT DISTINCT - + COUNT ( * ) AS col1, 29 + - + 59 FROM tab1 AS cor0
----
-3
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 * col2 + col0 - + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 3 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 20 col2 FROM tab2 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT DISTINCT + + col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col0 > NULL
----

query II rowsort
SELECT - ( - - 46 ) AS col1, col1 FROM tab2 AS cor0
----
-46
51
-46
67
-46
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, 55 * col1 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT CAST( + + 90 AS SIGNED ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT CAST ( + + 90 AS INTEGER ) FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT 67, + 90 + - + COUNT( * ) AS col0 FROM tab2
----
67
87

skipif mysql # not compatible
query II rowsort label-4013
SELECT 67, + 90 + - + COUNT ( * ) AS col0 FROM tab2
----
67
87

query I rowsort
SELECT col1 + - ( + col0 ) FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + COUNT( * ) + ( + + 79 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-4015
SELECT + COUNT ( * ) + ( + + 79 ) FROM tab2
----
82

query I rowsort
SELECT ALL - + col0 + 26 AS col0 FROM tab1 AS cor0
----
-25
-59
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT + CAST( - - col0 AS SIGNED ) FROM tab1 cor0 WHERE + CAST( + 43 AS SIGNED ) = col2
----

skipif mysql # not compatible
query I rowsort label-4017
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab1 cor0 WHERE + CAST ( + 43 AS INTEGER ) = col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - - 67 * col1 + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT - + MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - + MAX ( + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 * + col1 <= - ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4022
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) + + ( - + COUNT( * ) ), MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4022
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + + ( - + COUNT ( * ) ), MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT + 75 + - 31 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) * + 64 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 75 + - 31 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) * + 64 AND NULL
----

query I rowsort
SELECT - + col2 + - 19 - + 89 AS col1 FROM tab2 AS cor0
----
-131
-148
-166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4025
SELECT col2 AS col0, ( - 52 ) / - CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4025
SELECT col2 AS col0, ( - 52 ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT + col1, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 63 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * col1 col1 FROM tab2
----
4641
6097
7007

query I rowsort
SELECT DISTINCT - col0 - - - col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT ( - col2 ) + - + col2 * + col2 FROM tab2
----
-1640
-3422
-552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 88 col1 FROM tab1 AS cor0
----
4488
7480
8008

query II rowsort
SELECT + col0, 63 * - ( + - col1 ) * - - col2 - col2 + + col2 - + col1 + ( + col1 ) + + + col2 FROM tab2 cor0
----
46
73922
64
194080
75
244876

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT 26 DIV 24 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4033
SELECT 26 / 24 FROM tab0
----
1
1
1

query II rowsort
SELECT ALL + col2 AS col2, ( - ( + col0 ) ) AS col1 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT ALL COUNT( * ) AS col2, + 96 AS col2 FROM tab0 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-4036
SELECT ALL COUNT ( * ) AS col2, + 96 AS col2 FROM tab0 AS cor0
----
3
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( ( + ( - - col0 ) ) ) AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4038
SELECT ALL + + 97 col2, COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
97
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4038
SELECT ALL + + 97 col2, COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
97
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT + + COUNT( * ) AS col0, - 96 col1 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4039
SELECT + + COUNT ( * ) AS col0, - 96 col1 FROM tab1 AS cor0
----
3
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-4040
SELECT 28 AS col0, - col0 DIV 20 * col2 col1 FROM tab1 AS cor0
----
28
-192
28
-236
28
-272

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4040
SELECT 28 AS col0, - col0 / 20 * col2 col1 FROM tab1 AS cor0
----
28
-192
28
-236
28
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT MIN( col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4042
SELECT MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4043
SELECT DISTINCT + col1 * col1 * - + CAST( NULL AS DECIMAL ) + - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + col1 * col1 * - + CAST ( NULL AS REAL ) + - col2 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL ( ( + 43 ) ) FROM tab0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT COUNT( * ) FROM tab0 cor0 WHERE ( + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT COUNT ( * ) FROM tab0 cor0 WHERE ( + - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL + COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 67 col2, 68 - - 99 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 3f7b09235f6dd39e652827206fe3738b

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT + 88 DIV 42 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4051
SELECT + 88 / 42 AS col2 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT + - 52 * + + COUNT( * ) col1 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4052
SELECT DISTINCT + - 52 * + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - + 68 * - 34 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
6936

skipif mysql # not compatible
query I rowsort label-4053
SELECT - + 68 * - 34 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6936

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - col1 * - + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - - col1 * - - col0 - - col0 col0 FROM tab1 cor0
----
4436
569
861

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - 78 - + MAX( ALL - + col0 ) * + 90 + - 4 col0 FROM tab1 AS cor0
----
4508

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4056
SELECT - 78 - + MAX ( ALL - + col0 ) * + 90 + - 4 col0 FROM tab1 AS cor0
----
4508

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + + col0 ) / 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4058
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT 7 + + + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT 7 + + + COUNT ( * ) FROM tab1
----
10

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 3 + col2 AS col2, + col1 + - 25 + ( + + col2 ) + - col1 * - - col1 AS col2 FROM tab2
----
26
-2552
43
-5837
61
-4389

query I rowsort
SELECT - ( + + ( - col1 ) ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT - 53 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - + col1 ) AS col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col1 FROM tab2
----
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + col0 * + - col2 + - 71 AS col0 FROM tab0 AS cor0 WHERE 37 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT 95 DIV + 24 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4069
SELECT 95 / + 24 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NULL OR NOT 19 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT - 80 DIV + - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT - 80 / + - col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 + - + 66 AS col1 FROM tab0 AS cor0
----
-113
-165
-76

query I rowsort
SELECT DISTINCT + ( ( - - col2 ) ) * 60 FROM tab1 AS cor0
----
3540
4080
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col2 + - + 57 * + 32 * - col1 FROM tab1 WHERE NULL > NULL
----

query II rowsort
SELECT ALL 64 * - 79 * - col2 + col0 AS col0, col0 * - + 61 AS col2 FROM tab0
----
237647
-915
500641
-5917
50647
-5307

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - 13 + + COUNT( * ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 13 + + COUNT ( * ) AS col0 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL COUNT( * ) + 38 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL COUNT ( * ) + 38 FROM tab0
----
41

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab1 WHERE ( - - col0 ) IS NOT NULL
----
102
170
182

query I rowsort
SELECT col0 + - - 71 FROM tab1
----
122
156
162

query II rowsort
SELECT ALL + col1, + col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT + - col1 + - - ( - col1 ) FROM tab2 AS cor0 WHERE + 49 BETWEEN - + col1 AND col1
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT ALL + 33 AS col1, + MIN( 58 ) col2 FROM tab1 cor0
----
33
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4084
SELECT ALL + 33 AS col1, + MIN ( 58 ) col2 FROM tab1 cor0
----
33
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-81

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col1 = - col0 * col2 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= + + col1 * 56 + ( + + 33 )
----

query I rowsort
SELECT ALL + col2 * 76 AS col2 FROM tab2 cor0
----
1748
3040
4408

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-79

query I rowsort
SELECT + col0 * 37 AS col1 FROM tab0 AS cor0
----
3219
3589
555

query I rowsort
SELECT 50 * + - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
2950
3400
4800

query I rowsort
SELECT + ( 22 ) AS col1 FROM tab1 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab1
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT ALL - ( + 1 ) DIV - - col2 + + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - ( + 1 ) / - - col2 + + col2 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN - - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT - COUNT( * ) DIV - + 4 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4098
SELECT - COUNT ( * ) / - + 4 AS col1 FROM tab0
----
0

query I rowsort
SELECT 22 * col0 AS col2 FROM tab2
----
1012
1408
1650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76 AS col1, 12 * col1 * - col1 col1 FROM tab1
----
76
-2352
76
-26508
76
-300

query I rowsort
SELECT ALL - ( - ( + col0 ) ) * col2 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT ALL col1 AS col0, + col2 AS col1 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT - col0 * + + 9 FROM tab2
----
-414
-576
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= - col0
----
0

query I rowsort
SELECT DISTINCT ( 26 ) AS col2 FROM tab0 AS cor0
----
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + - COUNT( * ) + - + 19 col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT + - COUNT ( * ) + - + 19 col0 FROM tab0 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT + col2 DIV + 71 * col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + col2 / + 71 * col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * - - col1 + - ( - 20 ) FROM tab0 AS cor0
----
117
1235
1847

query I rowsort
SELECT ALL col1 + 32 AS col1 FROM tab2 AS cor0
----
109
83
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT + + COUNT( * ) + CAST( NULL AS SIGNED ) * - 96 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 96 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL col1 * 64 + + col0 AS col1 FROM tab1
----
3099
405
947

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT COUNT( * ) + + 51 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT COUNT ( * ) + + 51 FROM tab1
----
54

query II rowsort
SELECT ALL - col0 * - col1 * col1, + col2 FROM tab0
----
38367
10
97
99
98415
47

query III rowsort
SELECT * FROM tab2 WHERE + col2 > - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + 97 AS col2 FROM tab0
----
112
184
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT 20 - - MAX( DISTINCT col1 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-4117
SELECT 20 - - MAX ( DISTINCT col1 ) FROM tab2
----
97

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( + col0 )
----

query I rowsort
SELECT + col2 + + - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT - col0 + + 51 AS col0 FROM tab1 AS cor0
----
-34
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT 35 + - + 56 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT 35 + - + 56 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4122
SELECT * FROM tab0 AS cor0 WHERE 93 IN ( 73, CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-4122
SELECT * FROM tab0 AS cor0 WHERE 93 IN ( 73, CAST ( NULL AS INTEGER ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT - - MAX( DISTINCT 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT - - MAX ( DISTINCT 69 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT + 10 + - 99 * - 88 FROM tab2 cor0 WHERE NOT 83 BETWEEN - - col0 + + 72 AND 56 * + col2 * + + 48 + - col1
----
8722

query I rowsort
SELECT + ( + + col2 ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ( - ( + COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4126
SELECT ( - ( + COUNT ( * ) ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + ( + 95 ) AS col2 FROM tab2 AS cor0
----
95

query II rowsort
SELECT - col1, - col0 + - - 86 AS col0 FROM tab1 AS cor0
----
-14
35
-47
-5
-5
1

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT DISTINCT - COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4130
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - 32 * col2 * col1 FROM tab1
----
-102272
-43008
-9440

query I rowsort
SELECT DISTINCT col1 * col2 + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT ALL + + 29 * + col0 * 25 AS col0 FROM tab2 AS cor0
----
33350
46400
54375

query I rowsort
SELECT DISTINCT 98 + - col2 + + col0 + + col2 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
149
183
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT ALL + COUNT( * ) + 17 - 24 DIV 96 AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + COUNT ( * ) + 17 - 24 / 96 AS col1 FROM tab2
----
20

query I rowsort
SELECT DISTINCT + 71 * + - ( - col0 ) AS col1 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ( - COUNT( * ) ) * + COUNT( * ) * - + 12 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-4137
SELECT ( - COUNT ( * ) ) * + COUNT ( * ) * - + 12 FROM tab0
----
108

query II rowsort
SELECT ALL col0 AS col1, 1 AS col0 FROM tab2
----
46
1
64
1
75
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN col1 + 31 AND + + 44 - + + col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4140
SELECT DISTINCT - + COUNT( * ) DIV + 55 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - + COUNT ( * ) / + 55 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT col1 < NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT ALL col0 DIV + - col2 + col1 + + 49 AS col0 FROM tab2 AS cor0
----
115
125
98

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL col0 / + - col2 + col1 + + 49 AS col0 FROM tab2 AS cor0
----
115
125
98

query I rowsort
SELECT col0 + - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - + ( col0 ) * 38 + - - col0 AS col2 FROM tab2 AS cor0
----
-1702
-2368
-2775

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * + ( + col2 ) * col0 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + col0 * 42 + col2 + 0 FROM tab1
----
2252
3634
3937

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT COUNT( * ) + - MAX( DISTINCT + col0 ) * 54 AS col2 FROM tab2
----
-4047

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( * ) + - MAX ( DISTINCT + col0 ) * 54 AS col2 FROM tab2
----
-4047

query I rowsort
SELECT DISTINCT + + 17 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - MIN( - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4150
SELECT - MIN ( - col0 ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 - + col2 + - 22 AS col2 FROM tab2 AS cor0
----
-5
1
2

query I rowsort
SELECT ALL col2 * - 32 * - 21 + - col0 AS col1 FROM tab2
----
15410
26816
38901

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT DISTINCT + 70 DIV - - 66 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + 70 / - - 66 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT + 6 * + + COUNT( * ) DIV + 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-4156
SELECT + 6 * + + COUNT ( * ) / + 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL - SUM( + - 42 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - SUM ( + - 42 ) FROM tab1
----
126

query I rowsort
SELECT DISTINCT - 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

query I rowsort
SELECT ALL + + 16 AS col1 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # DIV for integer division: 
query II rowsort label-4160
SELECT DISTINCT - col1 AS col2, col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

skipif mysql # not compatible
query II rowsort label-4160
SELECT DISTINCT - col1 AS col2, col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 * - - 63 + + col0 + + col2 col1 FROM tab1 cor0
----
-1983
-1995
-1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT ( - MAX( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT ( - MAX ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + 4 * + + col2 * 41 * + col1 FROM tab1
----
220416
48380
524144

query I rowsort
SELECT + 0 AS col0 FROM tab1 WHERE NOT 52 * + col0 - col0 + 21 + + + col2 <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 + - + 83 * + 14 col2, col2 FROM tab2 WHERE NOT NULL = col1
----

query I rowsort
SELECT - 72 * + ( col2 ) FROM tab1
----
-4248
-4896
-6912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT DISTINCT COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + ( - col2 ) col2 FROM tab1 WHERE NOT + 72 + - col0 IS NULL
----
1248
236
3128

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT - col1 * col2 + + - ( - col1 ) + col0 IS NOT NULL
----

query II rowsort
SELECT ALL 89 AS col2, col1 * + col2 AS col2 FROM tab2
----
89
1173
89
3080
89
3886

query II rowsort
SELECT ALL 36, col1 FROM tab1 cor0
----
36
14
36
47
36
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 col0, + 68 FROM tab2 AS cor0
----
81
68
81
68
81
68

query I rowsort
SELECT ( col2 ) * + 25 AS col1 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT ALL + - 17 AS col0 FROM tab2 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + + COUNT( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4178
SELECT + + COUNT ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - ( ( - - col2 ) ) AS col0, 72 AS col1 FROM tab1 cor0
----
-59
72
-68
72
-96
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT + - SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + - SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + - col2 * + 56 col0 FROM tab2 AS cor0
----
-1817
-3840
-6612

query I rowsort
SELECT DISTINCT + - 3 + - col1 FROM tab2 AS cor0
----
-54
-70
-80

query I rowsort
SELECT - col1 * - + col1 * col0 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT ALL - COUNT( * ) + COUNT( * ) col1, + 92 FROM tab2 AS cor0
----
0
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4184
SELECT ALL - COUNT ( * ) + COUNT ( * ) col1, + 92 FROM tab2 AS cor0
----
0
92

query II rowsort
SELECT 72 AS col1, - col0 FROM tab0
----
72
-15
72
-87
72
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 94 - + col0 - + col1 / - - col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT DISTINCT - CAST( NULL AS SIGNED ) + MAX( ALL + - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + MAX ( ALL + - col1 ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT DISTINCT col1 - - ( + 27 ) AS col0, 99 AS col2 FROM tab2
----
104
99
78
99
94
99

query III rowsort
SELECT * FROM tab0 WHERE - 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) + - - col1 - CAST( - col2 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) + - - col1 - CAST ( - col2 AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * - + col0 * col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - + col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT MIN( col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT MIN ( col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT - COUNT( * ) FROM tab1 WHERE NOT + 58 < col0 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + 58 < col0 - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ( MAX( col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4197
SELECT ( MAX ( col2 ) ) FROM tab0
----
99

query I rowsort
SELECT + col1 + + 4 FROM tab2
----
55
71
81

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL <= col1 * 47 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + ( + COUNT( * ) ) - 93 AS col2 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4200
SELECT + ( + COUNT ( * ) ) - 93 AS col2 FROM tab0
----
-90

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4202
SELECT col2 AS col0 FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4202
SELECT col2 AS col0 FROM tab0 WHERE CAST ( NULL AS REAL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL CAST( + 55 AS SIGNED ) AS col2 FROM tab2
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL CAST ( + 55 AS INTEGER ) AS col2 FROM tab2
----
55
55
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 * ( - 30 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL + MIN( DISTINCT - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + MIN ( DISTINCT - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT ALL 22 FROM tab2 WHERE NOT - 57 + - 11 IS NOT NULL
----

query I rowsort
SELECT + col0 * 99 - col1 FROM tab2
----
4503
6259
7358

query III rowsort
SELECT * FROM tab2 WHERE NOT + 24 + col0 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT + 41 DIV 66 - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4212
SELECT + 41 / 66 - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 42 DIV col1 + 43 FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-4213
SELECT 42 / col1 + 43 FROM tab2
----
43
43
43

query I rowsort
SELECT ALL + col1 - + 49 FROM tab1
----
-2
-35
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + COUNT( * ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4215
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT - COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4216
SELECT - COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT MIN( + 69 ) * 61 FROM tab1
----
4209

skipif mysql # not compatible
query I rowsort label-4217
SELECT MIN ( + 69 ) * 61 FROM tab1
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT COUNT( * ) * + 34 col2 FROM tab1
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4218
SELECT COUNT ( * ) * + 34 col2 FROM tab1
----
102

query I rowsort
SELECT DISTINCT 12 * 21 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT - MIN( ALL - 28 ) * 24 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - MIN ( ALL - 28 ) * 24 AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + ( + SUM( 56 ) ) AS col0 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4221
SELECT + ( + SUM ( 56 ) ) AS col0 FROM tab1 AS cor0
----
168

query I rowsort
SELECT 67 + col2 FROM tab0 cor0 WHERE col0 / col1 > 65
----
166

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT col0 / col1 FROM tab1 AS cor0 WHERE NOT 1 + + 62 / - col2 NOT IN ( 87 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 - col0 = - col2 * - 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND + 23 - + 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 68 AS col0 FROM tab2 AS cor0
----
119
135
145

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( 95 )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + 48 BETWEEN col2 * 22 AND ( - col0 + 78 )
----

query I rowsort
SELECT ALL - col1 + + 18 AS col1 FROM tab1 AS cor0
----
-29
13
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 + 34 AND - col0 + 84 * - 27
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4232
SELECT ALL - 41 DIV MIN( ALL + 83 ) + + 53 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL - 41 / MIN ( ALL + 83 ) + + 53 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT - COUNT( * ) + + MAX( ALL - col0 + + col2 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - COUNT ( * ) + + MAX ( ALL - col0 + + col2 ) FROM tab0 AS cor0
----
29

query III rowsort
SELECT * FROM tab0 WHERE 35 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + col2 * col1 AS col2 FROM tab2
----
1122
3003
3819

query III rowsort
SELECT * FROM tab2 WHERE - 34 NOT IN ( - col0 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 14 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT MAX( DISTINCT + + 13 ) + - COUNT( * ) * 92 FROM tab1
----
-263

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT MAX ( DISTINCT + + 13 ) + - COUNT ( * ) * 92 FROM tab1
----
-263

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 < ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL - COUNT( * ) + + - 69 AS col1 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - COUNT ( * ) + + - 69 AS col1 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT COUNT( * ) - - 80 AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT COUNT ( * ) - - 80 AS col0 FROM tab0
----
83

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - col1 * - col0 + 16 FROM tab0 WHERE NULL IS NULL
----
113
1231
1843

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4244
SELECT ALL * FROM tab0 WHERE ( col1 ) - + CAST( NULL AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4244
SELECT ALL * FROM tab0 WHERE ( col1 ) - + CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL - ( - 22 ) - + col0 * col1 AS col2 FROM tab0
----
-1193
-1805
-75

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) >= - col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 13 - col1 AS col2 FROM tab2
----
-38
-54
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL MAX( + col2 ) FROM tab2 WHERE col0 <= + col2 + - col1 * ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL MAX ( + col2 ) FROM tab2 WHERE col0 <= + col2 + - col1 * ( col0 )
----
NULL

query I rowsort
SELECT ALL - 3 + ( - col2 ) FROM tab0
----
-102
-13
-50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + + col2 col0 FROM tab2
----
0

query I rowsort
SELECT ALL + col2 - 73 AS col1 FROM tab1 cor0
----
-14
-5
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT col2 * col1 * CAST( 91 * - 38 AS SIGNED ) FROM tab0 AS cor0
----
-13164606
-342342
-726180

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT col2 * col1 * CAST ( 91 * - 38 AS INTEGER ) FROM tab0 AS cor0
----
-13164606
-342342
-726180

query I rowsort
SELECT DISTINCT + - col0 * - + ( - 15 ) AS col2 FROM tab1 AS cor0
----
-1275
-1365
-765

query I rowsort
SELECT col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + - 18 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT + - 18 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT ( - - ( 13 ) ) - SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ( - - ( 13 ) ) - SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT col0 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col2
----
23
26

skipif mysql # not compatible
query I rowsort label-4259
SELECT col0 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col2
----
23
26

query II rowsort
SELECT col0 AS col1, 98 FROM tab2 AS cor0
----
46
98
64
98
75
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * + col1 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT + - col2 DIV + 43 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + - col2 / + 43 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT col0 * 92 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 * + 23 col2 FROM tab2 AS cor0
----
2162
2162
2162

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4267
SELECT DISTINCT - col0, + col0 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT DISTINCT - col0, + col0 + + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT - SUM( - 24 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT - SUM ( - 24 ) FROM tab1
----
72

query I rowsort
SELECT ALL 18 + - 84 + + 42 AS col0 FROM tab2
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4270
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col0 * + CAST( NULL AS SIGNED ) + - col1 * 32 >= ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-4270
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col0 * + CAST ( NULL AS INTEGER ) + - col1 * 32 >= ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT + col0 + - CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4271
SELECT + col0 + - CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) * - - 63 FROM tab2
----
-2898
-4032
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL + ( - - ( - - COUNT( * ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + ( - - ( - - COUNT ( * ) ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT MAX( ALL + col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4274
SELECT DISTINCT MAX ( ALL + col0 ) col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4276
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 FROM tab0 WHERE NOT - - col0 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 FROM tab0 WHERE NOT - - col0 IN ( col2 )
----
NULL

query II rowsort
SELECT - col0 AS col2, col2 AS col2 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL 48 - - - 67 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL + ( + 94 ) AS col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT - SUM( + - 71 ) AS col1 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - SUM ( + - 71 ) AS col1 FROM tab0 AS cor0
----
213

query I rowsort
SELECT + 45 - 73 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 25 ) < + 18 + col0 * + 48
----

query I rowsort
SELECT + - 35 * - col0 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT ( 80 ) AS col1 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + col1, + col2 ) AND + col0 <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT - - 66 - - ( + - 96 ), + MAX( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-30
-10

skipif mysql # not compatible
query II rowsort label-4288
SELECT - - 66 - - ( + - 96 ), + MAX ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-30
-10

query I rowsort
SELECT + 58 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 31 - ( - 51 ) AS col0 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT 38 + - 75 * COUNT( * ) AS col0 FROM tab1 WHERE - ( + col1 ) > ( NULL )
----
38

skipif mysql # not compatible
query I rowsort label-4291
SELECT 38 + - 75 * COUNT ( * ) AS col0 FROM tab1 WHERE - ( + col1 ) > ( NULL )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT SUM( DISTINCT - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4292
SELECT SUM ( DISTINCT - col0 ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT 71 * - 40 FROM tab0
----
-2840

query I rowsort
SELECT ( - + col0 ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + 55 * - - col2 * + 21 FROM tab2
----
26565
46200
66990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4296
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 / - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ALL 76 AS col0, + COUNT( * ) col0 FROM tab2 cor0
----
76
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4298
SELECT ALL 76 AS col0, + COUNT ( * ) col0 FROM tab2 cor0
----
76
3

query I rowsort
SELECT DISTINCT + 98 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4300
SELECT 12 DIV CAST( - col0 AS SIGNED ) * - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT 12 / CAST ( - col0 AS INTEGER ) * - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT MIN( + + 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4301
SELECT MIN ( + + 23 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 81 * 76 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= ( - + col2 * col2 * col0 + - 70 )
----

query I rowsort
SELECT ALL 31 + col2 AS col0 FROM tab1 cor0
----
127
90
99

query I rowsort
SELECT DISTINCT 8 * col0 + col0 AS col0 FROM tab1 AS cor0
----
459
765
819

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 56 ) AS col2 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT col0 DIV + col2 + - col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-4309
SELECT col0 / + col2 + - col0 FROM tab2
----
-44
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT ALL - CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT COUNT( 24 ) * CAST( - 43 AS SIGNED ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT COUNT ( 24 ) * CAST ( - 43 AS INTEGER ) FROM tab1
----
-129

query I rowsort
SELECT 16 + - + 97 AS col1 FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT SUM( DISTINCT - 49 ) AS col0 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT SUM ( DISTINCT - 49 ) AS col0 FROM tab1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT + 8 DIV + - 84 * - ( + 4 ) + + - col1 col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4315
SELECT + 8 / + - 84 * - ( + 4 ) + + - col1 col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + 9 + + - col0 FROM tab0
----
-6
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT - COUNT( * ) + 38 * - 51 AS col2 FROM tab1
----
-1941

skipif mysql # not compatible
query I rowsort label-4317
SELECT - COUNT ( * ) + 38 * - 51 AS col2 FROM tab1
----
-1941

query I rowsort
SELECT ALL col2 * - + 95 * - 27 AS col1 FROM tab1
----
151335
174420
246240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2, 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL - + col0 * + col0 * + 83 + + col1 * ( + ( - CAST( + col1 AS SIGNED ) ) / col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 / + 6, col1 + ( - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - + col0 * + col0 * + 83 + + col1 * ( + ( - CAST ( + col1 AS INTEGER ) ) / col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 / + 6, col1 + ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 28 col1 FROM tab0 cor0
----
-53
27
7

query I rowsort
SELECT + ( 53 ) FROM tab2 cor0
----
53
53
53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 - col1 * - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT COUNT( * ) * 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
504

skipif mysql # not compatible
query I rowsort label-4324
SELECT COUNT ( * ) * 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
504

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN col2 AND + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT DISTINCT + - MIN( DISTINCT - + ( col1 ) ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + - MIN ( DISTINCT - + ( col1 ) ) AS col0 FROM tab2 cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 21 / 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT - 2 + + col0 DIV 15 FROM tab0 AS cor0
----
-1
3
4

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - 2 + + col0 / 15 FROM tab0 AS cor0
----
-1
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT - SUM( DISTINCT + + 22 ) AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4329
SELECT - SUM ( DISTINCT + + 22 ) AS col1 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT + 12 * + col1 - - 95 AS col0 FROM tab0 AS cor0
----
1067
107
347

query II rowsort
SELECT + - col0 * + col2, - 40 AS col2 FROM tab2 AS cor0
----
-1058
-40
-2560
-40
-4350
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 + - - col0 col2 FROM tab1
----
51
-45
85
26
91
23

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT MAX( - - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4334
SELECT MAX ( - - col1 ) AS col2 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT + CAST( - col0 AS SIGNED ) FROM tab0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 44 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - - ( ( - col2 ) ) AS col0, + ( - col2 ) * - col0 * - ( + col1 ) * 91 AS col1 FROM tab0 AS cor0
----
-10
-1662570
-47
-5196555
-99
-873873

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( ( ( NULL ) NOT BETWEEN col1 AND NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + - COUNT( ALL - col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4340
SELECT + - COUNT ( ALL - col0 ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + 60 * + col1 AS col2 FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT col2 * 67 * - col1 AS col2 FROM tab2
----
-206360
-260362
-78591

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + MAX( DISTINCT + col2 ) * + 76 FROM tab1 AS cor0
----
7296

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + MAX ( DISTINCT + col2 ) * + 76 FROM tab1 AS cor0
----
7296

query II rowsort
SELECT - col0 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4347
SELECT - col1 DIV - - 60, + col0 + + col2 - - 25 + + col0 AS col0 FROM tab0 AS cor0
----
-1
102
0
209
0
318

skipif mysql # not compatible
query II rowsort label-4347
SELECT - col1 / - - 60, + col0 + + col2 - - 25 + + col0 AS col0 FROM tab0 AS cor0
----
-1
102
0
209
0
318

query I rowsort
SELECT - + ( - 24 ) FROM tab2 AS cor0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col0 + col2 * - - col1 - col0 ) IN ( 9 * + col0 - - - col2 )
----

query II rowsort
SELECT + 77 AS col0, - 8 + - 57 * - - 1 + col1 AS col1 FROM tab0 cor0
----
77
-44
77
-64
77
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - SUM( ALL + + ( + 58 ) ) FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4351
SELECT - SUM ( ALL + + ( + 58 ) ) FROM tab1 AS cor0
----
-174

query II rowsort
SELECT ALL + col2, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT + col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT - col0 + 8 AS col1 FROM tab2 AS cor0
----
-38
-56
-67

query III rowsort
SELECT * FROM tab1 WHERE ( + 8 / col0 ) IN ( + 75 * + col1 + 31, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT DISTINCT + 93 + 85 DIV - col1 AS col1 FROM tab0
----
8
89
92

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + 93 + 85 / - col1 AS col1 FROM tab0
----
8
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 88 * - + col1 col0, - 15 AS col1 FROM tab2
----
4488
-15
5896
-15
6776
-15

query I rowsort
SELECT col0 * ( col2 ) FROM tab0 WHERE + 73 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col0 * - 3 + col0 / + 34 IS NULL )
----

query II rowsort
SELECT ALL + - col1 * - + col2 / 83 + - col1 AS col1, - 4 / col2 + - col0 FROM tab2 WHERE NOT + col2 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) + + + col1 * + + col2 AS col1 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT ( - col1 ) + col0 AS col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL - 86 + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
-2432
-5014
-5111

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL NOT IN ( 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT + + ( + + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT + + ( + + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col2 AS col2 FROM tab1 cor0
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE 47 + col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - - col1 - - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT - col0 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT - col0 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 + col0 < 14 )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 13 + - 52 < - col1 * - 12 * col2 * - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN + 91 AND - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - 55 ) AS col2 FROM tab0 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col1 FROM tab2 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT DISTINCT + + MAX( ALL - - col1 ) AS col2, + 1 * + 1 col1 FROM tab1 AS cor0
----
47
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4377
SELECT DISTINCT + + MAX ( ALL - - col1 ) AS col2, + 1 * + 1 col1 FROM tab1 AS cor0
----
47
1

query I rowsort
SELECT + ( 72 ) AS col2 FROM tab2
----
72
72
72

query II rowsort
SELECT - - col0 AS col2, col2 AS col1 FROM tab2 WHERE NOT ( ( NOT ( NULL BETWEEN NULL AND col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + SUM( col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4380
SELECT + SUM ( col1 ) FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 71 FROM tab1 cor0
----
-51
-71
-85
-71
-91
-71

query I rowsort
SELECT col2 + - 73 FROM tab1 AS cor0
----
-14
-5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT col1 + + + col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT - col1 + + - col1 * - 6 FROM tab1
----
235
25
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT 8 + + COUNT( * ) DIV - - 55 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-4386
SELECT 8 + + COUNT ( * ) / - - 55 FROM tab1
----
8

query I rowsort
SELECT ALL + col2 * + col1 + - - col1 AS col1 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - 35 + - + COUNT( + - 77 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-4388
SELECT - 35 + - + COUNT ( + - 77 ) AS col2 FROM tab1
----
-38

query I rowsort
SELECT ALL col0 + + - col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + 1 * COUNT( * ) * - 30 AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4390
SELECT + 1 * COUNT ( * ) * - 30 AS col2 FROM tab2
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 11 col2 FROM tab2
----
-253
-440
-638

query II rowsort
SELECT ALL 31 AS col0, col2 AS col0 FROM tab1
----
31
59
31
68
31
96

query III rowsort
SELECT * FROM tab2 WHERE - 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 - - ( + 77 ) AS col1 FROM tab2
----
123
141
152

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 54 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 32 AS col0 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT 94 + - ( 29 ) AS col0 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT DISTINCT COUNT( col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT COUNT ( col1 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT col1 * - - 65 + - + col2, col2 FROM tab2 AS cor0
----
3292
23
4297
58
4965
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT CAST( + MAX( DISTINCT + + 68 ) AS SIGNED ) * - - SUM( + 39 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT CAST ( + MAX ( DISTINCT + + 68 ) AS INTEGER ) * - - SUM ( + 39 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + 14 * - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT DISTINCT + 74 / + CAST( NULL AS SIGNED ) + + + col0 - - - 30 * - - col0 + - col2 + ( - 38 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + 74 / + CAST ( NULL AS INTEGER ) + + + col0 - - - 30 * - - col0 + - col2 + ( - 38 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT - - col2 DIV 27 FROM tab1 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - - col2 / 27 FROM tab1 AS cor0
----
2
3

query I rowsort
SELECT col0 * + 40 * - ( - col1 ) FROM tab1 AS cor0
----
17000
171080
28560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT - COUNT( * ) DIV + - 60 * COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4405
SELECT - COUNT ( * ) / + - 60 * COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT COUNT( DISTINCT + 25 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4406
SELECT COUNT ( DISTINCT + 25 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT SUM( 1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4407
SELECT DISTINCT SUM ( 1 ) col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4408
SELECT DISTINCT col2 AS col2, col0 DIV - col1 FROM tab0
----
10
-4
47
0
99
-97

skipif mysql # not compatible
query II rowsort label-4408
SELECT DISTINCT col2 AS col2, col0 / - col1 FROM tab0
----
10
-4
47
0
99
-97

query I rowsort
SELECT + col1 + - 87 * + + col0 / + 15 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT - + SUM( DISTINCT - 65 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT - + SUM ( DISTINCT - 65 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
65

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 - + - col0 BETWEEN + 66 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - SUM( ALL - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - SUM ( ALL - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT DISTINCT - CAST( MAX( DISTINCT - + col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - CAST ( MAX ( DISTINCT - + col2 ) AS INTEGER ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT - 50 + + - col1 + - 72 AS col2 FROM tab2 AS cor0
----
-173
-189
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT MAX( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4417
SELECT MAX ( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
20

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - - ( + ( + 49 ) ) ) + col1 + col2 - - - 70 / + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 14 / - 1 * - - 9 AND + 42 + 69
----

query I rowsort
SELECT DISTINCT ( - - 28 ) + - col2 AS col1 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT COUNT( - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT COUNT ( - col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL + 65 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + 65 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + col2 - col2 AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT - CAST( NULL AS SIGNED ) + - 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT - CAST ( NULL AS INTEGER ) + - 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT 75 + + - SUM( - col0 ) FROM tab2 cor0
----
260

skipif mysql # not compatible
query I rowsort label-4425
SELECT 75 + + - SUM ( - col0 ) FROM tab2 cor0
----
260

query I rowsort
SELECT + 88 * col0 + col0 + - col1 * 63 * - col1 - - col0 FROM tab1 AS cor0
----
147357
16938
9225

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT + MIN( + + 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + MIN ( + + 72 ) FROM tab0 AS cor0
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4428
SELECT ALL + 67 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 67 + + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL + 75 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - - 56 > - 21 + - + col2 * - 18
----

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 75 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - - 56 > - 21 + - + col2 * - 18
----

query II rowsort
SELECT + col0 AS col1, - ( - col0 ) * - - ( - - col2 ) + - + 65 AS col1 FROM tab2
----
46
993
64
2495
75
4285

query II rowsort
SELECT + col1, + col2 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT col2 * + col2, + col1 FROM tab2
----
1600
77
3364
67
529
51

query II rowsort
SELECT DISTINCT + col2 AS col1, 11 FROM tab0 AS cor0
----
10
11
47
11
99
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT MIN( ALL - col0 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT MIN ( ALL - col0 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL - - CAST( + + 5 AS SIGNED ) * col1 FROM tab2 AS cor0
----
255
335
385

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - - CAST ( + + 5 AS INTEGER ) * col1 FROM tab2 AS cor0
----
255
335
385

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4436
SELECT ALL col0 AS col1, 36 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( col0 - - 1 + col1 + col0 * - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-4436
SELECT ALL col0 AS col1, 36 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( col0 - - 1 + col1 + col0 * - + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + CAST( - - 65 AS SIGNED ) * + - 31 FROM tab1 AS cor0
----
-2015
-2015
-2015

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + CAST ( - - 65 AS INTEGER ) * + - 31 FROM tab1 AS cor0
----
-2015
-2015
-2015

query I rowsort
SELECT + 68 * + ( - 94 ) AS col0 FROM tab1 AS cor0
----
-6392
-6392
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL + 87 * - - COUNT( * ) AS col0 FROM tab1 cor0
----
261

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + 87 * - - COUNT ( * ) AS col0 FROM tab1 cor0
----
261

query I rowsort
SELECT DISTINCT 17 - col1 + 5 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - MIN( ALL + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4442
SELECT - MIN ( ALL + col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT + ( 77 ) FROM tab2
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ( + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4444
SELECT ( + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4445
SELECT 48 * + MAX( - - ( CAST( NULL AS DECIMAL ) ) ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT 48 * + MAX ( - - ( CAST ( NULL AS REAL ) ) ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT - col1 DIV 8 AS col2 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4446
SELECT - col1 / 8 AS col2 FROM tab1
----
-1
-5
0

query I rowsort
SELECT col1 * - - ( - col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> col0 + - col2
----

query II rowsort
SELECT ALL + col0 + + - 15 + - - 13 AS col1, 34 FROM tab2 AS cor0
----
44
34
62
34
73
34

query I rowsort
SELECT + ( - - ( - + col0 ) ) / + - col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 39 AS col0, col0 FROM tab1
----
39
51
39
85
39
91

query I rowsort
SELECT - - 72 + - + 11 AS col1 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE + col1 * col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + ( + - SUM( - 42 ) ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + ( + - SUM ( - 42 ) ) FROM tab0 AS cor0
----
126

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4456
SELECT + - 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-4456
SELECT + - CAST ( NULL AS REAL ) + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 67 * + 95 * + - ( + + col1 ) FROM tab2 AS cor0
----
-324615
-426455
-490105

query I rowsort
SELECT ALL + 71 * + col0 + + - 97 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3524
5938
6364

query I rowsort
SELECT ALL 52 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL COUNT( * ) * + MAX( DISTINCT - col1 ) + - MIN( + ( + - col1 ) ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT - col1 ) + - MIN ( + ( + - col1 ) ) FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT DISTINCT col0 + + col2 + CAST( - col1 AS SIGNED ) FROM tab0
----
-19
195
76

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT col0 + + col2 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4462
SELECT DISTINCT + SUM( DISTINCT col0 ), + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4462
SELECT DISTINCT + SUM ( DISTINCT col0 ), + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 69 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 69 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4464
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL - 23 - - - col2, col2 AS col2 FROM tab2 WHERE 41 + col2 + col2 + + col1 IN ( - - 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 * + col0 - + col1 + - col2 col0, + col0 - 16 AS col1 FROM tab2 AS cor0
----
2272
30
4811
48
4900
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab0 AS cor0
----
12

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col0 + + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4469
SELECT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col1 FROM tab1 AS cor0 WHERE + 63 + - + col2 + - col1 * 87 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4471
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col2, + 93, + + col2 + - CAST( NULL AS DECIMAL ), + - col0 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-4471
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col2, + 93, + + col2 + - CAST ( NULL AS REAL ), + - col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - - COUNT( + 48 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4472
SELECT - - COUNT ( + 48 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - - COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4473
SELECT - - COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - SUM( + 90 ) * 2 * - ( - COUNT( 93 ) ) AS col0 FROM tab1 AS cor0
----
-1620

skipif mysql # not compatible
query I rowsort label-4474
SELECT - SUM ( + 90 ) * 2 * - ( - COUNT ( 93 ) ) AS col0 FROM tab1 AS cor0
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4475
SELECT + + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - col2 IS NOT NULL ) )
----

query I rowsort
SELECT ALL - ( - 60 ) AS col0 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT - ( - col1 ) * - - 29 AS col1 FROM tab2
----
1479
1943
2233

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) + + col1 / + col1 BETWEEN - - col0 * - + col0 AND + col2 OR NOT ( NOT col0 * - col0 IS NULL )
----

query I rowsort
SELECT ( + - 76 ) AS col1 FROM tab1
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT MAX( ALL - ( 94 ) ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-4481
SELECT MAX ( ALL - ( 94 ) ) FROM tab1
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col2, + 37 col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + 40 FROM tab0
----
3240
40
840

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + 40 FROM tab0
----
3240
40
840

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT DISTINCT + 56 DIV - + col0 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT + 56 / - + col0 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT - col1 * col2 * + + col2 + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT - ( - - MIN( ALL col1 ) ) * 87 AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4486
SELECT - ( - - MIN ( ALL col1 ) ) * 87 AS col1 FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE + col2 * - + col2 * - col1 <> - - col0 - - 42
----
3

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE + col2 * - + col2 * - col1 <> - - col0 - - 42
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL - MAX( DISTINCT + 37 ) + 26 AS col0 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - MAX ( DISTINCT + 37 ) + 26 AS col0 FROM tab1
----
-11

query I rowsort
SELECT - 54 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - COUNT( - ( - 34 ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4490
SELECT - COUNT ( - ( - 34 ) ) AS col2 FROM tab2, tab0 AS cor0
----
-9

query I rowsort
SELECT ALL col1 * - 2 FROM tab2
----
-102
-134
-154

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 25 IS NULL
----

query I rowsort
SELECT - 12 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT - + col2 DIV - ( + - 28 ) AS col0 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT - + col2 / - ( + - 28 ) AS col0 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT ALL - 14 DIV + + col1 FROM tab0 AS cor0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - 14 / + + col1 FROM tab0 AS cor0
----
-14
0
0

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col2 + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + ( 85 ) FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4498
SELECT - - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( - col2 ) col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + MIN( + + 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4500
SELECT + MIN ( + + 58 ) FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4501
SELECT SUM( DISTINCT + - col1 ) + - 52 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT SUM ( DISTINCT + - col1 ) + - 52 * + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL SUM( ALL + 57 ) AS col1 FROM tab2 WHERE NULL >= - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL SUM ( ALL + 57 ) AS col1 FROM tab2 WHERE NULL >= - 9
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col0 + + 75 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT 7 + COUNT( * ) + - + COUNT( * ) + + + 82 + - + COUNT( * ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4504
SELECT 7 + COUNT ( * ) + - + COUNT ( * ) + + + 82 + - + COUNT ( * ) FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT + 82 + - 15 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 / + 16 * col0 NOT IN ( + - col1 + ( - col2 ) - - 6 * CAST( + + 78 AS SIGNED ), - col1, + col2 - + col2 + col0 )
----
70

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + 82 + - 15 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 / + 16 * col0 NOT IN ( + - col1 + ( - col2 ) - - 6 * CAST ( + + 78 AS INTEGER ), - col1, + col2 - + col2 + col0 )
----
70

query II rowsort
SELECT DISTINCT col0, 8 AS col2 FROM tab1 AS cor0 WHERE NOT - 54 IN ( + - col1, 81, 49 )
----
51
8
85
8
91
8

query I rowsort
SELECT + col1 * 33 AS col0 FROM tab0
----
2673
33
693

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 IS NULL
----

query I rowsort
SELECT - + col0 * + - 39 - + - 68 AS col2 FROM tab2 AS cor0
----
1862
2564
2993

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 15 - col1 / + 80 + + 65 / - col1 * + col2
----

query I rowsort
SELECT DISTINCT - ( + 29 ) FROM tab2 AS cor0 WHERE NOT ( ( + + 28 ) + + col2 + + + col0 ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( + col0 ) <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4513
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT CAST ( NULL AS REAL ) + - + col1 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT MIN( col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4514
SELECT MIN ( col1 ) AS col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT col2 + - col1 + + + 85 DIV ( - 88 ) + col2 AS col0 FROM tab2
----
-5
3
49

skipif mysql # not compatible
query I rowsort label-4515
SELECT col2 + - col1 + + + 85 / ( - 88 ) + col2 AS col0 FROM tab2
----
-5
3
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT + 49 + - col0 + 96 DIV col2 col2 FROM tab0
----
-29
-48
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4516
SELECT + 49 + - col0 + 96 / col2 col2 FROM tab0
----
-29
-48
36

query I rowsort
SELECT col0 + + 7 + - + 16 + + 67 + - + col0 * - col0 FROM tab2
----
2220
4218
5758

query I rowsort
SELECT + col2 * - 55 + + 56 + - ( + col0 ) * - - 99 AS col2 FROM tab0
----
-14992
-4014
-9107

query I rowsort
SELECT - col1 + col1 * - - 45 + + - col0 AS col0 FROM tab1
----
135
1977
565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - - 91 AS col0 FROM tab1
----
105
138
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4522
SELECT - col1 AS col2, + CAST( + col1 AS SIGNED ) - - col0 + - 89 * + + col1 + 60 col0 FROM tab2 AS cor0
----
-51
-4382
-67
-5761
-77
-6652

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4522
SELECT - col1 AS col2, + CAST ( + col1 AS INTEGER ) - - col0 + - 89 * + + col1 + 60 col0 FROM tab2 AS cor0
----
-51
-4382
-67
-5761
-77
-6652

query II rowsort
SELECT ALL + col1, 52 AS col2 FROM tab2 AS cor0
----
51
52
67
52
77
52

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

query II rowsort
SELECT ALL col1 AS col1, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT DISTINCT - 6 AS col1, 85 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
-6
59925
-6
73950
-6
816255

query I rowsort
SELECT ALL col1 * - col0 + - 68 * + 13 AS col2 FROM tab2 AS cor0
----
-3230
-5812
-5909

query I rowsort
SELECT col1 + - + 6 AS col2 FROM tab1 AS cor0
----
-1
41
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT + ( col1 ) DIV - + col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT + ( col1 ) / - + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 98 * 4 * - 83 AS col2 FROM tab0
----
-32536
-32536
-32536

onlyif mysql # DIV for integer division: 
query II rowsort label-4531
SELECT - col0 DIV + 32, + 39 AS col2 FROM tab0
----
-2
39
-3
39
0
39

skipif mysql # not compatible
query II rowsort label-4531
SELECT - col0 / + 32, + 39 AS col2 FROM tab0
----
-2
39
-3
39
0
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT DISTINCT + 2 DIV + col2 - + col0 col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4532
SELECT DISTINCT + 2 / + col2 - + col0 col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT SUM( DISTINCT + - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4533
SELECT SUM ( DISTINCT + - col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT - - col0 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) / col0 * 15 IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4534
SELECT - - col0 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) / col0 * 15 IS NULL
----
15
87
97

query I rowsort
SELECT col0 * + 70 FROM tab1 cor0
----
3570
5950
6370

query I rowsort
SELECT - col2 * + col1 * - 48 AS col1 FROM tab1 AS cor0
----
14160
153408
64512

query I rowsort
SELECT ALL - - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL + MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + MIN ( - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + ( - 25 ) * ( - col0 ) AS col1 FROM tab0 AS cor0
----
2175
2425
375

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 79 * + col1 AS col2 FROM tab2 AS cor0
----
4029
5293
6083

query II rowsort
SELECT col1, 66 + - + col0 AS col2 FROM tab0 AS cor0
----
1
-31
21
-21
81
51

query II rowsort
SELECT DISTINCT - + col0 + + - col1 + + - 37 AS col1, col1 AS col0 FROM tab0 AS cor0
----
-133
81
-135
1
-145
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4545
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < + - CAST( NULL AS SIGNED ) * + 7
----

skipif mysql # not compatible
query III rowsort label-4545
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < + - CAST ( NULL AS INTEGER ) * + 7
----

query I rowsort
SELECT ALL + col1 + + 38 AS col2 FROM tab2
----
105
115
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL 91 AS col0 FROM tab1 WHERE + - 15 * col0 IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL 91 AS col0 FROM tab1 WHERE + - 15 * col0 IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4548
SELECT + col0 / 7 + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT + col0 / 7 + CAST ( NULL AS REAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT ALL - CAST( 55 AS SIGNED ) col2 FROM tab0
----
-55
-55
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4549
SELECT ALL - CAST ( 55 AS INTEGER ) col2 FROM tab0
----
-55
-55
-55

query III rowsort
SELECT * FROM tab2 WHERE 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT + 61 DIV + col1 AS col2 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-4551
SELECT + 61 / + col1 AS col2 FROM tab1
----
1
12
4

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT + - col1 + - col0 + + - col1 + - 35 AS col0 FROM tab2 AS cor0
----
-183
-244
-253

query I rowsort
SELECT ALL + - col2 * + - 57 + + - col2 + - col1 * - - col2 FROM tab0 AS cor0 WHERE NOT col1 * + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT col0 * CAST( NULL AS SIGNED ) + - 44 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT col0 * CAST ( NULL AS INTEGER ) + - 44 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + - 27 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT 34 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - - 26 - + + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT ALL col1 * + - 24 AS col0 FROM tab1 AS cor0
----
-1128
-120
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT col0 - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4562
SELECT col0 - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL AND NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4564
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4564
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( - CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL + - 13 * - + 52 + - + col2 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
685
704
713

query I rowsort
SELECT col1 - + 25 AS col0 FROM tab0 AS cor0
----
-24
-4
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT 45 * - - COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT 45 * - - COUNT ( * ) FROM tab1
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 26 col1, - col0 AS col2 FROM tab2
----
26
-46
26
-64
26
-75

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2 WHERE + - 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + 28 * + COUNT( * ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + 28 * + COUNT ( * ) AS col0 FROM tab0
----
84

query I rowsort
SELECT DISTINCT - + col2 / + - ( - - 91 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT - - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4572
SELECT - - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + 2 * + col2 * - col0 * - 27 + - + 45 FROM tab1 AS cor0
----
264339
270765
334107

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + + 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + col0 * ( + 65 ) * + col2 AS col2 FROM tab1 AS cor0
----
318240
325975
402220

query I rowsort
SELECT col1 * + + col0 - - + 71 AS col0 FROM tab2 AS cor0
----
2417
4999
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL - CAST( NULL AS SIGNED ) * col2 * + 77 * 19 + - col1 + + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 * + 77 * 19 + - col1 + + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 63 - - col1 - - 96 FROM tab2
----
51
210
67
226
77
236

query III rowsort
SELECT * FROM tab0 WHERE + 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * + + col2 + + - ( ( - col0 ) ) * + ( + col1 ) + 14, - col1 AS col2 FROM tab2
----
1153
-67
1187
-51
1862
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 47 ) col2 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL MAX( - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL MAX ( - col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - SUM( ALL col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4585
SELECT - SUM ( ALL col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 5 / MIN( DISTINCT - - col2 ) + + ( - - COUNT( * ) ) AS col2 FROM tab1 WHERE col1 = + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT 5 / MIN ( DISTINCT - - col2 ) + + ( - - COUNT ( * ) ) AS col2 FROM tab1 WHERE col1 = + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL CAST( + + 86 AS SIGNED ) AS col0 FROM tab0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL CAST ( + + 86 AS INTEGER ) AS col0 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT + 76 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL ( + + COUNT( * ) ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL ( + + COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - 43 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT DISTINCT + + CAST( + + ( + + col0 ) AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + + CAST ( + + ( + + col0 ) AS INTEGER ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col0 - - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN 43 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - 19 * - col0 AS col2 FROM tab2 cor0
----
1216
1425
874

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT DISTINCT + CAST( - - CAST( + + 61 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + CAST ( - - CAST ( + + 61 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4597
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT col1 DIV col2 * - + col0 * - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT col1 / col2 * - + col0 * - col2 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - col0 * + + col2 * 95 AS col2, 80 + - col2 FROM tab2
----
-100510
57
-243200
40
-413250
22

query I rowsort
SELECT ALL col1 * + - 69 AS col0 FROM tab2
----
-3519
-4623
-5313

query I rowsort
SELECT DISTINCT + col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 58 )
----

query I rowsort
SELECT ALL + + col1 * + + col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

query II rowsort
SELECT ALL - col2 + - 70 AS col2, - 77 AS col1 FROM tab0
----
-117
-77
-169
-77
-80
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT COUNT( * ) * MAX( ALL col2 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT COUNT ( * ) * MAX ( ALL col2 ) FROM tab1
----
288

query I rowsort
SELECT 64 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT * FROM tab0 WHERE NOT 19 = + + col1 - - - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4610
SELECT ALL col2 * - col2 * + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL col2 * - col2 * + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) DIV + - 46 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) / + - 46 AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - 88
----

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT 57 * - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-5643

skipif mysql # not compatible
query I rowsort label-4614
SELECT 57 * - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - MIN( col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4615
SELECT - MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4616
SELECT + COUNT( * ), 44 DIV - - COUNT( * ) col0 FROM tab2 cor0
----
3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4616
SELECT + COUNT ( * ), 44 / - - COUNT ( * ) col0 FROM tab2 cor0
----
3
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT - 71 DIV - + 63 + + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - 71 / - + 63 + + col1 FROM tab0 AS cor0
----
2
22
82

query II rowsort
SELECT ALL - col0 + 52, + col2 AS col1 FROM tab2 AS cor0
----
-12
40
-23
58
6
23

query I rowsort
SELECT ALL - 52 + 95 AS col2 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - - 20 - + COUNT( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - - 20 - + COUNT ( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
20

query I rowsort
SELECT + ( 33 ) AS col0 FROM tab2
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4622
SELECT ALL - COUNT( * ) DIV CAST( 3 AS SIGNED ) + + + 88 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - COUNT ( * ) / CAST ( 3 AS INTEGER ) + + + 88 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4623
SELECT - 82, 36 * + 88 - CAST( + 54 AS SIGNED ) + - col0 * - col0 * - col2 + - col0 * + col1 AS col1 FROM tab1 WHERE + 67 < ( + col2 )
----
-82
-247296
-82
-564271

skipif mysql # not compatible
query II rowsort label-4623
SELECT - 82, 36 * + 88 - CAST ( + 54 AS INTEGER ) + - col0 * - col0 * - col2 + - col0 * + col1 AS col1 FROM tab1 WHERE + 67 < ( + col2 )
----
-82
-247296
-82
-564271

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT 1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( + - col1 ) * + col0 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT - ( - - 38 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - ( - - 38 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 82 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 47 FROM tab2 AS cor0 WHERE NOT ( NULL ) < 43 * - 95 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN + 36 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4630
SELECT ( + + COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ( + + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - + COUNT( 45 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4631
SELECT - + COUNT ( 45 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - + 17 * + col0 * - + 50 + - - 73 FROM tab1 AS cor0
----
43423
72323
77423

query I rowsort
SELECT 11 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( ( + 38 BETWEEN col2 AND NULL ) ) )
----

query I rowsort
SELECT DISTINCT 97 * - - 22 * + col0 FROM tab0 cor0
----
185658
206998
32010

query II rowsort
SELECT ALL + col0, - col1 + - 64 FROM tab1 AS cor0
----
51
-78
85
-69
91
-111

query II rowsort
SELECT DISTINCT + + col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 6 * + ( + col1 ) AS col2 FROM tab0
----
-126
-486
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4639
SELECT DISTINCT 5 * - col2 AS col0, + 84 * ( - 86 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-235
NULL
-495
NULL
-50
NULL

skipif mysql # not compatible
query II rowsort label-4639
SELECT DISTINCT 5 * - col2 AS col0, + 84 * ( - 86 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-235
NULL
-495
NULL
-50
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - + col2, 70 col2 FROM tab2 AS cor0
----
1058
70
2560
70
4350
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col1 FROM tab2 cor0
----
-24
-24
-24

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL MAX( DISTINCT + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT + 58 DIV + - col0 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + 58 / + - col0 AS col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT 32 + COUNT( * ) AS col1 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4645
SELECT 32 + COUNT ( * ) AS col1 FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL + 50 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + 50 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col0 * 30 + - 1 * + col0 * + 24 AS col1 FROM tab2
----
-2438
-3392
-3975

query I rowsort
SELECT + 64 + - col2 FROM tab2
----
24
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL 56 * - COUNT( * ) - COUNT( * ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL 56 * - COUNT ( * ) - COUNT ( * ) FROM tab0
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4650
SELECT - COUNT( * ), - 77 DIV - + 62 AS col0 FROM tab2
----
-3
1

skipif mysql # not compatible
query II rowsort label-4650
SELECT - COUNT ( * ), - 77 / - + 62 AS col0 FROM tab2
----
-3
1

query III rowsort
SELECT * FROM tab0 WHERE + col1 / + + 95 * col2 * - 11 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + + ( - 2 ) * - - ( 87 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col0 AS col0, ( - col1 ) * - col1 AS col0 FROM tab1 cor0
----
-51
196
-85
25
-91
2209

query II rowsort
SELECT ALL - + 48 AS col0, 31 FROM tab0 AS cor0
----
-48
31
-48
31
-48
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL - MAX( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ALL - 35 + col0 AS col2 FROM tab2 AS cor0
----
11
29
40

query I rowsort
SELECT - col1 + + ( ( - col2 ) ) FROM tab1
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT + - 95 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-4658
SELECT + - 95 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT + + 30 DIV + + 35 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT + + 30 / + + 35 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT + ( col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT COUNT( * ) * + - COUNT( * ) + - + 19 AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( * ) * + - COUNT ( * ) + - + 19 AS col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT + col2 * + 31 FROM tab2
----
1240
1798
713

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 44 * - 29 + + 55 * + 54 / + 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, col0 AS col1 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab2 WHERE + col0 + - col2 NOT IN ( + col2 )
----
117
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 22 FROM tab2 WHERE NULL IN ( + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 22 FROM tab2 WHERE NULL IN ( + CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT COUNT( * ) * - 53 AS col1 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-4668
SELECT COUNT ( * ) * - 53 AS col1 FROM tab2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 41 * COUNT( * ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4669
SELECT 41 * COUNT ( * ) FROM tab1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL 93 + + MAX( + col2 ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL 93 + + MAX ( + col2 ) FROM tab1
----
189

query I rowsort
SELECT - col1 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE col1 + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT - col2 + - col1 DIV - 97 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4673
SELECT - col2 + - col1 / - 97 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT - 67 DIV + col1 + ( - col1 ) AS col0 FROM tab2
----
-52
-68
-77

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 67 / + col1 + ( - col1 ) AS col0 FROM tab2
----
-52
-68
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4675
SELECT ALL * FROM tab0 WHERE NOT - 85 * + col2 IN ( + CAST( col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4675
SELECT ALL * FROM tab0 WHERE NOT - 85 * + col2 IN ( + CAST ( col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col2 ) < + 94
----

query I rowsort
SELECT + col2 * 90 FROM tab2 WHERE NULL <> + col2
----

query I rowsort
SELECT ALL col0 * - ( col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL - 53 - - COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL - 53 - - COUNT ( * ) FROM tab1
----
-50

query I rowsort
SELECT - col0 * + col1 + - col1 FROM tab2 WHERE NOT + col0 / + 14 >= + col0
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - 15 - - COUNT( * ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4682
SELECT - 15 - - COUNT ( * ) AS col2 FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT - SUM( col1 ) + - SUM( DISTINCT - col2 ) * - 69 AS col2 FROM tab0
----
-10867

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT - SUM ( col1 ) + - SUM ( DISTINCT - col2 ) * - 69 AS col2 FROM tab0
----
-10867

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT COUNT( * ) * 69 col2 FROM tab2
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT COUNT ( * ) * 69 col2 FROM tab2
----
207

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 1 * - 90 ) > ( 27 / 5 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col2 * + 33 FROM tab2
----
1360
1972
782

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - 43 + 51 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 86 * COUNT( * ) AS col1 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 86 * COUNT ( * ) AS col1 FROM tab2
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT col2 DIV 79 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT col2 / 79 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 41 FROM tab0
----
122
42
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT DISTINCT - 58 DIV col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - 58 / col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - 62 * COUNT( * ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - 62 * COUNT ( * ) FROM tab2 AS cor0
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT MAX( - 8 ) * + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4694
SELECT DISTINCT MAX ( - 8 ) * + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT - col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 49 ) * col1 AS col1 FROM tab2 cor0
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - ( 59 ) * + SUM( - 6 ) FROM tab2 AS cor0
----
1062

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - ( 59 ) * + SUM ( - 6 ) FROM tab2 AS cor0
----
1062

query III rowsort
SELECT * FROM tab0 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT ( COUNT( * ) ) * - MAX( 78 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-702

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT ( COUNT ( * ) ) * - MAX ( 78 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-702

query I rowsort
SELECT 2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT COUNT( * ) * - 6 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT COUNT ( * ) * - 6 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NULL
----
-54

query I rowsort
SELECT 43 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT - - 81 AS col2 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT MAX( ALL col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT MAX ( ALL col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ( - 42 ) AS col2 FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT ( + col2 ) * col2 - - col1 DIV + 26 col0 FROM tab1 AS cor0 WHERE NOT 24 BETWEEN + col1 AND 33 * col1
----
4625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4706
SELECT ( + col2 ) * col2 - - col1 / + 26 col0 FROM tab1 AS cor0 WHERE NOT 24 BETWEEN + col1 AND 33 * col1
----
4625

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 10 * 98 + + 54 NOT BETWEEN + col2 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + MIN( ALL 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + MIN ( ALL 70 ) FROM tab0 AS cor0
----
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN ( + col1 ) AND ( + col2 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) * + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 33 * - + 39 AS col0 FROM tab2
----
-1287
-1287
-1287

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT ALL - col2 DIV + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - col2 / + - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT 84 + + ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-4713
SELECT 84 + + ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
87

query I rowsort
SELECT - col1 * - 62 * col0 + + col2 FROM tab0
----
113284
6113
75377

query I rowsort
SELECT + col0 * + - col2 + col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - ( - MAX( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4716
SELECT - ( - MAX ( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 * + 28 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT MAX( ALL + 30 ) * + + 70 FROM tab1
----
2100

skipif mysql # not compatible
query I rowsort label-4718
SELECT MAX ( ALL + 30 ) * + + 70 FROM tab1
----
2100

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * + 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
33

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT 45 * 14 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( - 37 ) NOT IN ( ( - 9 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT 45 * 14 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( - 37 ) NOT IN ( ( - 9 ) )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 17 ) NOT BETWEEN 63 / col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4724
SELECT * FROM tab1 AS cor0 WHERE + CAST( - col2 AS SIGNED ) + - 11 NOT BETWEEN NULL AND + 84 * ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4724
SELECT * FROM tab1 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) + - 11 NOT BETWEEN NULL AND + 84 * ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT + CAST( + 26 AS SIGNED ) + - + col1 + + 25 FROM tab1 AS cor0
----
37
4
46

skipif mysql # not compatible
query I rowsort label-4725
SELECT + CAST ( + 26 AS INTEGER ) + - + col1 + + 25 FROM tab1 AS cor0
----
37
4
46

query I rowsort
SELECT DISTINCT - col1 + - 73 AS col1 FROM tab0 AS cor0
----
-154
-74
-94

query I rowsort
SELECT ALL + + col2 + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - 25 AS col1 FROM tab0 AS cor0
----
-2025
-25
-525

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE ( 27 + col0 ) NOT IN ( col0 * 8 )
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( col2 AS SIGNED ) + - col2 + - 5 * + col1 * 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( col2 AS INTEGER ) + - col2 + - 5 * + col1 * 57 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 51 + col2 FROM tab2
----
109
74
91

query I rowsort
SELECT ALL col0 - - - 62 AS col0 FROM tab1
----
-11
23
29

query I rowsort
SELECT + col1 FROM tab0 WHERE ( col2 - - 48 + - col0 ) IS NULL
----

query I rowsort
SELECT + col1 * + - col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL + CAST( NULL AS SIGNED ) - MIN( ALL - + ( - col0 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + CAST ( NULL AS INTEGER ) - MIN ( ALL - + ( - col0 ) ) FROM tab0
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 * + - ( - col0 ) - - + col0 AS col0 FROM tab0
----
1230
1914
194

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 98 + + + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4740
SELECT col2 - col1 + + + CAST( + col1 AS DECIMAL ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT col2 - col1 + + + CAST ( + col1 AS REAL ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 26 * - ( - col1 ) * - col2 - - col0 AS col1 FROM tab2
----
-100961
-30452
-80016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 - col0 + + col2 col1 FROM tab2
----
64
65
71

query I rowsort
SELECT DISTINCT + - col2 * + 20 FROM tab1 AS cor0
----
-1180
-1360
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT - + col2 DIV + - col0 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - + col2 / + - col0 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 * + + col0 - - col2 ) <> col1
----

query I rowsort
SELECT + col1 + + 96 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + - col1 + + col0 + col2 NOT IN ( 35 * + 46 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - - COUNT( * ) * + - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4747
SELECT - - COUNT ( * ) * + - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-273

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT + col1 IS NULL )
----

query I rowsort
SELECT ALL - col2 * - col1 * - 65 * - + col2 FROM tab1 AS cor0
----
1131325
14126320
8386560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT ALL 35 DIV MAX( DISTINCT - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 35 / MAX ( DISTINCT - col2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - SUM( ALL col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4751
SELECT - SUM ( ALL col0 ) col0 FROM tab2
----
-185

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NULL = NULL AND - + 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT DISTINCT ( + - col1 ) / ( col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT ( + - col1 ) / ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + + 36 ) * 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4755
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) + col0 / + - col1 BETWEEN - col1 * 48 AND col0 / col1
----

skipif mysql # not compatible
query III rowsort label-4755
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) + col0 / + - col1 BETWEEN - col1 * 48 AND col0 / col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + 28 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT + col0 + - - 81 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> - - ( 97 )
----

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE - col1 * + + 50 + - - 48 BETWEEN + col2 AND ( 84 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4762
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab2
----
3
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( - - 10 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 9 + + col0 + - - col1 + - col0 + + 27 + 37 = - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - + COUNT( * ) + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4765
SELECT - + COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT - 50 * - col0 AS col0 FROM tab1 AS cor0
----
2550
4250
4550

query I rowsort
SELECT DISTINCT - 12 * - 21 * 56 * + col2 FROM tab0 AS cor0
----
1397088
141120
663264

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT 60 - - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4768
SELECT 60 - - COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL col0 + + - ( 24 ) FROM tab2
----
22
40
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col2 * - - 48
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4771
SELECT - 44 AS col1, 71 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-44
68

skipif mysql # not compatible
query II rowsort label-4771
SELECT - 44 AS col1, 71 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-44
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IN ( - col1 / col2 * - 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 26 * + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4774
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 cor0
----
3
3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 5 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / + col2 + - col2 > + col2 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + + ( + 16 ) + + col0 AS col1 FROM tab0 cor0
----
113
1311
423

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4778
SELECT DISTINCT - col0 DIV - + col2 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-4778
SELECT DISTINCT - col0 / - + col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1
NULL
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + - SUM( ALL - 50 ) AS col2 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4779
SELECT + - SUM ( ALL - 50 ) AS col2 FROM tab1 AS cor0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT ALL 34 DIV + - 4 + col2 + col0 FROM tab1 AS cor0
----
136
139
151

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL 34 / + - 4 + col2 + col0 FROM tab1 AS cor0
----
136
139
151

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 ) <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - col1 FROM tab0 cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - col1 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT col1 DIV 82 + + col0 + - col2 AS col1 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-4784
SELECT col1 / 82 + + col0 + - col2 AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT - col1 + - + 54 AS col2 FROM tab2
----
-105
-121
-131

query I rowsort
SELECT - 52 + 64 FROM tab0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT MIN( ALL - col2 ) + - 71 AS col1 FROM tab1
----
-167

skipif mysql # not compatible
query I rowsort label-4787
SELECT MIN ( ALL - col2 ) + - 71 AS col1 FROM tab1
----
-167

query I rowsort
SELECT col1 + + + col2 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab0 WHERE + + 62 >= ( + col1 )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col1 ) col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + SUM( ALL - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + SUM ( ALL - + col0 ) FROM tab2
----
-185

query I rowsort
SELECT 33 + + col1 FROM tab2
----
100
110
84

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT NULL <> - + col0 )
----

query I rowsort
SELECT ALL - + col1 + - ( 49 ) * - 69 - 50 AS col0 FROM tab1 AS cor0
----
3284
3317
3326

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + + COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4795
SELECT + + COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
6

query I rowsort
SELECT 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 17 + + 6 + + 9 FROM tab2
----
32
32
32

query I rowsort
SELECT DISTINCT col2 - - col1 - - col0 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT ALL - 49 AS col0, ( COUNT( * ) ) + + COUNT( * ) + + - 96 * + 47 AS col2 FROM tab1 AS cor0
----
-49
-4506

skipif mysql # not compatible
query II rowsort label-4800
SELECT ALL - 49 AS col0, ( COUNT ( * ) ) + + COUNT ( * ) + + - 96 * + 47 AS col2 FROM tab1 AS cor0
----
-49
-4506

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT - + COUNT( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - + COUNT ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT + col1, ( + col0 ) + + 7 AS col0, + 61 - - col2 FROM tab1 AS cor0
----
9 values hashing to 64f3b26225bc3651a5e09ffd0b024a39

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + + ( + MIN( 54 ) ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + + ( + MIN ( 54 ) ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT + col0 * + 37 * + + 46 FROM tab1 AS cor0
----
144670
154882
86802

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, 99 AS col1 FROM tab1 cor0
----
-51
99
-85
99
-91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL ( + + MIN( DISTINCT 78 ) ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL ( + + MIN ( DISTINCT 78 ) ) FROM tab1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4808
SELECT - SUM( DISTINCT 65 ) AS col2, 16 * - 16 + + CAST( NULL AS SIGNED ) FROM tab2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-4808
SELECT - SUM ( DISTINCT 65 ) AS col2, 16 * - 16 + + CAST ( NULL AS INTEGER ) FROM tab2
----
-65
NULL

query I rowsort
SELECT DISTINCT + col0 / + - 12 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 52 * col2 FROM tab2
----
-1196
-2080
-3016

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + + col1
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + - COUNT( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4813
SELECT + - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - SUM( 33 ) AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4814
SELECT - SUM ( 33 ) AS col1 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT ALL ( + + ( + 23 ) ) FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + SUM( DISTINCT - + ( col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + SUM ( DISTINCT - + ( col0 ) ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 + - - col1
----

query II rowsort
SELECT - col2 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col1 * 69 FROM tab2 AS cor0
----
3473
4548
5249

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + MIN( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4821
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT + MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4822
SELECT + MAX ( + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4823
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT DISTINCT - COUNT( * ) DIV + 43 * + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - COUNT ( * ) / + 43 * + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT 71 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 50 * col2 AS col0 FROM tab0
----
2350
4950
500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4827
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN + CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4827
SELECT ALL * FROM tab2 WHERE NOT col2 NOT BETWEEN + CAST ( col2 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT - col1 + - + 89 DIV + + 60 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-4828
SELECT - col1 + - + 89 / + + 60 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4829
SELECT * FROM tab2 AS cor0 WHERE col1 / + + col2 * - col2 + 50 * - + CAST( NULL AS SIGNED ) NOT IN ( - col1, - col2 )
----

skipif mysql # not compatible
query III rowsort label-4829
SELECT * FROM tab2 AS cor0 WHERE col1 / + + col2 * - col2 + 50 * - + CAST ( NULL AS INTEGER ) NOT IN ( - col1, - col2 )
----

query I rowsort
SELECT - - col2 * col0 + + - 77 * - col2 FROM tab2 AS cor0
----
2829
5640
8816

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - COUNT( * ) + + 71 * - 21 AS col0 FROM tab0 AS cor0
----
-1494

skipif mysql # not compatible
query I rowsort label-4831
SELECT - COUNT ( * ) + + 71 * - 21 AS col0 FROM tab0 AS cor0
----
-1494

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - 24 + + - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4832
SELECT - 24 + + - COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT - + MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT 29 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT - + MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT 29 IS NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL + + MAX( DISTINCT ( - + 40 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4834
SELECT ALL + + MAX ( DISTINCT ( - + 40 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - 87 - col1 + ( - - col0 ) FROM tab2 AS cor0
----
-100
-79
-92

query I rowsort
SELECT DISTINCT - - 4 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT + col2 - - col0 + + CAST( NULL AS SIGNED ) * 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT + col2 - - col0 + + CAST ( NULL AS INTEGER ) * 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 43 * col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

query I rowsort
SELECT + 1 AS col1 FROM tab0 cor0 WHERE NOT col0 < - 45 - + - 32
----
1
1
1

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + ( + col2 ) / + - 17 * - - col0 * - + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + 89 * - 42 FROM tab0 cor0
----
-3738
-3738
-3738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col2 ) col1, + col2 col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT - - COUNT( ALL - col0 ) + - - 3 * + 13 AS col0 FROM tab1 WHERE NOT + + 70 NOT BETWEEN NULL AND col1
----
39

skipif mysql # not compatible
query I rowsort label-4844
SELECT - - COUNT ( ALL - col0 ) + - - 3 * + 13 AS col0 FROM tab1 WHERE NOT + + 70 NOT BETWEEN NULL AND col1
----
39

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + ( + 95 ) NOT IN ( + ( - - col2 ) + - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - COUNT( col2 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT ALL - COUNT ( col2 ) col1 FROM tab2
----
-3

query I rowsort
SELECT col2 / - col1 + - col2 FROM tab2 WHERE NOT col2 + + col0 + - + col2 * - col1 * + + col1 * - col1 * + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4848
SELECT ALL col1 DIV - + col2, - col1 * col0 AS col0 FROM tab0
----
-1
-1215
-2
-1827
0
-97

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL col1 / - + col2, - col1 * col0 AS col0 FROM tab0
----
-1
-1215
-2
-1827
0
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT col0 AS col2, + 36 FROM tab0
----
15
36
87
36
97
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL + COUNT( * ) - + + 84 + + - 76 FROM tab1 cor0 WHERE col0 IS NULL
----
-160

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + COUNT ( * ) - + + 84 + + - 76 FROM tab1 cor0 WHERE col0 IS NULL
----
-160

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
1
21
81

query I rowsort
SELECT 5 + - col0 * 6 + + 45 FROM tab0 AS cor0 WHERE NOT ( NULL < ( - + col2 + - - col1 * - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT DISTINCT 57 * - + 51 AS col2 FROM tab1 AS cor0 WHERE + 81 <> + - col0
----
-2907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * col0 col0 FROM tab1 AS cor0
----
1224
2040
2184

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * - 10 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col2 * ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col2 * ( - col2 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4860
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL col2 + - + 47 AS col1 FROM tab1 AS cor0
----
12
21
49

query I rowsort
SELECT ALL + + AVG ( + col1 ) FROM tab0 WHERE NOT + 41 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT col0 * 98 * + 84 + - 19 * - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT col0 * 98 * + 84 + - 19 * - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT COUNT( * ) + 28 AS col1 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4865
SELECT COUNT ( * ) + 28 AS col1 FROM tab0
----
31

query I rowsort
SELECT col1 + - col1 - + + 39 * - - col0 AS col1 FROM tab2
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL + 90 + + MIN( ALL - col0 ) col2 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4867
SELECT ALL + 90 + + MIN ( ALL - col0 ) col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT MIN( DISTINCT + 23 ) AS col1 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT MIN ( DISTINCT + 23 ) AS col1 FROM tab1
----
23

query I rowsort
SELECT + 79 FROM tab2 WHERE NULL IS NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL - COUNT( - 36 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - COUNT ( - 36 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT CAST( + 37 AS SIGNED ) * + COUNT( * ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4871
SELECT CAST ( + 37 AS INTEGER ) * + COUNT ( * ) FROM tab0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT 17 + + - col1 + - col1 + + - col1 DIV + col1 FROM tab1 cor0
----
-12
-78
6

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT 17 + + - col1 + - col1 + + - col1 / + col1 FROM tab1 cor0
----
-12
-78
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT - CAST( NULL AS SIGNED ) * - col1 * - - col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - CAST ( NULL AS INTEGER ) * - col1 * - - col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 27 - + + col2 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL MIN( ALL + col0 ) + - COUNT( * ) col0 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4876
SELECT ALL MIN ( ALL + col0 ) + - COUNT ( * ) col0 FROM tab2
----
43

query I rowsort
SELECT ( + ( + + 59 ) ) + col1 + - - col0 FROM tab2
----
156
200
201

query I rowsort
SELECT col0 + col1 + 80 FROM tab2
----
177
221
222

query I rowsort
SELECT DISTINCT col1 - + ( + + 75 ) AS col2 FROM tab0
----
-54
-74
6

query I rowsort
SELECT ALL + ( + - col1 ) * + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT + 59 * 15 FROM tab2 AS cor0
----
885
885
885

query I rowsort
SELECT ALL + 36 * - 67 AS col0 FROM tab0 cor0
----
-2412
-2412
-2412

query II rowsort
SELECT - - col1 * + col2 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
210
-21
3807
-81
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4884
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col2, + 38 FROM tab2 AS cor0
----
1
38

skipif mysql # not compatible
query II rowsort label-4884
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col2, + 38 FROM tab2 AS cor0
----
1
38

query I rowsort
SELECT + - col0 * - + col2 * - 34 FROM tab1 AS cor0
----
-166464
-170510
-210392

query I rowsort
SELECT ALL - + 10 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL + COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL + COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * - 10 * ( 24 ) FROM tab1
----
11280
1200
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab2 WHERE NOT + col0 IS NULL
----
51
67
77

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + + col0 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4891
SELECT COUNT( * ) / + - 96 * SUM( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT COUNT ( * ) / + - 96 * SUM ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT + + 87 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT + + col1 - 0 AS col1 FROM tab2 AS cor0 WHERE 94 BETWEEN + col1 AND + - 86 + ( col1 ) * 26 / - ( - - col2 ) + - 31 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4894
SELECT + + col1 - 0 AS col1 FROM tab2 AS cor0 WHERE 94 BETWEEN + col1 AND + - 86 + ( col1 ) * 26 / - ( - - col2 ) + - 31 - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT MIN( ALL - 63 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4895
SELECT MIN ( ALL - 63 ) FROM tab0 AS cor0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT 16 DIV - + col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT 16 / - + col1 FROM tab1 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col0 FROM tab2 AS cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT COUNT( * ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4899
SELECT COUNT ( * ) col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col2 + - 46 AND NULL
----
1

query I rowsort
SELECT + 15 * + 66 AS col2 FROM tab0 AS cor0
----
990
990
990

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + 88 ) IS NULL
----

query I rowsort
SELECT 43 * - col1 + - 15 FROM tab0
----
-3498
-58
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - COUNT( * ) - 45 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - COUNT ( * ) - 45 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT + 48 + - + COUNT( * ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + 48 + - + COUNT ( * ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT col0 + + - 65 + - col0 + 46 * - col0 / - + col0 * + - col2 / - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 75 + + + 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - MAX( ALL 74 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-4911
SELECT - MAX ( ALL 74 ) FROM tab2
----
-74

query I rowsort
SELECT DISTINCT 29 * + 90 FROM tab2
----
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + SUM( - 81 ) AS col2 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4914
SELECT + SUM ( - 81 ) AS col2 FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL 56 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL 56 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT COUNT( * ) * COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4916
SELECT COUNT ( * ) * COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL + 99 * - col1 FROM tab1 AS cor0
----
-1386
-4653
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT + col2 DIV + col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT + col2 / + col1 FROM tab1 cor0
----
1
11
6

query I rowsort
SELECT + col2 * + + col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT ALL 8 DIV + 98 * - + col1 + col2 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
2
47
6

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 8 / + 98 * - + col1 + col2 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
2
47
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL - 95 * + COUNT( * ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - 95 * + COUNT ( * ) FROM tab0 AS cor0
----
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT DISTINCT MAX( CAST( - - col0 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT MAX ( CAST ( - - col0 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col1 AND + 68
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + - COUNT( DISTINCT + 1 ) AS col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT + - COUNT ( DISTINCT + 1 ) AS col0 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 * 13 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to bf2996c613f3a131e145fea8100a862a

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT - 46 DIV - col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT - 46 / - col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT SUM( + col0 ) DIV COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4927
SELECT SUM ( + col0 ) / COUNT ( * ) FROM tab1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT - col1 * col2 DIV + 61 FROM tab0
----
-1
-3
-62

skipif mysql # not compatible
query I rowsort label-4928
SELECT - col1 * col2 / + 61 FROM tab0
----
-1
-3
-62

query I rowsort
SELECT - col1 * ( + 22 ) AS col1 FROM tab2
----
-1122
-1474
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT - COUNT( * ) * - - 2 * 2 AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - COUNT ( * ) * - - 2 * 2 AS col0 FROM tab0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT col0 DIV + - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT col0 / + - col1 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + - col0 + + 85 + col1 FROM tab0 AS cor0
----
-11
151
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + 33 ) col2 FROM tab1 cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - col2 * + 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + - - col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + ( col1 ) + + + 93 AS col2 FROM tab0 AS cor0
----
114
174
94

query I rowsort
SELECT ALL + 56 / + 50 FROM tab2 AS cor0 WHERE NOT ( + - col0 IS NOT NULL )
----

query I rowsort
SELECT + col1 * - col2 + + + col2 - col2 FROM tab1 AS cor0 WHERE col0 * - col1 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab0 WHERE col0 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 32 + col2 AS col2 FROM tab0
----
131
42
79

query I rowsort
SELECT DISTINCT + ( - 8 ) FROM tab1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT ALL - col0 - - + 73 DIV - - col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - col0 - - + 73 / - - col0 FROM tab2
----
-45
-63
-75

query II rowsort
SELECT - 52 AS col1, + 45 FROM tab0
----
-52
45
-52
45
-52
45

query I rowsort
SELECT DISTINCT - col0 - - 61 FROM tab1
----
-24
-30
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - COUNT( * ) - - SUM( + 54 ) + - 79 + - 9 * - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
161

skipif mysql # not compatible
query I rowsort label-4946
SELECT - COUNT ( * ) - - SUM ( + 54 ) + - 79 + - 9 * - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
161

query II rowsort
SELECT + col2 AS col1, ( - col1 ) + ( + ( col1 ) ) + col1 AS col0 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + 64 AS SIGNED ) + - - 13 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + 64 AS INTEGER ) + - - 13 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + col0 * - - col2 * + 44 FROM tab0 cor0
----
31020
38280
422532

query II rowsort
SELECT col1 * - col0 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1215
47
-1827
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4953
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab2 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT - 47, MIN( - col2 ) AS col2 FROM tab0
----
-47
-99

skipif mysql # not compatible
query II rowsort label-4955
SELECT - 47, MIN ( - col2 ) AS col2 FROM tab0
----
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT COUNT( * ) FROM tab2 WHERE NOT + - 39 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT COUNT ( * ) FROM tab2 WHERE NOT + - 39 >= NULL
----
0

query I rowsort
SELECT ALL - col2 * - ( - col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL

query II rowsort
SELECT col2 AS col0, 59 * + col0 FROM tab0
----
10
5133
47
885
99
5723

query I rowsort
SELECT DISTINCT - - 39 * + col0 * + 16 AS col2 FROM tab1 AS cor0
----
31824
53040
56784

query I rowsort
SELECT DISTINCT col1 * + 98 + + col2 AS col0 FROM tab2 AS cor0
----
5021
6624
7586

query I rowsort
SELECT + - col1 * + col1 * - col0 + col2 FROM tab0 AS cor0
----
196
38377
98462

query I rowsort
SELECT + col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT - 55 * + + 32 + + + col2 * - col1 + - CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT - 55 * + + 32 + + + col2 * - col1 + - 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 ALL + ( - col2 ) + + col1 + col1 col0, + 52 AS col1 FROM tab1
----
-49
52
-68
52
26
52

query I rowsort
SELECT + - ( col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - + ( col2 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT ALL + + 8 + - CAST( MIN( + 96 ) AS SIGNED ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + + 8 + - CAST ( MIN ( + 96 ) AS INTEGER ) FROM tab2 AS cor0
----
-88

query I rowsort
SELECT - + col1 - 0 * col1 + - col2 + - - 76 FROM tab2 AS cor0
----
-41
-49
2

query I rowsort
SELECT - col2 FROM tab0 WHERE - + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 col0 FROM tab1
----
102
170
182

query I rowsort
SELECT + + col2 * - - col2 + col0 - - + 85 AS col0 FROM tab2 AS cor0 WHERE NOT - 43 * - col1 IS NULL
----
1749
3524
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL + + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2, - 73 FROM tab1 AS cor0
----
59
-73
68
-73
96
-73

query II rowsort
SELECT col1 * - 86 * - col0 * + 83 AS col2, - col2 FROM tab2 AS cor0
----
16745748
-23
35176064
-40
35868450
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL - MIN( - - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - MIN ( - - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * col0 + + - col1 col0 FROM tab2
----
547
755
908

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT ALL * FROM tab1 WHERE + + 80 / 17 * - CAST( 78 AS SIGNED ) + + col1 IN ( - col2, col0, 24 + + col1, + + col0 )
----

skipif mysql # not compatible
query III rowsort label-4978
SELECT ALL * FROM tab1 WHERE + + 80 / 17 * - CAST ( 78 AS INTEGER ) + + col1 IN ( - col2, col0, 24 + + col1, + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT ALL COUNT( * ) * + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL COUNT ( * ) * + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
9

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + 0 * + 49 = NULL
----

query I rowsort
SELECT 14 + - col0 AS col2 FROM tab2
----
-32
-50
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4982
SELECT 16 + + 56 col1, CAST( - col1 AS SIGNED ) * + col0 * col1 * - col1 FROM tab0
----
72
7971615
72
805707
72
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4982
SELECT 16 + + 56 col1, CAST ( - col1 AS INTEGER ) * + col0 * col1 * - col1 FROM tab0
----
72
7971615
72
805707
72
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + + MIN( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT + 13 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-4983
SELECT + + MIN ( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT + 13 IS NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT ( + + CAST( - 63 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT ( + + CAST ( - 63 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4985
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( + + col0 ) * - CAST( + col2 AS SIGNED ) + + 19 + + col2 + - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4985
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( + + col0 ) * - CAST ( + col2 AS INTEGER ) + + 19 + + col2 + - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1, col0 AS col0 FROM tab2 WHERE - - 63 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT - + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4987
SELECT - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 13 col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT col0 + 16 AS col2 FROM tab1 AS cor0
----
101
107
67

query I rowsort
SELECT DISTINCT - 87 + + col1 AS col1 FROM tab2 AS cor0
----
-10
-20
-36

query I rowsort
SELECT - 44 FROM tab0 AS cor0 WHERE NULL <= + col2 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - + CAST( col1 AS SIGNED ) + col0 - + - 4 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - + CAST ( col1 AS INTEGER ) + col0 - + - 4 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 * - 32 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 86 + - col1 AS col2 FROM tab2 AS cor0
----
19
35
9

query II rowsort
SELECT 76, + 25 + - 31 AS col1 FROM tab0 AS cor0
----
76
-6
76
-6
76
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT CAST( 21 AS SIGNED ) FROM tab1 cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4996
SELECT CAST ( 21 AS INTEGER ) FROM tab1 cor0
----
21
21
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= - col2 - + 54
----

query I rowsort
SELECT DISTINCT + 26 * + + 70 + col1 + 79 AS col2 FROM tab0
----
1900
1920
1980

query I rowsort
SELECT DISTINCT - col0 - - 33 * - col0 * col0 AS col1 FROM tab2
----
-135232
-185700
-69874

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col1, + ( + - col2 ) * col2, 76 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5001
SELECT DISTINCT - col0 DIV 64, - 34 * - col1 AS col2 FROM tab1
----
-1
1598
-1
170
0
476

skipif mysql # not compatible
query II rowsort label-5001
SELECT DISTINCT - col0 / 64, - 34 * - col1 AS col2 FROM tab1
----
-1
1598
-1
170
0
476

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT - SUM( + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - SUM ( + col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL - COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN + col2 / - col1 / - ( + col2 ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN + col2 / - col1 / - ( + col2 ) AND col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5004
SELECT ALL col0 DIV + 74 AS col2, + 70 FROM tab0
----
0
70
1
70
1
70

skipif mysql # not compatible
query II rowsort label-5004
SELECT ALL col0 / + 74 AS col2, + 70 FROM tab0
----
0
70
1
70
1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ( + MAX( + - col0 ) ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5005
SELECT ( + MAX ( + - col0 ) ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT - col1 * - 16 AS col2 FROM tab1 WHERE NOT + + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT + + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5007
SELECT + + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT + - CAST( + CAST( - - 81 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-5008
SELECT + - CAST ( + CAST ( - - 81 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - - 78 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-5009
SELECT - - 78 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
234

query I rowsort
SELECT - 25 * col0 AS col2 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT 4 - + + ( + + col2 ) * - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT 4 - + + ( + + col2 ) * - col1 = NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 * col2 FROM tab0 WHERE NOT NULL IN ( - - col2, - col0, - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT + 92 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 92 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + COUNT( DISTINCT + - 49 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5014
SELECT + COUNT ( DISTINCT + - 49 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT ( 73 ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT + ( + - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT + - MAX( - col1 ) + - 25 col1 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5017
SELECT DISTINCT + - MAX ( - col1 ) + - 25 col1 FROM tab1 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5018
SELECT - - CAST( NULL AS SIGNED ) col1, + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5018
SELECT - - CAST ( NULL AS INTEGER ) col1, + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL SUM( - CAST( ( 83 ) AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5019
SELECT ALL SUM ( - CAST ( ( 83 ) AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT - 64 + + - COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - 64 + + - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
-67

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT 48 * col2 + 60 + ( ( - col2 ) ) * col2 * + col2 * + 82 * 26 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5022
SELECT CAST( NULL AS SIGNED ) AS col0, + col1 * - col1 - - col2 FROM tab2
----
NULL
-2578
NULL
-4431
NULL
-5889

skipif mysql # not compatible
query II rowsort label-5022
SELECT CAST ( NULL AS INTEGER ) AS col0, + col1 * - col1 - - col2 FROM tab2
----
NULL
-2578
NULL
-4431
NULL
-5889

query I rowsort
SELECT DISTINCT - 86 FROM tab1 WHERE NOT ( col2 BETWEEN 68 AND NULL )
----
-86

query I rowsort
SELECT + 57 FROM tab1 WHERE NULL IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( col2 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5028
SELECT - - CAST( NULL AS DECIMAL ) + - 37 / + - col1 + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT - - CAST ( NULL AS REAL ) + - 37 / + - col1 + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 8 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT col0 DIV + + 55 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5030
SELECT col0 / + + 55 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT DISTINCT SUM( + CAST( - 45 AS SIGNED ) ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT SUM ( + CAST ( - 45 AS INTEGER ) ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT + + col0 - + - 85 * col1 FROM tab1 AS cor0
----
1241
4086
510

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT - - col1 - col1 + 35 DIV 58 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT - - col1 - col1 + 35 / 58 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col1 - 68 * - col1 FROM tab1 AS cor0
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL + ( + 78 ) * MIN( ALL + col2 ) FROM tab0 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + ( + 78 ) * MIN ( ALL + col2 ) FROM tab0 AS cor0
----
780

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 75 * + col1 * + col0 + - + 54 IN ( - col2, col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT + COUNT( * ) - ( COUNT( - col1 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT + COUNT ( * ) - ( COUNT ( - col1 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 6 + - 30 AS col0 FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 35, - col1 col0 FROM tab2 AS cor0
----
-1610
-51
-2240
-77
-2625
-67

query I rowsort
SELECT ALL 37 * + col0 AS col0 FROM tab1
----
1887
3145
3367

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1, - 22 FROM tab2
----
51
-22
67
-22
77
-22

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 + + + 82 FROM tab1
----
59
141
68
150
96
178

query I rowsort
SELECT + ( - col0 ) * - - ( + + col0 ) AS col1 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, - ( + col1 ) AS col2 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 38 IS NULL
----

query I rowsort
SELECT ALL col0 + col2 * 63 * + col1 FROM tab1 AS cor0 WHERE NOT 96 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 2 * - - 94 FROM tab1 AS cor0
----
-15980
-17108
-9588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + 63 col1 FROM tab2
----
147798
310464
316575

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 35 * col0 * + - col1 IS NULL
----

query II rowsort
SELECT + - 59 * - col2, col1 FROM tab2 AS cor0
----
1357
51
2360
77
3422
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE col2 - - + CAST( col2 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col2 - - + CAST ( col2 AS INTEGER ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 12 <> NULL
----

query I rowsort
SELECT ALL - - 28 AS col0 FROM tab0 cor0
----
28
28
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND + col1 / 54 + - + ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + - + ( + 12 ) col1 FROM tab2 cor0
----
26
26
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT DISTINCT + COUNT( * ) + + 44 DIV + COUNT( * ) col0 FROM tab0 cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT DISTINCT + COUNT ( * ) + + 44 / + COUNT ( * ) col0 FROM tab0 cor0
----
17

query I rowsort
SELECT 57 + 0 * ( + 6 ) FROM tab0
----
57
57
57

query I rowsort
SELECT ALL col0 + + - col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT + COUNT( + 26 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + COUNT ( + 26 ) FROM tab1
----
3

query I rowsort
SELECT - 74 * - col0 AS col1 FROM tab2
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL - 58 + - 64 + + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - 58 + - 64 + + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
-116

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT + + 3 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT 6 DIV - 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT 6 / - 67 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75 col0, ( + - 64 ) AS col0 FROM tab2
----
75
-64
75
-64
75
-64

query I rowsort
SELECT + col1 * + 14 FROM tab0 AS cor0
----
1134
14
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + + ( - col0 ) col2 FROM tab1 WHERE col1 IS NOT NULL
----
-135
-169
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT + 79 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT + 79 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 63 - 14 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - 92 * + 83 AS col2 FROM tab1 AS cor0
----
-7636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL + 42 * - - CAST( + 97 AS SIGNED ) * + - 43 + COUNT( * ) + - + MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + 42 * - - CAST ( + 97 AS INTEGER ) * + - 43 + COUNT ( * ) + - + MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT CAST( - 18 AS SIGNED ) col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5074
SELECT DISTINCT CAST ( - 18 AS INTEGER ) col0 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5075
SELECT + 22 * - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 22 * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - COUNT( + col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COUNT ( + col1 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT SUM( - + col1 ) - - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-192

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT SUM ( - + col1 ) - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT DISTINCT + col2 * col1 DIV 54 AS col2 FROM tab0
----
1
3
70

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT + col2 * col1 / 54 AS col2 FROM tab0
----
1
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + MIN( - 35 ) AS col1 FROM tab2, tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + MIN ( - 35 ) AS col1 FROM tab2, tab2 AS cor0
----
-35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND - col1
----

query II rowsort
SELECT 13 AS col0, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
13
1
13
21
13
81

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT ALL 92 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL 92 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + + 45 * 99 FROM tab0 AS cor0
----
-387585
-432135
-66825

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT + + COUNT( * ) + - 38 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + + COUNT ( * ) + - 38 FROM tab1 cor0
----
-35

query I rowsort
SELECT + ( - 11 ) AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL - col1 + - 79 - col2 - + + 88 FROM tab0 AS cor0
----
-198
-267
-295

query I rowsort
SELECT 44 AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT MIN( - + col1 ) * 40 + - COUNT( ALL + col1 ) + + COUNT( * ) FROM tab2 cor0 WHERE ( col1 BETWEEN NULL AND - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT MIN ( - + col1 ) * 40 + - COUNT ( ALL + col1 ) + + COUNT ( * ) FROM tab2 cor0 WHERE ( col1 BETWEEN NULL AND - 32 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col2, col1 FROM tab2 AS cor0
----
52
51
52
67
52
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT - COUNT( * ) * + + COUNT( ALL col2 ) * + + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT - COUNT ( * ) * + + COUNT ( ALL col2 ) * + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + 83 * 68 AS col1 FROM tab1 AS cor0
----
5553
5559
5593

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5094
SELECT - MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + 50 + 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT DISTINCT - 48 + col0 DIV col0 + + 66 * + col0 FROM tab2
----
2989
4177
4903

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - 48 + col0 / col0 + + 66 * + col0 FROM tab2
----
2989
4177
4903

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT + MIN( 15 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + MIN ( 15 ) AS col0 FROM tab1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT ALL - col1 DIV 37 - - + 33 * 68 col0 FROM tab2
----
2242
2243
2243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5098
SELECT ALL - col1 / 37 - - + 33 * 68 col0 FROM tab2
----
2242
2243
2243

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - 5 + - + 46 * col2 < col1 * 95 * + 4 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + + 54 col1 FROM tab2 AS cor0
----
156
188
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col2 FROM tab1 AS cor0
----
39
39
39

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - - col2 * + 15 IS NULL
----

query I rowsort
SELECT + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT 52 AS col1, col0 AS col1 FROM tab2 AS cor0
----
52
46
52
64
52
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT - ( + ( ( + + COUNT( * ) ) ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5105
SELECT - ( + ( ( + + COUNT ( * ) ) ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - 64 * + col1 AS col2 FROM tab1 AS cor0
----
-3008
-320
-896

query I rowsort
SELECT - - ( + - ( 62 ) ) FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + - MAX( + - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + - MAX ( + - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5109
SELECT + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 3 * - 21 * col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 10, col2 * col0 AS col1 FROM tab0
----
-10
705
-10
870
-10
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5115
SELECT col2 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT col2 * + + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT MIN( + 36 ) * + 72 col2 FROM tab2
----
2592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5116
SELECT MIN ( + 36 ) * + 72 col2 FROM tab2
----
2592

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT - + col0 * + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT 42 * + COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT 42 * + COUNT ( * ) FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 WHERE - 54 <= + 93 + + - 2 + col1
----
-51
-67
-77

query I rowsort
SELECT + 43 FROM tab2 WHERE NOT + col2 / - 3 / col2 * col1 + - + col0 + + col0 = NULL
----

query I rowsort
SELECT DISTINCT - + 70 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 97 + - 38 * - col1 col1 FROM tab0 AS cor0
----
3028
40
711

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 91 + - col1 = - col0
----

query I rowsort
SELECT + 99 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 58 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - COUNT( DISTINCT col2 ) * - MIN( - col2 ) + + + 19 FROM tab2 WHERE - 51 + + col0 + + + 20 <= - - col1
----
-155

skipif mysql # not compatible
query I rowsort label-5126
SELECT - COUNT ( DISTINCT col2 ) * - MIN ( - col2 ) + + + 19 FROM tab2 WHERE - 51 + + col0 + + + 20 <= - - col1
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT ALL - AVG ( - CAST( NULL AS SIGNED ) ) - + 76 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - AVG ( - CAST ( NULL AS INTEGER ) ) - + 76 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT COUNT( * ) AS col1, - 86 FROM tab2
----
3
-86

skipif mysql # not compatible
query II rowsort label-5128
SELECT COUNT ( * ) AS col1, - 86 FROM tab2
----
3
-86

query I rowsort
SELECT DISTINCT + col2 * + - 30 - + col1 FROM tab0
----
-1491
-2971
-321

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT + COUNT( * ) FROM tab2 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * + 82 * col2 + + 78 AS col1 FROM tab2 AS cor0
----
209998
356778
86834

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT SUM( ALL + 97 ) FROM tab0 AS cor0 WHERE 81 <= - - 1 * - + col2 / col2 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT SUM ( ALL + 97 ) FROM tab0 AS cor0 WHERE 81 <= - - 1 * - + col2 / col2 * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 WHERE NULL <= ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ( col1 ) + col0 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT 28 + - 12 AS col2 FROM tab1
----
16
16
16

query I rowsort
SELECT DISTINCT + col1 + + col0 FROM tab2 WHERE NOT 25 + + 45 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT COUNT( * ) + + 40 * COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-5139
SELECT COUNT ( * ) + + 40 * COUNT ( * ) FROM tab0
----
123

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( 8 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * col2 + - col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT 59 + - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT + 70 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT + 70 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT + COUNT( * ) col2 FROM tab2 WHERE NOT + col2 + + 33 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5145
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 WHERE NOT + col2 + + 33 IS NULL
----
3

query I rowsort
SELECT - 59 + col2 * col1 FROM tab1
----
1285
236
3137

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - + col2 * col0 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT + col1 * + 74 - - col0 FROM tab2
----
3820
5033
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT 27 * - COUNT( * ) + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT 27 * - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-78

query I rowsort
SELECT ALL 95 + ( - 88 ) * - 28 AS col2 FROM tab0
----
2559
2559
2559

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT ( - col0 ) DIV - col0 + + col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-5152
SELECT ( - col0 ) / - col0 + + col2 FROM tab0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT col1 DIV col2 + col1 AS col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-5153
SELECT col1 / col2 + col1 AS col2 FROM tab2
----
53
68
78

query I rowsort
SELECT + 47 * 99 + + col0 AS col2 FROM tab2
----
4699
4717
4728

query I rowsort
SELECT ALL 29 + 57 AS col0 FROM tab1
----
86
86
86

query I rowsort
SELECT DISTINCT - col0 * 43 + - col0 FROM tab0
----
-3828
-4268
-660

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 58 - col0 >= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT SUM( DISTINCT + col0 ) + 33 AS col1 FROM tab2
----
218

skipif mysql # not compatible
query I rowsort label-5159
SELECT SUM ( DISTINCT + col0 ) + 33 AS col1 FROM tab2
----
218

query I rowsort
SELECT DISTINCT + col2 + - 15 AS col2 FROM tab1
----
44
53
81

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 ON 66 NOT BETWEEN 29 + - 96 AND ( NULL )
----

query I rowsort
SELECT ALL col0 * + 76 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT DISTINCT + ( 20 ) AS col1 FROM tab1
----
20

query I rowsort
SELECT ALL + col0 * - col2 + + ( 88 + + ( + 77 ) ) AS col1 FROM tab0 AS cor0
----
-540
-705
-9438

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 - col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT + CAST( + col0 AS SIGNED ) + + 27 FROM tab0 cor0 WHERE NULL IS NULL
----
114
124
42

skipif mysql # not compatible
query I rowsort label-5166
SELECT + CAST ( + col0 AS INTEGER ) + + 27 FROM tab0 cor0 WHERE NULL IS NULL
----
114
124
42

query I rowsort
SELECT - 61 * - 62 AS col0 FROM tab1 AS cor0
----
3782
3782
3782

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT + col2 + + 3 * + col1 AS col0 FROM tab1 AS cor0
----
138
209
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT + 20 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + 20 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + COUNT( * ) - 13 col2 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT + COUNT ( * ) - 13 col2 FROM tab1 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + 94 )
----

query I rowsort
SELECT + col2 - + 16 * col2 FROM tab0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT COUNT( * ) - + 19 * - COUNT( DISTINCT - col1 - + col0 * col1 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT COUNT ( * ) - + 19 * - COUNT ( DISTINCT - col1 - + col0 * col1 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + COUNT( * ) FROM tab0 WHERE ( - col0 ) BETWEEN ( + col2 * - ( col1 ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5176
SELECT + COUNT ( * ) FROM tab0 WHERE ( - col0 ) BETWEEN ( + col2 * - ( col1 ) ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL + 83 * - + 60 + - COUNT( * ) FROM tab0
----
-4983

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL + 83 * - + 60 + - COUNT ( * ) FROM tab0
----
-4983

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col2 ) OR ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ( col0 ) + + 56 AS col2 FROM tab2 WHERE 61 IS NOT NULL
----
102
120
131

query I rowsort
SELECT ALL + 48 AS col2 FROM tab2 WHERE NULL IN ( col0 + + 51 )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col0 * - 28 IS NULL
----

query I rowsort
SELECT ALL col0 - - 77 FROM tab1
----
128
162
168

query I rowsort
SELECT - ( - 99 ) AS col0 FROM tab1 WHERE ( + 46 ) NOT IN ( - 90 )
----
99
99
99

query I rowsort
SELECT DISTINCT col2 + - 17 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 99 * col0 - - col0 AS col2 FROM tab0
----
1500
8700
9700

query I rowsort
SELECT ALL col1 - + - 58 + + 10 AS col2 FROM tab0
----
149
69
89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> 97 * col0 - + 86
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query II rowsort
SELECT - 93 AS col1, + 12 AS col0 FROM tab2
----
-93
12
-93
12
-93
12

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT + col1 AS col1, col1 AS col2 FROM tab0 cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT DISTINCT 4, + 0 AS col1 FROM tab2 AS cor0
----
4
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 29 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - + col2 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <> ( NULL ) OR NOT - 24 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 54 ) FROM tab2
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - COUNT( * ) + - - COUNT( * ) * + 66 AS col2 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5200
SELECT - COUNT ( * ) + - - COUNT ( * ) * + 66 AS col2 FROM tab1
----
195

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col1 <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + 19 * + col2 * + col0 AS col1 FROM tab1
----
117481
92973
95200

query I rowsort
SELECT ALL + 34 AS col0 FROM tab0 WHERE NOT NULL <= - + ( 30 ) + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5205
SELECT 97 DIV - 53 AS col1, - col1 AS col0 FROM tab2
----
-1
-51
-1
-67
-1
-77

skipif mysql # not compatible
query II rowsort label-5205
SELECT 97 / - 53 AS col1, - col1 AS col0 FROM tab2
----
-1
-51
-1
-67
-1
-77

query I rowsort
SELECT - 15 AS col1 FROM tab0 WHERE NOT + 29 / - + 53 - ( - 57 ) IS NULL
----
-15
-15
-15

query II rowsort
SELECT + ( + + col0 ), col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT - CAST( NULL AS SIGNED ) * - AVG ( - + CAST( ( 59 ) AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( - + CAST ( ( 59 ) AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( - - col1 ) ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col1 IN ( 90 * col1 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( + col2 = - 66 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0 * - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT + MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 + + + col0 IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col2 + + + col0 IS NULL
----
97

query I rowsort
SELECT ALL - col0 * + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 97 + - - col2 = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT ALL + - col2 DIV + + col2 + + ( + - col0 ) * + ( col2 ) FROM tab2 AS cor0
----
-1059
-2561
-4351

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + - col2 / + + col2 + + ( + - col0 ) * + ( col2 ) FROM tab2 AS cor0
----
-1059
-2561
-4351

query I rowsort
SELECT ALL col2 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5218
SELECT * FROM tab1 AS cor0 WHERE CAST( 44 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5218
SELECT * FROM tab1 AS cor0 WHERE CAST ( 44 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( 47 - + - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( 47 - + - col0 ) IS NULL
----
0

query I rowsort
SELECT 78 FROM tab0 AS cor0 WHERE NULL IS NULL
----
78
78
78

query I rowsort
SELECT ALL col0 * - + ( + col1 ) + - ( - col2 ) FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT - 44 + col1 AS col0 FROM tab0 WHERE + 83 BETWEEN ( + col0 * - col2 * - col0 / - 43 + col0 + - col2 ) AND + col0
----
-23
-43

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 3 ) < ( NULL )
----

query I rowsort
SELECT ALL 27 + 16 AS col0 FROM tab1
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col0 FROM tab2 WHERE - 88 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 WHERE - 88 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL - COUNT( * ) - + 14 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - COUNT ( * ) - + 14 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT - SUM( ALL + 82 ) + COUNT( * ) FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - SUM ( ALL + 82 ) + COUNT ( * ) FROM tab2
----
-243

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + + 69 NOT IN ( - - 3 / + + 76 * + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT ALL COUNT( * ) * - COUNT( * ) DIV - - 28 * + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL COUNT ( * ) * - COUNT ( * ) / - - 28 * + COUNT ( * ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
10

query I rowsort
SELECT ALL col1 * - - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + + 25 * 34 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT + + 25 * 34 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL + COUNT( 40 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + COUNT ( 40 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + - col1 * - 58 ) OR NOT NULL < + col0 - - col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5235
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col0, - 73 AS col1 FROM tab2
----
-46
-73
-64
-73
-75
-73

skipif mysql # not compatible
query II rowsort label-5235
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col0, - 73 AS col1 FROM tab2
----
-46
-73
-64
-73
-75
-73

query I rowsort
SELECT - ( + 54 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT ALL + ( - 13 ) FROM tab1 AS cor0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 18 AND + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT - COUNT( col2 ) + COUNT( ALL ( - col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL <> col2 * - 14 + - col2 + col1 * + - col0
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT - COUNT ( col2 ) + COUNT ( ALL ( - col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL <> col2 * - 14 + - col2 + col1 * + - col0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IN ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - ( COUNT( + 26 ) ) * + COUNT( * ) * + 63 AS col0 FROM tab0 AS cor0
----
-567

skipif mysql # not compatible
query I rowsort label-5241
SELECT - ( COUNT ( + 26 ) ) * + COUNT ( * ) * + 63 AS col0 FROM tab0 AS cor0
----
-567

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + col0 * - 97 + - - col0 + - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + + ( - - col2 ) AND col0 * + + col0
----

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 col1 AS col1 FROM tab2 WHERE NOT + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL COUNT( col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL COUNT ( col1 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 + 44 + + col2 * + - col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT DISTINCT 59 AS col1, COUNT( * ) * - - 11 AS col1 FROM tab0
----
59
33

skipif mysql # not compatible
query II rowsort label-5248
SELECT DISTINCT 59 AS col1, COUNT ( * ) * - - 11 AS col1 FROM tab0
----
59
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + COUNT( * ) FROM tab2 WHERE ( col1 * - 73 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5249
SELECT + COUNT ( * ) FROM tab2 WHERE ( col1 * - 73 ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT ALL + - COUNT( * ) col0, 90 AS col1 FROM tab2 AS cor0
----
-3
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5250
SELECT ALL + - COUNT ( * ) col0, 90 AS col1 FROM tab2 AS cor0
----
-3
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 35 / + col1 ) IS NULL
----

query I rowsort
SELECT - 17 * + 63 FROM tab0 AS cor0
----
-1071
-1071
-1071

query I rowsort
SELECT + col1 * col0 + - + col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT + col1 - + ( 92 ) FROM tab1 AS cor0
----
-45
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT - - 78 * MIN( - 94 ) col2 FROM tab0 AS cor0
----
-7332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5256
SELECT DISTINCT - - 78 * MIN ( - 94 ) col2 FROM tab0 AS cor0
----
-7332

onlyif mysql # aggregate syntax: 
query II rowsort label-5257
SELECT - + COUNT( * ) - 60 AS col2, COUNT( * ) - - 82 * 61 * 94 AS col2 FROM tab0 AS cor0
----
-63
470191

skipif mysql # not compatible
query II rowsort label-5257
SELECT - + COUNT ( * ) - 60 AS col2, COUNT ( * ) - - 82 * 61 * 94 AS col2 FROM tab0 AS cor0
----
-63
470191

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT COUNT( * ) - + 75 AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5258
SELECT COUNT ( * ) - + 75 AS col2 FROM tab0 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + + MIN( - ( - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + + MIN ( - ( - col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL - 81 + ( + + MAX( ALL - col0 ) ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL - 81 + ( + + MAX ( ALL - col0 ) ) FROM tab0 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5262
SELECT * FROM tab0 AS cor0 WHERE + col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5262
SELECT * FROM tab0 AS cor0 WHERE + col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - 51 + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - 51 + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL + 11 + - - 6 AS col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT + col0 + + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL + MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + MAX ( - + col0 ) FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) * + col2 BETWEEN - 85 AND NULL
----

query II rowsort
SELECT + col1 AS col1, - 80 FROM tab1
----
14
-80
47
-80
5
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, col0 + 7 + + col0 FROM tab1
----
51
109
85
177
91
189

onlyif mysql # DIV for integer division: 
query II rowsort label-5271
SELECT col2 DIV col0 AS col1, - 50 + + 65 FROM tab1
----
0
15
0
15
1
15

skipif mysql # not compatible
query II rowsort label-5271
SELECT col2 / col0 AS col1, - 50 + + 65 FROM tab1
----
0
15
0
15
1
15

query I rowsort
SELECT ALL - col0 * + - col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 66 * ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col0 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + MAX( + - col1 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT + MAX ( + - col1 ) col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - 79 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-79
23
-79
40
-79
58

query II rowsort
SELECT + + col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT - + 40 AS col0 FROM tab1 AS cor0 WHERE NOT 91 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT - col0 * + ( col2 ) * + - col0, + col0 AS col2 FROM tab0 cor0 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT 40 + COUNT( * ) col1 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5280
SELECT 40 + COUNT ( * ) col1 FROM tab1
----
43

query I rowsort
SELECT ALL + 18 AS col0 FROM tab0 WHERE NOT col1 + 29 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * col0 + col2 col2 FROM tab1
----
3207
5244
5619

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT CAST( ( CAST( - 73 AS SIGNED ) ) AS SIGNED ) + - COUNT( * ) + + 26 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-5284
SELECT CAST ( ( CAST ( - 73 AS INTEGER ) ) AS INTEGER ) + - COUNT ( * ) + + 26 FROM tab1
----
-50

query I rowsort
SELECT ALL - 75 * - col0 AS col0 FROM tab2
----
3450
4800
5625

query II rowsort
SELECT DISTINCT - col1 * + + 61, col1 AS col0 FROM tab1
----
-2867
47
-305
5
-854
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT 93 + col2 AS col0 FROM tab1
----
152
161
189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL <> + col1 + col0 ) )
----

query I rowsort
SELECT - 75 * - - 63 FROM tab2 cor0
----
-4725
-4725
-4725

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5293
SELECT + CAST( col0 AS DECIMAL ) + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5293
SELECT + CAST ( col0 AS REAL ) + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 89 * 21 FROM tab2 cor0
----
1869
1869
1869

query I rowsort
SELECT - 36 * + col0 AS col0 FROM tab0
----
-3132
-3492
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL + CAST( MIN( DISTINCT + col2 ) AS SIGNED ) col2 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5297
SELECT ALL + CAST ( MIN ( DISTINCT + col2 ) AS INTEGER ) col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT COUNT( * ) * - - 18 col1 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5298
SELECT DISTINCT COUNT ( * ) * - - 18 col1 FROM tab0
----
54

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 22 col2 FROM tab2 AS cor0
----
-1122
-1474
-1694

query II rowsort
SELECT col2, 81 * - col2 AS col1 FROM tab2
----
23
-1863
40
-3240
58
-4698

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 73 * + + col0 - 85 - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + - 2 * 68 + - + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-145

skipif mysql # not compatible
query I rowsort label-5305
SELECT + - 2 * 68 + - + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT COUNT( * ) FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5306
SELECT COUNT ( * ) FROM tab0, tab0 cor0
----
9

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - MIN( - - 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5308
SELECT - MIN ( - - 36 ) FROM tab0 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT + CAST( + + 93 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5310
SELECT + CAST ( + + 93 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query II rowsort label-5311
SELECT - col1 AS col0, col1 DIV col1 + - col2 * col2 FROM tab2 AS cor0
----
-51
-528
-67
-3363
-77
-1599

skipif mysql # not compatible
query II rowsort label-5311
SELECT - col1 AS col0, col1 / col1 + - col2 * col2 FROM tab2 AS cor0
----
-51
-528
-67
-3363
-77
-1599

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT 61 * - - MIN( - col0 ) FROM tab2
----
-4575

skipif mysql # not compatible
query I rowsort label-5314
SELECT 61 * - - MIN ( - col0 ) FROM tab2
----
-4575

query I rowsort
SELECT DISTINCT col1 * - col0 + + col1 FROM tab2
----
-2295
-4851
-4958

query II rowsort
SELECT + 74 AS col0, + col1 FROM tab0
----
74
1
74
21
74
81

query I rowsort
SELECT DISTINCT col0 * + - col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5318
SELECT DISTINCT * FROM tab1 WHERE + col2 * + CAST( NULL AS SIGNED ) * col0 IN ( + col1 ) AND - 13 + - + 96 + + ( - + col0 ) / + - 0 BETWEEN - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5318
SELECT DISTINCT * FROM tab1 WHERE + col2 * + CAST ( NULL AS INTEGER ) * col0 IN ( + col1 ) AND - 13 + - + 96 + + ( - + col0 ) / + - 0 BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT + 69 * + + COUNT( * ) col0 FROM tab1 WHERE - 88 IS NULL AND NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5319
SELECT + 69 * + + COUNT ( * ) col0 FROM tab1 WHERE - 88 IS NULL AND NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - SUM( - 70 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT - SUM ( - 70 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 71 AS col1, + 49 AS col1 FROM tab2
----
71
49

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( - 41 / 92 * col2 * + col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5323
SELECT ALL - COUNT( * ) DIV 26 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - COUNT ( * ) / 26 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT + 49 DIV 60 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5324
SELECT DISTINCT + 49 / 60 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + AVG ( + - col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= 62 * + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT + - 7 DIV + col1 AS col1 FROM tab0 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT + - 7 / + col1 AS col1 FROM tab0 AS cor0
----
-7
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - col2 + - 37 IS NULL
----

query I rowsort
SELECT DISTINCT + 42 * 19 - + 3 + - 98 FROM tab0 AS cor0
----
697

query I rowsort
SELECT DISTINCT + - 61 AS col2 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT - col2 * - col2 * + + col0 FROM tab1 AS cor0
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col2 * + - col1, - col0 + - col1 col0 FROM tab2 AS cor0
----
-197120
-141
-291450
-142
-53958
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT MIN( DISTINCT 76 ) AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5332
SELECT MIN ( DISTINCT 76 ) AS col2 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + SUM( DISTINCT col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5333
SELECT + SUM ( DISTINCT col0 ) FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 16 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( NULL <> NULL )
----

query I rowsort
SELECT DISTINCT + + 7 AS col1 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL + col0 * - col2 FROM tab0 AS cor0 WHERE col2 - col2 IS NOT NULL
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col2 ) AS col2, - 99 + - - col0 col2 FROM tab2
----
-23
-53
-40
-35
-58
-24

query III rowsort
SELECT * FROM tab0 WHERE - + col0 NOT IN ( 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5340
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5340
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT DISTINCT + 14 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + 14 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - - col1 + - - col0 - col1 - col2 / col1 < NULL
----

query I rowsort
SELECT 40 + col0 FROM tab2
----
104
115
86

query II rowsort
SELECT DISTINCT + + 67 AS col2, + 13 * - ( + 69 ) FROM tab0 WHERE - 6 * - - 9 IS NOT NULL
----
67
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT + MAX( DISTINCT - + 19 ) + 35 * + 49 + + 45 + 52 + - 58 AS col1 FROM tab0
----
1735

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + MAX ( DISTINCT - + 19 ) + 35 * + 49 + + 45 + 52 + - 58 AS col1 FROM tab0
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - COUNT( * ) * 37 * - COUNT( * ) col1 FROM tab2
----
333

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5346
SELECT - COUNT ( * ) * 37 * - COUNT ( * ) col1 FROM tab2
----
333

query I rowsort
SELECT DISTINCT + + 18 FROM tab1 WHERE NOT NULL <= col0
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 < NULL
----

query II rowsort
SELECT 90, col2 AS col1 FROM tab0
----
90
10
90
47
90
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col0 * + 37 col2 FROM tab1
----
-15725
-158249
-26418

query I rowsort
SELECT - ( - + 71 ) AS col1 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col0, + ( + col2 ) AS col1 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL col2 + - 36 FROM tab0 AS cor0
----
-26
11
63

query I rowsort
SELECT ALL + col2 + - 13 * + ( col2 ) FROM tab1
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + 93 - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-5358
SELECT + 93 - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5359
SELECT DISTINCT + CAST( + - 70 AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5359
SELECT DISTINCT + CAST ( + - 70 AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-70

query I rowsort
SELECT DISTINCT + - col2 * + 37 FROM tab0 cor0
----
-1739
-3663
-370

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / - - 15 - + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL - ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + 82 AS col0, 27 * col0 AS col1 FROM tab0 cor0
----
82
2349
82
2619
82
405

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT - ( + col0 ) DIV - 14 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-5364
SELECT - ( + col0 ) / - 14 FROM tab2
----
3
4
5

query I rowsort
SELECT + + 64 + - col0 FROM tab2 WHERE NOT - 33 - ( - col1 ) IN ( + - 49, 11 )
----
-11
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL SUM( - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL SUM ( - col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT - + MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - + MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) * COUNT( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) * COUNT ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - 61 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 61 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT ALL col0 + ( col0 ) + 95 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
129
151
94

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL col0 + ( col0 ) + 95 / ( col0 ) AS col0 FROM tab2 AS cor0
----
129
151
94

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + col1 = + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT COUNT( ALL - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT + - 39 DIV - 41 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT + - 39 / - 41 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT DISTINCT col1 + 40 + + 85 + ( col0 ) * CAST( 75 AS SIGNED ) * + + 45 FROM tab1 cor0
----
172264
287005
307297

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT col1 + 40 + + 85 + ( col0 ) * CAST ( 75 AS INTEGER ) * + + 45 FROM tab1 cor0
----
172264
287005
307297

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NOT + col0 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col0 * col0 IS NULL
----
-3

query I rowsort
SELECT - - 95 AS col1 FROM tab2 AS cor0
----
95
95
95

query II rowsort
SELECT 36 AS col1, 74 + col1 AS col2 FROM tab2 cor0
----
36
125
36
141
36
151

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5380
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5380
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL - 11 * + MIN( + col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - 11 * + MIN ( + col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 66 col2, col2 * + col1 AS col1 FROM tab0 AS cor0
----
-66
210
-66
3807
-66
99

query I rowsort
SELECT - + ( ( - col2 ) ) - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + ( - 3 ) + - - col1 AS col0 FROM tab0 AS cor0
----
-1
159
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT ALL - col1 + + - 44 - + 5 * col2 DIV - 99 FROM tab2 AS cor0
----
-109
-119
-94

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL - col1 + + - 44 - + 5 * col2 / - 99 FROM tab2 AS cor0
----
-109
-119
-94

query I rowsort
SELECT + col0 - - 34 FROM tab2
----
109
80
98

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NULL NOT IN ( - - 8 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND + + col1 - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 41 BETWEEN + col1 + col2 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - - col0 * col1 AND - + ( 74 ) + + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 79 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT col1 * col1 DIV + + col2 FROM tab1
----
0
2
32

skipif mysql # not compatible
query I rowsort label-5392
SELECT col1 * col1 / + + col2 FROM tab1
----
0
2
32

query II rowsort
SELECT + col2 AS col0, - 1 AS col2 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

query I rowsort
SELECT ALL + ( + ( - - col2 ) ) * - + 12 * 61 * + - col0 * - - col2 AS col2 FROM tab2 AS cor0
----
17812488
184683600
74956800

query I rowsort
SELECT DISTINCT - - col2 * - 28 * + 28 + 65 AS col2 FROM tab0 AS cor0
----
-36783
-77551
-7775

query II rowsort
SELECT DISTINCT + col0 AS col1, - col0 AS col2 FROM tab1 cor0
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT ALL - col2 DIV + col2 col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT ALL - col2 / + col2 col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + + COUNT( - - col1 ) FROM tab0 WHERE NOT + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5398
SELECT + + COUNT ( - - col1 ) FROM tab0 WHERE NOT + + col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT - 86 / 96 AS col0 FROM tab0 WHERE NOT + - col0 + + - 36 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT 41 * - 32 * - + COUNT( * ) FROM tab1
----
3936

skipif mysql # not compatible
query I rowsort label-5402
SELECT 41 * - 32 * - + COUNT ( * ) FROM tab1
----
3936

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5403
SELECT + ( col0 ), col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5403
SELECT + ( col0 ), col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT col2, ( col0 ) * + col1 FROM tab0
----
10
1827
47
1215
99
97

query I rowsort
SELECT - ( - 70 ) * + - col0 AS col1 FROM tab0 AS cor0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL COUNT( * ) + + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL COUNT ( * ) + + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
54

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL + 20 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 3 * + col0 * - col1 * - - 93 * - col0 - col0 + col0 AS col0, - col0 col2 FROM tab1 AS cor0
----
-10078875
-85
-10159506
-51
-108588753
-91

query I rowsort
SELECT + 10 FROM tab1 AS cor0 WHERE - 51 IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 3 * 55 - col0 AND - 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col2, - 82 + - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL - 99 - + + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - 99 - + + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT + col1 FROM tab0 WHERE col1 * col1 * 8 IS NULL
----

query II rowsort
SELECT + 51, + col2 AS col1 FROM tab1
----
51
59
51
68
51
96

query II rowsort
SELECT - 85 AS col1, + col0 * - col1 AS col2 FROM tab0
----
-85
-1215
-85
-1827
-85
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - 81 col1 FROM tab2
----
127
145
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 12 * + 33 * + + col0 / + + 93 + - 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT - SUM( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - SUM ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5423
SELECT + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 83 IS NULL AND - 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( col1 ) * + - 17 FROM tab2 AS cor0
----
-1139
-1309
-867

query II rowsort
SELECT + + ( - + col0 ) AS col2, + 78 * + - col1 AS col2 FROM tab2 AS cor0
----
-46
-3978
-64
-6006
-75
-5226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5427
SELECT ALL + - 15 DIV + COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + - 15 / + COUNT ( * ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5428
SELECT + + 81 * + col1, + 21 * - col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1134
-28224
3807
-67116
405
-6195

skipif mysql # not compatible
query II rowsort label-5428
SELECT + + 81 * + col1, + 21 * - col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1134
-28224
3807
-67116
405
-6195

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND + col2
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT col1 * CAST( NULL AS SIGNED ) * + col0 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT col1 * CAST ( NULL AS INTEGER ) * + col0 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL + COUNT( * ) * + 74 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL + COUNT ( * ) * + 74 FROM tab1
----
222

query I rowsort
SELECT DISTINCT col0 * 92 FROM tab1
----
4692
7820
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT + + 20 - COUNT( DISTINCT - 55 ) FROM tab1 WHERE NOT ( - col1 - - 82 ) NOT BETWEEN col1 AND NULL
----
20

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + + 20 - COUNT ( DISTINCT - 55 ) FROM tab1 WHERE NOT ( - col1 - - 82 ) NOT BETWEEN col1 AND NULL
----
20

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL 49 * + - COUNT( * ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL 49 * + - COUNT ( * ) FROM tab2
----
-147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5438
SELECT CAST( - - col2 AS SIGNED ) + col1 DIV - 95 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5438
SELECT CAST ( - - col2 AS INTEGER ) + col1 / - 95 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ( + - 30 ) + + + col0 * + + col1 + + + col1 + col2 FROM tab0 AS cor0
----
1313
167
1828

query I rowsort
SELECT ALL + 67 + + col0 - + + col0 AS col1 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + col1 + - 5 - + col0 AS col0 FROM tab2
----
-13
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT ALL col2 DIV + - 67 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL col2 / + - 67 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + + 19 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT ALL + col1 + + col1 * - col2 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT + col1 + - + col1 + + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - + 76 - - MIN( + 88 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5447
SELECT - + 76 - - MIN ( + 88 ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL 39 AS col2 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + - COUNT( * ) - 22 AS col1 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5449
SELECT + - COUNT ( * ) - 22 AS col1 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT 5 + + 31 AS col0 FROM tab1 cor0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT + col2 * + + col2 / - CAST( NULL AS SIGNED ) * + - col1 / - col2 + - col2 + - col1 * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT + col2 * + + col2 / - CAST ( NULL AS INTEGER ) * + - col1 / - col2 + - col2 + - col1 * + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col0 - - col0 - + 78 AS col2 FROM tab0
----
-768
-861
-9584

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT COUNT( * ) + + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT COUNT ( * ) + + 52 FROM tab1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT MIN( - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5455
SELECT MIN ( - - col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT - COUNT( - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT - COUNT ( - col2 ) FROM tab0
----
-3

query I rowsort
SELECT 74 * - 35 AS col0 FROM tab1 AS cor0
----
-2590
-2590
-2590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT DISTINCT + col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT + col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL COUNT( DISTINCT 82 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL COUNT ( DISTINCT 82 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab2, tab0 cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + col2 < + - 36 * + col0 + col2 )
----

query II rowsort
SELECT DISTINCT 50, + col2 AS col2 FROM tab2
----
50
23
50
40
50
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT col0 AS col0, + 93 FROM tab0 AS cor0
----
15
93
87
93
97
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL - ( - ( COUNT( * ) ) ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - ( - ( COUNT ( * ) ) ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col2
----

query I rowsort
SELECT DISTINCT 11 + - col2 * + col0 FROM tab1
----
-4885
-5004
-6177

query II rowsort
SELECT DISTINCT - col1 * - col2 AS col2, col1 FROM tab2
----
1173
51
3080
77
3886
67

query I rowsort
SELECT col1 + + + col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL - col0 + - 92 AS col0 FROM tab2
----
-138
-156
-167

query I rowsort
SELECT DISTINCT 97 * + - 91 * + col2 AS col0 FROM tab0
----
-414869
-873873
-88270

query II rowsort
SELECT ALL 46 * col2, col1 AS col0 FROM tab1
----
2714
5
3128
47
4416
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT - COUNT( * ) * + 13 AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-5477
SELECT - COUNT ( * ) * + 13 AS col2 FROM tab2
----
-39

query I rowsort
SELECT + - col1 * + col0 * + + col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * + 44 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + ( - + MIN( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5480
SELECT + ( - + MIN ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col0 + + - col0 - - - col1 / + 55 / + col1
----

query I rowsort
SELECT col1 + - - col1 - col2 FROM tab1
----
-49
-68
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT - + MIN( + 39 ) AS col1, ( + - 29 ) AS col2 FROM tab2 WHERE NULL > col0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-5483
SELECT - + MIN ( + 39 ) AS col1, ( + - 29 ) AS col2 FROM tab2 WHERE NULL > col0
----
NULL
-29

query I rowsort
SELECT - col0 + + + 67 FROM tab1
----
-18
-24
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT col1 DIV + + 13 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT col1 / + + 13 FROM tab1
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT + ( - - COUNT( * ) ) + + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + ( - - COUNT ( * ) ) + + + COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col2 + 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5488
SELECT - 14 AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-14
NULL
-14
NULL
-14
NULL

skipif mysql # not compatible
query II rowsort label-5488
SELECT - 14 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-14
NULL
-14
NULL
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL COUNT( * ) + - - 11 AS col2 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL COUNT ( * ) + - - 11 AS col2 FROM tab2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT 6 DIV - 80 * + col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT 6 / - 80 * + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 WHERE - 70 + + col1 + + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, + 46 col1 FROM tab1
----
51
46
85
46
91
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + - + ( 21 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2, 60 AS col1 FROM tab2 AS cor0
----
-23
60
-40
60
-58
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 99 IS NULL
----

query I rowsort
SELECT + + 87 AS col2 FROM tab1 cor0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT ALL - col2 + - ( - + 53 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - col2 + - ( - + 53 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL - - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5500
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + ( + - col1 ) ) > + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5500
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + ( + - col1 ) ) > + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL 56 + - + COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL 56 + - + COUNT ( * ) FROM tab2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT + 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL - MAX( + + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - MAX ( + + col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 < + col0 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + + 17 + COUNT( * ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-5507
SELECT + + 17 + COUNT ( * ) FROM tab1 cor0
----
20

query I rowsort
SELECT ALL col2 * col0 * col1 + + col0 FROM tab1 WHERE + 32 IS NOT NULL
----
25160
290927
68595

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT + COUNT( * ) + ( + ( - - 83 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
92

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + COUNT ( * ) + ( + ( - - 83 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
92

query I rowsort
SELECT DISTINCT + + 23 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col1 - - 47 AS col0 FROM tab2 AS cor0
----
114
124
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT + ( - MIN( DISTINCT + - col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT + ( - MIN ( DISTINCT + - col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT ALL + - 72 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + - 72 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL col2 * + col0 * - 6 AS col2 FROM tab2 AS cor0
----
-15360
-26100
-6348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT + CAST( - 80 AS SIGNED ) FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND + - 26
----

skipif mysql # not compatible
query I rowsort label-5516
SELECT + CAST ( - 80 AS INTEGER ) FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND + - 26
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT ALL COUNT( * ) DIV - - ( 69 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL COUNT ( * ) / - - ( 69 ) AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - SUM( ALL + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5519
SELECT - SUM ( ALL + col1 ) AS col0 FROM tab2
----
-195

query II rowsort
SELECT - 28 AS col1, col0 FROM tab1
----
-28
51
-28
85
-28
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + COUNT( * ) + - - MAX( - + 80 ) + COUNT( * ) + - 85 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COUNT ( * ) + - - MAX ( - + 80 ) + COUNT ( * ) + - 85 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5522
SELECT ALL CAST( NULL AS SIGNED ), ( ( + col2 ) ) FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5522
SELECT ALL CAST ( NULL AS INTEGER ), ( ( + col2 ) ) FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT + 55 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 16 / - col1
----

query II rowsort
SELECT ALL + + col2, col2 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT ALL col0 DIV 79 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL col0 / 79 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab2 WHERE NOT + col0 + + + 41 < NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 90 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT col2 AS col1, - 70 AS col2 FROM tab2 AS cor0
----
23
-70
40
-70
58
-70

query II rowsort
SELECT DISTINCT + col1 AS col1, ( col0 ) - + col2 FROM tab0 AS cor0
----
1
-2
21
77
81
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 92 col2, + 10 FROM tab0 AS cor0
----
92
10
92
10
92
10

query I rowsort
SELECT + col1 + + col0 + 78 * - + 32 * - - col0 FROM tab2 cor0
----
-114719
-159603
-187058

query I rowsort
SELECT DISTINCT - 56 + col2 * + + 46 AS col1 FROM tab2 AS cor0 WHERE 36 IS NULL
----

query I rowsort
SELECT DISTINCT - + 35 + - 40 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col0 + + 98 - + + 56 AS col0 FROM tab2
----
106
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT COUNT( col1 ) * - + 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( col1 ) * - + 10 FROM tab0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT 38 - - col2 AS col0 FROM tab0
----
137
48
85

query I rowsort
SELECT + 57 * - - col2 + col0 AS col0 FROM tab1
----
3448
3967
5523

query I rowsort
SELECT - col0 + - col2 * + - col1 FROM tab2
----
1127
3016
3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37 - + ( + 3 ) col0, - col1 AS col0 FROM tab2
----
34
-51
34
-67
34
-77

query I rowsort
SELECT - col1 - - + 91 FROM tab2 WHERE + + col2 * 30 IS NOT NULL
----
14
24
40

query I rowsort
SELECT DISTINCT - 11 - + 96 AS col1 FROM tab0
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT ALL - - COUNT( * ) * + + COUNT( * ) * 7 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
63
-3

skipif mysql # not compatible
query II rowsort label-5544
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) * 7 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
63
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5545
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + - col0 * + col1 BETWEEN + ( - + col0 ) AND CAST( NULL AS SIGNED ) * + + col0 * + 26
----

skipif mysql # not compatible
query III rowsort label-5545
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + - col0 * + col1 BETWEEN + ( - + col0 ) AND CAST ( NULL AS INTEGER ) * + + col0 * + 26
----

query I rowsort
SELECT ALL + col0 * - + 67 + + ( + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-5819
-6400
-958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 98, 49 col0 FROM tab1 AS cor0 WHERE NOT 47 IS NULL
----
98
49
98
49
98
49

query I rowsort
SELECT - col1 * + 39 FROM tab1 AS cor0
----
-1833
-195
-546

query I rowsort
SELECT ALL - + 1 * - 73 + + col0 * 48 + - col1 AS col1 FROM tab0 AS cor0
----
4228
4728
712

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT - + 81 * + MIN( + 95 ) + - COUNT( * ) * - MIN( ALL - col0 ), - ( + 51 ) AS col1 FROM tab2 AS cor0
----
-7920
-51

skipif mysql # not compatible
query II rowsort label-5550
SELECT - + 81 * + MIN ( + 95 ) + - COUNT ( * ) * - MIN ( ALL - col0 ), - ( + 51 ) AS col1 FROM tab2 AS cor0
----
-7920
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5551
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT 73 DIV col2 DIV + - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT 73 / col2 / + - col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5553
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT 52 DIV col2 * + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT 52 / col2 * + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL - MAX( ALL + 11 ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - MAX ( ALL + 11 ) AS col2 FROM tab2
----
-11

query I rowsort
SELECT DISTINCT 56 * + + col0 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT ALL 74 * col0 + col1 FROM tab0 cor0
----
1191
6459
7179

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT ALL + 90 DIV + + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + 90 / + + col1 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ( - COUNT( ALL col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5560
SELECT ( - COUNT ( ALL col2 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5561
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - + 84 * - col0 - + col1 + + + col0 FROM tab2 AS cor0
----
3859
5363
6308

query II rowsort
SELECT + + col2 + - - col1, col0 AS col0 FROM tab2 cor0
----
117
64
125
75
74
46

query I rowsort
SELECT + ( + col1 ) * 10 * 29 AS col2 FROM tab0 AS cor0
----
23490
290
6090

query I rowsort
SELECT DISTINCT - ( - col0 ) + + 23 - + + col2 AS col2 FROM tab2 AS cor0
----
40
46
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 60 + ( col2 ) + + ( - - col1 ) + + 50 * col1 * - col1 * col0 col1 FROM tab2 AS cor0
----
-16833565
-18972623
-5982166

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT + + ( + - ( - 7 ) ) AS col1, + MAX( ALL + col0 ) FROM tab0 AS cor0
----
7
97

skipif mysql # not compatible
query II rowsort label-5567
SELECT + + ( + - ( - 7 ) ) AS col1, + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
7
97

query I rowsort
SELECT ALL - + col1 + 85 AS col1 FROM tab1 AS cor0
----
38
71
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT ALL COUNT( * ) AS col0, 86 + - COUNT( * ) FROM tab2
----
3
83

skipif mysql # not compatible
query II rowsort label-5569
SELECT ALL COUNT ( * ) AS col0, 86 + - COUNT ( * ) FROM tab2
----
3
83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5570
SELECT ALL 10, - col0 * 42 - - col0 - + col2 + - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
10
NULL
10
NULL
10
NULL

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL 10, - col0 * 42 - - col0 - + col2 + - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
10
NULL
10
NULL
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + col2 + - 45 - - - col2 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT DISTINCT + - col0 DIV col0 * col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT + - col0 / col0 * col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT - + COUNT( * ) + + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - + COUNT ( * ) + + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5575
SELECT + ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 93 * + col1 FROM tab2 cor0
----
-4743
-6231
-7161

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <= 54
----
15
81
47

query II rowsort
SELECT col1 * col1, col0 FROM tab0 AS cor0
----
1
97
441
87
6561
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 92 + + ( - 53 ) IS NOT NULL
----

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5581
SELECT CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5581
SELECT CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT - 66 * + SUM( DISTINCT + col2 ) AS col0 FROM tab2
----
-7986

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - 66 * + SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
-7986

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT 10, COUNT( - 64 ) AS col0 FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-5583
SELECT 10, COUNT ( - 64 ) AS col0 FROM tab0
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT - + 47 + - + 84 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 10 IS NULL
----
-1307
-7355
-8195

query I rowsort
SELECT col0 + 49 AS col1 FROM tab0
----
136
146
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT + 88 + - CAST( NULL AS SIGNED ) * CAST( COUNT( * ) - - 1 * + 72 AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT + 88 + - CAST ( NULL AS INTEGER ) * CAST ( COUNT ( * ) - - 1 * + 72 AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + 68 / col0 col1 FROM tab2 WHERE NOT ( NULL ) IN ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT 7 + - ( - 62 - COUNT( * ) ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5589
SELECT 7 + - ( - 62 - COUNT ( * ) ) FROM tab2
----
72

query I rowsort
SELECT ALL 33 * - col1 AS col1 FROM tab0
----
-2673
-33
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL col2 FROM tab0 WHERE NOT ( col0 * CAST( col1 * - col1 AS SIGNED ) ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL col2 FROM tab0 WHERE NOT ( col0 * CAST ( col1 * - col1 AS INTEGER ) ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5592
SELECT DISTINCT + COUNT( * ) DIV + 96 AS col2 FROM tab1 WHERE NULL >= 48
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT + COUNT ( * ) / + 96 AS col2 FROM tab1 WHERE NULL >= 48
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) + + 78 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab0 WHERE NULL BETWEEN + col0 + - col1 AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) NOT BETWEEN col2 - + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - col0 * col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT - 49 * + col1 AS col2 FROM tab1
----
-2303
-245
-686

query I rowsort
SELECT + ( ( + col0 ) ) + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 90 + + 94 FROM tab0
----
4

query III rowsort
SELECT * FROM tab1 WHERE - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + - col0 * - 35 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL COUNT( * ) + 38 AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL COUNT ( * ) + 38 AS col2 FROM tab0
----
41

query I rowsort
SELECT 60 + - 85 FROM tab0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT CAST( + CAST( + 47 AS SIGNED ) AS SIGNED ) FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-5604
SELECT CAST ( + CAST ( + 47 AS INTEGER ) AS INTEGER ) FROM tab2
----
47
47
47

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 * 52 AS col1 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT ALL 89 * col0 AS col2 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT + 40 * col1 FROM tab0 WHERE NOT ( + col2 ) BETWEEN ( - 26 * + 63 ) AND - col0
----
3240
40
840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5609
SELECT * FROM tab2 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND 87
----

skipif mysql # not compatible
query III rowsort label-5609
SELECT * FROM tab2 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND 87
----

query I rowsort
SELECT + col0 * + col2 + - 93 FROM tab2
----
2467
4257
965

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab1
----
51

query I rowsort
SELECT + col2 * col1 + ( + col1 ) FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT 33 DIV ( COUNT( ALL col0 ) ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-5613
SELECT 33 / ( COUNT ( ALL col0 ) ) AS col2 FROM tab1
----
11

query I rowsort
SELECT ALL - col0 + - 85 * - col2 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - 37 ) BETWEEN + ( + col2 ) + + 93 AND 74
----

query I rowsort
SELECT ALL + 37 + - col2 * + col2 FROM tab1 AS cor0
----
-3444
-4587
-9179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 96 col0 FROM tab1 cor0
----
101
110
143

query I rowsort
SELECT ALL 24 FROM tab2 WHERE - 91 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 90 AS col1 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * - 96 col0 FROM tab0 WHERE NOT + col0 > col1 * - col0
----

query I rowsort
SELECT DISTINCT col2 - col0 FROM tab2 WHERE col1 * + col2 IN ( + col2 + col1 * + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - + MIN( col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - + MIN ( col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 27 - - col2 * + col1 FROM tab2 AS cor0 WHERE ( col1 + 42 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT - COUNT( ALL - 44 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - COUNT ( ALL - 44 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + 58 AS col2 FROM tab2 cor0
----
58
58
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 15 = ( + col0 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT - MIN( ALL 69 ) AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - MIN ( ALL 69 ) AS col1 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 ) < ( - col0 * - 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT DISTINCT CAST( - 11 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT CAST ( - 11 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT - ( + 13 ) AS col2 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL MAX( DISTINCT + ( - ( - 72 ) ) ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL MAX ( DISTINCT + ( - ( - 72 ) ) ) AS col2 FROM tab1
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col2 / + col0 )
----

query I rowsort
SELECT col1 * 11 AS col0 FROM tab1
----
154
517
55

query I rowsort
SELECT + col1 * col2 AS col2 FROM tab2 WHERE NOT ( NULL ) <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - 50 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT - 50 / + + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5637
SELECT COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT COUNT( * ) * 18 * SUM( DISTINCT - col2 ) FROM tab0
----
-8424

skipif mysql # not compatible
query I rowsort label-5638
SELECT COUNT ( * ) * 18 * SUM ( DISTINCT - col2 ) FROM tab0
----
-8424

query I rowsort
SELECT ALL + 5 * + col2 FROM tab1
----
295
340
480

query I rowsort
SELECT ALL 17 * - 46 FROM tab2
----
-782
-782
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col0 FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + COUNT( * ) * 66 AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + COUNT ( * ) * 66 AS col1 FROM tab0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT DISTINCT + 51 + + - col0 DIV col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + 51 + + - col0 / col0 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT 31 + COUNT( * ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT 31 + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NULL
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 18 ) IN ( - col0 )
----

query I rowsort
SELECT - AVG ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL <= col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - - ( + SUM( - col0 ) ) + COUNT( * ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-5647
SELECT - - ( + SUM ( - col0 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
-196

query III rowsort
SELECT * FROM tab1 WHERE 68 >= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( + 5 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - COUNT( * ) FROM tab0 WHERE + + col0 IN ( 24 + col1 * - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-5650
SELECT - COUNT ( * ) FROM tab0 WHERE + + col0 IN ( 24 + col1 * - 71 )
----
0

query I rowsort
SELECT + 14 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT 82 + col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5652
SELECT 82 + col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - - col2 * col2 AS col1 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT DISTINCT - COUNT( * ) DIV + 8 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - COUNT ( * ) / + 8 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL - + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT ALL - - 89 DIV col0 DIV - col0 + - col2 + + 23 AS col1 FROM tab2 AS cor0
----
-17
-35
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - - 89 / col0 / - col0 + - col2 + + 23 AS col1 FROM tab2 AS cor0
----
-17
-35
0

query I rowsort
SELECT DISTINCT - col1 * - col2 + - 59 FROM tab1 AS cor0
----
1285
236
3137

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - - 83 - + ( + - COUNT( * ) ) FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-5659
SELECT - - 83 - + ( + - COUNT ( * ) ) FROM tab0 cor0
----
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT - + col1 * col0 DIV - col1 - + 71 * col2 AS col0 FROM tab1 AS cor0
----
-4104
-4737
-6765

skipif mysql # not compatible
query I rowsort label-5661
SELECT - + col1 * col0 / - col1 - + 71 * col2 AS col0 FROM tab1 AS cor0
----
-4104
-4737
-6765

query I rowsort
SELECT DISTINCT - + 67 + col0 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT - 39 * col1 FROM tab2 WHERE + ( col0 ) NOT IN ( - col0 )
----
-1989
-2613
-3003

query III rowsort
SELECT * FROM tab2 WHERE ( ( 67 ) ) NOT IN ( col1 / col2 + - 34 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT 36 + col0 * + 24 FROM tab0
----
2124
2364
396

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT IN ( + col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT col1 * - - col1 + + 41 - col0 DIV col2 FROM tab2
----
2640
4529
5969

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT col1 * - - col1 + + 41 - col0 / col2 FROM tab2
----
2640
4529
5969

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 9 - + - 36 FROM tab1
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 19 NOT IN ( ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + - 98 + - 69 * col1 col1 FROM tab1
----
-255864
-708395
-814781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT + CAST( NULL AS SIGNED ) * 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT + CAST ( NULL AS INTEGER ) * 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT - MIN( DISTINCT + col1 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5673
SELECT - MIN ( DISTINCT + col1 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + - col1 * - - 59 FROM tab2 AS cor0
----
-3009
-3953
-4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT DISTINCT - ( + COUNT( * ) ) DIV - + 62 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - ( + COUNT ( * ) ) / - + 62 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL - 42 * COUNT( * ) + - 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-409

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - 42 * COUNT ( * ) + - 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT - COUNT( ALL + 95 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5677
SELECT - COUNT ( ALL + 95 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT 14 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
14
1
14
21
14
81

query II rowsort
SELECT DISTINCT + col1, + 52 * + 34 FROM tab2 AS cor0
----
51
1768
67
1768
77
1768

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE col0 <= - col2 / 21
----

query II rowsort
SELECT + - 19 AS col2, col0 * + 51 + - 64 FROM tab1 AS cor0
----
-19
2537
-19
4271
-19
4577

query I rowsort
SELECT + ( + + 8 ) / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5683
SELECT + COUNT( * ) AS col0, 87 - - - 79 AS col0 FROM tab0 AS cor0
----
3
8

skipif mysql # not compatible
query II rowsort label-5683
SELECT + COUNT ( * ) AS col0, 87 - - - 79 AS col0 FROM tab0 AS cor0
----
3
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5684
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 / - + CAST( NULL AS DECIMAL ) + + col2 + + - col2 * - 9 ) > ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-5684
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 / - + CAST ( NULL AS REAL ) + + col2 + + - col2 * - 9 ) > ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 < - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + col0 ) - - col2 + - 77 * 50 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT DISTINCT 8 * 19 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT 8 * 19 / + col0 AS col0 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT ALL + 60 + + + ( + + col0 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
111
145
151

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + - + 63 ) NOT BETWEEN ( NULL ) AND + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT DISTINCT - COUNT( + 20 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - COUNT ( + 20 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5691
SELECT ALL * FROM tab1 WHERE NOT - 16 = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5691
SELECT ALL * FROM tab1 WHERE NOT - 16 = + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5692
SELECT DISTINCT - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT 14 * + + 28, COUNT( * ) AS col1 FROM tab1
----
392
3

skipif mysql # not compatible
query II rowsort label-5694
SELECT 14 * + + 28, COUNT ( * ) AS col1 FROM tab1
----
392
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT DISTINCT + SUM( DISTINCT - col2 ) * ( COUNT( * ) ), COUNT( * ) AS col0 FROM tab0
----
-468
3

skipif mysql # not compatible
query II rowsort label-5695
SELECT DISTINCT + SUM ( DISTINCT - col2 ) * ( COUNT ( * ) ), COUNT ( * ) AS col0 FROM tab0
----
-468
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL - COUNT( + col2 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5697
SELECT ALL - COUNT ( + col2 ) col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT 85 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5698
SELECT 85 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL col2 * + - 87 FROM tab1 AS cor0 WHERE col2 / + col1 NOT IN ( - col1 )
----
-5133
-5916
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT MIN( + 49 ) FROM tab1 cor0
----
49

skipif mysql # not compatible
query I rowsort label-5700
SELECT MIN ( + 49 ) FROM tab1 cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL COUNT( * ) + - - MIN( 34 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL COUNT ( * ) + - - MIN ( 34 ) FROM tab0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5703
SELECT ALL + 99 + + + SUM( ALL 72 ) / CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5703
SELECT ALL + 99 + + + SUM ( ALL 72 ) / CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query I rowsort
SELECT + 67 + - + col2 FROM tab1
----
-1
-29
8

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col2 FROM tab0
----
33
33
33

query I rowsort
SELECT 97 FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT + 21 DIV + + col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 21 / + + col2 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 84 * col1 AS col2 FROM tab1 cor0
----
-1176
-3948
-420

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( - + col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5711
SELECT DISTINCT - 55 + MIN( ALL col2 ) + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - 55 + MIN ( ALL col2 ) + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - MAX( DISTINCT + + 61 ) FROM tab2 AS cor0 WHERE + col1 * + - 45 = + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT - MAX ( DISTINCT + + 61 ) FROM tab2 AS cor0 WHERE + col1 * + - 45 = + 30
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < ( + + 27 )
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT 67 * - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> + + col1 + - - 8 + - - col2 + 32
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT 67 * - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> + + col1 + - - 8 + - - col2 + 32
----
0

query I rowsort
SELECT - 60 / 80 FROM tab2 AS cor0 WHERE ( NULL NOT IN ( + col0, + col2 / + - 93 ) )
----

query I rowsort
SELECT ALL - col2 + - - 38 + col0 + - - col0 * 48 FROM tab2 AS cor0 WHERE NOT 22 + + 80 < NULL
----

query II rowsort
SELECT col2, - 14 FROM tab1
----
59
-14
68
-14
96
-14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 NOT BETWEEN NULL AND ( + 43 )
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT + ( + + col1 ) DIV - 98 + col1 - - 26 FROM tab2
----
103
77
93

skipif mysql # not compatible
query I rowsort label-5719
SELECT + ( + + col1 ) / - 98 + col1 - - 26 FROM tab2
----
103
77
93

query II rowsort
SELECT ALL 38 * + col2 + 65 + - 9 AS col2, + col0 + - ( + col0 ) - col2 * - 21 FROM tab0
----
1842
987
3818
2079
436
210

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT - 33 DIV - 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 33 / - 97 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT - CAST( NULL AS SIGNED ) - - SUM( - + ( - col1 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT - CAST ( NULL AS INTEGER ) - - SUM ( - + ( - col1 ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT + col2 * + CAST( - col1 AS SIGNED ) - - 8 AS col0 FROM tab2
----
-1165
-3072
-3878

skipif mysql # not compatible
query I rowsort label-5723
SELECT + col2 * + CAST ( - col1 AS INTEGER ) - - 8 AS col0 FROM tab2
----
-1165
-3072
-3878

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT DISTINCT MAX( + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT MAX ( + col1 ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT DISTINCT 94 * - ( + col0 ) * + col2 - + 25 AS col2 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) > ( col1 * - 68 )
----

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT 94 * - ( + col0 ) * + col2 - + 25 AS col2 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) > ( col1 * - 68 )
----

query II rowsort
SELECT + col1 AS col1, + 34 + - + 47 - - 8 + - - 36 * - col2 * + col2 AS col0 FROM tab2
----
51
-19049
67
-121109
77
-57605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 36 ) col2 FROM tab0
----
-36

query I rowsort
SELECT + 85 * + + col2 FROM tab0 cor0
----
3995
8415
850

query I rowsort
SELECT DISTINCT + ( 92 ) AS col2 FROM tab1 AS cor0
----
92

query I rowsort
SELECT DISTINCT col1 * 63 FROM tab2
----
3213
4221
4851

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 28 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5732
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + - - 89 / - - 19 <= + + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-5732
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) + - - 89 / - - 19 <= + + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT MIN( + 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5733
SELECT MIN ( + 61 ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT ALL - col1 + 10 FROM tab1 AS cor0
----
-37
-4
5

query II rowsort
SELECT - + col0 * - col0 * col0 * - col2 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-10485760
40
-2238728
23
-24468750
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL MIN( + 83 ) AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL MIN ( + 83 ) AS col0 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * col2 + - 44 + + 13 + - - col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * col2 + - 44 + + 13 + - - col0 AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT ALL col0 DIV + ( + ( + - col1 ) ) + + - col0 + - col0 + - col1 DIV - 84 FROM tab2
----
-128
-151
-92

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL col0 / + ( + ( + - col1 ) ) + + - col0 + - col0 + - col1 / - 84 FROM tab2
----
-128
-151
-92

query I rowsort
SELECT ALL - + 54 + + - col2 FROM tab1 WHERE NOT col2 = 67
----
-113
-122
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col0 col1 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL > 69 AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT col2 + + + 21 AS col1 FROM tab1 AS cor0
----
117
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL 56 * - 1 + MIN( DISTINCT 42 ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL 56 * - 1 + MIN ( DISTINCT 42 ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT + col1 + 93 AS col0 FROM tab1 AS cor0
----
107
140
98

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 71 * + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL + 31 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + 31 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 62 AS col2, - col0 + + col1 col2 FROM tab1
----
-62
-37
-62
-44
-62
-80

query III rowsort
SELECT * FROM tab1 WHERE - 19 * + + col2 + col2 <> - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - - col0 FROM tab2
----
2116
4096
5625

query II rowsort
SELECT DISTINCT - 95 AS col0, ( + - 26 ) FROM tab0 AS cor0
----
-95
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT MIN( - col0 ) * + - ( - 30 ) AS col2 FROM tab0 cor0
----
-2910

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT MIN ( - col0 ) * + - ( - 30 ) AS col2 FROM tab0 cor0
----
-2910

query I rowsort
SELECT - 22 - 71 FROM tab1 AS cor0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 + + 97 col2 FROM tab0 AS cor0
----
174
65
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT DISTINCT - 31 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-31
3

skipif mysql # not compatible
query II rowsort label-5755
SELECT DISTINCT - 31 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-31
3

query I rowsort
SELECT + ( + col0 ) - 93 FROM tab0 AS cor0
----
-6
-78
4

query I rowsort
SELECT + col2 - - 32 AS col2 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT - 78 + - col1 + - - 57 AS col0 FROM tab2 cor0
----
-72
-88
-98

query I rowsort
SELECT 6 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT - 87 + - col1 * - col2 FROM tab1 AS cor0
----
1257
208
3109

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 74 = NULL
----

query I rowsort
SELECT DISTINCT - col0 - - + col1 + - col1 AS col0 FROM tab2 WHERE NULL NOT IN ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL + COUNT( * ) * + 26 AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + COUNT ( * ) * + 26 AS col2 FROM tab1
----
78

query I rowsort
SELECT DISTINCT + - col0 + - 46 AS col2 FROM tab1 WHERE NOT col1 > - col2 + + 81 + + col0
----
-131
-137
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT + COUNT( * ) * - 26 AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + COUNT ( * ) * - 26 AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT ALL - 83 DIV col1 col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5766
SELECT ALL - 83 / col1 col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT col2 * - col0 * 16 FROM tab2 AS cor0
----
-16928
-40960
-69600

onlyif mysql # DIV for integer division: 
query I rowsort label-5768
SELECT ALL - col0 DIV - 14 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL - col0 / - 14 FROM tab2 AS cor0
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT + MAX( + col1 ) * - 36 AS col1 FROM tab0 AS cor0
----
-2916

skipif mysql # not compatible
query I rowsort label-5769
SELECT + MAX ( + col1 ) * - 36 AS col1 FROM tab0 AS cor0
----
-2916

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + col1 ) + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + - 18 AS col0 FROM tab0
----
-1458
-18
-378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5772
SELECT DISTINCT ( + col2 ) * - 44, CAST( + - col1 AS SIGNED ) col2 FROM tab1
----
-2596
-5
-2992
-47
-4224
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5772
SELECT DISTINCT ( + col2 ) * - 44, CAST ( + - col1 AS INTEGER ) col2 FROM tab1
----
-2596
-5
-2992
-47
-4224
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5773
SELECT col2 AS col2, CAST( NULL AS SIGNED ) + + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5773
SELECT col2 AS col2, CAST ( NULL AS INTEGER ) + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE ( ( col2 * - 20 IS NULL ) )
----

query I rowsort
SELECT ALL 89 * + + 93 FROM tab2 AS cor0
----
8277
8277
8277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT DISTINCT - CAST( - AVG ( DISTINCT - - col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( - col2 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - CAST ( - AVG ( DISTINCT - - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( - col2 IS NULL )
----
NULL

query I rowsort
SELECT ALL - - 63 * - 77 - - 66 - - col2 FROM tab1 AS cor0
----
-4689
-4717
-4726

query I rowsort
SELECT - 69 + 94 AS col2 FROM tab0 AS cor0
----
25
25
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT DISTINCT + COUNT( * ) + 5 + + + SUM( - col0 ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + COUNT ( * ) + 5 + + + SUM ( - col0 ) FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT - COUNT( * ) + + MIN( + - 6 ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5781
SELECT - COUNT ( * ) + + MIN ( + - 6 ) col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5782
SELECT ALL * FROM tab2 WHERE NOT + col2 + CAST( NULL AS DECIMAL ) <= + col2
----

skipif mysql # not compatible
query III rowsort label-5782
SELECT ALL * FROM tab2 WHERE NOT + col2 + CAST ( NULL AS REAL ) <= + col2
----

query I rowsort
SELECT DISTINCT 35 * - 70 FROM tab2
----
-2450

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT - col0 DIV 57 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5784
SELECT - col0 / 57 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT + col0 * + CAST( 53 AS SIGNED ) FROM tab1
----
2703
4505
4823

skipif mysql # not compatible
query I rowsort label-5785
SELECT + col0 * + CAST ( 53 AS INTEGER ) FROM tab1
----
2703
4505
4823

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5786
SELECT * FROM tab1 AS cor0 WHERE 31 - - CAST( + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5786
SELECT * FROM tab1 AS cor0 WHERE 31 - - CAST ( + col0 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL + 55 + col2 AS col1 FROM tab1 cor0
----
114
123
151

query II rowsort
SELECT ALL 1 + - 95, col2 FROM tab2 AS cor0
----
-94
23
-94
40
-94
58

query III rowsort
SELECT * FROM tab1 WHERE NULL < - 18 / 81 + + 28
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT CAST( SUM( + 5 ) AS SIGNED ) + 86 AS col2 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-5790
SELECT CAST ( SUM ( + 5 ) AS INTEGER ) + 86 AS col2 FROM tab2
----
101

query II rowsort
SELECT - 23 AS col0, - 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to aeca819fddfc6f8b6b7afbac34d9f95a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5792
SELECT - - CAST( + 19 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-266
-893
-95

skipif mysql # not compatible
query I rowsort label-5792
SELECT - - CAST ( + 19 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-266
-893
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT ALL ( + COUNT( - - col1 ) ) AS col0, ( + + 95 ) * + MAX( + ( + - 52 ) ) AS col1 FROM tab0 AS cor0
----
3
-4940

skipif mysql # not compatible
query II rowsort label-5793
SELECT ALL ( + COUNT ( - - col1 ) ) AS col0, ( + + 95 ) * + MAX ( + ( + - 52 ) ) AS col1 FROM tab0 AS cor0
----
3
-4940

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + 48
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + + col0 * 85 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - - - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, col1 col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT - + CAST( - col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT - + CAST ( - col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT + SUM( ALL + 5 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT + SUM ( ALL + 5 ) FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 28 col1 FROM tab2
----
46
-28
64
-28
75
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + MAX( DISTINCT col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5803
SELECT + MAX ( DISTINCT col1 ) FROM tab2
----
77

query I rowsort
SELECT ( + + col0 ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT DISTINCT CAST( - - col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5806
SELECT DISTINCT COUNT( * ) col2, - 32 AS col1 FROM tab0 AS cor0
----
3
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5806
SELECT DISTINCT COUNT ( * ) col2, - 32 AS col1 FROM tab0 AS cor0
----
3
-32

query II rowsort
SELECT - col2, - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * + col2 IS NULL
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL CAST( NULL AS SIGNED ) + 39 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL CAST ( NULL AS INTEGER ) + 39 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL - SUM( 70 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5809
SELECT ALL - SUM ( 70 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * + 57 * - col1 AS col2 FROM tab1
----
-16815
-182172
-76608

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5811
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 96 + col2
----

query I rowsort
SELECT - + 64 AS col0 FROM tab0 AS cor0
----
-64
-64
-64

query II rowsort
SELECT DISTINCT col0 + + col2 AS col0, col2 FROM tab2 AS cor0
----
104
40
133
58
69
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT + - ( + COUNT( + col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5816
SELECT + - ( + COUNT ( + col2 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) < 83
----
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) < 83
----
0

query I rowsort
SELECT + ( + + 39 ) FROM tab0 AS cor0
----
39
39
39

query II rowsort
SELECT ALL - col1 + + col1 AS col2, - col0 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5820
SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab1 WHERE NOT - + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5820
SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab1 WHERE NOT - + col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col1 + + + col2 AS col0 FROM tab1
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT + COUNT( - 63 ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( ( - - 47 ), - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT + COUNT ( - 63 ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( ( - - 47 ), - col0 )
----
0

query I rowsort
SELECT DISTINCT col0 + + ( col1 ) AS col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5824
SELECT DISTINCT COUNT( * ) DIV 98 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT COUNT ( * ) / 98 AS col2 FROM tab2
----
0

query I rowsort
SELECT 49 + - 5 AS col2 FROM tab1
----
44
44
44

query I rowsort
SELECT col2 + - ( - - col1 ) AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT - MIN( - ( + ( + - col1 ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - MIN ( - ( + ( + - col1 ) ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE col1 - - 97 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5829
SELECT - ( + + ( + - MAX( DISTINCT 34 ) ) ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5829
SELECT - ( + + ( + - MAX ( DISTINCT 34 ) ) ) / - COUNT ( * ) FROM tab2 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 56 + + - col1 col1 FROM tab0
----
-2713
-5545
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5831
SELECT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + - 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT + col0 * + ( 31 ) AS col0 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT ALL + ( - - 76 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT ALL + + ( + 34 ) FROM tab1 AS cor0
----
34
34
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT MIN( ALL 86 ) AS col2 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT MIN ( ALL 86 ) AS col2 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL - SUM( ( + + col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - SUM ( ( + + col2 ) ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - COUNT( ALL + 88 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5839
SELECT - COUNT ( ALL + 88 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL col0 * + 70 * ( - - 47 ) FROM tab2
----
151340
210560
246750

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT COUNT( DISTINCT ( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT COUNT ( DISTINCT ( + col2 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT COUNT( * ) * 84 AS col2 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT COUNT ( * ) * 84 AS col2 FROM tab1
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT 35 DIV col2 col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5843
SELECT 35 / col2 col0 FROM tab0
----
0
0
3

query I rowsort
SELECT + col2 * + col2 * 64 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + - col2 NOT BETWEEN - col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 71 + - col0 + col0 - 60 + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-141
-178
-230

query II rowsort
SELECT col2 * col0, col2 AS col1 FROM tab0
----
705
47
870
10
9603
99

query I rowsort
SELECT DISTINCT col2 + - 31 * - + col1 AS col1 FROM tab2
----
1604
2135
2427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 64 * + col0 col1 FROM tab2
----
150144
315392
321600

onlyif mysql # DIV for integer division: 
query II rowsort label-5850
SELECT ALL + col0 DIV - col2 AS col2, + 41 AS col1 FROM tab1
----
-1
41
-1
41
0
41

skipif mysql # not compatible
query II rowsort label-5850
SELECT ALL + col0 / - col2 AS col2, + 41 AS col1 FROM tab1
----
-1
41
-1
41
0
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + col1 col1 FROM tab2
----
4080
5360
6160

query I rowsort
SELECT - col0 * - + col1 FROM tab0 AS cor0 WHERE ( ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL >= 35
----

query I rowsort
SELECT ALL 54 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL col2 * + 15 + + col2 + col2 AS col2 FROM tab2 AS cor0
----
391
680
986

query I rowsort
SELECT + - col0 + + + ( + 54 ) AS col1 FROM tab1 AS cor0
----
-31
-37
3

query I rowsort
SELECT - col1 + + col0 * + - col0 - col1 * + - 47 FROM tab1
----
-1957
-6119
-6995

query I rowsort
SELECT - col0 + col2 + col2 * + - col0 AS col0 FROM tab0
----
-673
-947
-9601

query III rowsort
SELECT * FROM tab0 WHERE + 9 <> - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT COUNT( DISTINCT - 56 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5860
SELECT COUNT ( DISTINCT - 56 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT + COUNT( DISTINCT 73 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT + COUNT ( DISTINCT 73 ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL 79 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
79
79
79

query II rowsort
SELECT + 6 AS col2, ( - + col1 ) FROM tab1 cor0
----
6
-14
6
-47
6
-5

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT + + 36 DIV - COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + + 36 / - COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT COUNT( * ) AS col0, 19 FROM tab0 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-5866
SELECT COUNT ( * ) AS col0, 19 FROM tab0 AS cor0
----
3
19

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5868
SELECT + 79 DIV - 5 AS col0, 73 * + col2 AS col2 FROM tab1
----
-15
4307
-15
4964
-15
7008

skipif mysql # not compatible
query II rowsort label-5868
SELECT + 79 / - 5 AS col0, 73 * + col2 AS col2 FROM tab1
----
-15
4307
-15
4964
-15
7008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5869
SELECT ALL CAST( - + 72 AS SIGNED ), 83 AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-72
83
-72
83
-72
83

skipif mysql # not compatible
query II rowsort label-5869
SELECT ALL CAST ( - + 72 AS INTEGER ), 83 AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-72
83
-72
83
-72
83

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 16 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT + + 93 IS NOT NULL
----

query I rowsort
SELECT + + 92 * - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
4324
9108
920

onlyif mysql # DIV for integer division: 
query II rowsort label-5873
SELECT + + col0 DIV col0 * + + 65 * - 3 + + col2 + 1 * - + 46 AS col1, col2 FROM tab2 AS cor0
----
-183
58
-201
40
-218
23

skipif mysql # not compatible
query II rowsort label-5873
SELECT + + col0 / col0 * + + 65 * - 3 + + col2 + 1 * - + 46 AS col1, col2 FROM tab2 AS cor0
----
-183
58
-201
40
-218
23

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5875
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + col2 AS SIGNED ) BETWEEN - col0 AND + col0 * - 85
----

skipif mysql # not compatible
query III rowsort label-5875
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + col2 AS INTEGER ) BETWEEN - col0 AND + col0 * - 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) + + 9 * + 61 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 9 * + 61 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5879
SELECT ALL + + ( + col2 ) * + ( - col2 ) + + 65 + + CAST( - + col1 AS SIGNED ) + col2, col2 col0 FROM tab0 AS cor0
----
-2178
47
-46
10
-9638
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5879
SELECT ALL + + ( + col2 ) * + ( - col2 ) + + 65 + + CAST ( - + col1 AS INTEGER ) + col2, col2 col0 FROM tab0 AS cor0
----
-2178
47
-46
10
-9638
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT MIN( DISTINCT - col1 ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5881
SELECT MIN ( DISTINCT - col1 ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - col1 + + col1 col0, 24 * - col1 + 77 - + 78 FROM tab0 AS cor0
----
2
-25
462
-505
6642
-1945

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + COUNT( * ) * SUM( DISTINCT col1 ) - + 87 FROM tab2 AS cor0
----
498

skipif mysql # not compatible
query I rowsort label-5883
SELECT + COUNT ( * ) * SUM ( DISTINCT col1 ) - + 87 FROM tab2 AS cor0
----
498

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT + 92 + - - COUNT( * ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5884
SELECT + 92 + - - COUNT ( * ) FROM tab0 AS cor0
----
95

query I rowsort
SELECT - + 41 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 38 - + ( ( - 94 ) ) AS col1 FROM tab2
----
132
132
132

query I rowsort
SELECT - ( + - col2 ) + col1 - col0 + + col2 FROM tab1 AS cor0
----
155
38
92

query II rowsort
SELECT col2 AS col2, - ( + col0 ) AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col0 ) IN ( - col1 * + - col0 + col1 + - 9 / - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 48 * + + 5 * - col1 * - 23 * + col1 AS col1 FROM tab2 AS cor0
----
14357520
24779280
32728080

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT - 28 DIV - - 94 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT - 28 / - - 94 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL COUNT( - col1 ) * - + ( 21 ) * + 4 AS col1 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL COUNT ( - col1 ) * - + ( 21 ) * + 4 AS col1 FROM tab1 AS cor0
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab2 cor0
----
-99
-99
-99

query I rowsort
SELECT ALL col1 * - col1 AS col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
-2601
-4489
-5929

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5896
SELECT - CAST( NULL AS DECIMAL ) * - CAST( + + col2 AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT - CAST ( NULL AS REAL ) * - CAST ( + + col2 AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 43 * - 44 FROM tab1 AS cor0
----
1892
1892
1892

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 / - + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + col1 * + 33 - + col1 + - col2 FROM tab1 AS cor0
----
-1666
-229
-572

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * + col2 + + 85 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + ( - col1 ) * - col1 + - col0 FROM tab0 AS cor0 WHERE NOT col1 + col0 + col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT - 57 * ( + + COUNT( ALL col1 ) ) * + 43 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-7353

skipif mysql # not compatible
query I rowsort label-5903
SELECT - 57 * ( + + COUNT ( ALL col1 ) ) * + 43 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-7353

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT + MAX( + 52 ) AS col1 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5904
SELECT + MAX ( + 52 ) AS col1 FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT + MIN( ALL + ( + col0 ) ), - COUNT( * ) AS col1 FROM tab1
----
51
-3

skipif mysql # not compatible
query II rowsort label-5905
SELECT + MIN ( ALL + ( + col0 ) ), - COUNT ( * ) AS col1 FROM tab1
----
51
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT + SUM( - 15 ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5906
SELECT + SUM ( - 15 ) AS col2 FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT - col0 DIV 12 FROM tab2
----
-3
-5
-6

skipif mysql # not compatible
query I rowsort label-5907
SELECT - col0 / 12 FROM tab2
----
-3
-5
-6

query II rowsort
SELECT DISTINCT col0, 34 - col2 FROM tab0
----
15
-13
87
24
97
-65

query III rowsort
SELECT * FROM tab0 WHERE NOT - 33 * - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT + COUNT( DISTINCT - 89 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5910
SELECT + COUNT ( DISTINCT - 89 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - ( col0 ) * - + 93 * + col0 * - - col2 AS col2 FROM tab2 AS cor0 WHERE col1 * - + 96 IS NOT NULL
----
15237120
30341250
4526124

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 16 + - col2 + - 9 AS col1, - 38 AS col1 FROM tab2 AS cor0
----
-48
-38
-65
-38
-83
-38

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col2 + + - col0 FROM tab2 AS cor0
----
237096
260287
59777

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5916
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) * - - 31 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5916
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS REAL ) * - - 31 <> NULL
----

query I rowsort
SELECT + col2 + - + ( col2 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT col2 < + 47 * - 59 + - CAST( NULL AS SIGNED ) - + + col2
----

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT col2 < + 47 * - 59 + - CAST ( NULL AS INTEGER ) - + + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 70 + + 48 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT COUNT( * ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5922
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + - 92 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-92
-92
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT DISTINCT - + 99 DIV + - ( + 31 ) + + 70 + col1 AS col2 FROM tab0 AS cor0
----
154
74
94

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - + 99 / + - ( + 31 ) + + 70 + col1 AS col2 FROM tab0 AS cor0
----
154
74
94

query I rowsort
SELECT + 56 * - ( + col0 ) AS col0 FROM tab1 cor0
----
-2856
-4760
-5096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col1 FROM tab0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL ( + + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL ( + + COUNT ( * ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 29 ) * - 85 col2 FROM tab1
----
-2465
-2465
-2465

query I rowsort
SELECT DISTINCT - col0 * - - ( + - 94 ) - - col0 FROM tab2 cor0
----
4370
6080
7125

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 43 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT - + col2 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT - + col2 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5932
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( 66 AS SIGNED ) * - - 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5932
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( 66 AS INTEGER ) * - - 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 >= - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 48 * - col2 FROM tab0 WHERE + - col2 > - col2 / - col2
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 cor0 WHERE NOT ( NOT ( ( NOT NULL IS NOT NULL ) ) )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5937
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT ( + + col2 ) * + col2 + ( + 30 ) DIV - col0 + + col0 FROM tab0 cor0
----
187
2222
9898

skipif mysql # not compatible
query I rowsort label-5938
SELECT ( + + col2 ) * + col2 + ( + 30 ) / - col0 + + col0 FROM tab0 cor0
----
187
2222
9898

query I rowsort
SELECT - 38 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT ALL + COUNT( * ) DIV - 70 + + + COUNT( DISTINCT - + col0 ) + - + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + COUNT ( * ) / - 70 + + + COUNT ( DISTINCT - + col0 ) + - + COUNT ( * ) FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1, - 18 col2 FROM tab0 AS cor0
----
-1
-18
-21
-18
-81
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 NOT IN ( - + col1 - 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5944
SELECT ALL - col0 / - 28 * + col2 col0, + col2 col1 FROM tab0 WHERE NOT - - CAST( + - 86 AS SIGNED ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5944
SELECT ALL - col0 / - 28 * + col2 col0, + col2 col1 FROM tab0 WHERE NOT - - CAST ( + - 86 AS INTEGER ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT ALL COUNT( * ) DIV 31 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL COUNT ( * ) / 31 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5948
SELECT + - 95 * - col1 * 22 + - ( + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT + - 95 * - col1 * 22 + - ( + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5949
SELECT ALL + col0 DIV + col1 AS col0, 46 * - + 90 FROM tab2 AS cor0
----
0
-4140
0
-4140
1
-4140

skipif mysql # not compatible
query II rowsort label-5949
SELECT ALL + col0 / + col1 AS col0, 46 * - + 90 FROM tab2 AS cor0
----
0
-4140
0
-4140
1
-4140

query I rowsort
SELECT DISTINCT ( + 18 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
18

query I rowsort
SELECT col2 + 83 FROM tab1 cor0
----
142
151
179

query I rowsort
SELECT ALL 59 + - 32 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5953
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT MIN( + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5954
SELECT MIN ( + - col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - MIN( ALL + ( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT - MIN ( ALL + ( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT + 38 - + MAX( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5956
SELECT + 38 - + MAX ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT DISTINCT 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-5957
SELECT DISTINCT COUNT ( - + col2 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 30 + + 65 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT - col0 + 82 + - - col1 + - col0 DIV col2 FROM tab0
----
-14
148
8

skipif mysql # not compatible
query I rowsort label-5959
SELECT - col0 + 82 + - - col1 + - col0 / col2 FROM tab0
----
-14
148
8

query I rowsort
SELECT DISTINCT + ( + 29 ) - + col2 FROM tab2
----
-11
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND - col0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL COUNT( - 30 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL COUNT ( - 30 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 55 FROM tab2 AS cor0 WHERE NOT - ( + ( ( - - col1 ) ) ) IS NULL
----
-55
-55
-55

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 65 * + + 76 col2 FROM tab0
----
-103740
-400140
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT SUM( + - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5967
SELECT SUM ( + - col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT - SUM( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - 27 ) IN ( col1 + + 28 )
----
227

skipif mysql # not compatible
query I rowsort label-5968
SELECT - SUM ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - 27 ) IN ( col1 + + 28 )
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT - - MIN( ALL + col0 ) * + - MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT - - MIN ( ALL + col0 ) * + - MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT - COUNT( * ) + - + CAST( 55 AS SIGNED ) + - MAX( DISTINCT - - col2 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT - COUNT ( * ) + - + CAST ( 55 AS INTEGER ) + - MAX ( DISTINCT - - col2 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT ALL + - col0 / + CAST( NULL AS SIGNED ) * + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + - col0 / + CAST ( NULL AS INTEGER ) * + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 71 + + 51 + - col0 FROM tab1 AS cor0
----
-43
-46
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 12 > NULL
----

query I rowsort
SELECT ALL + + 48 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5975
SELECT 89 DIV + MIN( + col0 ) + + COUNT( * ), COUNT( - 79 ) AS col1 FROM tab2
----
4
3

skipif mysql # not compatible
query II rowsort label-5975
SELECT 89 / + MIN ( + col0 ) + + COUNT ( * ), COUNT ( - 79 ) AS col1 FROM tab2
----
4
3

query I rowsort
SELECT DISTINCT + ( + + col2 ) * + - col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 89 * + 84 AS col2 FROM tab1
----
7476
7476
7476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT COUNT( DISTINCT + - col0 ) DIV - + 74 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5978
SELECT COUNT ( DISTINCT + - col0 ) / - + 74 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL + 68 * CAST( NULL AS SIGNED ) / 91 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5979
SELECT ALL + 68 * CAST ( NULL AS INTEGER ) / 91 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 * + 43 FROM tab0
----
325467
404587
9675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT - 4 DIV COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5981
SELECT - 4 / COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5982
SELECT ALL - CAST( NULL AS DECIMAL ) / + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - CAST ( NULL AS REAL ) / + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - + col1 + - 3 * ( + col1 ) AS col2 FROM tab0 WHERE NOT - col1 + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col0 - + 90 * + col2 >= + col2
----

query I rowsort
SELECT ALL col0 + - col1 * col2 AS col2 FROM tab1
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5986
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col2 col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT col2 * col0 + - - 17 AS col2 FROM tab0 AS cor0
----
722
887
9620

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab2 AS cor0 WHERE ( - col2 ) * col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT SUM( - 46 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-414

skipif mysql # not compatible
query I rowsort label-5991
SELECT SUM ( - 46 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-414

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT + 49 DIV - col1 + - + ( col2 ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 49 / - col1 + - + ( col2 ) FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE - 13 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE col0 > + col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL + SUM( + + 16 ) AS col2 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + SUM ( + + 16 ) AS col2 FROM tab1 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT + + COUNT( * ) * 53 + + 71 FROM tab0 cor0
----
230

skipif mysql # not compatible
query I rowsort label-5996
SELECT + + COUNT ( * ) * 53 + + 71 FROM tab0 cor0
----
230

query I rowsort
SELECT - ( + 12 ) AS col2 FROM tab0 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT 22 * - - COUNT( * ) * + 44 AS col0 FROM tab1 AS cor0
----
2904

skipif mysql # not compatible
query I rowsort label-5998
SELECT 22 * - - COUNT ( * ) * + 44 AS col0 FROM tab1 AS cor0
----
2904

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 NOT BETWEEN NULL AND - 71
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT MAX( ALL + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6000
SELECT MAX ( ALL + - col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT COUNT( - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6001
SELECT COUNT ( - col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - ( + - 3 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT ALL + 3 AS col1, + 44 * + COUNT( * ) * 53 FROM tab1
----
3
6996

skipif mysql # not compatible
query II rowsort label-6003
SELECT ALL + 3 AS col1, + 44 * + COUNT ( * ) * 53 FROM tab1
----
3
6996

query II rowsort
SELECT 51 AS col1, - col2 FROM tab0
----
51
-10
51
-47
51
-99

query II rowsort
SELECT col0 AS col1, col1 * + col1 * + 35 + - + 56 + + col0 + - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL + + ( - SUM( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL + + ( - SUM ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL > 95 + + + col2 * - col2 * + 45 )
----

query I rowsort
SELECT ALL ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + ( - col0 ) * col1 + + 40 + ( col0 ) AS col1 FROM tab2 AS cor0
----
-2260
-4824
-4910

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE 97 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT + MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6013
SELECT + MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT DISTINCT CAST( + + 24 AS SIGNED ) * + - COUNT( + 12 ) * + 53 + + + 24 FROM tab2 AS cor0
----
-3792

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT CAST ( + + 24 AS INTEGER ) * + - COUNT ( + 12 ) * + 53 + + + 24 FROM tab2 AS cor0
----
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - 32 * + - COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 32 * + - COUNT ( * ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE col2 * - col0 + + col1 * 99 > NULL
----

query I rowsort
SELECT ALL + col1 * + 34 AS col2 FROM tab0
----
2754
34
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT SUM( + + 91 ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-6018
SELECT SUM ( + + 91 ) FROM tab2
----
273

query I rowsort
SELECT col1 FROM tab0 WHERE + col2 IN ( + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT DISTINCT + col1 DIV + + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT + col1 / + + col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT - - COUNT( + 33 ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - - COUNT ( + 33 ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT + + 48 + + col1 AS col0 FROM tab2 AS cor0
----
115
125
99

query I rowsort
SELECT ALL + col2 * - + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT MIN( ALL - 70 ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6024
SELECT MIN ( ALL - 70 ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT + col1 * 36 - 56 AS col1 FROM tab1
----
124
1636
448

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - 4 - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-13

skipif mysql # not compatible
query I rowsort label-6026
SELECT - 4 - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT COUNT( * ) - - COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6027
SELECT COUNT ( * ) - - COUNT ( * ) FROM tab1 cor0
----
6

query I rowsort
SELECT 47 * + + col2 FROM tab2 AS cor0
----
1081
1880
2726

query II rowsort
SELECT ALL col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 - 27 IS NOT NULL
----

query I rowsort
SELECT 92 * + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT 27 * - 95 AS col0 FROM tab0 AS cor0
----
-2565
-2565
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT + ( SUM( DISTINCT col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6033
SELECT + ( SUM ( DISTINCT col2 ) ) FROM tab0 AS cor0
----
156

query II rowsort
SELECT ALL + 41 * 32 AS col0, col1 AS col1 FROM tab1 cor0
----
1312
14
1312
47
1312
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6035
SELECT - CAST( NULL AS SIGNED ) / + - col1, + col1 * - col2 AS col2 FROM tab2 cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-6035
SELECT - CAST ( NULL AS INTEGER ) / + - col1, + col1 * - col2 AS col2 FROM tab2 cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

query I rowsort
SELECT + 18 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6037
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT ( - - 72 ) AS col2 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL - ( - MAX( DISTINCT - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - ( - MAX ( DISTINCT - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - col1 / - - 54 AS col2 FROM tab2 WHERE NOT - + col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT NULL <= + + 58 * - 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - col0 + + + 62 AS col0 FROM tab0 AS cor0
----
10
-25
47
47
99
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6044
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 50, col1 * - - 71 * + col1 * - 80 AS col0 FROM tab2 AS cor0
----
50
-14773680
50
-25497520
50
-33676720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab1 AS cor0 WHERE NULL > - 64
----

query I rowsort
SELECT ALL + ( - - col2 ) AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL col1 / col0 FROM tab0 AS cor0 WHERE NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN + + col0 AND + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col0 FROM tab0
----
-82
-82
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6051
SELECT DISTINCT MIN( - col0 ) AS col2, + 93 DIV - ( 90 ) FROM tab2
----
-75
-1

skipif mysql # not compatible
query II rowsort label-6051
SELECT DISTINCT MIN ( - col0 ) AS col2, + 93 / - ( 90 ) FROM tab2
----
-75
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + ( 98 ) AS col0 FROM tab0
----
98

query I rowsort
SELECT - col2 FROM tab2 WHERE - 95 * - col1 + 51 <= + + 36 * col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT ALL 41 + - 77 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL 41 + - 77 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT - COUNT( * ) + 4 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - COUNT ( * ) + 4 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 98 + + - 38 AS col2 FROM tab0
----
60
60
60

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab2 cor0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 14 <> 78
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT DISTINCT + COUNT( * ), - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6062
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col1
----

query I rowsort
SELECT ALL + + col2 * + ( - col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col2 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 + + col1, 86 - col0 col0 FROM tab2 AS cor0
----
2397
40
5005
22
5092
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT + SUM( ALL col1 ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) / + 50 + ( CAST( NULL AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT + SUM ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) / + 50 + ( CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, 94 - + 36 * + col0 col0 FROM tab0
----
-10
-3038
-47
-446
-99
-3398

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, col0 col1 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT col2 * 19 * col2 FROM tab0
----
186219
1900
41971

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + - col1 ) > + 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 4 * + 19 * + col0 + + - col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + 90 * - - col2 FROM tab1
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL - COUNT( * ) - + 51 AS col1 FROM tab1 WHERE - - 40 + col1 < NULL
----
-51

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - COUNT ( * ) - + 51 AS col1 FROM tab1 WHERE - - 40 + col1 < NULL
----
-51

query I rowsort
SELECT DISTINCT - col0 + - 8 + + + 16 AS col1 FROM tab2 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT - CAST( + + 37 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-6077
SELECT - CAST ( + + 37 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL COUNT( ALL + 21 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL COUNT ( ALL + 21 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT - 93 * + col2 + - + col0 DIV col2 + + col1 AS col2 FROM tab1 cor0
----
-5483
-6278
-8914

skipif mysql # not compatible
query I rowsort label-6079
SELECT - 93 * + col2 + - + col0 / col2 + + col1 AS col2 FROM tab1 cor0
----
-5483
-6278
-8914

query I rowsort
SELECT ALL - 26 AS col1 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6081
SELECT - + 14 * + CAST( - col0 AS SIGNED ), col0 FROM tab1 AS cor0
----
1190
85
1274
91
714
51

skipif mysql # not compatible
query II rowsort label-6081
SELECT - + 14 * + CAST ( - col0 AS INTEGER ), col0 FROM tab1 AS cor0
----
1190
85
1274
91
714
51

query I rowsort
SELECT + 44 FROM tab2 cor0
----
44
44
44

query I rowsort
SELECT - ( - col1 ) + + + 37 FROM tab0
----
118
38
58

query I rowsort
SELECT DISTINCT - col0 - + col1 AS col0 FROM tab0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - 36 col0 FROM tab2
----
23
-36
40
-36
58
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 10 col2, col0 FROM tab0 AS cor0
----
10
15
10
87
10
97

query I rowsort
SELECT + col1 * 90 FROM tab0 AS cor0
----
1890
7290
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6088
SELECT + MAX( + col0 ) DIV MIN( - col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6088
SELECT + MAX ( + col0 ) / MIN ( - col2 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT - col0 DIV + 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT - col0 / + 89 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab1 WHERE 87 <> - col0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT ( 94 ) = + col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT ( CAST( - 88 AS SIGNED ) ) FROM tab0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-6094
SELECT ( CAST ( - 88 AS INTEGER ) ) FROM tab0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL + COUNT( + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + COUNT ( + col1 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT + col2 + col0 DIV 27 FROM tab0
----
102
13
47

skipif mysql # not compatible
query I rowsort label-6096
SELECT + col2 + col0 / 27 FROM tab0
----
102
13
47

query I rowsort
SELECT ALL 58 * + 87 + - 53 FROM tab2
----
4993
4993
4993

query I rowsort
SELECT col0 + + 49 AS col2 FROM tab0
----
136
146
64

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT 67 + COUNT( col2 + col0 * + col2 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-6100
SELECT 67 + COUNT ( col2 + col0 * + col2 ) FROM tab1
----
70

query I rowsort
SELECT + 34 + ( - 7 ) * - col0 FROM tab0
----
139
643
713

query I rowsort
SELECT 61 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6103
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE 61 IS NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE 32 > col2 * 58 + 66
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 52 > ( 82 / + ( 12 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( - ( - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) - + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( - ( - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) - + col1 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 20 / - 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL = ( col1 + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL = ( col1 + 61 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col0 FROM tab2 WHERE ( 69 ) BETWEEN NULL AND col1 + + col1
----

query I rowsort
SELECT 45 - + col1 FROM tab0
----
-36
24
44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 29 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 43 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( ( - 89 ) ) )
----

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 43 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( ( - 89 ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 89 * 26 FROM tab0 AS cor0 CROSS JOIN tab1
----
2314

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT - 6 * - MAX( DISTINCT col0 ) FROM tab1
----
546

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - 6 * - MAX ( DISTINCT col0 ) FROM tab1
----
546

query I rowsort
SELECT ALL - 86 + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-19
-35
-9

query I rowsort
SELECT - + 76 + - ( col1 - 39 * + ( - col1 ) ) * 14 FROM tab1 AS cor0
----
-26396
-2876
-7916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6121
SELECT + col0 col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / + 49 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6121
SELECT + col0 col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + 49 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 80 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6124
SELECT CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6124
SELECT CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL + + 14 + - MAX( ALL 26 + 79 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-301

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + + 14 + - MAX ( ALL 26 + 79 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-301

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 * 44 FROM tab1
----
2340
3799
4072

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT COUNT( DISTINCT - 10 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6128
SELECT COUNT ( DISTINCT - 10 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT ( col1 ) * - 40 - + col0 FROM tab2
----
-2086
-2755
-3144

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT DISTINCT + MAX( + 96 ) FROM tab0 WHERE + col0 / - col1 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + MAX ( + 96 ) FROM tab0 WHERE + col0 / - col1 IS NOT NULL
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT + MIN( + CAST( col2 AS SIGNED ) ) - 89 AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6131
SELECT + MIN ( + CAST ( col2 AS INTEGER ) ) - 89 AS col0 FROM tab1
----
-30

query I rowsort
SELECT DISTINCT 36 + + - 77 + - ( col1 ) FROM tab2
----
-108
-118
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6133
SELECT ALL - COUNT( * ) - - 51 + + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - COUNT ( * ) - - 51 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL + MAX( ALL - 85 ) AS col0 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + MAX ( ALL - 85 ) AS col0 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT - MAX( + 7 ) - 12 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - MAX ( + 7 ) - 12 FROM tab1
----
-19

query III rowsort
SELECT * FROM tab0 WHERE 41 <> NULL
----

query I rowsort
SELECT - col1 - + col2 * col0 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT + MAX( col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - col2 * + 64 FROM tab2 cor0
----
-1472
-2560
-3712

query III rowsort
SELECT * FROM tab2 WHERE NOT - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * 56 AS col2 FROM tab2 cor0
----
1288
2240
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT DISTINCT - SUM( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - SUM ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT - 19 FROM tab2 AS cor0 WHERE NOT 61 IN ( + col2 )
----
-19
-19
-19

query II rowsort
SELECT - col0 AS col1, + col2 * - col0 * + col0 - col1 * + col0 FROM tab1 AS cor0
----
-51
-250410
-85
-426700
-91
-567385

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE + col1 * - - 7 * col2 >= 65
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT - MAX( - + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6146
SELECT - MAX ( - + col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + ( + col2 ) ) + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 43 = NULL
----

query II rowsort
SELECT - col0, + col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - - col1 * + 99 * + col2 FROM tab0 AS cor0
----
20790
376893
9801

query I rowsort
SELECT ALL + + ( - 71 ) FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT col1 * ( CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT NULL <= ( - - 63 )
----

skipif mysql # not compatible
query I rowsort label-6152
SELECT col1 * ( CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT NULL <= ( - - 63 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 + + col1 / col0 IS NOT NULL
----

query I rowsort
SELECT - 21 * - - 65 FROM tab1
----
-1365
-1365
-1365

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab0
----
10

query I rowsort
SELECT - 17 FROM tab2 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT - 39 * CAST( 12 AS SIGNED ) AS col0 FROM tab1
----
-468
-468
-468

skipif mysql # not compatible
query I rowsort label-6157
SELECT - 39 * CAST ( 12 AS INTEGER ) AS col0 FROM tab1
----
-468
-468
-468

query II rowsort
SELECT ALL col0 * + col2 AS col2, - 49 * + 94 FROM tab2
----
1058
-4606
2560
-4606
4350
-4606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6159
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) DIV 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) / 92 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 * - col1 AND col2
----

query I rowsort
SELECT DISTINCT 27 * col1 FROM tab1
----
1269
135
378

query I rowsort
SELECT + + 22 + - col0 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 59 + + - col1 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( col0 ) + col0 + - + col1 * col1 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT 61 + + col2 * + - col0 - + + col0 AS col0 FROM tab1 AS cor0
----
-4886
-5039
-6218

query I rowsort
SELECT - - 24 * - 7 + - col0 FROM tab0 AS cor0
----
-183
-255
-265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT col1 + CAST( + col1 AS SIGNED ) + - col0 col1 FROM tab1 AS cor0
----
-23
-75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6167
SELECT col1 + CAST ( + col1 AS INTEGER ) + - col0 col1 FROM tab1 AS cor0
----
-23
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT - SUM( - - ( + + 3 ) ) + + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT - SUM ( - - ( + + 3 ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( col2 ) < ( ( col2 ) * col0 )
----
23
40
58

query I rowsort
SELECT col0 * - + ( - - 43 ) AS col0 FROM tab0
----
-3741
-4171
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 * 30 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 * 30 + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT + col2 + - col0 AS col1 FROM tab2 WHERE + CAST( - + 22 AS SIGNED ) * + col2 + - col1 IN ( col0 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-6172
SELECT + col2 + - col0 AS col1 FROM tab2 WHERE + CAST ( - + 22 AS INTEGER ) * + col2 + - col1 IN ( col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL MIN( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL MIN ( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT ALL + col1 DIV + + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + col1 / + + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT DISTINCT 52 DIV - col0 AS col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT 52 / - col0 AS col2 FROM tab1 cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT ALL + + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6177
SELECT + 24 * MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - + 40 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 24 * MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - + 40 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT - + col0 * + - col2 - 76 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT - + col0 * + - col2 - 76 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6179
SELECT * FROM tab0 AS cor0 WHERE ( - - CAST( + ( + 81 ) AS SIGNED ) ) IS NOT NULL AND NOT 77 - col2 / col2 IN ( - col0 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6179
SELECT * FROM tab0 AS cor0 WHERE ( - - CAST ( + ( + 81 ) AS INTEGER ) ) IS NOT NULL AND NOT 77 - col2 / col2 IN ( - col0 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6180
SELECT + 71 * + 50 * - - COUNT( * ) + - + 12 - - 70 + + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT + 71 * + 50 * - - COUNT ( * ) + - + 12 - - 70 + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + + COUNT( * ) col2 FROM tab0 cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6181
SELECT + + COUNT ( * ) col2 FROM tab0 cor0 WHERE ( NULL ) <> NULL
----
0

query I rowsort
SELECT + 38 - + - col0 AS col0 FROM tab1 AS cor0
----
123
129
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6183
SELECT 30 DIV - 6 - + 41 * col0 * 6 + - col0 FROM tab1 cor0
----
-12602
-21000
-22482

skipif mysql # not compatible
query I rowsort label-6183
SELECT 30 / - 6 - + 41 * col0 * 6 + - col0 FROM tab1 cor0
----
-12602
-21000
-22482

query I rowsort
SELECT + col2 * 23 + 66 + + - col1 FROM tab2 AS cor0
----
1333
544
909

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT DISTINCT col0 + - col2 * - col2 FROM tab2
----
1664
3439
575

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 <= + - 77 - 34 - - col2 * col2
----
87
21
10

query I rowsort
SELECT DISTINCT 63 * 86 - - col1 + - + ( col2 ) FROM tab1
----
5336
5364
5397

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL IN ( - 65 ) )
----

query I rowsort
SELECT + 15 FROM tab2 WHERE + + col1 IN ( - - 33, col1 )
----
15
15
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6191
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + MAX( DISTINCT - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT - CAST ( NULL AS REAL ) - + MAX ( DISTINCT - col1 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT ALL + COUNT( * ) AS col0, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-6192
SELECT ALL + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT ALL col0 - CAST( + col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL col0 - CAST ( + col0 AS INTEGER ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 55 AS col0, - col0 + + 82 col2 FROM tab1 AS cor0
----
-55
-3
-55
-9
-55
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT 56 * + + 94 - + + MIN( + - 90 ) FROM tab2 AS cor0
----
5354

skipif mysql # not compatible
query I rowsort label-6196
SELECT 56 * + + 94 - + + MIN ( + - 90 ) FROM tab2 AS cor0
----
5354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT ALL + CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 * + col1 AND - 22 + + - col2 + - 98 / + col1 * 84
----

query II rowsort
SELECT col1 * - + 97 * col1 AS col2, 76 AS col1 FROM tab0 AS cor0
----
-42777
76
-636417
76
-97
76

query II rowsort
SELECT + col1 * + col1 AS col1, col2 FROM tab1 AS cor0
----
196
96
2209
68
25
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 74 ) NOT IN ( + 3, + 28 * + 11 )
----

query I rowsort
SELECT ALL - 27 + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
24
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT + COUNT( * ) + 40 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT + COUNT ( * ) + 40 FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6204
SELECT * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) + - - 39 ) IN ( 13 )
----

skipif mysql # not compatible
query III rowsort label-6204
SELECT * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) + - - 39 ) IN ( 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT MAX( + col0 ) FROM tab1 WHERE NOT - col2 + - ( + - col1 ) * + 7 + - col1 * - - col0 / col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT MAX ( + col0 ) FROM tab1 WHERE NOT - col2 + - ( + - col1 ) * + 7 + - col1 * - - col0 / col0 <> NULL
----
NULL

query I rowsort
SELECT 57 * - col2 AS col2 FROM tab1
----
-3363
-3876
-5472

query II rowsort
SELECT DISTINCT 99 AS col0, col2 AS col0 FROM tab2
----
99
23
99
40
99
58

query I rowsort
SELECT col1 * - - col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6209
SELECT - CAST( NULL AS DECIMAL ) * - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT - CAST ( NULL AS REAL ) * - + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6210
SELECT ALL + 87 AS col2, CAST( - col1 AS SIGNED ) * 48 FROM tab2
----
87
-2448
87
-3216
87
-3696

skipif mysql # not compatible
query II rowsort label-6210
SELECT ALL + 87 AS col2, CAST ( - col1 AS INTEGER ) * 48 FROM tab2
----
87
-2448
87
-3216
87
-3696

query I rowsort
SELECT - col0 * 51 FROM tab0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT - CAST( - + col0 AS SIGNED ) col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6212
SELECT - CAST ( - + col0 AS INTEGER ) col2 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE + 41 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6214
SELECT + col2 DIV - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT + col2 / - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT - + MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6215
SELECT - + MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0 WHERE - col1 * + 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0 WHERE - col1 * + 63 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col1 > - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 * 69 + + ( col0 ) + - 35 AS col2 FROM tab0 cor0
----
1015
6055
6755

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL COUNT( * ) + + - 43 AS col0 FROM tab0 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL COUNT ( * ) + + - 43 AS col0 FROM tab0 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN + 4 AND 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT - col1 * - col1 + + + col2 * - CAST( - col1 AS SIGNED ) + 46 AS col0 FROM tab2
----
3820
8421
9055

skipif mysql # not compatible
query I rowsort label-6222
SELECT - col1 * - col1 + + + col2 * - CAST ( - col1 AS INTEGER ) + 46 AS col0 FROM tab2
----
3820
8421
9055

query I rowsort
SELECT col1 + + + col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 45 AS col1, - 62 AS col1 FROM tab1
----
45
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT MIN( ALL - 83 ) AS col1 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT MIN ( ALL - 83 ) AS col1 FROM tab2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + col1 / + col0 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + col1 / + col0 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT DISTINCT + + COUNT( * ) AS col1, COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6227
SELECT DISTINCT + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 cor0
----
3
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT DISTINCT - 9 DIV col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - 9 / col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT col1 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + 8 * 87 * - col0 FROM tab0 AS cor0
----
-10440
-60552
-67512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6232
SELECT DISTINCT COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0 WHERE - 50 * + col1 <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - 50 * + col1 <= + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT MAX( - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT MAX ( - col0 ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6235
SELECT ALL * FROM tab0 AS cor0 WHERE + 97 BETWEEN + 32 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6235
SELECT ALL * FROM tab0 AS cor0 WHERE + 97 BETWEEN + 32 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 * - - 65 AS col2 FROM tab0 AS cor0
----
3055
6435
650

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col1 - col2
----

query II rowsort
SELECT col0, col2 * - col2 + - col1 FROM tab1 cor0
----
51
-9230
85
-3486
91
-4671

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL COUNT( * ) + - COUNT( ( - col2 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL COUNT ( * ) + - COUNT ( ( - col2 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - 18 + ( - col2 ) + col1 FROM tab1 cor0
----
-100
-39
-72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 11 * + + 92, 60 + + - col2, + + col2 * - col1 + - + col1 + - col1 + ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6242
SELECT + + col1 AS col2, col2 DIV col1 AS col2 FROM tab0 AS cor0
----
1
99
21
0
81
0

skipif mysql # not compatible
query II rowsort label-6242
SELECT + + col1 AS col2, col2 / col1 AS col2 FROM tab0 AS cor0
----
1
99
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - COUNT( - col2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6243
SELECT - COUNT ( - col2 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
104
133
69

query II rowsort
SELECT ALL - col2 + - col0, + col2 FROM tab2
----
-104
40
-133
58
-69
23

query II rowsort
SELECT ALL col0 + - col2 AS col2, + col2 + col0 FROM tab2
----
17
133
23
69
24
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + - COUNT( * ) + - - 23 FROM tab2 WHERE - col1 * + ( + col2 ) = col1
----
23

skipif mysql # not compatible
query I rowsort label-6247
SELECT + - COUNT ( * ) + - - 23 FROM tab2 WHERE - col1 * + ( + col2 ) = col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT + 39 + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6248
SELECT + 39 + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
42

query I rowsort
SELECT ( + + 25 ) + - + col2 FROM tab2 AS cor0
----
-15
-33
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6250
SELECT ALL - + col0 * - ( - col0 ) - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - + col0 * - ( - col0 ) - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 66 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + ( + ( + - 63 ) ) AS col1 FROM tab2
----
-63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col2 * col0 * + col2 <= + col0 )
----

query I rowsort
SELECT ALL + 30 AS col0 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL < + col2 * + 61
----
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL < + col2 * + 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6257
SELECT DISTINCT - 97 AS col2, COUNT( * ) * + + CAST( NULL AS SIGNED ) / 38 AS col0 FROM tab1 AS cor0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6257
SELECT DISTINCT - 97 AS col2, COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / 38 AS col0 FROM tab1 AS cor0
----
-97
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 30 - - + col0 NOT BETWEEN NULL AND + col1 + + col2
----

query I rowsort
SELECT - col1 + - + col1 AS col0 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT ALL + col2 + - 23 * + 98 AS col0 FROM tab2 AS cor0
----
-2196
-2214
-2231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT ALL - COUNT( * ) DIV - 70 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - COUNT ( * ) / - 70 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT COUNT( - - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6262
SELECT COUNT ( - - col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col1 * + col1 * + col0 / col1 FROM tab0 AS cor0 WHERE + col2 * col1 IN ( + col2 * - col0 )
----

query I rowsort
SELECT + + col0 * + - col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * - 57 * - col1 * + col2 <> - 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 * + col2 * + 77 + col1 FROM tab1 AS cor0
----
-103474
-22710
-246045

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 * - 81 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT - 8 * 25 * - COUNT( * ) AS col1 FROM tab2 cor0
----
600

skipif mysql # not compatible
query I rowsort label-6268
SELECT - 8 * 25 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
600

query I rowsort
SELECT DISTINCT - 24 + 81 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
57

query I rowsort
SELECT DISTINCT + col2 + col2 - + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-4704
-4897
-6052

query I rowsort
SELECT + ( - 18 ) FROM tab0 cor0
----
-18
-18
-18

query I rowsort
SELECT + + col1 + + col1 + - - col0 + - col2 * col0 + - 1 AS col1 FROM tab1 AS cor0
----
-4818
-4921
-6004

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL + SUM( - 63 ) AS col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + SUM ( - 63 ) AS col1 FROM tab1 AS cor0
----
-189

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 BETWEEN + col0 + - col1 * col2 * col1 AND + + col1 + + 57 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6276
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - 95 AS DECIMAL ) * 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6276
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - 95 AS REAL ) * 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - col0 + - 55 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT ALL col1 + + col0 + + ( - + 48 ) FROM tab0
----
48
50
60

query III rowsort
SELECT * FROM tab0 WHERE NULL < + - col2
----

query I rowsort
SELECT 64 * ( + col0 ) FROM tab1
----
3264
5440
5824

query II rowsort
SELECT ALL col2 AS col2, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6282
SELECT DISTINCT col2 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT col2 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT COUNT( * ) * + + 39 AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-6283
SELECT COUNT ( * ) * + + 39 AS col2 FROM tab2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + col2 - col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * + - col0 + - 4 col0 FROM tab0
----
221
7565
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL - MAX( + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - MAX ( + col2 ) FROM tab2
----
-58

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col2 * 46 FROM tab0 AS cor0
----
-2162
-4554
-460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6290
SELECT ALL + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + AVG ( + 44 ) + + 91 AS col0, + 18 FROM tab0 AS cor0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6290
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + AVG ( + 44 ) + + 91 AS col0, + 18 FROM tab0 AS cor0
----
NULL
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL CAST( - - col1 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL CAST ( - - col1 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT + - 0 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / + col1 * - 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT - - CAST( AVG ( DISTINCT - 16 ) AS SIGNED ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6294
SELECT - - CAST ( AVG ( DISTINCT - 16 ) AS INTEGER ) FROM tab0 AS cor0
----
-16

query II rowsort
SELECT DISTINCT + col0, + col1 AS col2 FROM tab0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 64, - col0 col2 FROM tab0
----
64
-15
64
-87
64
-97

query I rowsort
SELECT ALL - ( col0 ) * + - 93 - col1 FROM tab0
----
1314
8070
9020

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND + - 98 * col2 * - 11
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6299
SELECT ALL ( MAX( ALL - + 23 ) ) + 86 AS col2 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL ( MAX ( ALL - + 23 ) ) + 86 AS col2 FROM tab0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6300
SELECT ALL + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <> + col0
----

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT DISTINCT + 73 FROM tab2 cor0
----
73

query I rowsort
SELECT ALL - - ( - + 87 ) * + + 89 * + 81 FROM tab1 AS cor0
----
-627183
-627183
-627183

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT + 53 DIV - - 68 * + 43 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT + 53 / - - 68 * + 43 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE ( col0 + + - col2 ) NOT IN ( 93 * + + 77 )
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT ALL + - 51 DIV + + ( - 60 ) + - col2 AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + - 51 / + + ( - 60 ) + - col2 AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL col2 + - col0 - - + col1 AS col1 FROM tab2 AS cor0
----
28
50
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 col2 FROM tab2 cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + col0 + + 83 AS col2 FROM tab1 AS cor0
----
134
168
174

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT + 10 + + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + 10 + + COUNT ( * ) FROM tab0 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 4 < + 1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT COUNT( ( - col2 ) ) + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6314
SELECT COUNT ( ( - col2 ) ) + COUNT ( * ) AS col1 FROM tab2
----
6

query I rowsort
SELECT - col1 + + + 76 FROM tab0
----
-5
55
75

query I rowsort
SELECT DISTINCT - col2 + - + col0 FROM tab1
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT ALL ( 75 ) + - 42 DIV - col2 FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL ( 75 ) + - 42 / - col2 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT + 51 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - + 58 / col1 + + 65 * + - col1 / col1 + + + col1 AND - - col2
----
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - + 58 / col1 + + 65 * + - col1 / col1 + + + col1 AND - - col2
----
0

query I rowsort
SELECT DISTINCT 42 - 20 FROM tab0
----
22

query I rowsort
SELECT ALL ( + 52 ) AS col0 FROM tab2
----
52
52
52

query I rowsort
SELECT DISTINCT col2 * 93 FROM tab2 WHERE NOT + - 78 IS NOT NULL
----

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col1 + + col1 < NULL
----

query I rowsort
SELECT - - col1 + - col2 AS col2 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL - + MIN( - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - + MIN ( - - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ( + 59 ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
59
59
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT col1 DIV ( + + col1 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6329
SELECT col1 / ( + + col1 ) FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT + 20 * 86 DIV col1 DIV - col0 + - + col0 FROM tab0 AS cor0
----
-114
-16
-87

skipif mysql # not compatible
query I rowsort label-6330
SELECT + 20 * 86 / col1 / - col0 + - + col0 FROM tab0 AS cor0
----
-114
-16
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - + MAX( - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - + MAX ( - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT 34 * - + col2 FROM tab1 AS cor0
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL - MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col2, + col2 + + 12 FROM tab2 AS cor0
----
51
35
67
70
77
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 72 col1, col1 FROM tab2 AS cor0
----
72
51
72
67
72
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT SUM( DISTINCT - + col0 ) col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6336
SELECT DISTINCT SUM ( DISTINCT - + col0 ) col1 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT + - 21, + col2 FROM tab0 AS cor0
----
-21
10
-21
47
-21
99

query II rowsort
SELECT DISTINCT - col0 AS col1, - col1 - - - ( - col0 ) * + 94 FROM tab2 AS cor0
----
-46
4273
-64
5939
-75
6983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) BETWEEN + 73 * + + 76 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * - col2 col1 FROM tab2
----
-2254
-3920
-5684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT - ( + - 81 ) * col2 AS col1 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT ( - - col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT - 14 DIV - ( + col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6345
SELECT - 14 / - ( + col0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT + ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 * - + col0 * 22 * - 83 AS col2 FROM tab0 AS cor0
----
-13820994
-17180834
-410850

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT - - MIN( ALL + 86 ) AS col0 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6348
SELECT - - MIN ( ALL + 86 ) AS col0 FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT ALL + CAST( NULL AS SIGNED ) / + 92 + - col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + CAST ( NULL AS INTEGER ) / + 92 + - col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 43 AS col2 FROM tab1 cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 38 col1 FROM tab1
----
-9
24
33

query I rowsort
SELECT ALL + - ( + - 15 ) AS col0 FROM tab0 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6353
SELECT DISTINCT + COUNT( * ) DIV + - 21 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT + COUNT ( * ) / + - 21 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 42 + 81 FROM tab2 AS cor0
----
39

query II rowsort
SELECT DISTINCT 66 AS col1, col1 AS col0 FROM tab2 AS cor0
----
66
51
66
67
66
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE 25 * + 57 >= - - 75 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + + col1 * + - col2 + col2, - 73 col0, - ( + col2 ) col0 FROM tab0 AS cor0
----
9 values hashing to 33452afe6bf9f073dcdd0e92d5925d30

query I rowsort
SELECT + + col1 FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND + col1
----

query I rowsort
SELECT ALL col2 + + col1 + + 54 AS col1 FROM tab0
----
154
182
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6360
SELECT CAST( + COUNT( - col0 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6360
SELECT CAST ( + COUNT ( - col0 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6361
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 * col2 * col0 AS col1, col0 * + col0 FROM tab1
----
NULL
2601
NULL
7225
NULL
8281

skipif mysql # not compatible
query II rowsort label-6361
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 * col2 * col0 AS col1, col0 * + col0 FROM tab1
----
NULL
2601
NULL
7225
NULL
8281

query I rowsort
SELECT ALL - - 91 * + col0 * + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 4 - 20 AS col1 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT col1 + - - col0 FROM tab2 WHERE col1 NOT BETWEEN + col0 AND NULL
----
142

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6365
SELECT ALL * FROM tab2 WHERE NOT ( + ( - CAST( - col1 AS DECIMAL ) ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6365
SELECT ALL * FROM tab2 WHERE NOT ( + ( - CAST ( - col1 AS REAL ) ) ) <> NULL
----

query I rowsort
SELECT ALL - ( - + 25 ) FROM tab2 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL COUNT( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6367
SELECT ALL COUNT ( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col1 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + + col2 * - col0 < NULL
----

query I rowsort
SELECT DISTINCT 12 FROM tab0 cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT ALL + col2 * col1 + - col1 + + - col2 * - col2 + + - CAST( NULL AS SIGNED ) + + - col2 * + - col2 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + col2 * col1 + - col1 + + - col2 * - col2 + + - CAST ( NULL AS INTEGER ) + + - col2 * + - col2 * col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6374
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( 79 ) * ( + CAST( NULL AS SIGNED ) ) - 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6374
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( 79 ) * ( + CAST ( NULL AS INTEGER ) ) - 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6375
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT - CAST ( NULL AS REAL ) * - COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 29 * + col0 * - - col0 AS col1 FROM tab1 cor0
----
209525
240149
75429

query II rowsort
SELECT ALL + 58 AS col1, col2 FROM tab0 AS cor0
----
58
10
58
47
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT + COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6378
SELECT + COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6379
SELECT + 93 * + CAST( + col1 AS SIGNED ) DIV col1 AS col2 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-6379
SELECT + 93 * + CAST ( + col1 AS INTEGER ) / col1 AS col2 FROM tab2 AS cor0
----
93
93
93

query II rowsort
SELECT DISTINCT - col2 AS col1, 69 AS col1 FROM tab1
----
-59
69
-68
69
-96
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col1 ) * + 82 col0 FROM tab2 WHERE NOT - 4 * + + 46 / - + 37 * col2 * + + col1 + + col1 + - col1 IS NULL
----
-4182
-5494
-6314

query II rowsort
SELECT col0 AS col0, - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6383
SELECT ALL - + 38 * COUNT( DISTINCT - 73 ) DIV MIN( ALL + + col2 ) FROM tab1 WHERE col1 - - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL - + 38 * COUNT ( DISTINCT - 73 ) / MIN ( ALL + + col2 ) FROM tab1 WHERE col1 - - + col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT 85 AS col0, col0 + col1 + - + 50 * - 24 AS col1 FROM tab1
----
85
1265
85
1290
85
1338

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 46 + ( + + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 * + col2 <= NULL
----

query I rowsort
SELECT ALL + + ( - - col0 ) AS col1 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND col1 = - ( - + 48 )
----

query I rowsort
SELECT - col2 + + + col2 + - col1 + + - col1 AS col2 FROM tab1 cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT 43 + - col2 FROM tab0
----
-4
-56
33

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL <= - - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT DISTINCT MAX( ALL - ( 4 ) ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT MAX ( ALL - ( 4 ) ) AS col0 FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 80 - + - 89 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 80 - + - 89 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6395
SELECT - col2 / - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT - col2 / - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT + - MAX( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + - MAX ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - 7 - col2 * + 62 AS col2 FROM tab0 AS cor0
----
-2921
-6145
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 97 + - 70 col1 FROM tab0 AS cor0
----
-167
-167
-167

onlyif mysql # DIV for integer division: 
query I rowsort label-6400
SELECT DISTINCT col2 * col2 DIV col1 + - + 37 - + 8 + col0 FROM tab1
----
144
664
736

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT col2 * col2 / col1 + - + 37 - + 8 + col0 FROM tab1
----
144
664
736

query I rowsort
SELECT + col0 + col1 * col1 AS col0 FROM tab2
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 61 - + 68 * + - col0 * + + col1 FROM tab1
----
28961
290897
48613

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL COUNT( * ) * + ( + 2 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL COUNT ( * ) * + ( + 2 ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL - 6 * - COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - 6 * - COUNT ( * ) FROM tab1 AS cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 + - col0 = + col0 * + - col1 - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6408
SELECT COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 WHERE col1 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 WHERE col1 + + col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT + CAST( 23 AS SIGNED ) AS col2 FROM tab2
----
23
23
23

skipif mysql # not compatible
query I rowsort label-6411
SELECT + CAST ( 23 AS INTEGER ) AS col2 FROM tab2
----
23
23
23

query I rowsort
SELECT ALL - ( 63 ) * + - col1 FROM tab1 AS cor0
----
2961
315
882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * - + 24 + - col0 FROM tab0 AS cor0
----
-1143
-2473
-327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 + - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6415
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL + + COUNT( * ) * + MAX( DISTINCT + 61 ) AS col2 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + + COUNT ( * ) * + MAX ( DISTINCT + 61 ) AS col2 FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT SUM( ALL + + 13 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6417
SELECT SUM ( ALL + + 13 ) FROM tab2 AS cor0
----
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + - 83 AS col2 FROM tab1 AS cor0
----
4233
7055
7553

query I rowsort
SELECT ALL - - 18 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 >= + + 20
----
18
18
18

query I rowsort
SELECT DISTINCT - + 17 FROM tab0 AS cor0 WHERE NOT 84 / + + col1 * col1 * - col2 * - col2 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT ALL col2 DIV - + ( + - ( + col2 ) ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL col2 / - + ( + - ( + col2 ) ) FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT col1 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) BETWEEN ( - col2 ) AND ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - COUNT( * ) * + 58 AS col1 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - COUNT ( * ) * + 58 AS col1 FROM tab1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT + MAX( ALL + - col0 ) col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6426
SELECT DISTINCT + MAX ( ALL + - col0 ) col2 FROM tab1
----
-51

query I rowsort
SELECT col1 * 88 AS col1 FROM tab2
----
4488
5896
6776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6428
SELECT DISTINCT col2 + - - col2 - + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT col2 + - - col2 - + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 12 AS col0 FROM tab1 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 25 + - col0 FROM tab1
----
-26
-60
-66

query II rowsort
SELECT ALL col2 AS col1, 20 AS col2 FROM tab0
----
10
20
47
20
99
20

query I rowsort
SELECT ALL - + 87 AS col0 FROM tab0 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + - ( - col0 ) col0 FROM tab0 AS cor0
----
-41
31
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT - + 73 DIV 91 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT - + 73 / 91 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL COUNT( * ) * + ( COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL COUNT ( * ) * + ( COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-6438
SELECT DISTINCT col0 + + col1 DIV - 59 + - + col2 AS col2, 5 col0 FROM tab0 cor0
----
-2
5
-33
5
77
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6438
SELECT DISTINCT col0 + + col1 / - 59 + - + col2 AS col2, 5 col0 FROM tab0 cor0
----
-2
5
-33
5
77
5

query I rowsort
SELECT ALL 57 FROM tab1 AS cor0 WHERE NOT col2 + - col0 <= + + col2
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6441
SELECT * FROM tab2 AS cor0 WHERE - col1 / + + ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6441
SELECT * FROM tab2 AS cor0 WHERE - col1 / + + ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6442
SELECT + MIN ( col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6443
SELECT + col0, CAST( ( + + ( + col2 ) ) AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6443
SELECT + col0, CAST ( ( + + ( + col2 ) ) AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT + col2 DIV - - col0 * col2 - 78 - col0 * 3 FROM tab2
----
-216
-270
-303

skipif mysql # not compatible
query I rowsort label-6444
SELECT + col2 / - - col0 * col2 - 78 - col0 * 3 FROM tab2
----
-216
-270
-303

query III rowsort
SELECT ALL * FROM tab1 WHERE + 74 = + - col1
----

query III rowsort
SELECT * FROM tab2 WHERE col2 - - - 6 * - col0 * + 15 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT DISTINCT COUNT( * ) - - + 24 AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT COUNT ( * ) - - + 24 AS col0 FROM tab0
----
27

query I rowsort
SELECT 94 - + col2 + col1 AS col1 FROM tab2
----
103
122
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT COUNT( * ) - + 87 * + 80 AS col2 FROM tab2
----
-6957

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT COUNT ( * ) - + 87 * + 80 AS col2 FROM tab2
----
-6957

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT - SUM( + - col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6450
SELECT - SUM ( + - col2 ) col1 FROM tab0
----
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IS NULL AND NOT 84 + + 98 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL MIN( 25 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL MIN ( 25 ) FROM tab1 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 * - col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + SUM( - + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6454
SELECT + SUM ( - + col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT + - 85 / - 80 AS col2 FROM tab0 WHERE NOT - ( + col1 ) + + + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6457
SELECT DISTINCT + - COUNT( * ), 6 AS col2 FROM tab2 WHERE NOT - - col2 * + - 2 + - col0 - + col1 <= - col2
----
0
6

skipif mysql # not compatible
query II rowsort label-6457
SELECT DISTINCT + - COUNT ( * ), 6 AS col2 FROM tab2 WHERE NOT - - col2 * + - 2 + - col0 - + col1 <= - col2
----
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT col2 - + col1 * + col1 FROM tab2 WHERE NOT + - col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6458
SELECT col2 - + col1 * + col1 FROM tab2 WHERE NOT + - col2 <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 52 - + - 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT ALL col0 DIV 57 * col0 * col0 col1 FROM tab1 AS cor0
----
0
7225
8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6460
SELECT ALL col0 / 57 * col0 * col0 col1 FROM tab1 AS cor0
----
0
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT DISTINCT + col0 DIV - col0 - + col1 + col2 - - 82 AS col1 FROM tab0 cor0
----
179
47
70

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT + col0 / - col0 - + col1 + col2 - - 82 AS col1 FROM tab0 cor0
----
179
47
70

query I rowsort
SELECT 52 * ( - col1 ) FROM tab2 AS cor0
----
-2652
-3484
-4004

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 11 * - - col0
----

query I rowsort
SELECT DISTINCT - + 47 AS col1 FROM tab0 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 - + col1 * col1 + - col1 / + 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT ALL CAST( col0 AS SIGNED ) + col0 * 38 FROM tab2 AS cor0
----
1794
2496
2925

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL CAST ( col0 AS INTEGER ) + col0 * 38 FROM tab2 AS cor0
----
1794
2496
2925

query II rowsort
SELECT ALL col1 AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col1 ) / + ( + col1 ) * + + col1 IS NOT NULL
----

query I rowsort
SELECT + 11 * - col2 * - 70 FROM tab2
----
17710
30800
44660

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6470
SELECT + 50 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT + 50 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 80 + + col0 * + col0 * - col2 FROM tab2 AS cor0
----
-163920
-326330
-48748

query I rowsort
SELECT + 13 + - + col2 * - col0 AS col2 FROM tab0 AS cor0
----
718
883
9616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 39, ( + - 29 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-39
-29

query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab0 cor0 WHERE col1 * - - ( + - 42 ) * + col1 + - col0 NOT BETWEEN NULL AND - - col1
----

query I rowsort
SELECT - + 90 AS col2 FROM tab1 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT COUNT( * ) + 63 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT COUNT ( * ) + 63 FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT + 82 + + col0 AS col0 FROM tab1
----
133
167
173

query II rowsort
SELECT col2 AS col2, + 20 AS col0 FROM tab1
----
59
20
68
20
96
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 67 * + col2 + + 82 > NULL
----

query II rowsort
SELECT ALL - col1 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT - COUNT( * ) - - 19 col2 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6482
SELECT - COUNT ( * ) - - 19 col2 FROM tab1 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + COUNT( * ) - - 53 AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6483
SELECT + COUNT ( * ) - - 53 AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT + ( - col1 ) + - 79 * + 82 FROM tab2 AS cor0
----
-6529
-6545
-6555

query I rowsort
SELECT - - 11 - - col1 FROM tab0 AS cor0
----
12
32
92

query I rowsort
SELECT + 38 + - 71 + col2 + - 83 * - col2 FROM tab2 AS cor0
----
1899
3327
4839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6487
SELECT 59 + - CAST( NULL AS SIGNED ) + - COUNT( DISTINCT 45 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT 59 + - CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT 45 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT + SUM( ALL + ( - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT + SUM ( ALL + ( - col0 ) ) FROM tab0
----
-199

query II rowsort
SELECT col2, + 39 AS col0 FROM tab2 AS cor0
----
23
39
40
39
58
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT - MAX( - + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT - MAX ( - + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6491
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6492
SELECT ALL + CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6493
SELECT CAST( NULL AS SIGNED ) * - + MIN( + col1 ) AS col0, + COUNT( - col2 ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6493
SELECT CAST ( NULL AS INTEGER ) * - + MIN ( + col1 ) AS col0, + COUNT ( - col2 ) AS col1 FROM tab1
----
NULL
3

query I rowsort
SELECT ALL col1 * + + col1 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT ALL - - 60 DIV col2 - + + ( + 50 ) FROM tab0 AS cor0
----
-44
-49
-50

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - - 60 / col2 - + + ( + 50 ) FROM tab0 AS cor0
----
-44
-49
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 26 col1 FROM tab2 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-6497
SELECT ALL + - col1 DIV + 61 AS col2, - 86 * - col2 + - + col0 FROM tab0 AS cor0
----
-1
4027
0
773
0
8417

skipif mysql # not compatible
query II rowsort label-6497
SELECT ALL + - col1 / + 61 AS col2, - 86 * - col2 + - + col0 FROM tab0 AS cor0
----
-1
4027
0
773
0
8417

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 / col1 + - 34 + + 18 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6498
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 / col1 + - 34 + + 18 IS NULL
----
-3

query I rowsort
SELECT - AVG ( DISTINCT 68 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) - - + 65 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) - - + 65 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + 64 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 23 AS col0 FROM tab0 AS cor0 WHERE + 1 * + 62 * - col0 * - col2 IS NOT NULL
----
-23
-23
-23

query I rowsort
SELECT ALL + col2 + + - col0 + - col1 + col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query II rowsort label-6504
SELECT ALL col2 DIV + col0 + + col0, 44 AS col0 FROM tab2
----
46
44
64
44
75
44

skipif mysql # not compatible
query II rowsort label-6504
SELECT ALL col2 / + col0 + + col0, 44 AS col0 FROM tab2
----
46
44
64
44
75
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6505
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * col2, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6505
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * col2, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - 26 * + 49 FROM tab1
----
-1274
-1274
-1274

query I rowsort
SELECT ALL 13 * - - 68 AS col1 FROM tab1
----
884
884
884

query I rowsort
SELECT + col2 * + 7 AS col0 FROM tab2
----
161
280
406

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT COUNT( * ) * + 25 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT COUNT ( * ) * + 25 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + 93 * - COUNT( * ) col1 FROM tab1
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6510
SELECT + 93 * - COUNT ( * ) col1 FROM tab1
----
-279

query II rowsort
SELECT 99, - col2 * + 58 AS col0 FROM tab0
----
99
-2726
99
-5742
99
-580

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 34 AND - col1
----

query I rowsort
SELECT DISTINCT - col0 * - col2 * col1 + - 23 AS col1 FROM tab0 AS cor0
----
18247
57082
9580

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT + MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 + + 83 FROM tab0 AS cor0
----
130
182
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT COUNT( * ) + + - 5 AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-6516
SELECT COUNT ( * ) + + - 5 AS col0 FROM tab0
----
-2

query I rowsort
SELECT 16 + - col1 FROM tab1
----
-31
11
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + 7
----

query I rowsort
SELECT DISTINCT AVG ( - col1 ) FROM tab0 WHERE NOT col0 + col0 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 64 + - 97 AS col2 FROM tab2
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 75 + + col0 + - - col2 + col1 + col1 + + + 80 col0 FROM tab0 cor0
----
-3221
-531
-7147

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT + 8 DIV col1 + + 54 AS col1 FROM tab0 cor0
----
54
54
62

skipif mysql # not compatible
query I rowsort label-6522
SELECT + 8 / col1 + + 54 AS col1 FROM tab0 cor0
----
54
54
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6524
SELECT DISTINCT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 + + - ( + col0 ) FROM tab0 WHERE NOT - col0 <= - + ( col0 )
----

query I rowsort
SELECT ( - 69 ) AS col0 FROM tab1
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT + col0 AS col0 FROM tab0 WHERE NOT col2 / - + CAST( NULL AS SIGNED ) * - col2 - + - 72 + 60 * + - 30 + col0 * + col1 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6527
SELECT + col0 AS col0 FROM tab0 WHERE NOT col2 / - + CAST ( NULL AS INTEGER ) * - col2 - + - 72 + 60 * + - 30 + col0 * + col1 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( ( + col0 ) ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT - + MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6530
SELECT - + MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - SUM( + 17 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6531
SELECT - SUM ( + 17 ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2 * - col1 * + col1 - + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + - MIN( 52 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6533
SELECT + - MIN ( 52 ) FROM tab1 AS cor0
----
-52

query II rowsort
SELECT ALL col0, - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 / + + col0 < - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5
-5
-5

query I rowsort
SELECT DISTINCT ( ( + 96 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + - SUM( col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6539
SELECT + - SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6540
SELECT - MAX( ALL + ( - + CAST( + col0 AS SIGNED ) ) ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-6540
SELECT - MAX ( ALL + ( - + CAST ( + col0 AS INTEGER ) ) ) AS col2 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - 47 * + col1 + - - col2 AS col1 FROM tab0 AS cor0
----
-3760
-977
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 93 col2 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
89

query I rowsort
SELECT + 3 + + ( + 55 ) * + col1 FROM tab1
----
2588
278
773

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 <= NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 70 * - + 52 + + col0, col2 FROM tab2
----
-3565
58
-3576
40
-3594
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6548
SELECT ALL CAST( - ( + + col0 ) AS SIGNED ) + - 88 DIV + + col0 AS col1, col2 AS col2 FROM tab1 cor0
----
-52
96
-86
59
-91
68

skipif mysql # not compatible
query II rowsort label-6548
SELECT ALL CAST ( - ( + + col0 ) AS INTEGER ) + - 88 / + + col0 AS col1, col2 AS col2 FROM tab1 cor0
----
-52
96
-86
59
-91
68

query I rowsort
SELECT - 45 + - col0 FROM tab2 AS cor0
----
-109
-120
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - - ( - col2 ) / - - 48 * + - col1 - + CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - - ( - col2 ) / - - 48 * + - col1 - + CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT + 11 * + - COUNT( * ) FROM tab0 cor0 WHERE col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT + 11 * + - COUNT ( * ) FROM tab0 cor0 WHERE col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6552
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - - SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - - SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT ALL + col0 AS col0, 4 * 14 FROM tab0 AS cor0
----
15
56
87
56
97
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL + COUNT( * ) * - SUM( - - ( + + col1 ) ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + COUNT ( * ) * - SUM ( - - ( + + col1 ) ) FROM tab2 AS cor0
----
-585

query I rowsort
SELECT - col0 * - 58 FROM tab0 AS cor0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6557
SELECT + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT - col1 DIV - col1 col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6558
SELECT - col1 / - col1 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * col1 * col1 FROM tab1 AS cor0
----
-103823
-125
-2744

query I rowsort
SELECT ALL - col0 - + 15 AS col2 FROM tab0 AS cor0 WHERE NOT + 70 / + 32 >= col2
----
-102
-112
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT + - COUNT( 93 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + - COUNT ( 93 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 26 + - col0 * - + col0 + + - col0 BETWEEN + col0 + + 5 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + + col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT + COUNT( - 51 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + COUNT ( - 51 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE col0 + + col1 <= + - 77
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6566
SELECT + CAST( COUNT( * ) AS SIGNED ) * + + SUM( + 34 ) col0 FROM tab1
----
306

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6566
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + + SUM ( + 34 ) col0 FROM tab1
----
306

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 87 <> + + 8
----

query I rowsort
SELECT - 44 AS col2 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT ( + + 48 ) + - 63 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT col0 * + + col0 + + col0 - + 94 FROM tab1 cor0
----
2558
7216
8278

query I rowsort
SELECT - 95 + + col0 + + 50 FROM tab2 AS cor0
----
1
19
30

query I rowsort
SELECT - 66 * col2 * - ( - col1 ) + + col1 - - + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-13839
-251181
-6533

query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 + - 75 AS col1 FROM tab0 AS cor0
----
18195
57030
9528

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 70 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT DISTINCT + 29, COUNT( * ) AS col1 FROM tab1 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-6575
SELECT DISTINCT + 29, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
29
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT DISTINCT + col2 DIV + col0 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6576
SELECT DISTINCT + col2 / + col0 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
3

query I rowsort
SELECT + + 34 + - col2 AS col0 FROM tab1 AS cor0
----
-25
-34
-62

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( - + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6579
SELECT - + 64 + - CAST( - 48 AS SIGNED ) - - - 80 * - col1, 9 - + col1 * ( + - col0 ) AS col1 FROM tab1 cor0
----
1104
723
3744
4286
384
434

skipif mysql # not compatible
query II rowsort label-6579
SELECT - + 64 + - CAST ( - 48 AS INTEGER ) - - - 80 * - col1, 9 - + col1 * ( + - col0 ) AS col1 FROM tab1 cor0
----
1104
723
3744
4286
384
434

query I rowsort
SELECT ALL 31 * - col1 + 71 + - col0 - + - 95 FROM tab1
----
-1382
-319
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6581
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + ( + 18 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + ( + 18 ) FROM tab0
----
NULL

query II rowsort
SELECT col1 AS col0, - 91 AS col2 FROM tab2
----
51
-91
67
-91
77
-91

query I rowsort
SELECT ALL 33 - col2 FROM tab2
----
-25
-7
10

query I rowsort
SELECT 47 * + 31 AS col0 FROM tab2
----
1457
1457
1457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6 + + col1 AS col0, + col2 col0 FROM tab2
----
57
23
73
58
83
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT - SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 39 / - 37 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 39 / - 37 = NULL
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * + + 86 FROM tab1 AS cor0
----
4386
7310
7826

query II rowsort
SELECT DISTINCT - col2 * + 11, - col1 AS col0 FROM tab0 AS cor0
----
-1089
-1
-110
-21
-517
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - 20 ) * + - ( + ( - + 99 ) ), 77 + + col1 col2 FROM tab0 AS cor0
----
-1980
158
-1980
78
-1980
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT DISTINCT - + ( + COUNT( * ) ) DIV MIN( - - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - + ( + COUNT ( * ) ) / MIN ( - - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT + ( - ( - COUNT( DISTINCT + 32 ) ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6593
SELECT + ( - ( - COUNT ( DISTINCT + 32 ) ) ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL - COUNT( ALL - ( + + col1 ) ) * + 44 + - COUNT( * ) AS col2 FROM tab0 WHERE ( ( NULL <= + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL - COUNT ( ALL - ( + + col1 ) ) * + 44 + - COUNT ( * ) AS col2 FROM tab0 WHERE ( ( NULL <= + col0 ) )
----
0

query II rowsort
SELECT col2, 60 AS col0 FROM tab1
----
59
60
68
60
96
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6596
SELECT ALL + col0, CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6596
SELECT ALL + col0, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6598
SELECT ALL col2 AS col0, + 22 + + col1 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6598
SELECT ALL col2 AS col0, + 22 + + col1 - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL ( - + COUNT( * ) ) * - MIN( DISTINCT + + ( + ( + - 19 ) ) ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL ( - + COUNT ( * ) ) * - MIN ( DISTINCT + + ( + ( + - 19 ) ) ) FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - MIN( - col1 ) + + + MAX( DISTINCT - - col2 ) AS col0 FROM tab2 cor0
----
135

skipif mysql # not compatible
query I rowsort label-6600
SELECT - MIN ( - col1 ) + + + MAX ( DISTINCT - - col2 ) AS col0 FROM tab2 cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6601
SELECT * FROM tab2 cor0 WHERE NOT CAST( - 68 AS SIGNED ) + + 30 BETWEEN NULL AND + 76 * + col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6601
SELECT * FROM tab2 cor0 WHERE NOT CAST ( - 68 AS INTEGER ) + + 30 BETWEEN NULL AND + 76 * + col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT - 98 * col1 + + + col2 + + col0 DIV - 92 + - + 23 FROM tab1 AS cor0
----
-1299
-454
-4561

skipif mysql # not compatible
query I rowsort label-6603
SELECT - 98 * col1 + + + col2 + + col0 / - 92 + - + 23 FROM tab1 AS cor0
----
-1299
-454
-4561

query I rowsort
SELECT col1 FROM tab1 WHERE 88 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 6 * 45 AS col2 FROM tab1
----
270
270
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6606
SELECT ALL * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) * 56 + + CAST( + 63 AS SIGNED ) ) IN ( - 5 )
----

skipif mysql # not compatible
query III rowsort label-6606
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) * 56 + + CAST ( + 63 AS INTEGER ) ) IN ( - 5 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + 5 * - COUNT( * ) + COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6608
SELECT + 5 * - COUNT ( * ) + COUNT ( * ) FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL SUM( DISTINCT - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL SUM ( DISTINCT - col2 ) FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT ( + CAST( - col1 AS SIGNED ) + 72 ) < 63 * col0
----

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT ( + CAST ( - col1 AS INTEGER ) + 72 ) < 63 * col0
----

query I rowsort
SELECT ALL 72 / - col2 AS col1 FROM tab1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT SUM( DISTINCT col2 ) + - COUNT( * ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-6612
SELECT SUM ( DISTINCT col2 ) + - COUNT ( * ) FROM tab1
----
220

query I rowsort
SELECT - 21 + col2 AS col0 FROM tab0
----
-11
26
78

query I rowsort
SELECT DISTINCT - 60 * + col2 FROM tab1
----
-3540
-4080
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT 96 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT 96 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col2 + 4 AS col1 FROM tab1
----
1348
299
3200

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * + 53 IS NULL
----

query I rowsort
SELECT - 28 * - col2 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT ALL col1 * + 31 FROM tab2
----
1581
2077
2387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) + COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6620
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 90 + col0 AS col0 FROM tab2
----
136
154
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT - 34 - CAST( - 33 AS SIGNED ) AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6622
SELECT - 34 - CAST ( - 33 AS INTEGER ) AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col0 * - 16 FROM tab1
----
1360
1456
816

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL NOT IN ( 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + 8 * MIN( - col0 ) FROM tab1
----
-728

skipif mysql # not compatible
query I rowsort label-6625
SELECT + 8 * MIN ( - col0 ) FROM tab1
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT col1 DIV + 7 - col0 * - 86 AS col0 FROM tab2
----
3963
5515
6459

skipif mysql # not compatible
query I rowsort label-6626
SELECT col1 / + 7 - col0 * - 86 AS col0 FROM tab2
----
3963
5515
6459

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT DISTINCT + 6 DIV - col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT + 6 / - col0 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT MIN( + 34 ) AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT MIN ( + 34 ) AS col2 FROM tab2
----
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) < 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT MAX( 93 ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6631
SELECT MAX ( 93 ) AS col2 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL col0 / 2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col2 + + 81 ) AND ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * col1 col2 FROM tab2 AS cor0
----
2907
3819
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT DISTINCT - col2 + + CAST( + 43 AS SIGNED ) * - 58 FROM tab2 cor0 WHERE NOT ( + col2 ) BETWEEN ( - col1 ) AND - 58
----
-2517
-2534
-2552

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT - col2 + + CAST ( + 43 AS INTEGER ) * - 58 FROM tab2 cor0 WHERE NOT ( + col2 ) BETWEEN ( - col1 ) AND - 58
----
-2517
-2534
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ( 58 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6635
SELECT ( 58 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-174

query I rowsort
SELECT ALL + 60 + 82 * 49 FROM tab1 AS cor0
----
4078
4078
4078

query III rowsort
SELECT ALL * FROM tab0 WHERE 26 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT 90 * - 95 + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-8559

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT 90 * - 95 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
-8559

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT DISTINCT - + ( MAX( ALL + 28 ) ) * 21 AS col0 FROM tab0 AS cor0
----
-588

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT - + ( MAX ( ALL + 28 ) ) * 21 AS col0 FROM tab0 AS cor0
----
-588

query I rowsort
SELECT ( - 52 ) AS col0 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT ALL 40 DIV + 24 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL 40 / + 24 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - ( 85 ) * + 92 FROM tab0 AS cor0
----
-7820
-7820
-7820

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6647
SELECT + + CAST( - col1 AS SIGNED ) DIV 70 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6647
SELECT + + CAST ( - col1 AS INTEGER ) / 70 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL - MIN( + 25 ) AS col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL - MIN ( + 25 ) AS col0 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT MIN( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-6649
SELECT MIN ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT COUNT( + col2 ) DIV + 57 FROM tab0 WHERE NOT ( col1 ) < ( + 27 )
----
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT COUNT ( + col2 ) / + 57 FROM tab0 WHERE NOT ( col1 ) < ( + 27 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL MIN( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL MIN ( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT ALL + col2 + + col0 * + 42 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + 28 IN ( 30 + col1 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + col2 + + col0 * + 42 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + 28 IN ( 30 + col1 * - col2 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT 36 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL COUNT( * ) * - MAX( + col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL COUNT ( * ) * - MAX ( + col1 ) FROM tab2
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL + SUM( DISTINCT - 82 ) * + 32 AS col0 FROM tab2
----
-2624

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL + SUM ( DISTINCT - 82 ) * + 32 AS col0 FROM tab2
----
-2624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab2
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6659
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 = CAST( col1 AS SIGNED ) + + 36 * col2
----

skipif mysql # not compatible
query III rowsort label-6659
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 = CAST ( col1 AS INTEGER ) + + 36 * col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + col0 * + 96 AND ( col1 * 32 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 12 AS col2 FROM tab1 AS cor0 WHERE - 7 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT + COUNT( + 74 ) * + COUNT( * ) + - 92 FROM tab1, tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT + COUNT ( + 74 ) * + COUNT ( * ) + - 92 FROM tab1, tab1 AS cor0
----
-11

query I rowsort
SELECT 83 + col0 FROM tab1
----
134
168
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT + 74 + - COUNT( * ) + + 80 FROM tab0
----
151

skipif mysql # not compatible
query I rowsort label-6665
SELECT + 74 + - COUNT ( * ) + + 80 FROM tab0
----
151

query I rowsort
SELECT col1 + - 25 AS col1 FROM tab2
----
26
42
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT DISTINCT MIN( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + + SUM( - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + + SUM ( - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6670
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NULL > + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NULL > + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col1 ) IS NULL
----

query II rowsort
SELECT + col1 AS col0, 85 AS col1 FROM tab0 AS cor0
----
1
85
21
85
81
85

query I rowsort
SELECT - 85 * col1 FROM tab0 AS cor0 WHERE + 41 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6674
SELECT DISTINCT - 21 + - 82 * + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT - 21 + - 82 * + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT DISTINCT - - col2 - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - - col2 - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 15 FROM tab0
----
16
36
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6677
SELECT ALL + col2 DIV + CAST( 60 AS SIGNED ) - + col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL + col2 / + CAST ( 60 AS INTEGER ) - + col1 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + col2 * - col0 - + col0 AS col1 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - + col1 + - 95 <> col1 * col2
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6680
SELECT - ( + - CAST( NULL AS SIGNED ) ) - + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT - ( + - CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col1 * + - 48 - - col2 AS col1 FROM tab0
----
1018
147
3935

query III rowsort
SELECT * FROM tab2 WHERE ( ( - + col0 ) ) NOT BETWEEN + 41 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6683
SELECT ALL COUNT( * ) - + - COUNT( * ) + - + COUNT( * ) + 29 + - CAST( NULL AS SIGNED ) / MIN( + col1 * + col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL COUNT ( * ) - + - COUNT ( * ) + - + COUNT ( * ) + 29 + - CAST ( NULL AS INTEGER ) / MIN ( + col1 * + col1 ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 ) <= NULL
----

query II rowsort
SELECT DISTINCT + + col2 * - - col1 AS col0, - col1 FROM tab1 AS cor0
----
1344
-14
295
-5
3196
-47

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT 32 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ALL col2 * + 1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT 86 * - COUNT( * ) * + COUNT( 92 * + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT 86 * - COUNT ( * ) * + COUNT ( 92 * + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) <= ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 4 / + + col1 + + col1 * - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 * + - 0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND ( 65 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6694
SELECT CAST( 12 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - 3 NOT IN ( col0, CAST( NULL AS DECIMAL ) * + - col0 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-6694
SELECT CAST ( 12 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - 3 NOT IN ( col0, CAST ( NULL AS REAL ) * + - col0 * + col2 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * + - 7 )
----

query I rowsort
SELECT ALL - + 13 AS col2 FROM tab2 cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6697
SELECT + col1 DIV 25 + - CAST( + 78 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-75
-78
-78

skipif mysql # not compatible
query I rowsort label-6697
SELECT + col1 / 25 + - CAST ( + 78 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-75
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 col2 FROM tab1 cor0
----
53
53
53

query II rowsort
SELECT + + 54 AS col1, col1 FROM tab0 cor0
----
54
1
54
21
54
81

query I rowsort
SELECT ALL - 27 + + col0 * 73 FROM tab0
----
1068
6324
7054

query I rowsort
SELECT 51 * 78 AS col2 FROM tab2
----
3978
3978
3978

query II rowsort
SELECT 32, col0 AS col1 FROM tab1
----
32
51
32
85
32
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * + - col0 col0 FROM tab1
----
-2244
-3740
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - 28 = + 47 )
----
-3

skipif mysql # not compatible
query I rowsort label-6704
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - 28 = + 47 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6705
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NOT 96 BETWEEN CAST( - 38 AS SIGNED ) + ( - col2 ) AND col0 ) )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-6705
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NOT 96 BETWEEN CAST ( - 38 AS INTEGER ) + ( - col2 ) AND col0 ) )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL - COUNT( * ) * - ( COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL - COUNT ( * ) * - ( COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT ALL col2 + col0 * - + col1 FROM tab0 cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT + - MIN( ALL - col0 ) + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-6708
SELECT + - MIN ( ALL - col0 ) + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT COUNT( * ) + + 67 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6709
SELECT COUNT ( * ) + + 67 FROM tab1 AS cor0
----
70

query I rowsort
SELECT DISTINCT col1 * - - col1 + - - col0 AS col0 FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL - - COUNT( * ) FROM tab1 cor0 WHERE ( - col2 + + col1 + + + col1 ) < col2
----
3

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - - COUNT ( * ) FROM tab1 cor0 WHERE ( - col2 + + col1 + + + col1 ) < col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT - + COUNT( * ) AS col2, 28 col0 FROM tab2 AS cor0
----
-3
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6712
SELECT - + COUNT ( * ) AS col2, 28 col0 FROM tab2 AS cor0
----
-3
28

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - - + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL - 12 * + 58 + + col1 FROM tab0 cor0
----
-615
-675
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - MIN( ALL 42 ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( ( NULL >= + + col1 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT - MIN ( ALL 42 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( ( NULL >= + + col1 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6717
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6718
SELECT DISTINCT - 22 + - MAX( - 1 ) DIV + 42 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - 22 + - MAX ( - 1 ) / + 42 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + 99 )
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( + 18 > + 15 )
----
-46
-64
-75

query I rowsort
SELECT ALL - ( - col2 ) + 75 AS col0 FROM tab0 AS cor0
----
122
174
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + 2 * + - 40 + + MAX( ALL - 83 ) FROM tab2 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-6722
SELECT + 2 * + - 40 + + MAX ( ALL - 83 ) FROM tab2 AS cor0
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL - - col2 * + + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - - col2 * + + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT ALL + col2 DIV + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL + col2 / + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-21
-81
98

query I rowsort
SELECT DISTINCT col2 - + 75 FROM tab1 AS cor0
----
-16
-7
21

query I rowsort
SELECT 49 + + 49 AS col2 FROM tab0
----
98
98
98

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 56 * + col0 AS col2 FROM tab1
----
2856
4760
5096

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 65 < + col0
----
15
81
47

query II rowsort
SELECT DISTINCT col0 AS col2, col0 FROM tab1 cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 50 col0 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6732
SELECT + ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT + ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, 67 col0 FROM tab1 cor0 WHERE NOT - col2 IN ( + col1, - col0, - 45 )
----
14
67
47
67
5
67

query I rowsort
SELECT + 31 * col2 FROM tab2 AS cor0
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL SUM( DISTINCT + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL SUM ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * - - col2 col0 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6738
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NULL AND NOT NULL BETWEEN - CAST( NULL AS SIGNED ) * - ( 18 ) + - - 28 AND + col1
----

skipif mysql # not compatible
query III rowsort label-6738
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NULL AND NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) * - ( 18 ) + - - 28 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT ( - - col1 ) DIV + 87 + - col2 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6740
SELECT ( - - col1 ) / + 87 + - col2 AS col1 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT ALL 63, col2 FROM tab1 AS cor0 WHERE 38 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT + SUM( ALL - col0 ) AS col0, ( + 18 ) AS col2 FROM tab2 AS cor0
----
-185
18

skipif mysql # not compatible
query II rowsort label-6742
SELECT + SUM ( ALL - col0 ) AS col0, ( + 18 ) AS col2 FROM tab2 AS cor0
----
-185
18

query I rowsort
SELECT ALL + - 92 AS col1 FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT DISTINCT COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT - - COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6745
SELECT - - COUNT ( * ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6746
SELECT DISTINCT + col1 * - 53 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT + col1 * - 53 + - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < ( + 94 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 / - col2 + - + col1 + + 3 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6749
SELECT DISTINCT + 39 FROM tab0 WHERE NOT ( NULL ) IN ( ( + - 67 ), + col1, + 72 * CAST( NULL AS SIGNED ) - + 89 )
----

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT + 39 FROM tab0 WHERE NOT ( NULL ) IN ( ( + - 67 ), + col1, + 72 * CAST ( NULL AS INTEGER ) - + 89 )
----

query I rowsort
SELECT DISTINCT - col1 * - + col1 * - 90 + - col1 FROM tab1
----
-17654
-198857
-2255

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + - ( - ( + col1 ) ) + + col0 <= - col1 + col2
----
2

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + - ( - ( + col1 ) ) + + col0 <= - col1 + col2
----
2

query I rowsort
SELECT 20 * - + 35 * - - col0 FROM tab2
----
-32200
-44800
-52500

query III rowsort
SELECT * FROM tab0 WHERE + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 29 * col2 FROM tab1
----
-1711
-1972
-2784

query I rowsort
SELECT DISTINCT + 11 FROM tab2 WHERE NOT NULL IS NOT NULL
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ( COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6756
SELECT ( COUNT ( * ) ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL SUM( CAST( - - col1 AS SIGNED ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL SUM ( CAST ( - - col1 AS INTEGER ) ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT DISTINCT + COUNT( DISTINCT - 17 ) * - SUM( col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6758
SELECT DISTINCT + COUNT ( DISTINCT - 17 ) * - SUM ( col2 ) col0 FROM tab1
----
-223

query I rowsort
SELECT col2 * 62 AS col2 FROM tab0
----
2914
6138
620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col2, 25 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
25
-40
25
-58
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6760
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2, 25 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
25
-40
25
-58
25

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL + col0 + - + col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + col2 * - - col0 col1 FROM tab2
----
1087
2589
4379

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2, - 76 AS col1 FROM tab2
----
23
-76
40
-76
58
-76

query I rowsort
SELECT DISTINCT + + 88 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT col0 * - - 70 * + - 52 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT col0 * - - 70 * + - 52 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT + MAX( ( + col0 ) ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6768
SELECT + MAX ( ( + col0 ) ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT ALL - col1 + + ( + - 93 ) FROM tab2 AS cor0
----
-144
-160
-170

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + COUNT( ALL + - 47 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6771
SELECT + COUNT ( ALL + - 47 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL - CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT - + 77 - + CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-62
10
20

skipif mysql # not compatible
query I rowsort label-6773
SELECT - + 77 - + CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-62
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT COUNT( * ) + - SUM( + - 87 ) + 57 col1 FROM tab0
----
321

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6774
SELECT DISTINCT COUNT ( * ) + - SUM ( + - 87 ) + 57 col1 FROM tab0
----
321

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6776
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + 15 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + 15 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL - + MIN( + 32 ) FROM tab0 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL - + MIN ( + 32 ) FROM tab0 cor0
----
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - 41 ) * + + 69
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 13 + col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * 75 AS col1 FROM tab0
----
3525
7425
750

query I rowsort
SELECT ALL 9 * - col0 + + col2 AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - 88 FROM tab1 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT ALL 63 + + MIN( ALL - CAST( + col2 AS SIGNED ) ) + - - 63 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL 63 + + MIN ( ALL - CAST ( + col2 AS INTEGER ) ) + - - 63 FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6784
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT col1, + col0 - + - col2 FROM tab2 AS cor0
----
51
69
67
133
77
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT - - MAX( DISTINCT - col1 ) + ( ( - COUNT( * ) ) ) * + - 83 FROM tab0 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT - - MAX ( DISTINCT - col1 ) + ( ( - COUNT ( * ) ) ) * + - 83 FROM tab0 AS cor0
----
248

query I rowsort
SELECT DISTINCT - col0 * + - col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6788
SELECT DISTINCT + col0, CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
query II rowsort label-6788
SELECT DISTINCT + col0, CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6789
SELECT SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + col2 * + ( - 62 ) FROM tab2
----
-1426
-2480
-3596

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - + 86 - + col0 )
----

query I rowsort
SELECT + 19 * - col1 FROM tab0
----
-1539
-19
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT COUNT( * ) * + COUNT( * ) + + MAX( col1 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-6793
SELECT COUNT ( * ) * + COUNT ( * ) + + MAX ( col1 ) FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL + MAX( + - 32 ) AS col0 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + MAX ( + - 32 ) AS col0 FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - ( + + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - ( + + COUNT ( * ) ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - ( - 17 ) AS col1, - col1 AS col0 FROM tab2
----
17
-51
17
-67
17
-77

query I rowsort
SELECT - 13 * col2 + - 46 FROM tab2
----
-345
-566
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL - MIN( + 36 ) * + 21 + MAX( ALL col1 ) FROM tab0 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - MIN ( + 36 ) * + 21 + MAX ( ALL col1 ) FROM tab0 AS cor0
----
-675

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL + COUNT( * ) * + 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
270

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + COUNT ( * ) * + 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
270

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + ( col1 ), - col2 * + + 33 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6802
SELECT DISTINCT - 7 * - col2 + + col2 - - col2 DIV + col1 FROM tab1 AS cor0
----
483
545
774

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT - 7 * - col2 + + col2 - - col2 / + col1 FROM tab1 AS cor0
----
483
545
774

onlyif mysql # DIV for integer division: 
query I rowsort label-6803
SELECT - - 78 DIV + col0 + + col2 AS col1 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-6803
SELECT - - 78 / + col0 + + col2 AS col1 FROM tab0 AS cor0
----
10
52
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT ( + SUM( DISTINCT - col2 ) ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT ( + SUM ( DISTINCT - col2 ) ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6805
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6805
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 74 + - col1 * - + col2, 74 * + 28 AS col0 FROM tab0 AS cor0
----
173
2072
284
2072
3881
2072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT CAST( NULL AS SIGNED ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT CAST ( NULL AS INTEGER ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL SUM( col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 53 + + col0 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 27 FROM tab1
----
-1269
-135
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL + COUNT( * ) * 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + COUNT ( * ) * 3 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT SUM( DISTINCT 59 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT SUM ( DISTINCT 59 ) FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6813
SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT ALL - - col0 DIV - 60 AS col0 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL - - col0 / - 60 AS col0 FROM tab0 cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT - COUNT( * ) + - MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6817
SELECT - COUNT ( * ) + - MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / col1 = + ( + col1 ) * - - 49
----

query I rowsort
SELECT - 41 + col2 FROM tab1 cor0
----
18
27
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ) / - - col2 + + ( + - 18 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ) / - - col2 + + ( + - 18 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6821
SELECT * FROM tab0 AS cor0 WHERE - + col0 - col0 + - col2 NOT IN ( 56 * 40 ) AND NOT - + CAST( NULL AS SIGNED ) NOT IN ( + + 87 * ( + col0 ) + 88 )
----

skipif mysql # not compatible
query III rowsort label-6821
SELECT * FROM tab0 AS cor0 WHERE - + col0 - col0 + - col2 NOT IN ( 56 * 40 ) AND NOT - + CAST ( NULL AS INTEGER ) NOT IN ( + + 87 * ( + col0 ) + 88 )
----

query I rowsort
SELECT 4 * - - 73 FROM tab0
----
292
292
292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col0, col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + + 4 AS col1 FROM tab1 cor0
----
-55
-64
-92

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + col1 * + 69, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT DISTINCT CAST( NULL AS SIGNED ) * 93 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 33 * + + col1 AS col2 FROM tab2 cor0
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN - col2 * + col1 AND - col1
----

skipif mysql # not compatible
query I rowsort label-6830
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN - col2 * + col1 AND - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 8 * - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 * col1 * + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( col1 ) - - - col1 FROM tab0 AS cor0 WHERE NOT col2 / - + 46 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT + col0 DIV - col2 + + 35 * - col2 AS col0 FROM tab0 AS cor0
----
-1645
-3465
-358

skipif mysql # not compatible
query I rowsort label-6834
SELECT + col0 / - col2 + + 35 * - col2 AS col0 FROM tab0 AS cor0
----
-1645
-3465
-358

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT - COUNT( - 13 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6836
SELECT DISTINCT - COUNT ( - 13 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT - + MAX( ALL + col2 ) * - - COUNT( * ) AS col1 FROM tab1 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6837
SELECT - + MAX ( ALL + col2 ) * - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT col2 DIV 48 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6838
SELECT col2 / 48 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 * - 69 * - - col1 AS col1 FROM tab0
----
-30429
-452709
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL + MIN( - 44 ) AS col2 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL + MIN ( - 44 ) AS col2 FROM tab2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6841
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6841
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT 38 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - + 18 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT DISTINCT 13 + col1 FROM tab0
----
14
34
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col0 col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT DISTINCT 61 * col1 DIV + ( - + 25 ) FROM tab0
----
-197
-2
-51

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT 61 * col1 / + ( - + 25 ) FROM tab0
----
-197
-2
-51

query I rowsort
SELECT DISTINCT 0 + 87 FROM tab1 cor0
----
87

query II rowsort
SELECT + 65 AS col2, col2 AS col2 FROM tab1 AS cor0
----
65
59
65
68
65
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT + 10 DIV + - 28 * - - MIN( + + col2 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT + 10 / + - 28 * - - MIN ( + + col2 ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col2 col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT - 13 + MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - 13 + MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6853
SELECT - COUNT( * ) * - 66, COUNT( - 38 ) * + COUNT( * ) - 74 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
198
-65

skipif mysql # not compatible
query II rowsort label-6853
SELECT - COUNT ( * ) * - 66, COUNT ( - 38 ) * + COUNT ( * ) - 74 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
198
-65

query I rowsort
SELECT - col2 * + - 47 + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
1752
2576
989

query II rowsort
SELECT DISTINCT - 48 * + col0 AS col1, 20 + col2 + col0 FROM tab2
----
-2208
89
-3072
124
-3600
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6856
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + - 56 AND CAST( - 45 AS SIGNED ) + - ( - col2 ) + col0
----

skipif mysql # not compatible
query III rowsort label-6856
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + - 56 AND CAST ( - 45 AS INTEGER ) + - ( - col2 ) + col0
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT - 66 + + + col0 * + - 93 + + - 21 > - col0 + col2
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) * - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) * - - col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6859
SELECT col0 - col1 + 10, + col2 FROM tab1 WHERE NULL IN ( + col2 + col0 + + col2 * col0 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-6859
SELECT col0 - col1 + 10, + col2 FROM tab1 WHERE NULL IN ( + col2 + col0 + + col2 * col0 * CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6860
SELECT + + 8 DIV + 17 AS col1, 41 AS col2 FROM tab2 AS cor0
----
0
41
0
41
0
41

skipif mysql # not compatible
query II rowsort label-6860
SELECT + + 8 / + 17 AS col1, 41 AS col2 FROM tab2 AS cor0
----
0
41
0
41
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT MAX( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6861
SELECT MAX ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + + 49 + - 84 FROM tab0 AS cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + - col2 <= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 - + 96 + - 62 FROM tab0 AS cor0
----
-111
-148
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT ALL + CAST( 91 AS SIGNED ) FROM tab1 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL + CAST ( 91 AS INTEGER ) FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6867
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - - 62 AS SIGNED ) + - - 19 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6867
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - - 62 AS INTEGER ) + - - 19 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - ( 36 ) * - col2 + + col1 / + col1 + + + 25 IS NULL
----
10
47
99

query I rowsort
SELECT - col1 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT 68 + + col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT + ( ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ( COUNT( * ) ) FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT ( COUNT ( * ) ) FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * - 8 col2 FROM tab2
----
-18768
-39424
-40200

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + + 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - col1 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6876
SELECT * FROM tab2 WHERE NOT + + 33 BETWEEN ( col2 ) AND CAST( NULL AS DECIMAL )
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-6876
SELECT * FROM tab2 WHERE NOT + + 33 BETWEEN ( col2 ) AND CAST ( NULL AS REAL )
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col1, 88 )
----

query I rowsort
SELECT DISTINCT + col0 * col2 * + col0 + + 13 + + col0 * - + 65 * - col0 AS col0 FROM tab2 AS cor0
----
186221
430093
691888

query I rowsort
SELECT ALL + col2 + + - col1 FROM tab1
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT ALL - 50 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - 50 / col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6882
SELECT * FROM tab2 cor0 WHERE + CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6882
SELECT * FROM tab2 cor0 WHERE + CAST ( - col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 93 + col1 + + + 63 AS col0 FROM tab0 cor0
----
157
177
237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6884
SELECT - 96 + + + CAST( + CAST( - 61 AS DECIMAL ) AS SIGNED ) * + - MIN( - col1 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-14919

skipif mysql # not compatible
query I rowsort label-6884
SELECT - 96 + + + CAST ( + CAST ( - 61 AS REAL ) AS INTEGER ) * + - MIN ( - col1 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-14919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 AS cor0 WHERE 65 * - col1 NOT BETWEEN NULL AND - col0 * + 8 + - + 20 - + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT COUNT( * ) + 94 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6886
SELECT COUNT ( * ) + 94 FROM tab1 AS cor0
----
97

query I rowsort
SELECT ALL + - 6 FROM tab2 cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - col1 + - 35 AS col2 FROM tab1 AS cor0
----
-40
-49
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + 97 AS col1 FROM tab1 cor0
----
1
29
38

query II rowsort
SELECT ALL 55 + col0, col2 AS col2 FROM tab2
----
101
23
119
40
130
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 - - 84 col0 FROM tab1
----
-341
-4193
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col0, col2 AS col1 FROM tab2
----
50
23
50
40
50
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - COUNT( * ) * - + 45 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-6894
SELECT - COUNT ( * ) * - + 45 FROM tab0
----
135

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT DISTINCT + col1 DIV + col1 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT + col1 / + col1 AS col2 FROM tab0
----
1

query I rowsort
SELECT - col1 * - - 97 - - - ( + col0 ) AS col2 FROM tab0
----
-194
-2124
-7872

query II rowsort
SELECT DISTINCT col0, ( - col2 ) - + - 23 AS col0 FROM tab2
----
46
0
64
-17
75
-35

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT - 80 IS NULL
----
51
67
77

query I rowsort
SELECT + - col0 - - 75 AS col1 FROM tab2 AS cor0
----
0
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT MAX( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-6901
SELECT MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT DISTINCT - - SUM( ALL - col2 ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - - SUM ( ALL - col2 ) AS col0 FROM tab1 cor0
----
-223

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6906
SELECT - + 18 / col1 * - - col1 + - col0 / + col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT - + 18 / col1 * - - col1 + - col0 / + col1 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - - col1 + + col2 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT COUNT( * ) AS col2, + 40 FROM tab1
----
3
40

skipif mysql # not compatible
query II rowsort label-6908
SELECT COUNT ( * ) AS col2, + 40 FROM tab1
----
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT - SUM( + - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6909
SELECT - SUM ( + - col0 ) AS col2 FROM tab1
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 82, col2 AS col1 FROM tab1
----
-82
59
-82
68
-82
96

query I rowsort
SELECT - col2 + + 17 + col1 AS col0 FROM tab2 AS cor0
----
26
45
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL + SUM( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + SUM ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - 69 AS col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT col0 * - 24 + + - col2 + - - 98 * + + col0 AS col1 FROM tab2
----
3381
4696
5492

query I rowsort
SELECT + 68 * - col2 * 4 AS col0 FROM tab2
----
-10880
-15776
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL COUNT( * ) + + 69 AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL COUNT ( * ) + + 69 AS col2 FROM tab1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6919
SELECT DISTINCT - 90 DIV col2 * col0 AS col0 FROM tab1
----
-85
-91
0

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - 90 / col2 * col0 AS col0 FROM tab1
----
-85
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT DISTINCT - 45 + + COUNT( * ) * - + MIN( ALL + 21 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-234

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT - 45 + + COUNT ( * ) * - + MIN ( ALL + 21 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT + MIN( ALL - + 20 ) AS col0 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6921
SELECT + MIN ( ALL - + 20 ) AS col0 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT - MAX( ALL + col0 ) + + COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT - MAX ( ALL + col0 ) + + COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <> NULL
----

query II rowsort
SELECT + - col2 + - - col0, 67 AS col2 FROM tab1 AS cor0
----
-45
67
23
67
26
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL BETWEEN ( NULL ) AND ( col1 ) )
----

query I rowsort
SELECT ALL col0 * + col0 * + col0 FROM tab0
----
3375
658503
912673

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 * + - col1 - + - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT - - SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6928
SELECT - - SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6929
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - ( - - ( + 31 ) ) FROM tab2
----
-31
-31
-31

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab1
----
14
47
5

query I rowsort
SELECT col1 * + + 71 AS col0 FROM tab1
----
3337
355
994

query I rowsort
SELECT ALL + 1 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= 96
----

query I rowsort
SELECT - - ( + - 73 ) FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT + CAST( - col1 AS SIGNED ) * + - CAST( + 38 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1938
2546
2926

skipif mysql # not compatible
query I rowsort label-6936
SELECT + CAST ( - col1 AS INTEGER ) * + - CAST ( + 38 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1938
2546
2926

query I rowsort
SELECT DISTINCT + 29 - - + col2 + + col1 * col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT ALL - - 52 DIV + + col1 + + + 52 AS col0 FROM tab0 AS cor0
----
104
52
54

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL - - 52 / + + col1 + + + 52 AS col0 FROM tab0 AS cor0
----
104
52
54

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL + 91 + - COUNT( * ) * + - COUNT( * ) col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6940
SELECT ALL + 91 + - COUNT ( * ) * + - COUNT ( * ) col0 FROM tab0 AS cor0
----
100

query I rowsort
SELECT DISTINCT 65 FROM tab2 WHERE NOT - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6942
SELECT ALL - ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col0 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6944
SELECT - CAST( NULL AS SIGNED ) * - - col1 AS col2, ( - 4 ) FROM tab0
----
NULL
-4
NULL
-4
NULL
-4

skipif mysql # not compatible
query II rowsort label-6944
SELECT - CAST ( NULL AS INTEGER ) * - - col1 AS col2, ( - 4 ) FROM tab0
----
NULL
-4
NULL
-4
NULL
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6945
SELECT - COUNT( * ) DIV COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6945
SELECT - COUNT ( * ) / COUNT ( * ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT - 28 FROM tab1 WHERE NOT 13 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6946
SELECT - 28 FROM tab1 WHERE NOT 13 > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 * col0 * - col2 * 36 * - 44 FROM tab1 AS cor0
----
108573696
39718800
460684224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 + - + ( + + col2 ) col1 FROM tab0 AS cor0
----
-39
13
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6949
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6949
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6950
SELECT 81 * - 92 AS col0, col2 DIV col0 DIV - + col1 FROM tab2 AS cor0
----
-7452
0
-7452
0
-7452
0

skipif mysql # not compatible
query II rowsort label-6950
SELECT 81 * - 92 AS col0, col2 / col0 / - + col1 FROM tab2 AS cor0
----
-7452
0
-7452
0
-7452
0

query I rowsort
SELECT ALL + 46 FROM tab2 AS cor0 WHERE NOT col0 + 84 + + 0 / col0 + - ( - 62 ) + + 85 * 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT CAST( - + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6952
SELECT CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6953
SELECT ALL col1 + - CAST( NULL AS SIGNED ) + - col1 * + - col2 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) + - col1 * + - col2 * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - + col1 - + col0 AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL - 83 + COUNT( * ) FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL - 83 + COUNT ( * ) FROM tab1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT ALL - col0 * CAST( NULL AS SIGNED ) - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT - col1 - + ( + col2 ) DIV - ( + col1 ) AS col0 FROM tab0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-6957
SELECT - col1 - + ( + col2 ) / - ( + col1 ) AS col0 FROM tab0
----
-21
-81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL + MAX( - col2 ) * + 54 AS col2 FROM tab1
----
-3186

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL + MAX ( - col2 ) * + 54 AS col2 FROM tab1
----
-3186

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 * - + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT - 52 <> NULL ) )
----

query I rowsort
SELECT DISTINCT 71 FROM tab2 WHERE NOT NULL >= - 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT * FROM tab1 WHERE NOT ( - col0 ) / + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6963
SELECT * FROM tab1 WHERE NOT ( - col0 ) / + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT - COUNT( - + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6964
SELECT - COUNT ( - + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL + COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL + COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( + 40 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT + 49 * + col1 FROM tab0 AS cor0
----
1029
3969
49

query I rowsort
SELECT + - 31 AS col2 FROM tab2 AS cor0
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, col0 + + 28 * + 30 + - + col1 FROM tab0 AS cor0
----
1
936
21
906
81
774

query I rowsort
SELECT ALL 8 * + + 57 FROM tab0
----
456
456
456

query I rowsort
SELECT col0 * + - col2 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT DISTINCT col1 * + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT col1 * + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE + 50 IS NULL
----

query III rowsort
SELECT + - 53, col0 * + col2 * - col1 AS col0, - ( col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to 188e6f37c6d23707b892fbfe18878caa

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 23 AS col0, - col2 * - col1 FROM tab0 AS cor0
----
23
210
23
3807
23
99

query I rowsort
SELECT - 32 * + - 8 FROM tab1 AS cor0 WHERE 89 / - - col1 * 97 * + - 72 * + - 55 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + 51 FROM tab2 AS cor0
----
-7
11
28

query I rowsort
SELECT ALL + + 21 FROM tab1 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT DISTINCT 26 * + + COUNT( * ), 70 AS col2 FROM tab0 AS cor0
----
78
70

skipif mysql # not compatible
query II rowsort label-6982
SELECT DISTINCT 26 * + + COUNT ( * ), 70 AS col2 FROM tab0 AS cor0
----
78
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT DISTINCT - 35 DIV - - col1 * col2 + - - col2 + col0 * + + col1 FROM tab2 AS cor0
----
2369
4968
5083

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT - 35 / - - col1 * col2 + - - col2 + col0 * + + col1 FROM tab2 AS cor0
----
2369
4968
5083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT + col1 + col2 AS col2, + col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

query II rowsort
SELECT DISTINCT col2 + - col0 AS col0, col0 FROM tab1 AS cor0
----
-23
91
-26
85
45
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + SUM( - + col0 ) * - COUNT( DISTINCT - col1 ) + 69 + + COUNT( + col0 ) * 32 AS col2 FROM tab1 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-6987
SELECT + SUM ( - + col0 ) * - COUNT ( DISTINCT - col1 ) + 69 + + COUNT ( + col0 ) * 32 AS col2 FROM tab1 AS cor0
----
846

query I rowsort
SELECT ALL + - 1 AS col1 FROM tab0 AS cor0 WHERE - 4 * - 20 + - - col0 + + col0 + + col1 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col0 / + 91 - + - 12 * - 36 AND col0 * + 64 * + - ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT 51 DIV col2 + col1 + - - ( - col0 ) - - + 64 AS col2 FROM tab0 AS cor0
----
-32
131
3

skipif mysql # not compatible
query I rowsort label-6990
SELECT 51 / col2 + col1 + - - ( - col0 ) - - + 64 AS col2 FROM tab0 AS cor0
----
-32
131
3

query I rowsort
SELECT ( + ( - - col1 ) ) + + col2 + col1 * - col0 FROM tab1
----
-361
-4162
-604

query I rowsort
SELECT ALL ( - 67 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT - 26 * - + COUNT( - col0 ) AS col2, COUNT( * ) FROM tab0
----
78
3

skipif mysql # not compatible
query II rowsort label-6993
SELECT - 26 * - + COUNT ( - col0 ) AS col2, COUNT ( * ) FROM tab0
----
78
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6994
SELECT ALL - COUNT( * ) col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6994
SELECT ALL - COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 30 col1 FROM tab1 WHERE NULL NOT BETWEEN - col1 AND 51 - + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL + 34 * + MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
-2006

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + 34 * + MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
-2006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6997
SELECT col1, - CAST( + col1 AS SIGNED ) col2 FROM tab1
----
14
-14
47
-47
5
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6997
SELECT col1, - CAST ( + col1 AS INTEGER ) col2 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT ALL - COUNT( ALL + + 45 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL - COUNT ( ALL + + 45 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + - COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6999
SELECT + - COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 IS NOT NULL
----

query I rowsort
SELECT - + 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT DISTINCT 22 * + 62 AS col0 FROM tab0 AS cor0
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE - 0 + + col0 > + col2 / - 28 + - col2 + - ( - col1 ) + + col1 + col0
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE - 0 + + col0 > + col2 / - 28 + - col2 + - ( - col1 ) + + col1 + col0
----
0

query I rowsort
SELECT + + 96 * + col1 + + - 1 FROM tab2 AS cor0
----
4895
6431
7391

query I rowsort
SELECT DISTINCT - 96 * + - col1 FROM tab1 AS cor0
----
1344
4512
480

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * - 93 * 52 < - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - + ( CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 37 AS col1 FROM tab0 cor0
----
136
47
84

query II rowsort
SELECT ALL + 37 + + 33, + 94 AS col0 FROM tab2 AS cor0
----
70
94
70
94
70
94

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT + 98 < + - col1
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT - 33 DIV + col2 * + 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT - 33 / + col2 * + 85 FROM tab1
----
0

query I rowsort
SELECT col1 * - + col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL COUNT( + 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL COUNT ( + 2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7015
SELECT CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT CAST ( NULL AS REAL ) / + COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT DISTINCT - 89 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT - 89 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 * - - col2 FROM tab0 cor0 WHERE + col1 BETWEEN + + ( + - ( - col2 ) ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT DISTINCT - CAST( + - 42 AS SIGNED ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT - CAST ( + - 42 AS INTEGER ) FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7019
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7019
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col0 + col1 + + col2 - col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1 + col0 AS col0, col0 FROM tab0
----
108
87
96
15
98
97

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-7024
SELECT + 26 DIV col0 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7024
SELECT + 26 / col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - 91 - - col2 FROM tab2 AS cor0
----
-33
-51
-68

query I rowsort
SELECT ALL - 59 AS col2 FROM tab0 AS cor0
----
-59
-59
-59

query II rowsort
SELECT DISTINCT col1, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT col1 + - 21 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + + 28 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + 28 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - ( - ( col2 ) ) - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - COUNT( * ) FROM tab2 WHERE NOT - 79 * + - col1 NOT IN ( + + 11, - col0 + + col2 / - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - 79 * + - col1 NOT IN ( + + 11, - col0 + + col2 / - col1 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7033
SELECT ALL - 81 + - MIN( ALL - - col1 ) DIV 89 AS col0 FROM tab2 WHERE NULL IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - 81 + - MIN ( ALL - - col1 ) / 89 AS col0 FROM tab2 WHERE NULL IS NULL
----
-81

query I rowsort
SELECT ALL ( - + col1 ) FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 + - - 23 NOT BETWEEN - - col1 - - col1 + 2 + + - 89 - + col2 AND - col1
----
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - col1 col0, 12 FROM tab0
----
-1
12
-441
12
-6561
12

query I rowsort
SELECT - - ( 71 ) AS col0 FROM tab0 AS cor0 WHERE NOT + 87 * + - 78 + + col2 IS NULL
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT - COUNT( * ) * 73 AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-7039
SELECT - COUNT ( * ) * 73 AS col1 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT COUNT( DISTINCT + - 27 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7040
SELECT COUNT ( DISTINCT + - 27 ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7041
SELECT ALL * FROM tab0 WHERE NOT + col1 * + 34 + + CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7041
SELECT ALL * FROM tab0 WHERE NOT + col1 * + 34 + + CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, + col2 * - col1 + + col1 col2 FROM tab2
----
46
-1122
64
-3003
75
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT - - COUNT( * ) + - COUNT( ALL - 9 ) * - 17 col0 FROM tab0 cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7043
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( ALL - 9 ) * - 17 col0 FROM tab0 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7044
SELECT + - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7046
SELECT ALL - col0 DIV - - col2 + + 15, 38 * + 13 * 48 AS col1 FROM tab2 AS cor0
----
13
23712
14
23712
14
23712

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL - col0 / - - col2 + + 15, 38 * + 13 * 48 AS col1 FROM tab2 AS cor0
----
13
23712
14
23712
14
23712

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + MIN( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7047
SELECT + MIN ( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - ( col0 ) + + + col2 col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * 89 - - col1 col1, - col2 AS col0 FROM tab0 AS cor0
----
4264
-47
8812
-99
911
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT 59 + - COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT 59 + - COUNT ( * ) FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL 1 * + - COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL 1 * + - COUNT ( * ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT col0 + - col0 * + col1 AS col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT - 31 * col1 * - 82 + - 85 + - + col2 AS col0 FROM tab2
----
129534
170171
195609

query I rowsort
SELECT ALL 28 * + 52 * + - 29 FROM tab1
----
-42224
-42224
-42224

query I rowsort
SELECT col1 * 25 + col0 FROM tab0
----
122
2040
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT DISTINCT ( + col0 ) / col2 * + CAST( NULL AS SIGNED ) + 84 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT ( + col0 ) / col2 * + CAST ( NULL AS INTEGER ) + 84 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 * + 82 AS col2 FROM tab1
----
4838
5576
7872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT + 56 * - - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7058
SELECT + 56 * - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT + COUNT( * ) * + - COUNT( * ) * - 5 col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7059
SELECT + COUNT ( * ) * + - COUNT ( * ) * - 5 col0 FROM tab1 AS cor0
----
45

query I rowsort
SELECT - col1 * 52 AS col0 FROM tab2 cor0
----
-2652
-3484
-4004

query I rowsort
SELECT ALL 36 AS col2 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7062
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + col1 - + col1 + - + col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7062
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + col1 - + col1 + - + col0 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ( - - COUNT( DISTINCT col2 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7063
SELECT ( - - COUNT ( DISTINCT col2 ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - COUNT( * ) FROM tab1, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7064
SELECT - COUNT ( * ) FROM tab1, tab2 cor0
----
-9

query I rowsort
SELECT ALL + 49 - ( - - col0 ) FROM tab1
----
-2
-36
-42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 90 / col1 * + ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE col0 + ( - 2 ) NOT BETWEEN 36 AND NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT ( - + SUM( col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT ( - + SUM ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT + - MAX( + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7070
SELECT + - MAX ( + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-7071
SELECT + 53 AS col2, col1 DIV - col0 FROM tab1 AS cor0
----
53
0
53
0
53
0

skipif mysql # not compatible
query II rowsort label-7071
SELECT + 53 AS col2, col1 / - col0 FROM tab1 AS cor0
----
53
0
53
0
53
0

query II rowsort
SELECT + col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT - ( + + AVG ( ALL - - col2 ) ) - + COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT - ( + + AVG ( ALL - - col2 ) ) - + COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

query I rowsort
SELECT + ( col2 ) * - 96 * - - 44 FROM tab2 AS cor0
----
-168960
-244992
-97152

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT ALL - 66 DIV 3 AS col1, 14 AS col1 FROM tab1
----
-22
14
-22
14
-22
14

skipif mysql # not compatible
query II rowsort label-7075
SELECT ALL - 66 / 3 AS col1, 14 AS col1 FROM tab1
----
-22
14
-22
14
-22
14

query II rowsort
SELECT ALL 9 AS col0, - 4 AS col0 FROM tab0
----
9
-4
9
-4
9
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT - CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7077
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 60 * - 5 - + col0 FROM tab0 AS cor0
----
203
213
285

query II rowsort
SELECT 96 AS col1, + col1 * col1 FROM tab2 AS cor0
----
96
2601
96
4489
96
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT COUNT( * ) * - COUNT( DISTINCT + 14 ) * + 14 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( 51 ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-7080
SELECT COUNT ( * ) * - COUNT ( DISTINCT + 14 ) * + 14 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( 51 ) + col1
----
0

query II rowsort
SELECT ALL - col2, col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT col0 * + + col0 * - col2 + col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT 93 + - COUNT( * ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-7083
SELECT 93 + - COUNT ( * ) FROM tab2
----
90

query I rowsort
SELECT ALL 67 AS col0 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 45 / + col2 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 45 / + col2 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 + + ( ( - col0 ) ) FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL - 48 + - ( - MIN( ALL - - col2 ) ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - 48 + - ( - MIN ( ALL - - col2 ) ) FROM tab2 cor0
----
-25

query II rowsort
SELECT - col2 AS col0, + col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT col1 - + col2 - + + 71 AS col1 FROM tab2
----
-34
-43
-62

query II rowsort
SELECT - 96 * - col1 - - + 55, - ( + ( + col2 ) ) AS col1 FROM tab0
----
151
-99
2071
-10
7831
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL - ( - MAX( ALL - col2 ) ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - ( - MAX ( ALL - col2 ) ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT col2 / col0 FROM tab2 WHERE col1 * - - ( - col0 ) IS NULL
----

query I rowsort
SELECT 90 * + col2 - - - 14 - - - 65 FROM tab1
----
5231
6041
8561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT col2 / ( + CAST( NULL AS SIGNED ) ) - + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT col2 / ( + CAST ( NULL AS INTEGER ) ) - + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 36 AS col2, - 8 AS col2 FROM tab0
----
-36
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - col1
----

query II rowsort
SELECT DISTINCT - 16, 48 * + 67 AS col1 FROM tab0 AS cor0
----
-16
3216

query I rowsort
SELECT ALL col1 + + 40 + col2 * + - col0 FROM tab1 cor0
----
-4842
-4970
-6101

query I rowsort
SELECT - - col0 * + col1 + - col2 + - 62 * - ( 19 ) AS col0 FROM tab2 AS cor0
----
3501
6066
6145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + 61 col1 FROM tab2
----
-1539
-3303
-468

query I rowsort
SELECT - col0 * + 53 AS col1 FROM tab1
----
-2703
-4505
-4823

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT ALL 4 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL 4 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT 92 >= ( col1 / 17 + 72 )
----

query I rowsort
SELECT 14 AS col0 FROM tab2 WHERE ( - 37 ) + + col2 NOT BETWEEN ( - 52 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT + 78 * MIN( col2 ) AS col1 FROM tab2 WHERE NOT - col0 / 58 <> - col1 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 78 * MIN ( col2 ) AS col1 FROM tab2 WHERE NOT - col0 / 58 <> - col1 + - col1
----
NULL

query I rowsort
SELECT + 88 * ( + col0 ) FROM tab1 WHERE NOT NULL >= - col2 + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 86 ) NOT BETWEEN ( col0 * - 60 ) AND ( + col2 / 9 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT DISTINCT - MAX( 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-7108
SELECT DISTINCT - MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

query I rowsort
SELECT 47 AS col2 FROM tab2 WHERE NOT 60 IS NULL
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + - col1 * 21 col2 FROM tab1
----
-276
-87
-969

query III rowsort
SELECT * FROM tab1 WHERE col1 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT + ( CAST( NULL AS SIGNED ) ) * + col2 FROM tab0 WHERE ( col0 ) IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-7113
SELECT + ( CAST ( NULL AS INTEGER ) ) * + col2 FROM tab0 WHERE ( col0 ) IN ( + col1 )
----

query I rowsort
SELECT + 23 * 20 + 30 * col2 FROM tab1
----
2230
2500
3340

query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7116
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 45 + - col2 FROM tab1
----
-14
-23
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) > ( 64 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col2 FROM tab0
----
57
57
57

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL + SUM( ALL + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + SUM ( ALL + col2 ) FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 - - col0 * col1 col1 FROM tab2
----
2331
4913
5010

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 NOT IN ( col1 / - col1 + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 NOT IN ( col1 / - col1 + 35 )
----
0

query I rowsort
SELECT - 5 + col0 AS col2 FROM tab2
----
41
59
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT - AVG ( col0 ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE + col0 - col1 < 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT - AVG ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col0 - col1 < 32
----
NULL

query I rowsort
SELECT + 18 * - col0 FROM tab2 WHERE NOT ( col1 + - col2 ) > col0
----
-1152
-1350
-828

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + ( + 68 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> ( 95 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7129
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col1 ) NOT BETWEEN col2 / CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-7129
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col1 ) NOT BETWEEN col2 / CAST ( NULL AS INTEGER ) AND col0
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL < - col0
----

query I rowsort
SELECT DISTINCT + 78 * col0 FROM tab1 AS cor0
----
3978
6630
7098

query I rowsort
SELECT col1 * 99 + col2 * + 10 FROM tab2 AS cor0
----
5279
7213
8023

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT DISTINCT - 51 + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - 51 + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 31 AS col2 FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT CAST( - AVG ( DISTINCT 54 ) AS SIGNED ) AS col0 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7136
SELECT CAST ( - AVG ( DISTINCT 54 ) AS INTEGER ) AS col0 FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT ALL + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE ( - col0 / - col2 + + 24 ) IN ( - col1 + 47 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / + 16 = 63 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - ( 84 )
----

query I rowsort
SELECT DISTINCT - + col0 + + 90 AS col2 FROM tab1 cor0
----
-1
39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT - 11 + - COUNT( * ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 11 + - COUNT ( * ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT - 21 * + col1 + + col1 FROM tab1 cor0
----
-100
-280
-940

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT + + CAST( NULL AS SIGNED ) + + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT + + CAST ( NULL AS INTEGER ) + + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 24 + + 30 FROM tab0 AS cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE - col1 BETWEEN col2 AND ( ( 76 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT COUNT( * ) / AVG ( - col1 ) AS col0 FROM tab1 cor0 WHERE 26 NOT IN ( + CAST( NULL AS SIGNED ) * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( * ) / AVG ( - col1 ) AS col0 FROM tab1 cor0 WHERE 26 NOT IN ( + CAST ( NULL AS INTEGER ) * col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 - - 43 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7152
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7152
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 23 - + col2 FROM tab1
----
-36
-45
-73

query I rowsort
SELECT + col0 + + + 41 AS col2 FROM tab2
----
105
116
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - COUNT( * ) + - 49 AS col0 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-7155
SELECT - COUNT ( * ) + - 49 AS col0 FROM tab2
----
-52

query I rowsort
SELECT ALL + 45 + - col1 * col0 FROM tab1
----
-380
-4232
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT - 28 + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7157
SELECT - 28 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - + col2 ) * col2 + 19 AS col1 FROM tab0
----
-2190
-81
-9782

query I rowsort
SELECT DISTINCT 7 - col0 FROM tab1
----
-44
-78
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT + COUNT( ALL + + col2 ) + + 26 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-7161
SELECT + COUNT ( ALL + + col2 ) + + 26 FROM tab2
----
29

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL OR ( + col2 - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 - 62 FROM tab0
----
-109
-161
-72

query III rowsort
SELECT * FROM tab0 WHERE + col1 <> ( col1 * 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + - 40 FROM tab0
----
-3240
-40
-840

query I rowsort
SELECT - - 94 * + - 4 * + col2 FROM tab1 AS cor0
----
-22184
-25568
-36096

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 + col2 ) AND ( col0 )
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + 22 AS col2 FROM tab2 AS cor0
----
68
86
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN 53 - - col0 AND 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL COUNT( * ) + + 41 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL COUNT ( * ) + + 41 FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT - + CAST( - col0 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-7171
SELECT - + CAST ( - col0 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 22 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 22 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * - col1 + col2 FROM tab1 cor0 WHERE NOT ( - col2 ) IS NULL
----
-100
-2141
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( - 51 - + col1 )
----

query I rowsort
SELECT DISTINCT + col1 * + 67 FROM tab0
----
1407
5427
67

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN + 22 AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col0 * + + col2 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1288
2368
675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT ALL + 30 DIV COUNT( DISTINCT - - col1 ) + 71 AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL + 30 / COUNT ( DISTINCT - - col1 ) + 71 AS col1 FROM tab1 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 = - col1 * 20
----

query I rowsort
SELECT DISTINCT ( 18 ) / + col2 FROM tab1 AS cor0 WHERE NOT - col2 <> col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 IN ( - col1 * 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 32, - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-32
-4896
-32
-5015
-32
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + + SUM( DISTINCT col1 ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + + SUM ( DISTINCT col1 ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL - + MAX( DISTINCT - + 17 ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - + MAX ( DISTINCT - + 17 ) AS col0 FROM tab2 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7186
SELECT ALL + COUNT( - CAST( col0 AS SIGNED ) ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + - 98 - 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL + COUNT ( - CAST ( col0 AS INTEGER ) ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + - 98 - 50 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL MAX( ALL - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL MAX ( ALL - + col2 ) FROM tab0
----
-10

query I rowsort
SELECT + ( col2 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND ( NULL ) AND NULL > col0
----

query I rowsort
SELECT ALL - col2 * - 59 FROM tab0 WHERE NOT col1 IS NULL
----
2773
5841
590

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT NULL <= + ( - col2 ) + 81
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL + COUNT( - CAST( col1 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + COUNT ( - CAST ( col1 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * 94 FROM tab0
----
1410
8178
9118

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL + SUM( 65 ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL + SUM ( 65 ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
585

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 58 <= - - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 + - col1 + + + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT 75 + - COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7199
SELECT 75 + - COUNT ( * ) AS col2 FROM tab0
----
72

query I rowsort
SELECT + + ( + 77 ) + + + ( + + col2 ) FROM tab1 AS cor0
----
136
145
173

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 + - + 91, - 3 * 0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 21 <> NULL
----

query II rowsort
SELECT - col0 + 72 * + col1 AS col2, - 32 + - + 80 FROM tab2 AS cor0
----
3626
-112
4749
-112
5480
-112

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 4 = col2
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + - 57 * + COUNT( * ) FROM tab1 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7206
SELECT + - 57 * + COUNT ( * ) FROM tab1 cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE - 88 + col2 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7207
SELECT + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE - 88 + col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + col2 + - 30 AS col0 FROM tab0 AS cor0 WHERE col0 - - - 25 + col0 * - 1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT ALL + col2 DIV + 18 col2 FROM tab1 AS cor0
----
3
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7209
SELECT ALL + col2 / + 18 col2 FROM tab1 AS cor0
----
3
3
5

query I rowsort
SELECT ALL - 2 + + 21 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT - COUNT( * ) * 19 + + 34 * MAX( col2 * col0 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT - COUNT ( * ) * 19 + + 34 * MAX ( col2 * col0 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT ALL + - col1 + + + 33 FROM tab2 cor0
----
-18
-34
-44

query I rowsort
SELECT DISTINCT + col1 + + + col1 - + + 28 AS col0 FROM tab1 AS cor0
----
-18
0
66

query II rowsort
SELECT - col2, col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + col1 * + 12 > col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 WHERE ( - 94 + - col2 ) IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + ( col2 ) - col2 + - 40 - col2 AS col2 FROM tab2
----
-63
-80
-98

query I rowsort
SELECT ALL - 22 * + + col2 + 46 AS col2 FROM tab0
----
-174
-2132
-988

query I rowsort
SELECT col1 * - col2 - - col0 AS col2 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT ALL + 11 - + - col2 AS col0 FROM tab1
----
107
70
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 45 + - 41 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7221
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 45 + - 41 col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( ( + col0 ) + + col0 )
----

query I rowsort
SELECT col2 - + - 57 * + col0 AS col0 FROM tab2
----
2645
3688
4333

query I rowsort
SELECT + 84 - + col0 + col2 FROM tab1
----
129
58
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL + 84 - - COUNT( * ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + 84 - - COUNT ( * ) AS col0 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab0 cor0
----
-24

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col2 + + col0 AS col2 FROM tab1 WHERE NULL BETWEEN + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab0
----
76
76
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT + COUNT( * ) * + + CAST( NULL AS SIGNED ) + - + 55 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - + 55 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 57 FROM tab1 AS cor0 WHERE NOT + col1 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 68 ) * - 8 FROM tab2 AS cor0
----
544
544
544

query I rowsort
SELECT DISTINCT + + 76 AS col2 FROM tab1 AS cor0
----
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * col2 + col0 * + 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 col0 FROM tab2 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT - SUM( + col2 ) * + - COUNT( * ) FROM tab0 cor0
----
468

skipif mysql # not compatible
query I rowsort label-7236
SELECT - SUM ( + col2 ) * + - COUNT ( * ) FROM tab0 cor0
----
468

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 <= col0 * + - col1 + 14
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT CAST( - - 46 AS SIGNED ) * + 33 FROM tab1
----
1518
1518
1518

skipif mysql # not compatible
query I rowsort label-7239
SELECT CAST ( - - 46 AS INTEGER ) * + 33 FROM tab1
----
1518
1518
1518

query II rowsort
SELECT col0, - 1 AS col0 FROM tab1
----
51
-1
85
-1
91
-1

query II rowsort
SELECT + 0 AS col0, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT + - AVG ( - - col1 ) FROM tab1 WHERE NOT NULL < - ( + + 70 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7243
SELECT ALL + MIN( + - CAST( 81 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL + MIN ( + - CAST ( 81 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT DISTINCT 69 * - COUNT( * ) * + ( - SUM( ALL + col1 ) ) FROM tab0
----
21321

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT 69 * - COUNT ( * ) * + ( - SUM ( ALL + col1 ) ) FROM tab0
----
21321

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab1
----
45

query I rowsort
SELECT ALL col1 * + - 58 AS col1 FROM tab2
----
-2958
-3886
-4466

query I rowsort
SELECT + 42 AS col0 FROM tab2 WHERE NOT + - col2 + col1 IS NULL
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT COUNT( * ) + - + COUNT( 30 ) + + + SUM( DISTINCT 30 ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7248
SELECT COUNT ( * ) + - + COUNT ( 30 ) + + + SUM ( DISTINCT 30 ) AS col0 FROM tab0
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7249
SELECT * FROM tab0 WHERE + + CAST( - - 94 AS DECIMAL ) NOT BETWEEN 30 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7249
SELECT * FROM tab0 WHERE + + CAST ( - - 94 AS REAL ) NOT BETWEEN 30 AND NULL
----

query I rowsort
SELECT DISTINCT 52 * + col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col1 + - - 43 * - + col2 + + 9 + + col0 * + col0 )
----
3068
3536
4992

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 < - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 66 + + 67 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT ALL + + MAX( DISTINCT + - col1 ) + 50 * - COUNT( * ) * - 17 FROM tab2 AS cor0
----
2499

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL + + MAX ( DISTINCT + - col1 ) + 50 * - COUNT ( * ) * - 17 FROM tab2 AS cor0
----
2499

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT - + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7254
SELECT - + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col2 ) + + - col0 BETWEEN ( + + col1 + - col0 ) AND + col0
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 + - 36 AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT - col1 * - + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7257
SELECT - col1 * - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT + - 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT ALL + + 10 + + + col2 DIV col2 FROM tab0 AS cor0 WHERE NOT - 49 + + col2 IS NULL
----
11
11
11

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + + 10 + + + col2 / col2 FROM tab0 AS cor0 WHERE NOT - 49 + + col2 IS NULL
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7260
SELECT DISTINCT 63 * + CAST( NULL AS SIGNED ) + COUNT( * ) + - COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7260
SELECT DISTINCT 63 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT + SUM( DISTINCT - 94 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT + SUM ( DISTINCT - 94 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 / + + col1 BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 79 BETWEEN + + 26 AND NULL
----

query I rowsort
SELECT 51 + + 22 FROM tab1
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL COUNT( * ) + - + COUNT( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL COUNT ( * ) + - + COUNT ( + col0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT 15 - - ( - 72 ) FROM tab1
----
-57

query I rowsort
SELECT ALL 42 - 28 * - col0 FROM tab0
----
2478
2758
462

query I rowsort
SELECT DISTINCT + 50 + + col1 AS col0 FROM tab0
----
131
51
71

query I rowsort
SELECT DISTINCT - 58 FROM tab2 WHERE ( - + 37 * - 84 ) BETWEEN col2 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT DISTINCT CAST( 20 AS SIGNED ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT CAST ( 20 AS INTEGER ) FROM tab2
----
20

query I rowsort
SELECT + col2 * 71 FROM tab0 WHERE NOT + col1 + col0 + 7 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7272
SELECT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 * + col0 * + col2 AS col2 FROM tab0 cor0
----
28905
35670
393723

query I rowsort
SELECT - col1 * 11 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT + SUM( ALL - 87 ) DIV COUNT( * ) AS col1 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-7275
SELECT + SUM ( ALL - 87 ) / COUNT ( * ) AS col1 FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT - MAX( DISTINCT - + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7276
SELECT - MAX ( DISTINCT - + col1 ) FROM tab0
----
1

query I rowsort
SELECT - + col0 + - - col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col2 FROM tab0 cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col1 FROM tab0 AS cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 9 col1, - 98 * - col1 * col2 * + - 25 AS col2 FROM tab1
----
126
-3292800
423
-7830200
45
-722750

query I rowsort
SELECT 29 * - - col2 * + col2 * + 93 AS col1 FROM tab2
----
1426713
4315200
9072708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT - col0 * + + CAST( NULL AS SIGNED ) * + + 75 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7283
SELECT - col0 * + + CAST ( NULL AS INTEGER ) * + + 75 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT DISTINCT + 71 + - - COUNT( + - col2 ) FROM tab0 WHERE + 24 + col2 BETWEEN - - col1 AND NULL
----
71

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT + 71 + - - COUNT ( + - col2 ) FROM tab0 WHERE + 24 + col2 BETWEEN - - col1 AND NULL
----
71

query III rowsort
SELECT * FROM tab0 WHERE - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 23 + - col0 FROM tab1
----
-28
-62
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT - ( - col0 ) * - col1 DIV - - col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7287
SELECT - ( - col0 ) * - col1 / - - col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + col2 * - - col1 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT + + 17 * + - 49 AS col1 FROM tab2 AS cor0
----
-833
-833
-833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT - MIN( - ( + ( + CAST( NULL AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT - MIN ( - ( + ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - ( - col1 ) * - col1 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - col0 * - + ( + col0 ) - - 66 AS col1 FROM tab1 AS cor0 WHERE ( NOT + - 91 IS NULL )
----
2667
7291
8347

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 91 / col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ( COUNT( * ) ) - - + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7295
SELECT ( COUNT ( * ) ) - - + COUNT ( * ) AS col1 FROM tab2
----
6

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 <= + 86 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND - ( + 83 ) * + col1 + col2 + - col2 / + 10 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT SUM( DISTINCT + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7298
SELECT SUM ( DISTINCT + col1 ) FROM tab1
----
66

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + - - col0 * - 45 * - col1 = - col2
----

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col1 FROM tab2 WHERE - col2 * + + col0 < + 79 * + col1
----
46
64
75

query I rowsort
SELECT ALL 25 * - ( - + 36 ) AS col1 FROM tab1
----
900
900
900

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT + + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7302
SELECT + + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT DISTINCT - - COUNT( * ), 87 * + + COUNT( * ) * - 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
-9396

skipif mysql # not compatible
query II rowsort label-7303
SELECT DISTINCT - - COUNT ( * ), 87 * + + COUNT ( * ) * - 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
-9396

query I rowsort
SELECT ALL col0 * 61 * - col2 + col0 * 27 AS col0 FROM tab1 AS cor0
----
-297279
-303620
-375011

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - - COUNT( DISTINCT + 54 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7305
SELECT - - COUNT ( DISTINCT + 54 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT + COUNT( * ), 97 AS col2 FROM tab0 cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-7306
SELECT + COUNT ( * ), 97 AS col2 FROM tab0 cor0
----
3
97

query I rowsort
SELECT col2 * + col1 + + + 1 AS col0 FROM tab0 AS cor0
----
100
211
3808

query I rowsort
SELECT DISTINCT + ( + 47 ) FROM tab1 WHERE NOT ( NULL ) BETWEEN - - col0 AND + 93 / - col0 + - col0 - + col0 AND NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * + 30 AS col0 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7311
SELECT DISTINCT MAX( - 74 ) - 71 * - - CAST( NULL AS SIGNED ) - + 32 AS col0 FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT MAX ( - 74 ) - 71 * - - CAST ( NULL AS INTEGER ) - + 32 AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) > col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 NOT BETWEEN NULL AND + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL SUM( ALL col1 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col2, + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL SUM ( ALL col1 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col2, + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 60 IN ( - col1, + col0 + - col0, col1 * col2 / - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 60 IN ( - col1, + col0 + - col0, col1 * col2 / - col1 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT + col0 DIV + + col2 AS col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7315
SELECT + col0 / + + col2 AS col0 FROM tab0 AS cor0
----
0
0
8

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 I rowsort
SELECT ALL - col0 + - - 50 FROM tab0 AS cor0
----
-37
-47
35

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query II rowsort
SELECT col1, - col0 * + col0 * + - 16 FROM tab1 AS cor0
----
14
41616
47
132496
5
115600

query I rowsort
SELECT 51 FROM tab2 AS cor0 WHERE ( + col0 ) NOT IN ( col1 )
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT DISTINCT - 3 * + COUNT( * ) + - + 68 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT - 3 * + COUNT ( * ) + - + 68 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL COUNT( * ) - + MIN( DISTINCT + + col2 ) AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL COUNT ( * ) - + MIN ( DISTINCT + + col2 ) AS col1 FROM tab2
----
-20

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col1 + + + 13 IN ( - 72 + - - col2 * + col2, 55 * col2, col1 )
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 * - - 51 - + - 34 AS col0 FROM tab0
----
-10676
-194123
-5015

query I rowsort
SELECT ALL + 30 * - col1 + + 34 AS col2 FROM tab1 AS cor0
----
-116
-1376
-386

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7326
SELECT - + col1 DIV + CAST( - ( - 67 ) AS SIGNED ) + - 16 FROM tab0 AS cor0
----
-16
-16
-17

skipif mysql # not compatible
query I rowsort label-7326
SELECT - + col1 / + CAST ( - ( - 67 ) AS INTEGER ) + - 16 FROM tab0 AS cor0
----
-16
-16
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 col1 FROM tab1 AS cor0
----
205379
314432
884736

query II rowsort
SELECT + col1 * + col2, col0 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 27 * + + col2 + + - 43 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL COUNT( * ) col1 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7332
SELECT ALL COUNT ( * ) col1 FROM tab1, tab1 cor0
----
9

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 AND 73 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL + COUNT( * ) * + COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7334
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col2 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - 22 * 43 FROM tab2 cor0
----
-46
-946
-64
-946
-75
-946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT + CAST( + col1 AS SIGNED ) * + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-7336
SELECT + CAST ( + col1 AS INTEGER ) * + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7337
SELECT DISTINCT - MAX( ALL - + col1 ) DIV + - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - MAX ( ALL - + col1 ) / + - COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
58

query I rowsort
SELECT 43 + - 46 AS col1 FROM tab1 cor0
----
-3
-3
-3

query I rowsort
SELECT - - 6 + 71 + col1 FROM tab0 cor0
----
158
78
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT + CAST( - + 77 AS SIGNED ) + - + 19 AS col2 FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-7341
SELECT + CAST ( - + 77 AS INTEGER ) + - + 19 AS col2 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + col2 + 84 AS col0 FROM tab2 AS cor0
----
107
124
142

query I rowsort
SELECT ALL + 3 AS col0 FROM tab2 cor0 WHERE ( + - col2 IS NULL )
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE - col2 = + 27
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 67 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7347
SELECT DISTINCT - COUNT( * ) * - + 77, - COUNT( * ) * - 89 FROM tab2 WHERE NOT ( NULL ) BETWEEN 77 * col0 AND ( - - col0 + 88 )
----
0
0

skipif mysql # not compatible
query II rowsort label-7347
SELECT DISTINCT - COUNT ( * ) * - + 77, - COUNT ( * ) * - 89 FROM tab2 WHERE NOT ( NULL ) BETWEEN 77 * col0 AND ( - - col0 + 88 )
----
0
0

query III rowsort
SELECT * FROM tab1 WHERE - 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT - CAST( NULL AS SIGNED ) * + col1 * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT - CAST ( NULL AS INTEGER ) * + col1 * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 + - 49 + col2 * - 91 FROM tab1
----
-3889
-403
-49

query III rowsort
SELECT * FROM tab0 WHERE col0 <> col2 + - 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 - + 29 col0 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT - - col2 - - col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT + - ( + - ( + col1 ) ) + - + 83 * + + col1 AS col2, - 31 FROM tab1 cor0
----
-1148
-31
-3854
-31
-410
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7355
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( NOT + CAST( NULL AS SIGNED ) / - col1 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-7355
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( NOT + CAST ( NULL AS INTEGER ) / - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL COUNT( * ) + 78 col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7356
SELECT ALL COUNT ( * ) + 78 col0 FROM tab2 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7357
SELECT ALL 18 * - 83 + + col1 DIV + col0 + - + col1 AS col1 FROM tab0
----
-1495
-1515
-1570

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL 18 * - 83 + + col1 / + col0 + - + col1 AS col1 FROM tab0
----
-1495
-1515
-1570

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7358
SELECT CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7358
SELECT CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT COUNT( * ) + - - 83 + - + COUNT( * ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT COUNT ( * ) + - - 83 + - + COUNT ( * ) FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT COUNT( * ) * - 72 AS col2 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT COUNT ( * ) * - 72 AS col2 FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL - 69 * - - COUNT( * ) FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - 69 * - - COUNT ( * ) FROM tab0
----
-207

query II rowsort
SELECT ALL 19, + col0 FROM tab0 AS cor0
----
19
15
19
87
19
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 15 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 11 FROM tab0 AS cor0 WHERE NOT 42 IS NULL
----
-11
-11
-11

query I rowsort
SELECT DISTINCT col1 * + - 60 + + + col2 FROM tab1 AS cor0
----
-241
-2752
-744

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - - 6 * - + ( 43 ) AS col0 FROM tab1
----
-13158
-21930
-23478

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT COUNT( DISTINCT - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7369
SELECT COUNT ( DISTINCT - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT DISTINCT - SUM( + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - SUM ( + col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL - COUNT( * ) * 22 * + 0 * + + 79 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL - COUNT ( * ) * 22 * + 0 * + + 79 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7372
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) + - - col1 = 75
----

skipif mysql # not compatible
query III rowsort label-7372
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) + - - col1 = 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT CAST( 91 AS SIGNED ) FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-7373
SELECT CAST ( 91 AS INTEGER ) FROM tab2 AS cor0
----
91
91
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 97 * 15 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * + 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT + col2 DIV + - 68 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT + col2 / + - 68 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL ( + + COUNT( DISTINCT - col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL ( + + COUNT ( DISTINCT - col1 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - + 21 ) * - 84 FROM tab0
----
1764

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - + 30 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 25
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT ALL + - col1 DIV + + 84 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL + - col1 / + + 84 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - 49 * 64 - + - col2 + col0, + col2 FROM tab0 AS cor0
----
-2940
99
-3039
10
-3074
47

query I rowsort
SELECT ALL - col0 * + 6 * + + col0 * + - 50 + + col1 FROM tab2 AS cor0
----
1228877
1687567
634851

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT - MIN( DISTINCT - + col2 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7388
SELECT DISTINCT - MIN ( DISTINCT - + col2 ) col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 43 * 15 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7389
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 43 * 15 IS NOT NULL
----
9

query II rowsort
SELECT DISTINCT + + col0 AS col1, 47 + - + ( - col0 ) AS col1 FROM tab1 AS cor0
----
51
98
85
132
91
138

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT - col1 DIV + - ( col1 ) + col0 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-7391
SELECT - col1 / + - ( col1 ) + col0 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT DISTINCT - 36 + + col2 FROM tab2 AS cor0
----
-13
22
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col0 FROM tab1
----
-37
-44
-80

query II rowsort
SELECT ALL + col0 + + 37, col2 FROM tab0
----
124
10
134
99
52
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7395
SELECT ALL + COUNT( * ) * - MAX( DISTINCT col2 ) * - - CAST( NULL AS SIGNED ) AS col0, + MAX( + - col1 ) * 62 + + SUM( DISTINCT - col1 ) FROM tab2
----
NULL
-3357

skipif mysql # not compatible
query II rowsort label-7395
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT col2 ) * - - CAST ( NULL AS INTEGER ) AS col0, + MAX ( + - col1 ) * 62 + + SUM ( DISTINCT - col1 ) FROM tab2
----
NULL
-3357

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( 75 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT - col1 + + col2 DIV + col0 FROM tab0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT - col1 + + col2 / + col0 FROM tab0
----
-21
-78
0

query I rowsort
SELECT DISTINCT 23 + col2 * - + 31 FROM tab2
----
-1217
-1775
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7399
SELECT COUNT( * ) DIV - - CAST( + 95 AS SIGNED ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7399
SELECT COUNT ( * ) / - - CAST ( + 95 AS INTEGER ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT DISTINCT - 54 * - CAST( 64 AS SIGNED ) - - + col2 FROM tab1
----
3515
3524
3552

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT - 54 * - CAST ( 64 AS INTEGER ) - - + col2 FROM tab1
----
3515
3524
3552

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + - col2 BETWEEN NULL AND + col2 + 61 + ( 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - 92 * - COUNT( * ) FROM tab0 cor0
----
276

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 92 * - COUNT ( * ) FROM tab0 cor0
----
276

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL = col0 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - MAX( DISTINCT + - 74 ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7404
SELECT - MAX ( DISTINCT + - 74 ) FROM tab0 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col2 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT + + 63 AS col0, 87 + - 57 FROM tab2 AS cor0
----
63
30
63
30
63
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT SUM( DISTINCT + + col0 ) col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7407
SELECT SUM ( DISTINCT + + col0 ) col2 FROM tab2 cor0
----
185

query II rowsort
SELECT DISTINCT - col1 * ( - - 11 ) + col1 + + col2 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
-200
-21
-763
-81
89
-1

query I rowsort
SELECT DISTINCT 68 + - 51 * + 23 AS col2 FROM tab0 WHERE NOT - 21 > + 72
----
-1105

query I rowsort
SELECT DISTINCT - 42 * + - 17 + - 47 - col1 * - - col0 + ( + 10 ) * - 70 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 + - 10 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL + COUNT( DISTINCT - 83 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + COUNT ( DISTINCT - 83 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT MAX( - + 4 ) AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7413
SELECT MAX ( - + 4 ) AS col0 FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT SUM( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( - - 77 ) AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT SUM ( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( - - 77 ) AND + col0
----
NULL

query I rowsort
SELECT ALL ( + col0 ) * - + col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT - 13 DIV - 5 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7416
SELECT - 13 / - 5 FROM tab2
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 AS col1, + col2 * - col2 + + col0 col2 FROM tab0 AS cor0
----
-1
-9704
-21
-13
-81
-2194

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT 65 + + COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-7418
SELECT 65 + + COUNT ( * ) FROM tab2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 col2 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7419
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 col2 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 92 AS col1 FROM tab2 AS cor0 WHERE 89 * - col1 IS NOT NULL
----
92
92
92

query I rowsort
SELECT DISTINCT - col2 + + - col1 - - col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7422
SELECT ALL + COUNT( ALL + col1 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + COUNT ( ALL + col1 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + MIN( - col1 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + MIN ( - col1 ) AS col2 FROM tab1
----
-38

query II rowsort
SELECT ALL - ( - col2 ) - - col0, col2 FROM tab2
----
104
40
133
58
69
23

query II rowsort
SELECT + col2 - - col2 + - col2 AS col0, col1 + 36 AS col0 FROM tab2
----
23
87
40
113
58
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT COUNT( * ) + + 45 FROM tab2 WHERE - col2 IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-7426
SELECT COUNT ( * ) + + 45 FROM tab2 WHERE - col2 IS NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT COUNT( * ) - + 65 AS col2 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-7427
SELECT COUNT ( * ) - + 65 AS col2 FROM tab0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT DISTINCT - COUNT( * ) DIV + 39 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - COUNT ( * ) / + 39 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 44 + - col1 + - col0 + col0 FROM tab1 AS cor0
----
-3
30
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7430
SELECT ALL + + 99 AS col2, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
99
NULL
99
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7430
SELECT ALL + + 99 AS col2, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
99
NULL
99
NULL
99
NULL

query II rowsort
SELECT - col2, - 45 AS col0 FROM tab1 cor0
----
-59
-45
-68
-45
-96
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 4 IS NOT NULL
----

query I rowsort
SELECT - col1 * 77 FROM tab1
----
-1078
-3619
-385

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT - MIN( col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - MIN ( col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - 18 AS col1 FROM tab1 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT + COUNT( * ) * - + COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7438
SELECT + COUNT ( * ) * - + COUNT ( * ) col0 FROM tab2
----
-9

query I rowsort
SELECT col2 * - 66 FROM tab0
----
-3102
-6534
-660

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 = - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT ALL - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) col2 FROM tab2 WHERE NULL BETWEEN NULL AND + 28
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7441
SELECT ALL - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 WHERE NULL BETWEEN NULL AND + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7442
SELECT ALL 87 col2, + CAST( + - 70 AS SIGNED ) FROM tab2 WHERE NOT ( NOT + col0 IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7442
SELECT ALL 87 col2, + CAST ( + - 70 AS INTEGER ) FROM tab2 WHERE NOT ( NOT + col0 IS NULL )
----

query I rowsort
SELECT 51 * 8 FROM tab0
----
408
408
408

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - COUNT( + + 28 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7444
SELECT - COUNT ( + + 28 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL <= 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT CAST( 41 AS SIGNED ) FROM tab2
----
41
41
41

skipif mysql # not compatible
query I rowsort label-7446
SELECT CAST ( 41 AS INTEGER ) FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7447
SELECT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - + 97 * col1 AS col1 FROM tab0 AS cor0
----
-2037
-7857
-97

query I rowsort
SELECT 19 * 52 FROM tab2 AS cor0
----
988
988
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * + - col0 col0 FROM tab0
----
-4785
-5335
-825

query I rowsort
SELECT + 31 FROM tab2 WHERE NULL NOT IN ( - + 70, - 83 + - + col1, col2 + + col1 )
----

query I rowsort
SELECT + - 90 - col0 FROM tab2 AS cor0
----
-136
-154
-165

query I rowsort
SELECT ALL + 72 FROM tab0 AS cor0 WHERE NOT + 32 * - col1 * col2 IS NULL
----
72
72
72

query II rowsort
SELECT ALL - 92, + 82 AS col2 FROM tab0 AS cor0
----
-92
82
-92
82
-92
82

query I rowsort
SELECT ALL + col2 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT DISTINCT + - 99 * col0 AS col1 FROM tab2 AS cor0
----
-4554
-6336
-7425

query I rowsort
SELECT - col2 + - col0 + col2 * + 18 FROM tab2 AS cor0
----
345
616
911

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT AVG ( - 56 ) * - + COUNT( * ) + - + COUNT( * ) + MAX( ALL + - ( - 7 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT AVG ( - 56 ) * - + COUNT ( * ) + - + COUNT ( * ) + MAX ( ALL + - ( - 7 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( 73 / - 16 * col2 IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT + - MIN( - + 49 ) + + 19 col0 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT + - MIN ( - + 49 ) + + 19 col0 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL - 67 + - MIN( - 36 ) AS col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - 67 + - MIN ( - 36 ) AS col1 FROM tab0 AS cor0
----
-31

query II rowsort
SELECT 24 + + + 34, col0 AS col2 FROM tab2
----
58
46
58
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ( 69 ) + + MIN( DISTINCT - - col0 ) col1 FROM tab0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7464
SELECT ( 69 ) + + MIN ( DISTINCT - - col0 ) col1 FROM tab0
----
84

query III rowsort
SELECT * FROM tab2 WHERE + col2 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT DISTINCT - 44 DIV - 46 + + 17 + + + col1 FROM tab2
----
68
84
94

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - 44 / - 46 + + 17 + + + col1 FROM tab2
----
68
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT COUNT( * ) * COUNT( * ) + SUM( DISTINCT - col2 ) AS col1 FROM tab0 WHERE NOT ( - - 16 ) < - col1 - col2 * 64
----
-147

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + SUM ( DISTINCT - col2 ) AS col1 FROM tab0 WHERE NOT ( - - 16 ) < - col1 - col2 * 64
----
-147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 75 + + + ( + 13 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( - col0 )
----

query II rowsort
SELECT col0 * - 69 AS col1, 26 FROM tab0
----
-1035
26
-6003
26
-6693
26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT - ( - - COUNT( * ) ) * MIN( - col2 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7472
SELECT - ( - - COUNT ( * ) ) * MIN ( - col2 ) FROM tab0 AS cor0
----
297

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= + col0 + - col1 + + col2 * + 51 * - - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT + 96 * + COUNT( * ) * - 91 FROM tab1 cor0
----
-26208

skipif mysql # not compatible
query I rowsort label-7474
SELECT + 96 * + COUNT ( * ) * - 91 FROM tab1 cor0
----
-26208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT + - 62 AS col1 FROM tab2 AS cor0
----
-62

query II rowsort
SELECT + + col1, - ( col0 ) + + + col2 FROM tab2 AS cor0
----
51
-23
67
-17
77
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT + CAST( - 27 AS SIGNED ) FROM tab1 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-7478
SELECT + CAST ( - 27 AS INTEGER ) FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 14 AND + col0
----

query I rowsort
SELECT DISTINCT ( - - 86 ) FROM tab2 AS cor0 WHERE NOT 14 IS NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT + SUM( ALL + - col0 ) col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7481
SELECT DISTINCT + SUM ( ALL + - col0 ) col1 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( - + ( + + col2 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab0 WHERE col2 / - 9 + - 61 + + col0 * col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT CAST( NULL AS SIGNED ) / - 42 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT CAST ( NULL AS INTEGER ) / - 42 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7485
SELECT + col1 + - - col2 FROM tab1 AS cor0 WHERE - col0 + col1 + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7485
SELECT + col1 + - - col2 FROM tab1 AS cor0 WHERE - col0 + col1 + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT - col0 * - + col1 * - col1 + + col1 AS col2 FROM tab0
----
-38346
-96
-98334

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 17 <> - 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT + col1 * - col2 DIV + + col2 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7488
SELECT + col1 * - col2 / + + col2 AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT DISTINCT + - CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT + - CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT col0 DIV - col0 col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7490
SELECT col0 / - col0 col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 82 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + + 13 AS col0 FROM tab0 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 86 - - col0 - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 - + - col0 FROM tab0
----
174
194
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 8 + 53 col0, col2 + - col0 FROM tab1
----
45
-23
45
-26
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT ALL - CAST( + col2 AS SIGNED ) + + - 66 FROM tab0
----
-113
-165
-76

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - CAST ( + col2 AS INTEGER ) + + - 66 FROM tab0
----
-113
-165
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7497
SELECT + COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 11 AS col2 FROM tab0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col2 * - col2 col2 FROM tab1
----
-51
-9216
-85
-3481
-91
-4624

query I rowsort
SELECT col1 * - - 27 * - 8 AS col2 FROM tab2
----
-11016
-14472
-16632

query I rowsort
SELECT ALL + + 69 * - col2 * ( - col2 ) + + + 53 + - - 73 FROM tab0 AS cor0
----
152547
676395
7026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT DISTINCT CAST( - 31 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
1581
2077
2387

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT CAST ( - 31 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
1581
2077
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0, + col0 AS col2, - - 25 * + + col1 + - col0 + + + col1 col1 FROM tab0 AS cor0
----
9 values hashing to 958a8c90ec8b88a8d74d728dd949cb2b

query I rowsort
SELECT ALL col0 * - + col1 * + ( 92 ) AS col0 FROM tab0
----
-111780
-168084
-8924

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT MIN( ALL - CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7506
SELECT MIN ( ALL - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT + ( - - COUNT( * ) ) + + 82 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + ( - - COUNT ( * ) ) + + 82 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
88

query I rowsort
SELECT - + 10 AS col0 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT + - 11 AS col2 FROM tab1 cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32 col1, ( + 15 ) FROM tab1
----
-32
15
-32
15
-32
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * - col2 + + col2 - - 16 col2 FROM tab2
----
-2215
-3864
-5610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7512
SELECT + ( col1 ) + 90, - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
111
NULL
171
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7512
SELECT + ( col1 ) + 90, - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
111
NULL
171
NULL
91
NULL

query I rowsort
SELECT 40 + + col1 FROM tab2
----
107
117
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT - - col0 FROM tab2 WHERE col0 < + + col2 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7514
SELECT - - col0 FROM tab2 WHERE col0 < + + col2 + + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT 43, col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - + 66 FROM tab0
----
-3102
-6534
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL - COUNT( * ) + + 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL - COUNT ( * ) + + 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
306
7590
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 + - ( + + col1 ) col0 FROM tab1 AS cor0
----
35
68
77

query II rowsort
SELECT - - col2 + + + col0 AS col1, - col1 AS col1 FROM tab1 cor0
----
144
-5
147
-14
159
-47

query I rowsort
SELECT DISTINCT - 42 + - 85 FROM tab0 AS cor0
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT DISTINCT - + col2 / + col1 + col0 * + 53 * CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT - + col2 / + col1 + col0 * + 53 * CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7524
SELECT + col1 DIV - col1 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7524
SELECT + col1 / - col1 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7525
SELECT CAST( NULL AS DECIMAL ) + + CAST( - + MIN( + col2 ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT CAST ( NULL AS REAL ) + + CAST ( - + MIN ( + col2 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT DISTINCT CAST( - MAX( 7 ) AS SIGNED ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT CAST ( - MAX ( 7 ) AS INTEGER ) FROM tab1
----
-7

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 = NULL
----

query I rowsort
SELECT ALL - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT ( - + MIN( ALL - - col0 ) ) AS col2, 47 FROM tab2 AS cor0
----
-46
47

skipif mysql # not compatible
query II rowsort label-7530
SELECT ( - + MIN ( ALL - - col0 ) ) AS col2, 47 FROM tab2 AS cor0
----
-46
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT - + col1 DIV 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7531
SELECT - + col1 / 99 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + MAX( - col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7532
SELECT + MAX ( - col1 ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL ( - - col0 ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) + - 32 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 + + col1 NOT BETWEEN col1 * + 62 / - 17 - ( col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7537
SELECT ALL - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT DISTINCT + - CAST( - AVG ( - - 99 ) AS SIGNED ) * + SUM( ALL col1 ) FROM tab2 AS cor0
----
19305

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + - CAST ( - AVG ( - - 99 ) AS INTEGER ) * + SUM ( ALL col1 ) FROM tab2 AS cor0
----
19305

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL 98 + - - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL 98 + - - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
101

query II rowsort
SELECT + col2 AS col1, + 55 - + col0 FROM tab2 cor0
----
23
9
40
-9
58
-20

query I rowsort
SELECT col2 * - + col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT DISTINCT + 69 + - col1 * - CAST( + col1 AS SIGNED ) + 54 FROM tab0 AS cor0
----
124
564
6684

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + 69 + - col1 * - CAST ( + col1 AS INTEGER ) + 54 FROM tab0 AS cor0
----
124
564
6684

query I rowsort
SELECT ALL - ( - col2 ) + - - col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT DISTINCT + 40 * COUNT( * ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + 40 * COUNT ( * ) FROM tab0
----
120

query II rowsort
SELECT - 2, 21 AS col0 FROM tab0 WHERE col0 * + - col0 <= col0 * col2
----
-2
21
-2
21
-2
21

onlyif mysql # DIV for integer division: 
query II rowsort label-7546
SELECT ALL - col1 DIV - col1 AS col0, - 50 + - + col1 AS col2 FROM tab1
----
1
-55
1
-64
1
-97

skipif mysql # not compatible
query II rowsort label-7546
SELECT ALL - col1 / - col1 AS col0, - 50 + - + col1 AS col2 FROM tab1
----
1
-55
1
-64
1
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab2
----
37
37
37

onlyif mysql # DIV for integer division: 
query II rowsort label-7548
SELECT + 48 + + 45 AS col0, + 65 + + + col0 + - - col0 DIV + col2 FROM tab1 AS cor0
----
93
116
93
151
93
157

skipif mysql # not compatible
query II rowsort label-7548
SELECT + 48 + + 45 AS col0, + 65 + + + col0 + - - col0 / + col2 FROM tab1 AS cor0
----
93
116
93
151
93
157

query I rowsort
SELECT DISTINCT + + 11 * + col2 + - 10 FROM tab1 AS cor0
----
1046
639
738

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT - 10 + - - COUNT( * ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7550
SELECT - 10 + - - COUNT ( * ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ALL + MAX( - col1 ) + 94 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL + MAX ( - col1 ) + 94 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT ALL - 40 + - col2 FROM tab2 WHERE - 45 IS NOT NULL
----
-63
-80
-98

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + SUM( col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7554
SELECT + SUM ( col2 ) AS col1 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT SUM( ALL - - col2 ) - - COUNT( * ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-7555
SELECT SUM ( ALL - - col2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 cor0 WHERE NOT - col2 / - 72 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL + COUNT( * ) + + - 4 * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * - col2 - 69 <> + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + COUNT ( * ) + + - 4 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * - col2 - 69 <> + - col0
----
0

query II rowsort
SELECT ALL + col2 AS col2, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT + 67 * col0 AS col2 FROM tab2
----
3082
4288
5025

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 91 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT + ( + - COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT - 37 * - - COUNT( * ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - 37 * - - COUNT ( * ) FROM tab0
----
-111

query I rowsort
SELECT 12 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 29 + ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT COUNT( * ) * - - 47 * - 13 AS col2 FROM tab1
----
-1833

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT COUNT ( * ) * - - 47 * - 13 AS col2 FROM tab1
----
-1833

query I rowsort
SELECT ALL col0 * + 56 FROM tab0
----
4872
5432
840

onlyif mysql # DIV for integer division: 
query II rowsort label-7568
SELECT DISTINCT col1 DIV - ( col1 ), col0 AS col0 FROM tab2
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
query II rowsort label-7568
SELECT DISTINCT col1 / - ( col1 ), col0 AS col0 FROM tab2
----
-1
46
-1
64
-1
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - 7 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + col2 * + + ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 36 AS col2, - 56 AS col2 FROM tab0 AS cor0
----
36
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT DISTINCT 70 + COUNT( * ) DIV + + 60 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT 70 + COUNT ( * ) / + + 60 FROM tab2 cor0
----
70

query II rowsort
SELECT ALL col1 AS col2, + col1 * - - col0 + + col0 AS col0 FROM tab2 AS cor0
----
51
2392
67
5100
77
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7575
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 4 + col0 + col2 * - ( + 50 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-2861
-3305
-4745

query I rowsort
SELECT + 51 + - ( ( + col1 ) ) FROM tab0 cor0
----
-30
30
50

query I rowsort
SELECT ALL + + 42 + - 16 AS col2 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT - + col1 + + 6 AS col0 FROM tab0 AS cor0
----
-15
-75
5

query II rowsort
SELECT DISTINCT + col2 + + 56 - - col0 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
118
-47
153
-10
252
-99

query I rowsort
SELECT - ( + 67 ) + + 21 + - + col0 FROM tab1 AS cor0
----
-131
-137
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL 61 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL 61 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT + 71 + + - 32 - COUNT( * ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 71 + + - 32 - COUNT ( * ) AS col0 FROM tab0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7584
SELECT ALL 20 * + + COUNT( * ) AS col2, + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7584
SELECT ALL 20 * + + COUNT ( * ) AS col2, + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab1
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT - COUNT( * ) - 47 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT - COUNT ( * ) - 47 FROM tab0
----
-50

query I rowsort
SELECT DISTINCT + col1 + 78 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + - col2 * - col0 col1 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7588
SELECT - + COUNT( * ) DIV 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT - + COUNT ( * ) / 89 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT + AVG ( ALL CAST( NULL AS SIGNED ) ) * - 56 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT + AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 56 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7590
SELECT COUNT( ALL + CAST( col0 AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7590
SELECT COUNT ( ALL + CAST ( col0 AS REAL ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL col0 * col0 - - col2, + 10 * + + col2 * + col2 AS col0 FROM tab0
----
272
22090
7579
1000
9508
98010

query II rowsort
SELECT col1 - - col1 AS col0, col1 * - col1 * col1 - - + col1 FROM tab2
----
102
-132600
134
-300696
154
-456456

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT DISTINCT col1 * - - ( - + 74 ) - + col1 DIV + col1 AS col2 FROM tab1
----
-1037
-3479
-371

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT col1 * - - ( - + 74 ) - + col1 / + col1 AS col2 FROM tab1
----
-1037
-3479
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL SUM( + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL SUM ( + col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT + - ( + 75 ) FROM tab0 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7596
SELECT + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 44 AS col0 FROM tab2 cor0
----
-44
-44
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 44 <= 60 * 67 - - + 29 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT - CAST( + - 9 AS SIGNED ) FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-7599
SELECT - CAST ( + - 9 AS INTEGER ) FROM tab1 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7600
SELECT + COUNT( * ) DIV ( - + 4 ) * 0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT + COUNT ( * ) / ( - + 4 ) * 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * 13 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT - 52 * - col2 * + col1 FROM tab0 AS cor0
----
10920
197964
5148

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT ALL + + 7 DIV + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + + 7 / + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - - COUNT( * ) * + + 45 AS col1 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7604
SELECT - - COUNT ( * ) * + + 45 AS col1 FROM tab1 AS cor0
----
135

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 59 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT CAST( + + col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7606
SELECT CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + 77 * + 70 AS col0 FROM tab2 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, 27 * + + col1 AS col2 FROM tab2
----
-51
1377
-67
1809
-77
2079

query I rowsort
SELECT + 49 * + col0 AS col1 FROM tab1
----
2499
4165
4459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT - 66 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7610
SELECT - 66 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT ALL 44 AS col2, - COUNT( * ) col2 FROM tab0 AS cor0
----
44
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7611
SELECT ALL 44 AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0
----
44
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7612
SELECT - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT - - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN - col2 - - - 58 AND - 67 * - col0 + + ( - - ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 / + + col2 * + + col0 * + col0 * - + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col2, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 98 AS col2 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT 84 + 14 AS col0 FROM tab0
----
98
98
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 0 - - 61 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT COUNT( * ) * 71 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-7620
SELECT COUNT ( * ) * 71 FROM tab2
----
213

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + 92 * + 39 NOT IN ( 83 + ( 89 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 64 AS col0 FROM tab0 WHERE + 32 IS NOT NULL
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT col2 DIV - col1 + col0 * + col0 col1 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7623
SELECT col2 / - col1 + col0 * + col0 col1 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL COUNT( * ) * - SUM( ALL 31 ) col2 FROM tab1
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7624
SELECT ALL COUNT ( * ) * - SUM ( ALL 31 ) col2 FROM tab1
----
-279

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * + col2 + 71 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + ( MIN( 55 ) ) * + 84 AS col2 FROM tab0
----
4620

skipif mysql # not compatible
query I rowsort label-7626
SELECT + ( MIN ( 55 ) ) * + 84 AS col2 FROM tab0
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL <> NULL
----
0

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT 60 < col2 * 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - 71 * COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 < - col1 * - col0 + - 74 * 68
----
-213

skipif mysql # not compatible
query I rowsort label-7629
SELECT - 71 * COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 < - col1 * - col0 + - 74 * 68
----
-213

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 2 + + col1 ) BETWEEN 91 AND 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * col1 col1 FROM tab2
----
612
804
924

query I rowsort
SELECT ALL - 56 * 31 FROM tab1
----
-1736
-1736
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT COUNT( * ) * AVG ( - 49 * - 16 ) AS col2 FROM tab2 WHERE NOT 24 * ( + 93 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT COUNT ( * ) * AVG ( - 49 * - 16 ) AS col2 FROM tab2 WHERE NOT 24 * ( + 93 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 25 + - col2 BETWEEN 5 - + col2 AND ( ( + 40 ) )
----

query I rowsort
SELECT ALL + 27 * col2 AS col0 FROM tab0
----
1269
2673
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7636
SELECT DISTINCT * FROM tab0 WHERE NOT 48 * - CAST( 0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7636
SELECT DISTINCT * FROM tab0 WHERE NOT 48 * - CAST ( 0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 10 ) col2 FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7638
SELECT ALL + CAST( COUNT( ALL + 72 ) AS SIGNED ) DIV + COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL + CAST ( COUNT ( ALL + 72 ) AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7639
SELECT col2 - 16 DIV 9 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7639
SELECT col2 - 16 / 9 FROM tab2
----
22
39
57

query I rowsort
SELECT col1 - 73 FROM tab0
----
-52
-72
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT 42 DIV + 3 AS col0 FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7641
SELECT 42 / + 3 AS col0 FROM tab2
----
14
14
14

query III rowsort
SELECT * FROM tab0 WHERE NOT 44 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * col2 - 55 AS col0 FROM tab1
----
-3536
-4679
-9271

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL MIN( 49 ) col1 FROM tab0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7644
SELECT ALL MIN ( 49 ) col1 FROM tab0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * + 3 col0 FROM tab0
----
188
396
40

query I rowsort
SELECT - col1 + + col1 * + ( col2 * col1 ) FROM tab0 AS cor0
----
308286
4389
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT + SUM( - col1 ) * COUNT( * ) + + COUNT( * ) FROM tab1 cor0 WHERE NULL = ( + col1 ) * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT + SUM ( - col1 ) * COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0 WHERE NULL = ( + col1 ) * - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL - COUNT( * ) * + SUM( ( col1 ) ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - COUNT ( * ) * + SUM ( ( col1 ) ) FROM tab1 AS cor0
----
-198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - 93 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT COUNT( * ) + MAX( + 59 ) col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7650
SELECT DISTINCT COUNT ( * ) + MAX ( + 59 ) col1 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT COUNT( * ) * MAX( col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT COUNT ( * ) * MAX ( col0 ) FROM tab1
----
273

query I rowsort
SELECT 81 * 60 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to b64f1dcc75010ba1ed545209fa137d2a

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 72 - ( 93 ) ) < ( - 3 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 >= NULL
----

query I rowsort
SELECT DISTINCT - + 31 AS col2 FROM tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT + col2 + col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7656
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + col2 + col2 IS NULL
----
3

query I rowsort
SELECT ALL - 59 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-59
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7658
SELECT ALL - MAX( ( 53 ) ) DIV COUNT( * ) AS col1 FROM tab0 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - MAX ( ( 53 ) ) / COUNT ( * ) AS col1 FROM tab0 cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * 63 col0 FROM tab1 AS cor0
----
1323
1323
1323

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + ( - col0 ) * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT - - 97 DIV col2 col2 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7661
SELECT - - 97 / col2 col2 FROM tab0 AS cor0
----
0
2
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT + MAX( + 0 ) * SUM( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT + MAX ( + 0 ) * SUM ( + col0 ) FROM tab2
----
0

query I rowsort
SELECT - col0 * + col0 * + col0 AS col2 FROM tab2
----
-262144
-421875
-97336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE col0 <> col1
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MAX( col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MAX ( col1 ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 WHERE 29 + col0 >= ( ( - col2 ) * 98 )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 IN ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 * + col1 + - col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + SUM( ALL - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7672
SELECT + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 WHERE - + 31 BETWEEN ( col2 ) AND 65 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT 13 * col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT 13 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab2 WHERE ( + 90 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7676
SELECT DISTINCT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + 91 * - + ( + + 98 ) AS col0 FROM tab0
----
-8918
-8918
-8918

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 = col1 * - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT + COUNT( + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + COUNT ( + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7681
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7681
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 64 * 24 + - 52 + + col2 - - col1 AS col2 FROM tab2 AS cor0
----
-1463
-1471
-1514

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) NOT BETWEEN + ( col0 ) + + col2 AND ( 60 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 41 col1 FROM tab0 AS cor0
----
140
51
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * 6 col0 FROM tab1
----
439
499
627

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT - COUNT( * ) + SUM( 45 ) * + MAX( col2 ) FROM tab2
----
7827

skipif mysql # not compatible
query I rowsort label-7688
SELECT - COUNT ( * ) + SUM ( 45 ) * + MAX ( col2 ) FROM tab2
----
7827

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE ( - col0 ) IS NULL
----
0

query I rowsort
SELECT ( - + 79 ) * + 3 + col0 * ( 46 ) AS col2 FROM tab0
----
3765
4225
453

query I rowsort
SELECT ALL - col1 * + + 4 * - + 79 - + 4 FROM tab0
----
25592
312
6632

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7692
SELECT * FROM tab2 WHERE CAST( - 36 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7692
SELECT * FROM tab2 WHERE CAST ( - 36 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col2 * + col2 + - col2 + - col1 + 99 * - 9 FROM tab2
----
-436
2348
592

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT ALL 73 DIV - - ( + col0 ) - + - col1 FROM tab0
----
1
21
85

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL 73 / - - ( + col0 ) - + - col1 FROM tab0
----
1
21
85

query III rowsort
SELECT * FROM tab1 WHERE + + col0 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL + 15 * - COUNT( * ) AS col0 FROM tab2 WHERE NOT - 24 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + 15 * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - 24 <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7697
SELECT ALL - 8 - + col1 + 82 * + - 48 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7697
SELECT ALL - 8 - + col1 + 82 * + - 48 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - + 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT CAST( col0 AS SIGNED ) - col2 AS col2 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT CAST ( col0 AS INTEGER ) - col2 AS col2 FROM tab1
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * + col2 * - 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT - + col0 * + col1 + - + 13 FROM tab0 cor0
----
-110
-1228
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL + + SUM( - 30 ) + + 18 AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + + SUM ( - 30 ) + + 18 AS col2 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 * + 22 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT COUNT( * ) * + 14 AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT COUNT ( * ) * + 14 AS col2 FROM tab2
----
42

query I rowsort
SELECT col1 + col2 FROM tab2 WHERE NOT 91 / + + col2 >= col2 * ( col0 ) OR NOT ( NULL ) IS NULL
----
117
125
74

query I rowsort
SELECT + 95 * ( + + 36 ) * 10 AS col1 FROM tab2 cor0
----
34200
34200
34200

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col1 AND + col0
----

query I rowsort
SELECT ALL + - col1 * - 4 - col0 FROM tab1 AS cor0
----
-65
5
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT ALL 17 DIV col2 + - ( + col1 ) + + - 36 + col0 * 71 AS col2 FROM tab2 AS cor0
----
3179
4431
5222

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL 17 / col2 + - ( + col1 ) + + - 36 + col0 * 71 AS col2 FROM tab2 AS cor0
----
3179
4431
5222

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT 88 * + COUNT( * ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-7712
SELECT 88 * + COUNT ( * ) FROM tab1 AS cor0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT - 92 * + - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-7713
SELECT - 92 * + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL MIN( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL MIN ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - 41
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 79 AS col2, col1 FROM tab1
----
79
14
79
47
79
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT ALL - col2 * + col0 / + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - col2 * + col0 / + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT ALL 83 * + + col0 / col2 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + + col0 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL 83 * + + col0 / col2 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( + - 98 ) * - 59 FROM tab1
----
5782

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ( - - col0 ) * - - ( + col1 ) AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT + COUNT( ALL + 57 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7722
SELECT + COUNT ( ALL + 57 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT 48 + COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT 48 + COUNT ( * ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col0 / - 61, + col1 ) OR NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col0 / - 61, + col1 ) OR NOT NULL > NULL
----
0

query I rowsort
SELECT 30 + col2 FROM tab2
----
53
70
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT COUNT( * ) * - - 87 AS col2 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-7726
SELECT COUNT ( * ) * - - 87 AS col2 FROM tab2
----
261

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + + 24
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) IN ( col1 * + 25, ( 41 ) + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT DISTINCT + + ( CAST( 49 AS SIGNED ) ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT + + ( CAST ( 49 AS INTEGER ) ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT ALL 88 + col1 FROM tab0 AS cor0
----
109
169
89

query I rowsort
SELECT DISTINCT + 16 + 82 FROM tab0 AS cor0
----
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 46 NOT IN ( + - 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + - 66 AS col1 FROM tab0
----
-51
21
31

query I rowsort
SELECT ALL col0 + col1 + col1 FROM tab2
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT COUNT( * ) + - 82 - + - 71 - - COUNT( * ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT COUNT ( * ) + - 82 - + - 71 - - COUNT ( * ) AS col1 FROM tab1
----
-5

query II rowsort
SELECT ALL + 9, col2 FROM tab0
----
9
10
9
47
9
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT col0 + - col0 * - col2 / 19 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT col0 + - col0 * - col2 / 19 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) ) - + MAX( + 32 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL MAX ( ALL CAST ( NULL AS INTEGER ) ) - + MAX ( + 32 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col0 + + - 89 AS col2 FROM tab0
----
-2
-74
8

query I rowsort
SELECT - 79 AS col2 FROM tab1 WHERE NULL > - - col0 + - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT 94 + + COUNT( * ) * - - 86 FROM tab2
----
352

skipif mysql # not compatible
query I rowsort label-7742
SELECT 94 + + COUNT ( * ) * - - 86 FROM tab2
----
352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7743
SELECT CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - + 9 * col2 AS col0 FROM tab1 AS cor0
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 * 67 * + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7745
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 * 67 * + col2 IS NULL
----
3

query I rowsort
SELECT ALL + 6 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
6
6
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 63 * - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + col0 / 12 )
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + 20 * + SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-2420

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + 20 * + SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-2420

query I rowsort
SELECT DISTINCT col1 / 74 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7755
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7755
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 83 * + col1 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT - COUNT( * ) * + 23 AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7757
SELECT - COUNT ( * ) * + 23 AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT + 13 * + col0 * - + col0 AS col0 FROM tab0
----
-122317
-2925
-98397

query I rowsort
SELECT 44 * - 21 FROM tab2
----
-924
-924
-924

query I rowsort
SELECT DISTINCT - - 40 FROM tab2 WHERE NOT - + col0 IS NULL
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT ALL col1 DIV + + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL col1 / + + col2 FROM tab2
----
1
1
2

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + 46 * 72 * - - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7763
SELECT ALL COUNT( * ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL COUNT ( * ) / COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT 0 + 34 FROM tab0
----
34

query I rowsort
SELECT - 49 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-49
-49
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE CAST( - 55 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( - 55 AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT - col0 DIV + 40 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7767
SELECT - col0 / + 40 FROM tab0 AS cor0
----
-2
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - COUNT( ALL - - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7768
SELECT - COUNT ( ALL - - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT ALL + 33 DIV + + 65 * col1 + + col2 - 25 FROM tab0 AS cor0
----
-15
22
74

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL + 33 / + + 65 * col1 + + col2 - 25 FROM tab0 AS cor0
----
-15
22
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7770
SELECT + + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT - 80 DIV - + 63 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT - 80 / - + 63 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT ALL - SUM( - 86 ) DIV 4 AS col1 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL - SUM ( - 86 ) / 4 AS col1 FROM tab0
----
64

query I rowsort
SELECT col2 + + col2 * - col1 - - + 14 FROM tab1 AS cor0
----
-1234
-222
-3114

query II rowsort
SELECT DISTINCT 44 AS col0, + col1 AS col0 FROM tab1 AS cor0
----
44
14
44
47
44
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7775
SELECT ALL col2 AS col1, - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7775
SELECT ALL col2 AS col1, - CAST ( NULL AS REAL ) FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + - col0 col0 FROM tab2 AS cor0
----
1127
3016
3811

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * col0 > NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7779
SELECT - + col1 DIV - col0 + col1 AS col2 FROM tab0 AS cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-7779
SELECT - + col1 / - col0 + col1 AS col2 FROM tab0 AS cor0
----
1
21
86

query I rowsort
SELECT - 34 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7781
SELECT COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT DISTINCT + COUNT( ALL + 87 ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + COUNT ( ALL + 87 ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7783
SELECT ALL col0 * + col0 + 41 - + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL col0 * + col0 + 41 - + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ( - COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7785
SELECT ( - COUNT ( * ) ) col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN col2 AND 64
----
97
1
99

query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - SUM( DISTINCT + - 67 ) AS col0 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7789
SELECT - SUM ( DISTINCT + - 67 ) AS col0 FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + - COUNT( * ) * 4 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7790
SELECT + - COUNT ( * ) * 4 FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT - + CAST( + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7791
SELECT - + CAST ( + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT - - 89 DIV - col0 + - col2 * - - 22 AS col2 FROM tab2 cor0
----
-1277
-507
-881

skipif mysql # not compatible
query I rowsort label-7792
SELECT - - 89 / - col0 + - col2 * - - 22 AS col2 FROM tab2 cor0
----
-1277
-507
-881

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab0 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7794
SELECT ALL * FROM tab2 WHERE + + col0 * col2 * + 49 + + CAST( NULL AS SIGNED ) * + 74 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7794
SELECT ALL * FROM tab2 WHERE + + col0 * col2 * + 49 + + CAST ( NULL AS INTEGER ) * + 74 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ( - COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT ( - COUNT ( * ) ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL + COUNT( * ) * + ( - - 38 ) AS col2 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + COUNT ( * ) * + ( - - 38 ) AS col2 FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT + MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT + MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col0 + - - col0 * col0 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT DISTINCT - 83 * - + col0 AS col1 FROM tab1 AS cor0
----
4233
7055
7553

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT + ( col2 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + MAX( DISTINCT + + 69 ) FROM tab0 cor0
----
69

skipif mysql # not compatible
query I rowsort label-7802
SELECT + MAX ( DISTINCT + + 69 ) FROM tab0 cor0
----
69

query II rowsort
SELECT + - col0, ( + + 78 ) AS col0 FROM tab1 AS cor0
----
-51
78
-85
78
-91
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 - + ( col2 ) NOT IN ( 14, + col1 + - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 11
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * + 21 FROM tab1
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT + ( COUNT( * ) ) + 84 AS col1 FROM tab2 WHERE + + col2 NOT BETWEEN - col1 AND - col2 + - col2
----
87

skipif mysql # not compatible
query I rowsort label-7807
SELECT + ( COUNT ( * ) ) + 84 AS col1 FROM tab2 WHERE + + col2 NOT BETWEEN - col1 AND - col2 + - col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT ALL 66 DIV - col1 + - 26 + - 22 FROM tab2
----
-48
-48
-49

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL 66 / - col1 + - 26 + - 22 FROM tab2
----
-48
-48
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT - COUNT( * ) * + 27 AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-7809
SELECT - COUNT ( * ) * + 27 AS col1 FROM tab1
----
-81

query I rowsort
SELECT 90 * col0 / + + col2 AS col1 FROM tab2 AS cor0 WHERE NULL < ( + col0 )
----

query I rowsort
SELECT ALL - - 5 * 98 - - col1 + col2 / col1 * - col1 + col0 FROM tab0 AS cor0 WHERE NOT + 53 - - - col1 * + - col1 >= 63 * + col0 AND NOT col2 NOT BETWEEN + + col2 AND - col1
----

query I rowsort
SELECT 99 + + col2 AS col2 FROM tab0
----
109
146
198

query I rowsort
SELECT col1 + + 6 FROM tab1
----
11
20
53

query I rowsort
SELECT DISTINCT col0 + - - col2 + + col1 AS col0 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT + - 81 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query I rowsort
SELECT ( + col2 ) * + col1 AS col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT col2 FROM tab2 WHERE ( NOT ( + - col1 > NULL ) )
----

query I rowsort
SELECT 89 * + 52 * + 28 FROM tab1 AS cor0
----
129584
129584
129584

query I rowsort
SELECT ( + col1 ) * col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7820
SELECT - SUM( - ( + 72 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + 43 IN ( + + col1 * - col2, col1, - CAST( - - 99 AS DECIMAL ) + - 93, - + col0 )
----
216

skipif mysql # not compatible
query I rowsort label-7820
SELECT - SUM ( - ( + 72 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + 43 IN ( + + col1 * - col2, col1, - CAST ( - - 99 AS REAL ) + - 93, - + col0 )
----
216

query I rowsort
SELECT DISTINCT + + col0 * + 66 * - col0 + - col1 + - col0 + - - 93 FROM tab0 cor0
----
-14853
-499569
-620999

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT ALL + 47 DIV - 41 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + 47 / - 41 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col2 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT CAST( - 73 AS SIGNED ) FROM tab1
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-7824
SELECT CAST ( - 73 AS INTEGER ) FROM tab1
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 7 * - + 5 / col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + + 7 ) AS col1 FROM tab2
----
7

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 50 + + col2 * ( 62 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 79 AS col0 FROM tab2 WHERE 63 IS NOT NULL
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - SUM( col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7829
SELECT - SUM ( col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT ALL COUNT( * ) col0, + 28 AS col1 FROM tab1
----
3
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7830
SELECT ALL COUNT ( * ) col0, + 28 AS col1 FROM tab1
----
3
28

query I rowsort
SELECT 61 FROM tab1 WHERE NOT NULL IS NOT NULL
----
61
61
61

query II rowsort
SELECT ALL col2 AS col0, + col1 + + + col2 AS col0 FROM tab1 AS cor0
----
59
64
68
115
96
110

query II rowsort
SELECT 14 * 6 AS col2, col1 FROM tab2
----
84
51
84
67
84
77

query I rowsort
SELECT ALL 39 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT + SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT + SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT 53 * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < 5
----
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT 53 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < 5
----
0

query I rowsort
SELECT DISTINCT - col2 + - 3 FROM tab0 cor0
----
-102
-13
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 31 / + col0 NOT BETWEEN col2 + + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 + + 39 + - col0 * + 90 FROM tab0 AS cor0
----
-1358
-7801
-8790

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT ALL CAST( NULL AS SIGNED ) * 9 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL CAST ( NULL AS INTEGER ) * 9 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 * + - ( 80 ) FROM tab0
----
-3200

query I rowsort
SELECT ALL + 87 * 74 + + + col0 FROM tab0
----
6453
6525
6535

query II rowsort
SELECT DISTINCT + col2, ( - col0 ) FROM tab2
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT ALL col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, col0 * col2 - col1 + + col2 FROM tab2 AS cor0
----
51
1030
67
4341
77
2523

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL + - MIN( - - 26 ) + - 14 * + 91 + - COUNT( * ) FROM tab2 AS cor0
----
-1303

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL + - MIN ( - - 26 ) + - 14 * + 91 + - COUNT ( * ) FROM tab2 AS cor0
----
-1303

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT DISTINCT + col2 + + 11 DIV + 13 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT + col2 + + 11 / + 13 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT DISTINCT - - ( + + CAST( - col2 AS SIGNED ) ) - + 44 + - 34 FROM tab2 AS cor0
----
-101
-118
-136

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - - ( + + CAST ( - col2 AS INTEGER ) ) - + 44 + - 34 FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT DISTINCT col0 - col0 * - + 22 AS col2 FROM tab1
----
1173
1955
2093

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL ) AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT + + 45 - + COUNT( * ) + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-7855
SELECT + + 45 - + COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
45

query I rowsort
SELECT 20 - - 9 + + 79 FROM tab1
----
108
108
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) * - 79 FROM tab1
----
4661
5372
7584

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) * - 79 FROM tab1
----
4661
5372
7584

query I rowsort
SELECT - 41 * - + 54 + - col2 AS col0 FROM tab1
----
2118
2146
2155

query I rowsort
SELECT ALL 24 - + + 1 AS col0 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT + col1 + + 38 FROM tab2 AS cor0
----
105
115
89

query I rowsort
SELECT - + ( col2 ) * + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - COUNT( * ) * - MIN( DISTINCT col1 ) * - MIN( DISTINCT 76 ) + 52 + + + 3 AS col0 FROM tab0 cor0
----
-173

skipif mysql # not compatible
query I rowsort label-7862
SELECT - COUNT ( * ) * - MIN ( DISTINCT col1 ) * - MIN ( DISTINCT 76 ) + 52 + + + 3 AS col0 FROM tab0 cor0
----
-173

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 + 19 >= col0
----
51
85
91

query I rowsort
SELECT ALL col1 * - + 55 * - col0 AS col0 FROM tab1 AS cor0
----
23375
235235
39270

query I rowsort
SELECT col0 * - col1 * + 56 AS col0 FROM tab2 AS cor0
----
-131376
-275968
-281400

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT + ( + COUNT( * ) ) * - COUNT( * ) col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7866
SELECT DISTINCT + ( + COUNT ( * ) ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT - col0 DIV - 76 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7867
SELECT - col0 / - 76 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col2 * + col1 + - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT SUM( + col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT SUM ( + col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) IN ( - 75 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col1 FROM tab1 WHERE NOT NULL NOT IN ( - + 26 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7872
SELECT + 92 DIV + + COUNT( ALL - 13 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 92 / + + COUNT ( ALL - 13 ) FROM tab2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT ALL - 71 DIV - col0 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL - 71 / - col0 AS col0 FROM tab0
----
0
0
4

query I rowsort
SELECT + 47 FROM tab2 WHERE NOT + - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + SUM( ALL - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + SUM ( ALL - col0 ) FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 IS NULL OR NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT - COUNT( * ) * 98 AS col1 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT - COUNT ( * ) * 98 AS col1 FROM tab2
----
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7878
SELECT COUNT( * ) * + COUNT( * ) * - + 10 col1, CAST( - + 74 AS SIGNED ) AS col1 FROM tab2
----
-90
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7878
SELECT COUNT ( * ) * + COUNT ( * ) * - + 10 col1, CAST ( - + 74 AS INTEGER ) AS col1 FROM tab2
----
-90
-74

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 + col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 55 AS col2 FROM tab1 AS cor0
----
-55
-55
-55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 69 BETWEEN NULL AND + - col1 + 66
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT AVG ( DISTINCT + col1 ) * + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT AVG ( DISTINCT + col1 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT col2 * + - col0 + + col0 AS col2 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT + col1 * CAST( NULL AS SIGNED ) * - - 37 + col0 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT + col1 * CAST ( NULL AS INTEGER ) * - - 37 + col0 * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * col1 / - 93 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + MIN( ALL - 37 ) + - COUNT( * ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-7887
SELECT + MIN ( ALL - 37 ) + - COUNT ( * ) FROM tab0
----
-40

query I rowsort
SELECT 88 + - 30 + col0 AS col0 FROM tab2 AS cor0
----
104
122
133

query I rowsort
SELECT - - 29 + 40 AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - 40 * + col0 + - 74 FROM tab2 AS cor0
----
-1914
-2634
-3074

query I rowsort
SELECT ALL + col2 * - 94 + 78 - - col2 * 23 + + - 16 * 99 FROM tab1 AS cor0
----
-5695
-6334
-8322

query II rowsort
SELECT DISTINCT 51 + + col0 * - + 37, + col0 FROM tab1
----
-1836
51
-3094
85
-3316
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT 28 - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT 28 - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT ( + ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT ( + ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT ALL - COUNT( * ) DIV + 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL - COUNT ( * ) / + 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT + col2 * CAST( - col0 AS SIGNED ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-7897
SELECT + col2 * CAST ( - col0 AS INTEGER ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + col0 * col0 + 46 AS col2 FROM tab1 AS cor0
----
2647
7271
8327

query I rowsort
SELECT ALL - - col1 * - - col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT 5 * + 88 FROM tab1 AS cor0
----
440

query II rowsort
SELECT ALL - col2, 32 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT - - col1 * + 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-7902
SELECT DISTINCT - - col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT - COUNT( * ) * - 65 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7903
SELECT - COUNT ( * ) * - 65 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT MAX( ( + col2 ) ) * - 56 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT MAX ( ( + col2 ) ) * - 56 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - MAX( ALL - 25 ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - MAX ( ALL - 25 ) AS col1 FROM tab1
----
25

query I rowsort
SELECT DISTINCT - col0 * + col0 * - - col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL ( - MAX( DISTINCT - + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL ( - MAX ( DISTINCT - + col0 ) ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 * + - 98 FROM tab2 AS cor0
----
103684
250880
426300

query I rowsort
SELECT ALL - + col0 * + 97 * - col0 - - col0 FROM tab2 cor0
----
205298
397376
545700

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT + 97 * - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + 97 * - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT - COUNT( ALL - 68 ) AS col0 FROM tab0 cor0 WHERE NOT + 57 * + CAST( NULL AS SIGNED ) / col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT - COUNT ( ALL - 68 ) AS col0 FROM tab0 cor0 WHERE NOT + 57 * + CAST ( NULL AS INTEGER ) / col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT - - SUM( col0 ), + 0 AS col2 FROM tab2 AS cor0
----
185
0

skipif mysql # not compatible
query II rowsort label-7914
SELECT - - SUM ( col0 ), + 0 AS col2 FROM tab2 AS cor0
----
185
0

query I rowsort
SELECT - col2 * + 85 AS col0 FROM tab0 AS cor0
----
-3995
-8415
-850

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT ALL + col2 DIV + col2 + ( - col2 ) FROM tab1 cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + col2 / + col2 + ( - col2 ) FROM tab1 cor0
----
-58
-67
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT DISTINCT MIN( - + 12 ) + - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT MIN ( - + 12 ) + - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - ( + + col2 ) + + col0 AS col0 FROM tab2 cor0
----
17
23
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 82 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - 10 FROM tab0 AS cor0
----
-109
-20
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + COUNT( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7922
SELECT + COUNT ( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + + 84 - col1 FROM tab0 AS cor0
----
3
63
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + 65 ) = + 95
----

query I rowsort
SELECT col2 + - - col0 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, + col1 col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + + 97 * ( ( - - col0 ) ) = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + COUNT( * ) - + - ( + 2 ) AS col1 FROM tab0 WHERE - - col0 + + 28 NOT BETWEEN NULL AND col0 * - col1 + + + col1
----
5

skipif mysql # not compatible
query I rowsort label-7929
SELECT + COUNT ( * ) - + - ( + 2 ) AS col1 FROM tab0 WHERE - - col0 + + 28 NOT BETWEEN NULL AND col0 * - col1 + + + col1
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT - + SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - + SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - 80 AS col0 FROM tab1 cor0
----
-80
-80
-80

query I rowsort
SELECT - ( - + col2 ) - + col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT col1 - - - 71 + + col1 + + - col0 * - - 93 AS col1 FROM tab0 AS cor0
----
-1304
-8120
-9090

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7935
SELECT DISTINCT + ( CAST( NULL AS DECIMAL ) ), - 82 AS col2 FROM tab0 AS cor0
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-7935
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ), - 82 AS col2 FROM tab0 AS cor0
----
NULL
-82

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 13 - + - 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT + - COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7939
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 3 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 57 * + 59 AND + + 2 * - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 63 + 23 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ( SUM( ALL + col1 ) ) * - + 20 FROM tab2 AS cor0
----
-3900

skipif mysql # not compatible
query I rowsort label-7942
SELECT ( SUM ( ALL + col1 ) ) * - + 20 FROM tab2 AS cor0
----
-3900

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT ALL col1 DIV - - 7 AS col1 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL col1 / - - 7 AS col1 FROM tab2
----
11
7
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7944
SELECT ALL + + col0 - - col1 FROM tab0 AS cor0 WHERE 90 + - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL + + col0 - - col1 FROM tab0 AS cor0 WHERE 90 + - CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL - SUM( ALL 83 ) AS col0 FROM tab1 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - SUM ( ALL 83 ) AS col0 FROM tab1 cor0
----
-249

query I rowsort
SELECT + - 61 * col1 * + col1 FROM tab0 AS cor0
----
-26901
-400221
-61

query I rowsort
SELECT DISTINCT - col2 + + + 65 AS col0 FROM tab0
----
-34
18
55

query I rowsort
SELECT + 59 + - col1 FROM tab0
----
-22
38
58

query I rowsort
SELECT + col2 * - + col2 * + + col0 + + 56 * - + 42 + 59 * - col0 AS col2 FROM tab1 AS cor0
----
-303252
-428505
-475377

query II rowsort
SELECT - + ( + col0 ), col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * 18 col0 FROM tab2 AS cor0
----
558
558
558

query I rowsort
SELECT DISTINCT - 43 + col1 AS col1 FROM tab2
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT DISTINCT MAX( ALL + + col1 ) + + 11 AS col0 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT MAX ( ALL + + col1 ) + + 11 AS col0 FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT 18 - - 26 + + + col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT 18 - - 26 + + + col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - col0 * + 0 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT - 43 - + + ( + col2 ) * col0 FROM tab0
----
-748
-913
-9646

query I rowsort
SELECT ALL - ( 17 ) - col2 - + 41 AS col2 FROM tab1
----
-117
-126
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT - col1 DIV - + col2 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7960
SELECT DISTINCT - col1 / - + col2 col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7961
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7961
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col1 AS col1, col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT 27 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL MIN( + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL MIN ( + col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT col0 * 14 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1190
1274
714

query II rowsort
SELECT DISTINCT col0 AS col1, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2 * + 64
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2 * + 64
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT 70 AS col1, + col2 * col2 FROM tab2 AS cor0
----
70
1600
70
3364
70
529

onlyif mysql # aggregate syntax: 
query II rowsort label-7971
SELECT DISTINCT - 62 AS col0, COUNT( * ) * + - MIN( col1 ) FROM tab1 cor0
----
-62
-15

skipif mysql # not compatible
query II rowsort label-7971
SELECT DISTINCT - 62 AS col0, COUNT ( * ) * + - MIN ( col1 ) FROM tab1 cor0
----
-62
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT + col2 DIV - 10 AS col1 FROM tab0
----
-1
-4
-9

skipif mysql # not compatible
query I rowsort label-7972
SELECT + col2 / - 10 AS col1 FROM tab0
----
-1
-4
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 * - - col0 col2, col1 FROM tab2
----
1380
51
1920
77
2250
67

query I rowsort
SELECT ALL 48 * + + col0 AS col0 FROM tab2
----
2208
3072
3600

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < + 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT col1 DIV + - 52 + - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT col1 / + - 52 + - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + 88 * + 96 AS col2, col0 FROM tab2 AS cor0
----
8448
46
8448
64
8448
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT ALL col1 + col2 DIV + - col0 + + 10 col2 FROM tab2 AS cor0
----
61
77
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT ALL col1 + col2 / + - col0 + + 10 col2 FROM tab2 AS cor0
----
61
77
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( + 36 ) * + col2 + col2 + + + col2 col0, 86 + - col1 * - 99 AS col0 FROM tab0 AS cor0
----
-1598
8105
-3366
185
-340
2165

query I rowsort
SELECT - 45 * - - col2 FROM tab0 AS cor0 WHERE col0 >= - 63 - + - col0
----
-2115
-4455
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL + 4 * + COUNT( * ) * + - MAX( ALL + 64 ) col2 FROM tab2
----
-768

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7981
SELECT ALL + 4 * + COUNT ( * ) * + - MAX ( ALL + 64 ) col2 FROM tab2
----
-768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT DISTINCT - + 19 AS col0 FROM tab1 AS cor0 WHERE NOT col0 / - col0 + + 48 + + CAST( - ( - col2 ) AS SIGNED ) * col1 * + col1 / - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - + 19 AS col0 FROM tab1 AS cor0 WHERE NOT col0 / - col0 + + 48 + + CAST ( - ( - col2 ) AS INTEGER ) * col1 * + col1 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT - - SUM( DISTINCT + 12 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - - SUM ( DISTINCT + 12 ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT - + 47 AS col1 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT ALL + 81 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col2 + col0 AND - - col2 - + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT ALL 32 DIV col1 AS col2 FROM tab0 AS cor0 WHERE 98 <> - col0
----
0
1
32

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL 32 / col1 AS col2 FROM tab0 AS cor0 WHERE 98 <> - col0
----
0
1
32

query I rowsort
SELECT ALL - 30 + + 2 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL - - col0 - + - 68 AS col0 FROM tab0 AS cor0
----
155
165
83

query I rowsort
SELECT - 97 + - col1 + col1 + + col0 + - col1 * col1 FROM tab2 AS cor0
----
-2652
-4511
-5962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + + 47 col1, col1 * + - 89 * 78 AS col2 FROM tab1
----
106
-34710
115
-326274
143
-97188

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ( - COUNT( DISTINCT 6 ) ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7992
SELECT ( - COUNT ( DISTINCT 6 ) ) AS col1 FROM tab1
----
-1

query II rowsort
SELECT DISTINCT 21 + ( - 98 ) * - col2, - col0 AS col2 FROM tab2
----
2275
-46
3941
-64
5705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + COUNT( ALL - + 40 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + COUNT ( ALL - + 40 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT SUM( ALL - col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7996
SELECT SUM ( ALL - col0 ) col2 FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 * - + col0 - ( + - col1 ) col2 FROM tab0
----
-1980
-2230
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + - col2 col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT - - col0 * + col0 + - - ( - + col2 ) - - - col0 * + + col1 FROM tab2 AS cor0
----
-253
-872
542

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE NOT 92 IS NULL
----
-46
-64
-75

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 52 IS NOT NULL
----

query I rowsort
SELECT col2 * + 60 AS col0 FROM tab0
----
2820
5940
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 * + + col2 + + 69 col2, col0 FROM tab1 AS cor0
----
2960
85
3401
91
4773
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT - + MIN( ALL - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - + MIN ( ALL - col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 76 + + - 6 / + 44 * col0 * - 49 NOT BETWEEN + col2 - - col2 AND + - 83 * col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - + col0 * - ( - 40 ) / - + ( - - col0 ) IS NOT NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT - - CAST( - col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT - - CAST ( - col2 AS INTEGER ) > NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query II rowsort
SELECT ALL + col0, - col2 * + + ( + ( - + col2 ) ) FROM tab2
----
46
529
64
1600
75
3364

query II rowsort
SELECT - 70, col1 - - col1 AS col0 FROM tab1
----
-70
10
-70
28
-70
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT - 11 * + COUNT( * ) AS col2 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8012
SELECT - 11 * + COUNT ( * ) AS col2 FROM tab0
----
-33

query I rowsort
SELECT ( - - col0 ) + + col2 FROM tab1 WHERE ( - col0 NOT IN ( - col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > ( - 65 + + + 88 + - 26 * + 33 / - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL 40 + SUM( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL 40 + SUM ( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL 18 - + + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # aggregate syntax: 
query II rowsort label-8018
SELECT ALL + MIN( - col0 ), + 53 + - COUNT( * ) + + + COUNT( * ) col1 FROM tab2 AS cor0
----
-75
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8018
SELECT ALL + MIN ( - col0 ), + 53 + - COUNT ( * ) + + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-75
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT 4 * + - 70 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 4 * + - 70 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL - + 57 + - COUNT( * ) AS col0 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - + 57 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + MIN( col1 ) - - COUNT( * ) + + SUM( - ( + col0 ) ) AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-8021
SELECT + MIN ( col1 ) - - COUNT ( * ) + + SUM ( - ( + col0 ) ) AS col1 FROM tab1
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col1 col1 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 98 * + col0 * + col0 * - + col1 AS col2 FROM tab0
----
-15577002
-1786050
-922082

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT ALL ( - ( - - 55 ) ) col0, COUNT( * ) AS col0 FROM tab2
----
-55
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8026
SELECT ALL ( - ( - - 55 ) ) col0, COUNT ( * ) AS col0 FROM tab2
----
-55
3

query I rowsort
SELECT - 25 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT - MAX( - ( + + col2 ) ) * + - 11 FROM tab0
----
-110

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - MAX ( - ( + + col2 ) ) * + - 11 FROM tab0
----
-110

query I rowsort
SELECT ALL col1 * - 69 AS col1 FROM tab0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT - MIN( - - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8030
SELECT - MIN ( - - col1 ) FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL ( - MIN( - - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL ( - MIN ( - - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - - col2 col1, + 49 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
118
49
136
49
192
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT 86 DIV - col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT 86 / - col2 FROM tab0
----
-1
-8
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8035
SELECT ALL - - MAX( 7 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - - MAX ( 7 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 7 ) col1 FROM tab1
----
7
7
7

query I rowsort
SELECT ALL + 62 AS col2 FROM tab2 AS cor0 WHERE col0 - col2 IS NOT NULL
----
62
62
62

query I rowsort
SELECT ALL + 68 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 82
----

query I rowsort
SELECT DISTINCT + 48 + - 17 AS col1 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT col0 = NULL
----
0

query I rowsort
SELECT + col2 + - 35 + + ( col0 ) + - + 25 + - col0 AS col0 FROM tab1
----
-1
36
8

query I rowsort
SELECT + col0 + - col0 + + col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT - 23 + + + SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-8043
SELECT - 23 + + + SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col1 FROM tab1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL MAX( col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL MAX ( col0 ) FROM tab2
----
75

query I rowsort
SELECT ALL - col2 - + + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-104
-133
-69

query I rowsort
SELECT ALL + 26 AS col0 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL - 28 - - ( + COUNT( * ) ) AS col0 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - 28 - - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-25

query II rowsort
SELECT DISTINCT + + col2, col1 AS col1 FROM tab2 cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL col0 - + col0 * + - col2 FROM tab0 cor0
----
720
957
9700

query II rowsort
SELECT ALL 98 * + + ( - col1 ) * col1 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-254898
51
-439922
67
-581042
77

query I rowsort
SELECT - 69 + + - col2 AS col1 FROM tab1 AS cor0
----
-128
-137
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - - SUM( + 73 ) + - SUM( ALL - col1 ) * - 84 col0 FROM tab2 cor0
----
-16161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8053
SELECT - - SUM ( + 73 ) + - SUM ( ALL - col1 ) * - 84 col0 FROM tab2 cor0
----
-16161

query I rowsort
SELECT DISTINCT + 5 * + col0 + + col2 + - + 49 AS col1 FROM tab1 AS cor0
----
302
435
474

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col0 ) BETWEEN 27 - ( - - col1 ) AND + ( col2 ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8056
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT ALL + 48 AS col1, + col1 + + + 40 AS col1 FROM tab1 AS cor0
----
48
45
48
54
48
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT + 94 DIV MIN( ALL + col0 ) * 72 * + 9 FROM tab2
----
1296

skipif mysql # not compatible
query I rowsort label-8058
SELECT + 94 / MIN ( ALL + col0 ) * 72 * + 9 FROM tab2
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT 72 * - COUNT( * ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-8059
SELECT 72 * - COUNT ( * ) FROM tab1
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT ALL - MIN( col1 ), ( + 0 ) col1 FROM tab1
----
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8060
SELECT ALL - MIN ( col1 ), ( + 0 ) col1 FROM tab1
----
-5
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 61 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8062
SELECT DISTINCT + 22 * - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT + 22 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT + 0 * - + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT + 0 * - + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT NULL >= - col0
----

skipif mysql # not compatible
query I rowsort label-8065
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL - CAST( 70 AS SIGNED ) * - - col2 * 83 AS col2 FROM tab2
----
-133630
-232400
-336980

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL - CAST ( 70 AS INTEGER ) * - - col2 * 83 AS col2 FROM tab2
----
-133630
-232400
-336980

query I rowsort
SELECT ALL 94 * 37 AS col2 FROM tab2 AS cor0
----
3478
3478
3478

query I rowsort
SELECT DISTINCT col1 + - - 9 AS col0 FROM tab0 AS cor0
----
10
30
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT DISTINCT - + col0 DIV 65 * - col0 * + ( + col2 ) col1 FROM tab1 AS cor0
----
0
5015
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8069
SELECT DISTINCT - + col0 / 65 * - col0 * + ( + col2 ) col1 FROM tab1 AS cor0
----
0
5015
6188

query I rowsort
SELECT col2 + - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * + 79 FROM tab1 AS cor0
----
1106
3713
395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT ALL col0 * + CAST( 76 AS SIGNED ) + + 82 AS col1 FROM tab1 AS cor0
----
3958
6542
6998

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL col0 * + CAST ( 76 AS INTEGER ) + + 82 AS col1 FROM tab1 AS cor0
----
3958
6542
6998

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * ( - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL col1 + + ( col1 ) * - 91 FROM tab1 cor0
----
-1260
-4230
-450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8076
SELECT ALL * FROM tab0 WHERE NOT - + ( 31 ) NOT IN ( col1, 18, - ( col1 ) * col1, + + CAST( + - col1 AS SIGNED ), + col1 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-8076
SELECT ALL * FROM tab0 WHERE NOT - + ( 31 ) NOT IN ( col1, 18, - ( col1 ) * col1, + + CAST ( + - col1 AS INTEGER ), + col1 * + col2 )
----

query I rowsort
SELECT - 73 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * 28 AS col0 FROM tab0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL - MAX( ( - 28 ) ) AS col2 FROM tab2 WHERE NOT - col0 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - MAX ( ( - 28 ) ) AS col2 FROM tab2 WHERE NOT - col0 * col2 IS NOT NULL
----
NULL

query I rowsort
SELECT 78 * - + col1 AS col2 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT ALL 4 * - - COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL 4 * - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 19 + - 69 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT + col0 * - - ( col2 ) + + col2 + + col1 FROM tab1 AS cor0
----
5006
5079
6303

query I rowsort
SELECT col1 + + col1 * + 11 FROM tab1 AS cor0
----
168
564
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 + 22 * + - col2 AS col2 FROM tab1 AS cor0
----
-1293
-1449
-2098

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL NOT BETWEEN NULL AND + - 66 )
----

query I rowsort
SELECT - 63 * 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2c27257281e89867a96e990912566b70

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT COUNT( 94 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8089
SELECT COUNT ( 94 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL MIN( DISTINCT - 93 ) AS col1 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL MIN ( DISTINCT - 93 ) AS col1 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT COUNT( + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT COUNT ( + col2 ) FROM tab1
----
3

query II rowsort
SELECT ALL - + 64, col1 AS col1 FROM tab0 AS cor0
----
-64
1
-64
21
-64
81

query I rowsort
SELECT ALL ( - col0 ) * - + col1 * + - col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT col2 * + + col1 * col2 AS col2 FROM tab2 AS cor0
----
123200
225388
26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 43 ) * - col0 * - + col1 col1 FROM tab0 cor0
----
4171
52245
78561

query I rowsort
SELECT col1 * + - 3 * + 28 AS col2 FROM tab2
----
-4284
-5628
-6468

query I rowsort
SELECT ALL + 93 * col2 + - col2 FROM tab1 WHERE - - 18 * - col2 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT COUNT( * ) * + MIN( - col2 ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8098
SELECT COUNT ( * ) * + MIN ( - col2 ) AS col2 FROM tab1
----
-288

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 * + col0 NOT BETWEEN + + 72 AND + ( col1 ) + + - col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 - - 95 IS NULL
----

query II rowsort
SELECT ALL + col1, 57 FROM tab0
----
1
57
21
57
81
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT 69, COUNT( * ) AS col2 FROM tab0
----
69
3

skipif mysql # not compatible
query II rowsort label-8102
SELECT 69, COUNT ( * ) AS col2 FROM tab0
----
69
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col2 + 46 AND - + col0
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + ( 12 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8105
SELECT ALL 69 AS col2, - SUM( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE col2 * - 50 - - col0 * - col2 * - 75 + - ( col2 ) * + + col2 / - col2 IS NOT NULL
----
69
66

skipif mysql # not compatible
query II rowsort label-8105
SELECT ALL 69 AS col2, - SUM ( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE col2 * - 50 - - col0 * - col2 * - 75 + - ( col2 ) * + + col2 / - col2 IS NOT NULL
----
69
66

query I rowsort
SELECT ALL + + 97 FROM tab0 cor0
----
97
97
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 >= ( - col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8108
SELECT DISTINCT CAST( NULL AS SIGNED ) * MAX( + - col2 ) * - - 78, - COUNT( * ) + + 99 AS col0 FROM tab1 AS cor0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-8108
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MAX ( + - col2 ) * - - 78, - COUNT ( * ) + + 99 AS col0 FROM tab1 AS cor0
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + ( - COUNT( + + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( - COUNT ( + + col2 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT DISTINCT COUNT( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT COUNT ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + COUNT( * ) * - 79 AS col0 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-8111
SELECT + COUNT ( * ) * - 79 AS col0 FROM tab2
----
-237

query I rowsort
SELECT ALL + 65 * 97 AS col0 FROM tab2
----
6305
6305
6305

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / - 90 > - 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col2 + + 73
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col2 * - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 9 + 3 AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ( - 38 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT 77 + COUNT( * ) AS col2 FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-8119
SELECT 77 + COUNT ( * ) AS col2 FROM tab1 cor0
----
80

query I rowsort
SELECT DISTINCT - col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

query II rowsort
SELECT - col1 + - + col2, - col2 AS col0 FROM tab1 AS cor0
----
-110
-96
-115
-68
-64
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT - ( - 82 ) + col1 FROM tab2 AS cor0
----
133
149
159

query I rowsort
SELECT DISTINCT col1 + + - col0 AS col2 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT DISTINCT COUNT( * ) DIV 96 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT COUNT ( * ) / 96 FROM tab0
----
0

query I rowsort
SELECT - + 18 * + - 52 * - - 66 + - + 90 FROM tab0 cor0
----
61686
61686
61686

query I rowsort
SELECT ALL + 19 AS col2 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT + + col1 * 76 + + - 49 FROM tab1 AS cor0
----
1015
331
3523

query I rowsort
SELECT + - ( 52 ) AS col1 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT COUNT( + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8130
SELECT COUNT ( + - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 + 67 AS col0 FROM tab0
----
114
166
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8132
SELECT MAX( DISTINCT - col2 ) + - MIN( CAST( - ( + 70 ) AS SIGNED ) ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-8132
SELECT MAX ( DISTINCT - col2 ) + - MIN ( CAST ( - ( + 70 ) AS INTEGER ) ) AS col0 FROM tab2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT DISTINCT col1 DIV - ( col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT col1 / - ( col0 ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8134
SELECT CAST( NULL AS SIGNED ) * 16 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT CAST ( NULL AS INTEGER ) * 16 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL SUM( DISTINCT - 16 ) * 37 + - COUNT( * ) AS col0 FROM tab1
----
-595

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL SUM ( DISTINCT - 16 ) * 37 + - COUNT ( * ) AS col0 FROM tab1
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL COUNT( * ) * AVG ( - col0 * col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL COUNT ( * ) * AVG ( - col0 * col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM tab0
----
50

query I rowsort
SELECT + col0 + 6 * + 51 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
321
393
403

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL SUM( + ( 58 ) ) AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL SUM ( + ( 58 ) ) AS col2 FROM tab0
----
174

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < col2 + - 56
----

query I rowsort
SELECT - col0 * - col1 + + col0 AS col1 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT col2 * col2 + col2 * + col2 FROM tab2
----
1058
3200
6728

query I rowsort
SELECT DISTINCT + col2 * col1 - ( 4 ) AS col2 FROM tab1
----
1340
291
3192

query III rowsort
SELECT * FROM tab1 WHERE - 23 < 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 42 + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 42 + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT + ( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) / COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT + ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN 5 * col1 AND col0 * 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8150
SELECT DISTINCT * FROM tab1 WHERE + col1 / CAST( 80 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8150
SELECT DISTINCT * FROM tab1 WHERE + col1 / CAST ( 80 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + 39 FROM tab0
----
138
49
86

query I rowsort
SELECT DISTINCT - col1 + - ( col0 ) FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT + 5 + + MIN( DISTINCT col1 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + 5 + + MIN ( DISTINCT col1 ) FROM tab1
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - col2 * + col1 BETWEEN 22 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( ( + col2 ) ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT COUNT( * ) * 60 AS col0 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8156
SELECT COUNT ( * ) * 60 AS col0 FROM tab1 AS cor0
----
180

query I rowsort
SELECT + 96 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT - COUNT( * ) + 10 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT - COUNT ( * ) + 10 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT - col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8161
SELECT * FROM tab0 AS cor0 WHERE + col2 * CAST( NULL AS SIGNED ) + 4 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8161
SELECT * FROM tab0 AS cor0 WHERE + col2 * CAST ( NULL AS INTEGER ) + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT DISTINCT + + COUNT( * ) + - 97 AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT + + COUNT ( * ) + - 97 AS col2 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - - 33 + + col2 AS col0 FROM tab2 AS cor0
----
56
73
91

query I rowsort
SELECT + col2 + col2 AS col2 FROM tab2 cor0 WHERE ( + col1 ) BETWEEN NULL AND col2 + - col2 * col0
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE col1 / + col2 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT DISTINCT - CAST( ( col0 ) AS SIGNED ) + ( - col1 ) AS col1 FROM tab1 cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - CAST ( ( col0 ) AS INTEGER ) + ( - col1 ) AS col1 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT + MIN( ALL col2 ) * - 64 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN + 46 AND - col2 - col0
----
-640

skipif mysql # not compatible
query I rowsort label-8167
SELECT + MIN ( ALL col2 ) * - 64 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN + 46 AND - col2 - col0
----
-640

query I rowsort
SELECT ALL - 4 * - - col2 * 30 + - 46 AS col0 FROM tab2
----
-2806
-4846
-7006

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 AND + 74
----

query I rowsort
SELECT col2 - - col1 * col1 FROM tab2
----
2624
4547
5969

query I rowsort
SELECT DISTINCT - 59 + + 10 AS col0 FROM tab2
----
-49

query I rowsort
SELECT 70 - 37 AS col0 FROM tab0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col0 FROM tab1 WHERE 55 * - col0 <> col0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT - 52 * 72 * COUNT( * ) - COUNT( * ) FROM tab2
----
-11235

skipif mysql # not compatible
query I rowsort label-8174
SELECT - 52 * 72 * COUNT ( * ) - COUNT ( * ) FROM tab2
----
-11235

query I rowsort
SELECT + col0 - + col1 AS col0 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT + AVG ( 39 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT + AVG ( 39 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT 42 + - - col1 FROM tab1
----
47
56
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT + COUNT( * ) + COUNT( + col2 ) * - COUNT( + 84 + - col2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8179
SELECT + COUNT ( * ) + COUNT ( + col2 ) * - COUNT ( + 84 + - col2 ) FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 / + col0 ) IN ( - col2 * + col2 )
----

query I rowsort
SELECT DISTINCT 84 + - col1 AS col0 FROM tab0 AS cor0
----
3
63
83

query I rowsort
SELECT ALL + 42 * + 82 * - 26 FROM tab1 AS cor0
----
-89544
-89544
-89544

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8183
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - 81 / + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8183
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 81 / + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 < 59
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL - COUNT( * ) FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - COUNT ( * ) FROM tab2, tab2 AS cor0
----
-9

query II rowsort
SELECT + col1 AS col0, col1 + - col2 * - col1 AS col1 FROM tab1
----
14
1358
47
3243
5
300

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT - COUNT( * ) AS col0, + 83 AS col2 FROM tab2
----
-3
83

skipif mysql # not compatible
query II rowsort label-8188
SELECT - COUNT ( * ) AS col0, + 83 AS col2 FROM tab2
----
-3
83

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab1, tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL COUNT( * ) + 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL COUNT ( * ) + 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT - + col0 NOT BETWEEN col2 * 48 AND + 35 * col0 + - 18
----

query II rowsort
SELECT + col1, + col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 59 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 41 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8196
SELECT DISTINCT - COUNT( * ) AS col2, 27 FROM tab1 AS cor0
----
-3
27

skipif mysql # not compatible
query II rowsort label-8196
SELECT DISTINCT - COUNT ( * ) AS col2, 27 FROM tab1 AS cor0
----
-3
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 IN ( - col2 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT + SUM( ALL - ( col0 ) ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8198
SELECT DISTINCT + SUM ( ALL - ( col0 ) ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL MIN( DISTINCT + col0 ) * - + 14 FROM tab2
----
-644

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL MIN ( DISTINCT + col0 ) * - + 14 FROM tab2
----
-644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8200
SELECT DISTINCT + MIN( - 85 ) AS col2, + CAST( 45 AS SIGNED ) FROM tab0
----
-85
45

skipif mysql # not compatible
query II rowsort label-8200
SELECT DISTINCT + MIN ( - 85 ) AS col2, + CAST ( 45 AS INTEGER ) FROM tab0
----
-85
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT COUNT( DISTINCT - col1 ) AS col2 FROM tab0 WHERE NOT NULL IN ( + + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 WHERE NOT NULL IN ( + + 35 )
----
0

query I rowsort
SELECT DISTINCT + ( - 66 ) FROM tab0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( 19 + 43 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE - - col2 - + + col0 * col0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8206
SELECT * FROM tab0 AS cor0 WHERE NOT 65 + + + CAST( - col2 AS SIGNED ) <= + 29 / - col1
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-8206
SELECT * FROM tab0 AS cor0 WHERE NOT 65 + + + CAST ( - col2 AS INTEGER ) <= + 29 / - col1
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( - 32 * col1 ) < NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( - - col2 ) >= 23 ) OR NOT ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT CAST( NULL AS SIGNED ) * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT CAST ( NULL AS INTEGER ) * - - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 7 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT 70 + + COUNT( * ) FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-8211
SELECT 70 + + COUNT ( * ) FROM tab2 cor0
----
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT - 19 / col2 * - + 78 * col2 - col1 FROM tab2 AS cor0 WHERE ( 64 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 59 / - ( 69 ) )
----

query I rowsort
SELECT DISTINCT ( + + 53 ) + 79 FROM tab1
----
132

query I rowsort
SELECT DISTINCT 22 - 89 AS col1 FROM tab0
----
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 >= col2 * - - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT DISTINCT - col1 - col0 DIV - col2 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT - col1 - col0 / - col2 FROM tab0
----
-1
-13
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-8219
SELECT - col1 AS col1, + 55 DIV + - 41 AS col1 FROM tab0
----
-1
-1
-21
-1
-81
-1

skipif mysql # not compatible
query II rowsort label-8219
SELECT - col1 AS col1, + 55 / + - 41 AS col1 FROM tab0
----
-1
-1
-21
-1
-81
-1

query I rowsort
SELECT ALL col1 + 61 - + col0 FROM tab2 WHERE NOT - + col2 IN ( - - 91 )
----
53
66
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT + 34 * + COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT + 34 * + COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
306

query I rowsort
SELECT DISTINCT col1 * + 4 + + col1 FROM tab1 WHERE NOT + col1 NOT IN ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ( 93 ) * - COUNT( * ) AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-8223
SELECT ( 93 ) * - COUNT ( * ) AS col0 FROM tab0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT COUNT( * ) * 56 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8224
SELECT COUNT ( * ) * 56 FROM tab2 AS cor0
----
168

query II rowsort
SELECT ALL + + col2 AS col0, + col2 + + 28 AS col2 FROM tab2 AS cor0
----
23
51
40
68
58
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT + SUM( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= ( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT + SUM ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= ( 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - - 6 * + - COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8227
SELECT - - 6 * + - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT 28 * + + 18 FROM tab0 AS cor0
----
504
504
504

query I rowsort
SELECT DISTINCT 39 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1833
-195
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL - - COUNT( 64 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - - COUNT ( 64 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT + CAST( + - 26 AS SIGNED ) FROM tab0 WHERE NOT ( - ( col2 ) * - 58 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8231
SELECT + CAST ( + - 26 AS INTEGER ) FROM tab0 WHERE NOT ( - ( col2 ) * - 58 ) >= NULL
----

query I rowsort
SELECT 43 FROM tab0 AS cor0 WHERE NOT NULL <> col1 - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT DISTINCT - col0 DIV 75 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT - col0 / 75 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - col0 * - + 95 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT - CAST( + col1 AS SIGNED ) DIV + - CAST( + + ( - - 4 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
20
5

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) / + - CAST ( + + ( - - 4 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
20
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT ALL 85 col2, MAX( DISTINCT 87 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL IN ( + col2 ) )
----
85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8236
SELECT ALL 85 col2, MAX ( DISTINCT 87 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL IN ( + col2 ) )
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT + COUNT( * ) * - + 52 * ( + - 69 ) AS col2 FROM tab2 AS cor0
----
10764

skipif mysql # not compatible
query I rowsort label-8237
SELECT + COUNT ( * ) * - + 52 * ( + - 69 ) AS col2 FROM tab2 AS cor0
----
10764

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8238
SELECT ALL - - COUNT( * ) / 7 + + - 86 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - - COUNT ( * ) / 7 + + - 86 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 53 * col2 FROM tab1 AS cor0 WHERE ( NOT + 55 IS NULL )
----
3127
3604
5088

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - - col1 > 0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8241
SELECT ALL 28 AS col0, col0 DIV + col2 col1 FROM tab0
----
28
0
28
0
28
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8241
SELECT ALL 28 AS col0, col0 / + col2 col1 FROM tab0
----
28
0
28
0
28
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT ALL + - 20 DIV + 32 + + + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + - 20 / + 32 + + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) <= col0
----
0

query I rowsort
SELECT + 81 * - ( - col0 ) FROM tab2
----
3726
5184
6075

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * + 73 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL + SUM( col1 ) * 27 FROM tab2 AS cor0
----
5265

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL + SUM ( col1 ) * 27 FROM tab2 AS cor0
----
5265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT MIN( ALL col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8247
SELECT MIN ( ALL col0 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 62 ) col2 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT + col2 + - - col1 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT 6 + - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8250
SELECT 6 + - COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8251
SELECT ALL CAST( + + 34 AS SIGNED ) * + + COUNT( ALL + - col1 ) col2, COUNT( * ) AS col1 FROM tab2
----
102
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8251
SELECT ALL CAST ( + + 34 AS INTEGER ) * + + COUNT ( ALL + - col1 ) col2, COUNT ( * ) AS col1 FROM tab2
----
102
3

query I rowsort
SELECT ALL 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT 55 * - col0 AS col2, 74 FROM tab2
----
-2530
74
-3520
74
-4125
74

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 <> + 75
----

query I rowsort
SELECT ALL - col0 + col0 * + 19 + - 78 + - 39 AS col0 FROM tab2 cor0
----
1035
1233
711

query I rowsort
SELECT ALL + + col2 + + 93 AS col2 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - - col2 * + + 16 IN ( - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - - col2 * + + 16 IN ( - 67 )
----
0

query I rowsort
SELECT DISTINCT - col1 + 54 FROM tab0 cor0
----
-27
33
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT ALL 36 * + AVG ( ALL - 55 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col2 * - CAST( NULL AS SIGNED ) >= ( - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 36 * + AVG ( ALL - 55 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND NOT + col2 * - CAST ( NULL AS INTEGER ) >= ( - 60 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8260
SELECT ALL CAST( NULL AS DECIMAL ) + + 51 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL CAST ( NULL AS REAL ) + + 51 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT 19 + - COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT 19 + - COUNT ( * ) FROM tab2
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-8262
SELECT col2 AS col1, + col1 DIV - ( - col1 ) - + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
23
-50
40
-76
58
-66

skipif mysql # not compatible
query II rowsort label-8262
SELECT col2 AS col1, + col1 / - ( - col1 ) - + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
23
-50
40
-76
58
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + - + col2 col2 FROM tab0
----
-47
42
5

query I rowsort
SELECT ALL - col0 * - ( 82 ) FROM tab2
----
3772
5248
6150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8265
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - 88 >= ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8265
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - 88 >= ( - CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT DISTINCT 95 AS col0, ( - + 36 ) FROM tab1 cor0
----
95
-36

query I rowsort
SELECT ALL + col0 * - col0 + - 9 FROM tab2 AS cor0
----
-2125
-4105
-5634

query II rowsort
SELECT - col1, + col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8269
SELECT COUNT( * ) col2, 56 FROM tab1
----
3
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8269
SELECT COUNT ( * ) col2, 56 FROM tab1
----
3
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8270
SELECT * FROM tab1 WHERE NOT + - 94 - + - 92 NOT IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8270
SELECT * FROM tab1 WHERE NOT + - 94 - + - 92 NOT IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8271
SELECT col1 AS col0, + col1 DIV - 77 col1 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8271
SELECT col1 AS col0, + col1 / - 77 col1 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT COUNT( * ) * - + ( 38 ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT COUNT ( * ) * - + ( 38 ) FROM tab0 AS cor0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col2 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - col2 - + col1 - col0 * + col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-353
-7600
-9509

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col0 - + col0 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 col0 FROM tab2 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL - MIN( DISTINCT 46 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 88 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - MIN ( DISTINCT 46 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 88 NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + 74 AS col0, - col2 * + col2 FROM tab2 AS cor0
----
74
-1600
74
-3364
74
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col1 col0, col1 FROM tab0
----
-1
1
-441
21
-6561
81

query I rowsort
SELECT ALL + col0 * 42 AS col2 FROM tab0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT + - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0 WHERE + 75 * + 77 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT + - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0 WHERE + 75 * + 77 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8287
SELECT DISTINCT + ( - 80 ) DIV 92, 52 AS col2 FROM tab1
----
0
52

skipif mysql # not compatible
query II rowsort label-8287
SELECT DISTINCT + ( - 80 ) / 92, 52 AS col2 FROM tab1
----
0
52

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) <> 7 )
----

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT ALL - col0 DIV - + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL - col0 / - + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 - + 37 FROM tab0 AS cor0
----
-16
-36
44

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT ALL 43 DIV - col0 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL 43 / - col0 AS col2 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8294
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - ( - CAST( col0 AS SIGNED ) ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8294
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - ( - CAST ( col0 AS INTEGER ) ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 - + 95 * + + 1 = 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8296
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - + col1 AS col1, col0 * col1 AS col1 FROM tab0 cor0
----
-1
97
-21
1827
-81
1215

query I rowsort
SELECT ALL col1 + 25 FROM tab1 AS cor0
----
30
39
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - 88 ) IS NULL
----

query II rowsort
SELECT ALL + col2 - + col2 AS col0, - col1 AS col1 FROM tab0
----
0
-1
0
-21
0
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8302
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8303
SELECT - ( + 96 ) AS col0, col1 DIV - CAST( + - col1 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-96
16
-96
88
-96
98

skipif mysql # not compatible
query II rowsort label-8303
SELECT - ( + 96 ) AS col0, col1 / - CAST ( + - col1 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-96
16
-96
88
-96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 8 ) > - 76 * col0 * + 87
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 = + - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT + ( + col0 ) DIV 90 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8307
SELECT + ( + col0 ) / 90 FROM tab1
----
0
0
1

query I rowsort
SELECT - 43 * - 87 AS col2 FROM tab2 AS cor0
----
3741
3741
3741

query I rowsort
SELECT ALL - col1 + - - ( + 46 ) AS col0 FROM tab2 AS cor0
----
-21
-31
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 4 ) * + 43 - + - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT + ( + + CAST( + - 74 AS SIGNED ) ) FROM tab2 cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8311
SELECT + ( + + CAST ( + - 74 AS INTEGER ) ) FROM tab2 cor0
----
-74
-74
-74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col1 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT COUNT( * ) + + 37 AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT COUNT ( * ) + + 37 AS col0 FROM tab0
----
40

query I rowsort
SELECT col0 * - - 14 FROM tab2
----
1050
644
896

query I rowsort
SELECT - col2 * - ( + - col1 ) FROM tab0 WHERE col2 >= - - 59 * + col2 * + 2 * + ( 98 ) + + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT SUM( 94 ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT SUM ( 94 ) FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT COUNT( * ) * - + SUM( col0 ) AS col1 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-8318
SELECT COUNT ( * ) * - + SUM ( col0 ) AS col1 FROM tab2
----
-555

query I rowsort
SELECT ALL col1 + + + col1 + - - 58 FROM tab0 AS cor0
----
100
220
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT - col0 + - + CAST( NULL AS SIGNED ) + - 12 + + - col0 * 50 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT - col0 + - + CAST ( NULL AS INTEGER ) + - 12 + + - col0 * 50 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND + col1 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-8321
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND + col1 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8322
SELECT * FROM tab0 AS cor0 WHERE + CAST( + - col1 AS SIGNED ) = - - col2
----

skipif mysql # not compatible
query III rowsort label-8322
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + - col1 AS INTEGER ) = - - col2
----

query I rowsort
SELECT DISTINCT + col1 * + 68 - + 98 + + col0 * - col0 FROM tab2
----
-1167
1042
1254

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8324
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8324
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8325
SELECT ALL * FROM tab1 WHERE - CAST( - ( - col2 ) AS SIGNED ) * + 80 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8325
SELECT ALL * FROM tab1 WHERE - CAST ( - ( - col2 ) AS INTEGER ) * + 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 39 * + col2 * + col2 FROM tab2
----
-131196
-20631
-62400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - + col0 * + col0, - ( + col1 ) * - + col0 col1 FROM tab0 WHERE col1 / - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 + + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

query II rowsort
SELECT col0 - col1 AS col0, - 75 * col0 AS col2 FROM tab2 AS cor0
----
-13
-4800
-5
-3450
8
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8331
SELECT - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - MAX( ALL - 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-8333
SELECT - MAX ( ALL - 64 ) FROM tab1
----
64

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + MAX( + 57 ) col0 FROM tab2
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT + MAX ( + 57 ) col0 FROM tab2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE 0 NOT BETWEEN 59 AND + 50
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT - MIN( - 49 ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - MIN ( - 49 ) FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT DISTINCT + ( + MAX( + + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT + ( + MAX ( + + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + ( + - 98 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query II rowsort
SELECT + col1 * col2 AS col2, - 17 FROM tab1
----
1344
-17
295
-17
3196
-17

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE col0 IN ( + 71, - 21, col0, - col1, - col0 )
----
-51
-67
-77

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 16 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - col0 - - + 88
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - col0 - - + 88
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = ( col1 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL - + CAST( NULL AS SIGNED ) + + 57 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 57 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL + 46 + COUNT( - + 31 ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + 46 + COUNT ( - + 31 ) FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT - + MAX( col0 ) + SUM( col1 ) AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - + MAX ( col0 ) + SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT ALL + CAST( NULL AS SIGNED ) + + + 98 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 98 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT ALL + 24 DIV + + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + 24 / + + col2 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE + + 34 * + + col1 + - 40 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT col2 + - col0 + + col1 FROM tab0
----
-56
113
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8354
SELECT - COUNT( * ) - - - ( - 35 ) DIV 93 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8354
SELECT - COUNT ( * ) - - - ( - 35 ) / 93 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + ( 12 ) AS col1 FROM tab1
----
12
12
12

query I rowsort
SELECT DISTINCT col0 * - 36 FROM tab1
----
-1836
-3060
-3276

query I rowsort
SELECT DISTINCT + ( - + 52 ) FROM tab0
----
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 47 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT + - 92 * - MAX( + col2 ) + 12 FROM tab1 AS cor0 WHERE 7 BETWEEN - 33 AND + 79
----
8844

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT + - 92 * - MAX ( + col2 ) + 12 FROM tab1 AS cor0 WHERE 7 BETWEEN - 33 AND + 79
----
8844

query I rowsort
SELECT + 43 - + col0 AS col0 FROM tab2 AS cor0
----
-21
-3
-32

query I rowsort
SELECT DISTINCT - ( col2 ) + - + col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT ALL - col0 - - - col1 AS col0 FROM tab0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 31 * - 7 col2 FROM tab0
----
-218
-238
-298

query III rowsort
SELECT * FROM tab0 WHERE - + 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT + COUNT( - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + COUNT ( - col2 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 92 + col0 + + 33 FROM tab1 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL ( + 69 ) FROM tab0 cor0
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT ALL - col0 * - - 81 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - col0 * - - 81 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT - col0 AS col1, - 63 AS col2, - 97 FROM tab0 AS cor0
----
9 values hashing to b8a0a12e8072667ec3540bd37f0684c5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8371
SELECT + - ( + col1 ) / - + CAST( NULL AS DECIMAL ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT + - ( + col1 ) / - + CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 5 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
-115
-200
-290

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 IN ( + col1, 57, + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - 5 * - + 75 AS col0 FROM tab2 AS cor0
----
-17250
-24000
-28125

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT DISTINCT + col0 DIV + 50 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT + col0 / + 50 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - + 89 AS col0 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8377
SELECT * FROM tab2 WHERE NOT col1 BETWEEN ( - + col0 + + col1 - CAST( NULL AS SIGNED ) + + col0 * col2 ) AND col0
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-8377
SELECT * FROM tab2 WHERE NOT col1 BETWEEN ( - + col0 + + col1 - CAST ( NULL AS INTEGER ) + + col0 * col2 ) AND col0
----
46
51
23
64
77
40

query III rowsort
SELECT ALL * FROM tab2 WHERE 6 / + col1 < + 47 + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8379
SELECT ALL + COUNT( ALL - + col1 ) col2, + COUNT( * ) * COUNT( * ) + + - MAX( + 84 ) FROM tab1
----
3
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8379
SELECT ALL + COUNT ( ALL - + col1 ) col2, + COUNT ( * ) * COUNT ( * ) + + - MAX ( + 84 ) FROM tab1
----
3
-75

query I rowsort
SELECT ALL + col2 * + col0 * + + col1 AS col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT SUM( DISTINCT + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8381
SELECT SUM ( DISTINCT + col1 ) FROM tab2
----
195

query II rowsort
SELECT + col1 * col1 AS col1, - 28 AS col1 FROM tab1 AS cor0
----
196
-28
2209
-28
25
-28

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col1 * col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT 36 * - 66 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 58 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - 95 AS col2, col0 FROM tab0 AS cor0
----
95
15
95
87
95
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8387
SELECT + ( + - CAST( + col0 AS SIGNED ) ) AS col2, - 60 FROM tab0 AS cor0
----
-15
-60
-87
-60
-97
-60

skipif mysql # not compatible
query II rowsort label-8387
SELECT + ( + - CAST ( + col0 AS INTEGER ) ) AS col2, - 60 FROM tab0 AS cor0
----
-15
-60
-87
-60
-97
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT - + 1 AS col2, COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1
6

skipif mysql # not compatible
query II rowsort label-8388
SELECT - + 1 AS col2, COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8389
SELECT MIN( ALL + + CAST( - 91 AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT MIN ( ALL + + CAST ( - 91 AS REAL ) ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + col1 + - col2 + + col1 * - 44 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-2183
91
-284
85
-726
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 73 + + CAST( NULL AS SIGNED ) > col2 * - 92
----

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 73 + + CAST ( NULL AS INTEGER ) > col2 * - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - MAX( ALL - - col0 ) col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8393
SELECT - MAX ( ALL - - col0 ) col2 FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8394
SELECT DISTINCT + 18, - 35 DIV col0 DIV CAST( CAST( - - 89 AS SIGNED ) AS SIGNED ) + - + 12 AS col1 FROM tab2 AS cor0
----
18
-12

skipif mysql # not compatible
query II rowsort label-8394
SELECT DISTINCT + 18, - 35 / col0 / CAST ( CAST ( - - 89 AS INTEGER ) AS INTEGER ) + - + 12 AS col1 FROM tab2 AS cor0
----
18
-12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 12 IS NULL
----

query I rowsort
SELECT DISTINCT ( - col2 ) + - + col2 AS col0 FROM tab2
----
-116
-46
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT ALL col0 DIV col2 + 79 FROM tab1
----
79
80
80

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL col0 / col2 + 79 FROM tab1
----
79
80
80

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - col2 + - col1 AS col0, + col1 FROM tab0 AS cor0
----
-11
21
-34
81
98
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= + - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + 49 + + COUNT( * ) col2 FROM tab2 cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8401
SELECT + 49 + + COUNT ( * ) col2 FROM tab2 cor0
----
52

query I rowsort
SELECT DISTINCT 73 + - - col1 AS col2 FROM tab0 AS cor0 WHERE ( - - col1 ) IS NOT NULL
----
154
74
94

query I rowsort
SELECT ALL - + 36 - - col1 AS col0 FROM tab2 AS cor0
----
15
31
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT ALL 14 - + MIN( - col1 ) col2, - 93 FROM tab1
----
61
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8404
SELECT ALL 14 - + MIN ( - col1 ) col2, - 93 FROM tab1
----
61
-93

query I rowsort
SELECT col1 * + + 17 FROM tab2 cor0
----
1139
1309
867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 * col0 col2 FROM tab1 AS cor0
----
4743
7905
8463

query II rowsort
SELECT DISTINCT + - col0 * - - col1 * + col1 AS col0, col2 - - col0 FROM tab1 cor0
----
-201019
159
-2125
144
-9996
147

query I rowsort
SELECT ALL - col0 * + col2 + + + col0 FROM tab0 AS cor0
----
-690
-783
-9506

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= + col2
----
87
21
10

query I rowsort
SELECT ALL - ( - + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 43 IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 30 + + - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * col1 * col2 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= col0
----

query II rowsort
SELECT - 36, col2 AS col2 FROM tab0
----
-36
10
-36
47
-36
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - COUNT( DISTINCT - 52 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8415
SELECT - COUNT ( DISTINCT - 52 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT DISTINCT 88 AS col0, + ( - 11 ) AS col1 FROM tab2
----
88
-11

query II rowsort
SELECT col1 AS col1, + col2 + + - col0 FROM tab0
----
1
2
21
-77
81
32

query I rowsort
SELECT - 46 * ( + - col2 ) AS col1 FROM tab1
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT + COUNT( * ) * - 63 * + 38 FROM tab0
----
-7182

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + COUNT ( * ) * - 63 * + 38 FROM tab0
----
-7182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - ( col2 ) ) NOT BETWEEN - col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + 8 - - col0 FROM tab0 AS cor0
----
-24
6
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8423
SELECT - ( + + CAST( NULL AS DECIMAL ) ) / 81 FROM tab0 AS cor0 WHERE 65 / - - 4 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT - ( + + CAST ( NULL AS REAL ) ) / 81 FROM tab0 AS cor0 WHERE 65 / - - 4 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8424
SELECT ALL + 16 DIV + CAST( col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + 16 / + CAST ( col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT - + ( + + col1 ), 14 AS col2 FROM tab0 AS cor0 WHERE col1 * - 41 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8426
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * ( + + 34 ) + + 26 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8426
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * ( + + 34 ) + + 26 col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + col0 = - col0 * - + col0
----

query I rowsort
SELECT ALL - col1 + + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT 25 + - - COUNT( * ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT 25 + - - COUNT ( * ) AS col0 FROM tab0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT + col2 * CAST( + col0 AS SIGNED ) + - 37 AS col2 FROM tab0
----
668
833
9566

skipif mysql # not compatible
query I rowsort label-8430
SELECT + col2 * CAST ( + col0 AS INTEGER ) + - 37 AS col2 FROM tab0
----
668
833
9566

query I rowsort
SELECT DISTINCT 52 - - col1 + + ( - 38 ) AS col1 FROM tab2
----
65
81
91

query I rowsort
SELECT DISTINCT 91 + + col2 FROM tab2
----
114
131
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + MIN( + 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-8433
SELECT + MIN ( + 95 ) FROM tab1
----
95

query I rowsort
SELECT - col1 * - 78 FROM tab0
----
1638
6318
78

query III rowsort
SELECT * FROM tab0 WHERE - 61 + + col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT 25 - - col0 AS col0 FROM tab0
----
112
122
40

query I rowsort
SELECT col1 - - 96 FROM tab0 AS cor0
----
117
177
97

query I rowsort
SELECT DISTINCT + 21 * col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1239
1428
2016

query I rowsort
SELECT - - col1 + 98 AS col1 FROM tab2 AS cor0 WHERE NOT 22 * + col2 + + 3 + + + ( + col2 ) IS NULL
----
149
165
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8440
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab0 AS cor0
----
-13
-13
-13

query II rowsort
SELECT + 64 * col1 AS col1, col1 AS col0 FROM tab0 AS cor0
----
1344
21
5184
81
64
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT ALL - col0 DIV 19 col0 FROM tab2 cor0
----
-2
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8443
SELECT ALL - col0 / 19 col0 FROM tab2 cor0
----
-2
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + + 67 ) AS col1, col1 col0 FROM tab2 cor0
----
67
51
67
67
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - 34 * col0 col1 FROM tab2 AS cor0
----
32844
45696
53550

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL - - ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - - ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8447
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8447
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL 43 * + col2 AS col0 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT DISTINCT ( - + 52 ) FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT + COUNT( * ) * - 15 AS col1 FROM tab0, tab2 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8450
SELECT + COUNT ( * ) * - 15 AS col1 FROM tab0, tab2 cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT - COUNT( ALL + 34 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT - COUNT ( ALL + 34 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL + ( + + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL + ( + + COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT ALL + COUNT( * ) col0 FROM tab1 WHERE ( NULL ) > CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8453
SELECT ALL + COUNT ( * ) col0 FROM tab1 WHERE ( NULL ) > CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT 9 * COUNT( * ) col2 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8454
SELECT DISTINCT 9 * COUNT ( * ) col2 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT SUM( - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8455
SELECT SUM ( - col2 ) FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT ALL - col2 * - + col2 * + col0 - - col0 * - - col0 + + CAST( 73 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
303183
429138
472690

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - col2 * - + col2 * + col0 - - col0 * - - col0 + + CAST ( 73 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
303183
429138
472690

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT - SUM( - + col0 ) * + MIN( ALL + + col1 ) FROM tab2
----
9435

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - SUM ( - + col0 ) * + MIN ( ALL + + col1 ) FROM tab2
----
9435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL + + ( + CAST( - - 20 AS SIGNED ) ) FROM tab2 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + + ( + CAST ( - - 20 AS INTEGER ) ) FROM tab2 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT ALL - - COUNT( * ) AS col1, + COUNT( * ) * - + ( + + ( 54 ) ) col1 FROM tab2 AS cor0
----
3
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8459
SELECT ALL - - COUNT ( * ) AS col1, + COUNT ( * ) * - + ( + + ( 54 ) ) col1 FROM tab2 AS cor0
----
3
-162

query I rowsort
SELECT DISTINCT - - 30 AS col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL - + 56 * - 57 * col1 AS col1 FROM tab2 AS cor0
----
162792
213864
245784

query I rowsort
SELECT ALL - + col1 + + col2 * - col2 + - 13 FROM tab0 AS cor0
----
-134
-2303
-9815

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8463
SELECT - - col1 AS col0, 88 * - - CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8463
SELECT - - col1 AS col0, 88 * - - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8464
SELECT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8464
SELECT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT - CAST( - 16 AS SIGNED ) FROM tab1 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-8465
SELECT - CAST ( - 16 AS INTEGER ) FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT ALL - col2 * - + 78 - - col0 * + 39 - + + 86 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - - col1 + + - col0 AND + - 0 + - + col2
----

query I rowsort
SELECT DISTINCT - 65 * - - 98 + col0 * + - ( + col2 ) + - col1 FROM tab0
----
-15974
-7156
-7261

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col1 * + + col0 * - + 23 / - + col1 <> NULL
----

query II rowsort
SELECT DISTINCT + ( col2 ) - - - col1, - 26 AS col1 FROM tab1
----
21
-26
54
-26
82
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT CAST( NULL AS SIGNED ) + - + COUNT( + - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( + - col0 ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8471
SELECT ALL col0 DIV + + col0 AS col1, col2 FROM tab1
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-8471
SELECT ALL col0 / + + col0 AS col1, col2 FROM tab1
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL COUNT( * ) col1 FROM tab0 WHERE NOT + + col2 NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8472
SELECT ALL COUNT ( * ) col1 FROM tab0 WHERE NOT + + col2 NOT BETWEEN NULL AND + col0
----
0

query I rowsort
SELECT DISTINCT - + 71 AS col1 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT DISTINCT ( 58 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 96 + + + col2 / + ( 74 ) * + col2 + + col0, + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 8 + col0 FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + COUNT( * ) col0 FROM tab1 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-8478
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + - 3 + COUNT( ALL + col0 ) * + 90 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
267

skipif mysql # not compatible
query I rowsort label-8480
SELECT + - 3 + COUNT ( ALL + col0 ) * + 90 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
267

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8482
SELECT MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ( + + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8483
SELECT ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL + 85 * CAST( col2 AS SIGNED ) FROM tab2
----
1955
3400
4930

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + 85 * CAST ( col2 AS INTEGER ) FROM tab2
----
1955
3400
4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT DISTINCT - CAST( + 2 AS SIGNED ) * + - 91 * + 69 FROM tab2
----
12558

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT - CAST ( + 2 AS INTEGER ) * + - 91 * + 69 FROM tab2
----
12558

query I rowsort
SELECT col1 + - + 39 FROM tab1
----
-25
-34
8

query I rowsort
SELECT + 9 AS col0 FROM tab0 WHERE NOT ( - + col1 ) IS NULL
----
9
9
9

query II rowsort
SELECT col0 + - 22, 80 AS col2 FROM tab0
----
-7
80
65
80
75
80

query I rowsort
SELECT DISTINCT + 84 + - - 96 AS col1 FROM tab1
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 3 ) col0 FROM tab1 cor0
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8491
SELECT + + CAST( - + SUM( - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8491
SELECT + + CAST ( - + SUM ( - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT 10 * + - col0 AS col2 FROM tab0
----
-150
-870
-970

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN col1 + - col2 / ( - col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 + col1 * - col0 + - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / col2 * - 65 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - 92 AS col0 FROM tab1 cor0
----
-24
-33
4

query I rowsort
SELECT 14 + - + col2 FROM tab0 AS cor0
----
-33
-85
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT DISTINCT + col0 + - + col2 + col2 DIV 96 col0 FROM tab1 AS cor0
----
-44
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8498
SELECT DISTINCT + col0 + - + col2 + col2 / 96 col0 FROM tab1 AS cor0
----
-44
23
26

query I rowsort
SELECT + + 52 + - + 91 * - col0 AS col0 FROM tab0 cor0
----
1417
7969
8879

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT MIN( DISTINCT - col0 ) + - 52 * - COUNT( * ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8500
SELECT MIN ( DISTINCT - col0 ) + - 52 * - COUNT ( * ) FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL col0 + 42 FROM tab0 AS cor0
----
129
139
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8503
SELECT DISTINCT col0 DIV + - col1, col0 FROM tab0 AS cor0 WHERE NOT col2 + - col2 < - 26 * col0 + + ( + - col1 ) + + - 75
----
-4
87
-97
97
0
15

skipif mysql # not compatible
query II rowsort label-8503
SELECT DISTINCT col0 / + - col1, col0 FROM tab0 AS cor0 WHERE NOT col2 + - col2 < - 26 * col0 + + ( + - col1 ) + + - 75
----
-4
87
-97
97
0
15

query I rowsort
SELECT ALL + + 3 + col0 + + + 34 FROM tab0 AS cor0
----
124
134
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + 63 - - COUNT( * ) + - MIN( + col2 ) FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + 63 - - COUNT ( * ) + - MIN ( + col2 ) FROM tab2 cor0
----
43

query I rowsort
SELECT + ( + 54 ) / 5 + - 64 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col1 * - col2 * + col0 * col0 + col0 AS col1 FROM tab2
----
126585514
1464536325
971407424

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8508
SELECT + - MIN( DISTINCT 85 ) * - COUNT( * ) FROM tab0 WHERE ( NOT - CAST( NULL AS DECIMAL ) * - + col2 IS NOT NULL )
----
255

skipif mysql # not compatible
query I rowsort label-8508
SELECT + - MIN ( DISTINCT 85 ) * - COUNT ( * ) FROM tab0 WHERE ( NOT - CAST ( NULL AS REAL ) * - + col2 IS NOT NULL )
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT SUM( col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8509
SELECT SUM ( col0 ) FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query II rowsort label-8510
SELECT col2 AS col2, col1 DIV - col0 FROM tab2
----
23
-1
40
-1
58
0

skipif mysql # not compatible
query II rowsort label-8510
SELECT col2 AS col2, col1 / - col0 FROM tab2
----
23
-1
40
-1
58
0

query I rowsort
SELECT ALL 44 - - + col0 + - + col0 AS col2 FROM tab1
----
44
44
44

query I rowsort
SELECT ALL - 94 AS col2 FROM tab1
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL MAX( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 + - + col2 AS col2 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - ( - col0 ) AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8516
SELECT + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8516
SELECT + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 12 * - col2 AS col1 FROM tab2
----
-276
-480
-696

query I rowsort
SELECT DISTINCT + - 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query I rowsort
SELECT ALL + 98 + - + 69 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + ( 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT DISTINCT + col1 DIV col1 + - ( - - col2 ) col0 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8522
SELECT DISTINCT + col1 / col1 + - ( - - col2 ) col0 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8523
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - - col0 ) / + - col0 * - CAST( NULL AS SIGNED ) * - col1 * - - col1 + + col0 * col0 AND + col1
----

skipif mysql # not compatible
query III rowsort label-8523
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - - col0 ) / + - col0 * - CAST ( NULL AS INTEGER ) * - col1 * - - col1 + + col0 * col0 AND + col1
----

query II rowsort
SELECT ALL + col2, 87 AS col1 FROM tab0
----
10
87
47
87
99
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT 95 DIV - ( + ( col0 ) ) FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT 95 / - ( + ( col0 ) ) FROM tab0
----
-1
-6
0

query II rowsort
SELECT ALL - col2, + col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - - 50 AS col1 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - - col0 + + - col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + - 9 IN ( - col2, col0 / + 76 )
----
-23
-40
-58

query II rowsort
SELECT - col2 * col1 * col1 * + col2, col0 FROM tab2 AS cor0
----
-1375929
46
-15100996
75
-9486400
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT - CAST( NULL AS SIGNED ) - - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT - CAST ( NULL AS INTEGER ) - - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 + + 5 AS col1, + 53 AS col2 FROM tab1 AS cor0
----
-46
53
-80
53
-86
53

query I rowsort
SELECT DISTINCT - + 20 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + + col0 * - col2 - col0 AS col2 FROM tab0 AS cor0
----
-720
-957
-9700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( col2 ) IS NULL
----

query I rowsort
SELECT ALL col1 + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 - - col2 col1 FROM tab0
----
107
18
55

query I rowsort
SELECT DISTINCT col1 * + - col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT + 43 FROM tab2 WHERE NOT NULL IS NOT NULL
----
43
43
43

query I rowsort
SELECT ALL + col0 * + 34 FROM tab2
----
1564
2176
2550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, col0 + + - col2 col0 FROM tab1
----
-51
-45
-85
26
-91
23

query II rowsort
SELECT ALL col1, - col2 + + ( + 24 ) AS col2 FROM tab1
----
14
-72
47
-44
5
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - 99 + - + col2 AS col1 FROM tab2
----
2254
3920
5684

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - 99 + - + col2 AS col1 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT 35 * col0 AS col0 FROM tab1
----
1785
2975
3185

query II rowsort
SELECT - col1, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT COUNT( * ) * + SUM( ALL - 43 ) col1 FROM tab0 AS cor0
----
-387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8547
SELECT DISTINCT COUNT ( * ) * + SUM ( ALL - 43 ) col1 FROM tab0 AS cor0
----
-387

query I rowsort
SELECT DISTINCT - - 57 AS col0 FROM tab1 cor0
----
57

query I rowsort
SELECT ALL + 10 * + - col2 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL - SUM( + 3 ) * - SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
-2007

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - SUM ( + 3 ) * - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-2007

query I rowsort
SELECT DISTINCT + - col2 * + + col0 * + - col2 + 10 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT - + col0 DIV + col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8552
SELECT - + col0 / + col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL + CAST( NULL AS SIGNED ) + + + col1 + - 44 FROM tab2 WHERE NOT NULL >= - 1 + + col0 + - + col0
----

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + CAST ( NULL AS INTEGER ) + + + col1 + - 44 FROM tab2 WHERE NOT NULL >= - 1 + + col0 + - + col0
----

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < ( + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL + - COUNT( * ) col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8556
SELECT ALL + - COUNT ( * ) col0 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT ALL - + col0 DIV + - 62 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - + col0 / + - 62 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + + 48 - - col2 * + ( + 6 ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - ( 29 ) FROM tab2
----
-29
-29
-29

query I rowsort
SELECT ALL col0 + col2 + + col1 FROM tab1
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT DISTINCT - ( AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT - ( AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8562
SELECT DISTINCT CAST( - 27 AS SIGNED ) AS col0, col0 AS col1 FROM tab0
----
-27
15
-27
87
-27
97

skipif mysql # not compatible
query II rowsort label-8562
SELECT DISTINCT CAST ( - 27 AS INTEGER ) AS col0, col0 AS col1 FROM tab0
----
-27
15
-27
87
-27
97

query I rowsort
SELECT - 61 + - - col2 AS col2 FROM tab0
----
-14
-51
38

query I rowsort
SELECT DISTINCT col1 * - col1 + + + col0 FROM tab1
----
-145
-2118
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - + 41 + COUNT( * ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - + 41 + COUNT ( * ) FROM tab1 AS cor0
----
-38

query I rowsort
SELECT col0 - + 65 FROM tab1
----
-14
20
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8567
SELECT DISTINCT COUNT( * ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8567
SELECT DISTINCT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * col1 - + col1 * + + col2 - + + 20 col0 FROM tab0
----
-31
1618
3301

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT ALL + 37 AS col0, + MAX( ALL 52 ) AS col2 FROM tab2 cor0
----
37
52

skipif mysql # not compatible
query II rowsort label-8569
SELECT ALL + 37 AS col0, + MAX ( ALL 52 ) AS col2 FROM tab2 cor0
----
37
52

query I rowsort
SELECT col2 * col2 + col1 * col1 + - 17 + - 78 AS col2 FROM tab0 cor0
----
446
8675
9707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8572
SELECT DISTINCT - - 55, + col1 * - - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
55
210
55
3807
55
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8572
SELECT DISTINCT - - 55, + col1 * - - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
55
210
55
3807
55
99

query I rowsort
SELECT 70 FROM tab1 AS cor0 WHERE NOT - ( - col2 ) + col2 IS NULL
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8574
SELECT + - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL MAX( ALL col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL MAX ( ALL col1 ) FROM tab0
----
81

query I rowsort
SELECT ( + + col1 ) * - + 37 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - MIN( + + 56 ) AS col0 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-8577
SELECT - MIN ( + + 56 ) AS col0 FROM tab0
----
-56

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE col0 = - - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 19 - + - 93 IS NULL
----

query I rowsort
SELECT - 16 * + col2 + 37 AS col0 FROM tab0 AS cor0
----
-123
-1547
-715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL - - CAST( + col1 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - - CAST ( + col1 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT ALL - 3 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL - 3 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 92 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - COUNT( * ) * - 9 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8585
SELECT - COUNT ( * ) * - 9 FROM tab2 AS cor0
----
27

query II rowsort
SELECT ALL + ( - col0 ) + - + col0, + col1 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
-174
441
-194
1
-30
6561

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + + 64, + 85, + - 30, - col2 )
----

query I rowsort
SELECT ALL + - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT * FROM tab1 WHERE - - col1 + 85 / + col2 <= - + 28 - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT MIN( DISTINCT + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8591
SELECT MIN ( DISTINCT + col0 ) AS col0 FROM tab2
----
46

query II rowsort
SELECT ALL col1 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT + + 20 + col0 FROM tab2 cor0
----
66
84
95

query I rowsort
SELECT ALL - 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL ( + ( + + col0 ) ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8597
SELECT + CAST( - ( + - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8597
SELECT + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT 35 + + + col2 IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 30 BETWEEN NULL AND ( + + col0 + + col2 + + col1 - + - 66 + col1 )
----

query I rowsort
SELECT + col2 * 43 FROM tab2
----
1720
2494
989

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT - ( - COUNT( + col2 ) ) FROM tab2 WHERE NOT ( + - 97 ) * + 33 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT - ( - COUNT ( + col2 ) ) FROM tab2 WHERE NOT ( + - 97 ) * + 33 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8603
SELECT ALL col1 AS col1, 56 DIV + - col1 AS col2 FROM tab1
----
14
-4
47
-1
5
-11

skipif mysql # not compatible
query II rowsort label-8603
SELECT ALL col1 AS col1, 56 / + - col1 AS col2 FROM tab1
----
14
-4
47
-1
5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL - COUNT( DISTINCT + 90 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL - COUNT ( DISTINCT + 90 ) FROM tab1
----
-1

query II rowsort
SELECT + col0 AS col1, - col0 - + ( + col0 ) FROM tab1
----
51
-102
85
-170
91
-182

query I rowsort
SELECT ( - + col0 ) FROM tab0
----
-15
-87
-97

query II rowsort
SELECT 78, + col0 * - col2 AS col2 FROM tab0
----
78
-705
78
-870
78
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-8608
SELECT col1 AS col0, 1 DIV - 21 + + 34 AS col0 FROM tab2
----
51
34
67
34
77
34

skipif mysql # not compatible
query II rowsort label-8608
SELECT col1 AS col0, 1 / - 21 + + 34 AS col0 FROM tab2
----
51
34
67
34
77
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8609
SELECT DISTINCT COUNT( * ) AS col0, 74 AS col0 FROM tab2 AS cor0
----
3
74

skipif mysql # not compatible
query II rowsort label-8609
SELECT DISTINCT COUNT ( * ) AS col0, 74 AS col0 FROM tab2 AS cor0
----
3
74

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( + 39 ) <> + 11
----

query I rowsort
SELECT DISTINCT ( col0 ) * - 21 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-1344
-1575
-966

query III rowsort
SELECT * FROM tab0 WHERE + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT CAST( 99 AS SIGNED ) + + col1 * + col1 FROM tab1
----
124
2308
295

skipif mysql # not compatible
query I rowsort label-8613
SELECT CAST ( 99 AS INTEGER ) + + col1 * + col1 FROM tab1
----
124
2308
295

query I rowsort
SELECT - 36 + col1 AS col2 FROM tab1 WHERE NOT ( NULL ) >= 87 + 32 * + col1
----

query I rowsort
SELECT + 34 + 37 AS col2 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + COUNT( ALL col2 ) + + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8616
SELECT + COUNT ( ALL col2 ) + + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 77 - col1 FROM tab1
----
30
63
72

query I rowsort
SELECT DISTINCT + col1 - 41 AS col0 FROM tab1
----
-27
-36
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( ( + col1 ) ) AND col2
----

query I rowsort
SELECT ALL - col0 * 32 FROM tab1
----
-1632
-2720
-2912

query I rowsort
SELECT + col2 - 77 * col0 FROM tab2
----
-3519
-4888
-5717

query I rowsort
SELECT - col0 * + 74 FROM tab0
----
-1110
-6438
-7178

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) <> ( NULL )
----

query I rowsort
SELECT col0 + - 24 FROM tab2
----
22
40
51

query I rowsort
SELECT + col2 * 52 FROM tab2
----
1196
2080
3016

query I rowsort
SELECT + 31 * col0 FROM tab0
----
2697
3007
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT ALL - 90 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8628
SELECT ALL - 90 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + COUNT( ALL 18 ) + - SUM( DISTINCT ( 81 ) + col2 ) AS col1 FROM tab2
----
-361

skipif mysql # not compatible
query I rowsort label-8629
SELECT + COUNT ( ALL 18 ) + - SUM ( DISTINCT ( 81 ) + col2 ) AS col1 FROM tab2
----
-361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 + ( - col1 ) col0 FROM tab0
----
-60
0
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8632
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT 71 * + col2 FROM tab0
----
3337
7029
710

query III rowsort
SELECT * FROM tab1 WHERE NOT 3 * - col2 NOT IN ( - 19 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col0 NOT IN ( col1 )
----

query I rowsort
SELECT + col2 + + 89 FROM tab0
----
136
188
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT - SUM( ALL 62 ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT - SUM ( ALL 62 ) FROM tab1
----
-186

query I rowsort
SELECT ALL + col0 * 34 - + col1 FROM tab1 WHERE NOT ( col0 + + col0 ) NOT IN ( - 69 * - col1 + - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT col2 * 42 FROM tab0 AS cor0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - 55 * COUNT( col0 ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 55 * COUNT ( col0 ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-168

query I rowsort
SELECT ( col1 ) * col2 - col2 AS col0 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT + 5 - col0 AS col0 FROM tab2 AS cor0
----
-41
-59
-70

query I rowsort
SELECT ( col2 ) - col1 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT 47 FROM tab2 WHERE col1 * + CAST( NULL AS SIGNED ) - col1 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8645
SELECT 47 FROM tab2 WHERE col1 * + CAST ( NULL AS INTEGER ) - col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT ALL + ( MIN( col1 ) ) * + ( MIN( col1 ) - + CAST( NULL AS SIGNED ) ) - - 16 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + ( MIN ( col1 ) ) * + ( MIN ( col1 ) - + CAST ( NULL AS INTEGER ) ) - - 16 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NOT ( + col1 * col0 ) BETWEEN 69 AND + 33 + - 99 * col1
----
3

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( + col1 * col0 ) BETWEEN 69 AND + 33 + - 99 * col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8649
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < ( col2 * + CAST( + col0 / + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8649
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < ( col2 * + CAST ( + col0 / + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + MIN( ALL 0 ) * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT + MIN ( ALL 0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT + + ( + 1 ) DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8652
SELECT + + ( + 1 ) / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 6 * 62 ) NOT IN ( - 2 )
----

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT - - 54 DIV + col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8655
SELECT - - 54 / + col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT SUM( DISTINCT + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8656
SELECT SUM ( DISTINCT + col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE - 47 + 49 * col1 > ( - ( - 55 ) ) + - col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT + CAST( - ( col2 ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8660
SELECT + CAST ( - ( col2 ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 * 75 AS col1 FROM tab0
----
1575
6075
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 IN ( 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - col0 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT - 45 - + 78 DIV 47 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

skipif mysql # not compatible
query I rowsort label-8665
SELECT - 45 - + 78 / 47 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + SUM( - 38 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-342

skipif mysql # not compatible
query I rowsort label-8666
SELECT + SUM ( - 38 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-342

query I rowsort
SELECT DISTINCT col1 * - - col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT + - 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

query I rowsort
SELECT + - col2 * - + 30 AS col0 FROM tab1 AS cor0
----
1770
2040
2880

query I rowsort
SELECT - + 46 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT - SUM( col2 ) * + COUNT( * ) + - 10 + + 78 FROM tab1 AS cor0
----
-601

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT - SUM ( col2 ) * + COUNT ( * ) + - 10 + + 78 FROM tab1 AS cor0
----
-601

query I rowsort
SELECT ALL - 40 FROM tab1 AS cor0 WHERE ( col2 ) <= 8 * col1
----
-40
-40

query I rowsort
SELECT ALL + 95 + + + col1 FROM tab0 AS cor0
----
116
176
96

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL - ( + CAST( + 35 AS SIGNED ) ) FROM tab1
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - ( + CAST ( + 35 AS INTEGER ) ) FROM tab1
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - 91 * - - col2 - - - col0 AS col1 FROM tab1
----
-5454
-6279
-8787

query I rowsort
SELECT - col0 + + + col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN ( NULL ) AND - col1 AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + + COUNT( * ) - - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-8680
SELECT + + COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
6

query I rowsort
SELECT + col2 + + + 39 AS col2 FROM tab0
----
138
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT - COUNT( * ) + COUNT( + col1 ) + - 65 - MAX( col2 - + col0 ) * - 60 FROM tab2 AS cor0
----
-1085

skipif mysql # not compatible
query I rowsort label-8682
SELECT - COUNT ( * ) + COUNT ( + col1 ) + - 65 - MAX ( col2 - + col0 ) * - 60 FROM tab2 AS cor0
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - - MIN( - 32 ) + SUM( ALL col2 ) FROM tab0 cor0
----
124

skipif mysql # not compatible
query I rowsort label-8683
SELECT - - MIN ( - 32 ) + SUM ( ALL col2 ) FROM tab0 cor0
----
124

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col0 * - col0 <= ( - - col0 )
----

query I rowsort
SELECT DISTINCT + - 96 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE ( col0 * - 81 * + col0 ) BETWEEN ( col1 ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 89 col0 FROM tab1 AS cor0 WHERE NOT col0 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT ALL - + MIN( + col1 ) * + + CAST( NULL AS SIGNED ) + + 28 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8689
SELECT ALL - + MIN ( + col1 ) * + + CAST ( NULL AS INTEGER ) + + 28 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT DISTINCT - ( - col2 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - ( - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 96 * + + col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 96 * + + col1 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT + 71 AS col2, COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
71
9

skipif mysql # not compatible
query II rowsort label-8692
SELECT + 71 AS col2, COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
71
9

query I rowsort
SELECT - 68 FROM tab1 cor0 WHERE NOT col0 = col2
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 82 AS col2 FROM tab0 AS cor0 WHERE NOT - ( - + col0 ) / - ( + col2 ) * col1 IS NULL
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col2 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT COUNT( * ) * - 51 AS col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8697
SELECT COUNT ( * ) * - 51 AS col2 FROM tab1 AS cor0
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT ALL COUNT( * ) DIV - + 36 * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL COUNT ( * ) / - + 36 * + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT ALL - COUNT( * ) AS col1, SUM( ALL - col0 ) FROM tab1
----
-3
-227

skipif mysql # not compatible
query II rowsort label-8699
SELECT ALL - COUNT ( * ) AS col1, SUM ( ALL - col0 ) FROM tab1
----
-3
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8700
SELECT * FROM tab2 WHERE NOT ( col1 ) BETWEEN col1 * - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8700
SELECT * FROM tab2 WHERE NOT ( col1 ) BETWEEN col1 * - CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT 9 * + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8701
SELECT 9 * + COUNT ( * ) FROM tab0
----
27

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL >= ( NULL ) )
----

query I rowsort
SELECT + col0 + + - 26 + - col1 * - - col0 FROM tab1
----
-366
-4212
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT - SUM( DISTINCT - 10 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - SUM ( DISTINCT - 10 ) FROM tab0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT CAST( - col1 AS SIGNED ) FROM tab1 WHERE NOT + col1 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8708
SELECT CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NOT + col1 IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-8710
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL - 97 + MIN( ALL col0 ) FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL - 97 + MIN ( ALL col0 ) FROM tab1 cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 21 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col0 FROM tab0 cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT 46 + COUNT( - 0 ) AS col1 FROM tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT 46 + COUNT ( - 0 ) AS col1 FROM tab0 cor0
----
49

query I rowsort
SELECT col2 * - 59 AS col1 FROM tab2
----
-1357
-2360
-3422

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8717
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-8717
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT 67 * 77 * - COUNT( DISTINCT + - col0 ) AS col1 FROM tab0
----
-15477

skipif mysql # not compatible
query I rowsort label-8718
SELECT 67 * 77 * - COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0
----
-15477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col2 FROM tab1
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query III rowsort label-8720
SELECT col0 + 81 AS col2, col1, - 85 DIV + 27 FROM tab1
----
9 values hashing to b419773a806fee0bc38dc3cbe82b87f9

skipif mysql # not compatible
query III rowsort label-8720
SELECT col0 + 81 AS col2, col1, - 85 / + 27 FROM tab1
----
9 values hashing to b419773a806fee0bc38dc3cbe82b87f9

query I rowsort
SELECT DISTINCT + + 10 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + - MIN( - ( - ( + col1 ) ) ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + - MIN ( - ( - ( + col1 ) ) ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL - + 13 + + 74 AS col1 FROM tab1 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ( - - COUNT( - + col2 ) ) AS col2 FROM tab0 AS cor0 WHERE ( - col0 + col0 ) > + col2
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT ( - - COUNT ( - + col2 ) ) AS col2 FROM tab0 AS cor0 WHERE ( - col0 + col0 ) > + col2
----
0

query I rowsort
SELECT DISTINCT + ( col0 ) + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT + col1 + + col1 DIV ( 75 ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8726
SELECT + col1 + + col1 / ( 75 ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT - col1 + col0, - 1 AS col2 FROM tab0 AS cor0
----
-66
-1
66
-1
96
-1

query I rowsort
SELECT + 63 + col1 * - - col1 FROM tab1 AS cor0
----
2272
259
88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 16 ) BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT ALL 21 * + - col2 + - col1 * - 29 FROM tab0
----
-2050
1362
399

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) <= + ( + 68 ) OR + col1 * + 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - - col1
----

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-8734
SELECT - SUM( col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8734
SELECT - SUM ( col1 ) FROM tab2
----
-195

query I rowsort
SELECT ALL - ( 85 ) FROM tab2
----
-85
-85
-85

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 + - + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT - CAST( + 88 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-8737
SELECT - CAST ( + 88 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8738
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8738
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NULL >= - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NULL >= - col2 )
----
0

query I rowsort
SELECT ALL - col2 * - + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - 65 * + 16 AS col1 FROM tab2 AS cor0
----
-1040
-1040
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT COUNT( * ) + - 97 FROM tab2 AS cor0 WHERE NOT col1 + 2 IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT COUNT ( * ) + - 97 FROM tab2 AS cor0 WHERE NOT col1 + 2 IS NOT NULL
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + COUNT( * ) * + 21 * - 89 AS col2 FROM tab1 AS cor0
----
-5607

skipif mysql # not compatible
query I rowsort label-8743
SELECT + COUNT ( * ) * + 21 * - 89 AS col2 FROM tab1 AS cor0
----
-5607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT col2 FROM tab1 AS cor0 WHERE NOT CAST( - 98 AS SIGNED ) - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8744
SELECT col2 FROM tab1 AS cor0 WHERE NOT CAST ( - 98 AS INTEGER ) - - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * + - 72 + 22 AS col1 FROM tab1 AS cor0
----
1030
3406
382

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab0 cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT ALL col0 DIV + + col1 AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL col0 / + + col1 AS col1 FROM tab0
----
0
4
97

query I rowsort
SELECT DISTINCT ( + 60 ) AS col0 FROM tab2
----
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT DISTINCT SUM( ALL + ( - + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT SUM ( ALL + ( - + col2 ) ) FROM tab0
----
-156

query I rowsort
SELECT ALL + 90 * col1 AS col0 FROM tab0
----
1890
7290
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT - col1 DIV + 32 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT - col1 / + 32 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT 27 * - COUNT( * ) AS col2 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8753
SELECT 27 * - COUNT ( * ) AS col2 FROM tab2
----
-81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * + - 40 * + - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8755
SELECT + CAST( NULL AS DECIMAL ) + - col2 - + - col0, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8755
SELECT + CAST ( NULL AS REAL ) + - col2 - + - col0, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL MAX( DISTINCT + + 99 ) + MAX( - 98 ) + + - 64 AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL MAX ( DISTINCT + + 99 ) + MAX ( - 98 ) + + - 64 AS col2 FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT DISTINCT COUNT( - col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8757
SELECT DISTINCT COUNT ( - col0 ) col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 76 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT + SUM( ALL - col0 ) col2 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8759
SELECT DISTINCT + SUM ( ALL - col0 ) col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT - SUM( - ( + + col2 ) ) FROM tab0 AS cor0 WHERE + 10 + col2 > + - col2
----
156

skipif mysql # not compatible
query I rowsort label-8760
SELECT - SUM ( - ( + + col2 ) ) FROM tab0 AS cor0 WHERE + 10 + col2 > + - col2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT ALL 40 * 1 + 39 DIV + col1 FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL 40 * 1 + 39 / + col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT + 66 * COUNT( * ) * - 62 AS col0 FROM tab2 AS cor0
----
-12276

skipif mysql # not compatible
query I rowsort label-8762
SELECT + 66 * COUNT ( * ) * - 62 AS col0 FROM tab2 AS cor0
----
-12276

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL + COUNT( * ) + + MAX( ALL - - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL + COUNT ( * ) + + MAX ( ALL - - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 / 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL - COUNT( * ) + 13 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL - COUNT ( * ) + 13 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT COUNT( * ) - COUNT( * ) AS col1, 29 FROM tab1 cor0
----
0
29

skipif mysql # not compatible
query II rowsort label-8766
SELECT COUNT ( * ) - COUNT ( * ) AS col1, 29 FROM tab1 cor0
----
0
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col0 ) col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + 76 - + - 7 + - - 51 FROM tab2 AS cor0
----
134

query I rowsort
SELECT + - ( 92 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-92
-92
-92

query I rowsort
SELECT ALL - col0 + - - 85 AS col0 FROM tab2 AS cor0
----
10
21
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8771
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + col2 / - - 1 * - 26 + + col1 * - ( col0 ) * 42 * + + 60 + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8771
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + col2 / - - 1 * - 26 + + col1 * - ( col0 ) * 42 * + + 60 + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * + - col2 + - col2 AS col1 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT DISTINCT col0 - + + 49 * CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
1116
146
3984

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT col0 - + + 49 * CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
1116
146
3984

query I rowsort
SELECT 0 + 47 + - col2 * + col1 FROM tab1
----
-1297
-248
-3149

query I rowsort
SELECT + 89 * col2 * col0 * + 97 FROM tab1
----
42267168
43294495
53421004

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - SUM( DISTINCT - - col0 ) * + COUNT( + col1 ) AS col2 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-8776
SELECT - SUM ( DISTINCT - - col0 ) * + COUNT ( + col1 ) AS col2 FROM tab2
----
-555

query I rowsort
SELECT + col1 * - 23 AS col1 FROM tab1 AS cor0
----
-1081
-115
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IN ( + col2, col2, + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8778
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IN ( + col2, col2, + col0 )
----
-3

query I rowsort
SELECT ALL - ( + 81 ) * + 58 + - 11 FROM tab2 cor0
----
-4709
-4709
-4709

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= col2
----

query II rowsort
SELECT DISTINCT 43 AS col0, + col0 - + - ( - 78 ) FROM tab1
----
43
-27
43
13
43
7

query I rowsort
SELECT DISTINCT - col0 * - - col2 - + col2 AS col2 FROM tab1 cor0
----
-4992
-5074
-6256

query I rowsort
SELECT ALL - col2 * col0 + - + 60 FROM tab0 AS cor0
----
-765
-930
-9663

query I rowsort
SELECT ALL - 32 * + - col1 FROM tab0 cor0
----
2592
32
672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8785
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8785
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 41 * - col1 + - 43 FROM tab0 AS cor0
----
-2
3278
818

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + + 59 col1 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT col0 + - col2 * + + col1 AS col2 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND col0 + + + ( - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT + col2 * + col0 + 90 - - + CAST( NULL AS SIGNED ) * 73 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT + col2 * + col0 + 90 - - + CAST ( NULL AS INTEGER ) * 73 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 19 * - - 69 * - col1 AS col2 FROM tab2
----
-100907
-66838
-87779

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT col2 DIV col0 * + - col2 + + col0 + + col1 + + col2 FROM tab2
----
120
181
200

skipif mysql # not compatible
query I rowsort label-8794
SELECT col2 / col0 * + - col2 + + col0 + + col1 + + col2 FROM tab2
----
120
181
200

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT + col2 + + col2 DIV + - 49 AS col0 FROM tab0
----
10
47
97

skipif mysql # not compatible
query I rowsort label-8795
SELECT + col2 + + col2 / + - 49 AS col0 FROM tab0
----
10
47
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8797
SELECT ALL - CAST( 72 AS SIGNED ) + + COUNT( * ) + + + 79, - 55 col0 FROM tab2 cor0
----
10
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8797
SELECT ALL - CAST ( 72 AS INTEGER ) + + COUNT ( * ) + + + 79, - 55 col0 FROM tab2 cor0
----
10
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8798
SELECT + + COUNT( * ) DIV - 22 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8798
SELECT + + COUNT ( * ) / - 22 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 - + col1 FROM tab2 AS cor0 WHERE col2 * 93 IN ( + + col0 / col0 * - 76 * - 47, col2 )
----

query I rowsort
SELECT ALL - - 26 + 33 + col2 * - col1 - 27 FROM tab0 AS cor0
----
-178
-3775
-67

query I rowsort
SELECT ALL - - 98 * - + ( 31 ) - - - 26 - - - col2 - - + 60 FROM tab1 AS cor0
----
-3063
-3072
-3100

query I rowsort
SELECT DISTINCT col2 * col2 - + + col0 AS col0 FROM tab1
----
3396
4533
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8803
SELECT + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT - 35 + - + col1 * + 96 FROM tab0 AS cor0
----
-131
-2051
-7811

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 39 * - col2, 25 * col0 + - col1, - - col2, - 12 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 74 + - + 80 * - - 10 * - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT SUM( col2 ) * + + MAX( + - ( + col0 ) ) + - + 60 * + 21 * + MAX( - + 91 ) AS col1 FROM tab2 AS cor0
----
109094

skipif mysql # not compatible
query I rowsort label-8807
SELECT SUM ( col2 ) * + + MAX ( + - ( + col0 ) ) + - + 60 * + 21 * + MAX ( - + 91 ) AS col1 FROM tab2 AS cor0
----
109094

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL SUM( - 0 ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8808
SELECT ALL SUM ( - 0 ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8809
SELECT + col1 - - col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT + col1 - - col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 65 ) FROM tab0 cor0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 41 + - - 84 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 + - ( - - col2 ) col2, - col1 AS col1 FROM tab1 AS cor0
----
-45
-14
23
-47
26
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80, col2 col1 FROM tab1
----
80
59
80
68
80
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0, col1 AS col2 FROM tab0 WHERE ( + 34 ) IS NOT NULL
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL SUM( DISTINCT 47 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL SUM ( DISTINCT 47 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8817
SELECT ALL - CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL - CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8818
SELECT - col0 AS col0, 87 + + + 70 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
157
-85
157
-91
157

skipif mysql # not compatible
query II rowsort label-8818
SELECT - col0 AS col0, 87 + + + 70 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
157
-85
157
-91
157

query II rowsort
SELECT DISTINCT - + col2, - col0 AS col2 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 46 col0 FROM tab2 AS cor0
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE + 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT ALL + col2 * - + col1 * - col2 / - - CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + col2 * - + col1 * - col2 / - - CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - col0 * + - col1 - + col2 AS col0 FROM tab2 AS cor0
----
2374
4965
5034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8825
SELECT + COUNT( + + col2 ) col0, CAST( NULL AS SIGNED ) * + ( + + 30 ) AS col2 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8825
SELECT + COUNT ( + + col2 ) col0, CAST ( NULL AS INTEGER ) * + ( + + 30 ) AS col2 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2, col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <> - col2 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 65 * - col1 + + ( + 84 ) FROM tab1 AS cor0
----
-241
-2971
-826

query II rowsort
SELECT ALL - - ( col2 ) * - - col2 * ( 33 ) AS col0, ( + - 6 ) AS col0 FROM tab2 AS cor0
----
111012
-6
17457
-6
52800
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - col2 + col2 >= NULL
----

query I rowsort
SELECT + 79 * + 8 FROM tab0
----
632
632
632

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL COUNT( * ) * - - ( - SUM( + col0 ) ) AS col0 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL COUNT ( * ) * - - ( - SUM ( + col0 ) ) AS col0 FROM tab0
----
-597

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1 * - 46
----

query I rowsort
SELECT + 63 FROM tab0 cor0 WHERE NULL NOT IN ( + 41, col1 )
----

query II rowsort
SELECT + col2, col0 * - + 78 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT ALL + 43 DIV - + col1 + + 4 AS col1 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + 43 / - + col1 + + 4 AS col1 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL + MIN( DISTINCT - 37 ) FROM tab1 WHERE NOT - col1 + col0 * - 31 IS NULL
----
-37

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + MIN ( DISTINCT - 37 ) FROM tab1 WHERE NOT - col1 + col0 * - 31 IS NULL
----
-37

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 5 + - 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + - ( col1 ) col2 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL + + ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL + + ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8842
SELECT - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + - 88 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8844
SELECT ALL + COUNT( * ) DIV - 69 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL + COUNT ( * ) / - 69 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT 31 * - + col2 * + - 93 AS col0 FROM tab0
----
135501
285417
28830

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8847
SELECT - col0 DIV - ( + 8 ), - 88 DIV + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
10
NULL
11
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-8847
SELECT - col0 / - ( + 8 ), - 88 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
10
NULL
11
NULL
6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT DISTINCT CAST( + + col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ALL ( - - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL ( - - COUNT ( * ) ) FROM tab1
----
3

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT DISTINCT MAX( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT MAX ( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT - col1 DIV - - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT - col1 / - - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8855
SELECT - COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8856
SELECT ALL + + col0 DIV - - col0 FROM tab2 WHERE + col1 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + + col0 / - - col0 FROM tab2 WHERE + col1 IS NOT NULL
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8857
SELECT DISTINCT * FROM tab1 WHERE + - CAST( - - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8857
SELECT DISTINCT * FROM tab1 WHERE + - CAST ( - - col2 AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL - MAX( 6 ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - MAX ( 6 ) FROM tab0 cor0
----
-6

query I rowsort
SELECT ALL - col1 + + 99 AS col0 FROM tab2 AS cor0
----
22
32
48

query I rowsort
SELECT DISTINCT + col2 + - - 66 AS col2 FROM tab0 AS cor0
----
113
165
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT col1 DIV - - ( - + 27 ) AS col1 FROM tab2 AS cor0 WHERE ( + 22 + ( - 38 ) ) <> col0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-8862
SELECT col1 / - - ( - + 27 ) AS col1 FROM tab2 AS cor0 WHERE ( + 22 + ( - 38 ) ) <> col0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT SUM( - col1 ) + - - 4 + - SUM( 24 ) * - 3 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-8863
SELECT SUM ( - col1 ) + - - 4 + - SUM ( 24 ) * - 3 FROM tab0
----
117

query II rowsort
SELECT + + 85, col0 AS col0 FROM tab2 WHERE - col1 + + 60 IS NOT NULL
----
85
46
85
64
85
75

query II rowsort
SELECT 21 + + 54 AS col2, 32 AS col1 FROM tab0
----
75
32
75
32
75
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT MAX( ALL + - 90 ) + + - COUNT( - + col1 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8866
SELECT MAX ( ALL + - 90 ) + + - COUNT ( - + col1 ) FROM tab0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col1 col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT ( - 21 ) * - 93 + - ( COUNT( * ) ) FROM tab1
----
1950

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT ( - 21 ) * - 93 + - ( COUNT ( * ) ) FROM tab1
----
1950

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT - col1 DIV - 67 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8869
SELECT - col1 / - 67 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 15 - 12 * + col2 FROM tab0 AS cor0
----
-105
-1173
-549

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8871
SELECT ALL col1 * col0 - col1 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL col1 * col0 - col1 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - 57 - + 86 AS col1 FROM tab0
----
-28
-8
52

query I rowsort
SELECT - - ( - 7 ) * + col1 FROM tab2 AS cor0
----
-357
-469
-539

query II rowsort
SELECT ALL col0, 38 * - + 8 AS col0 FROM tab2 AS cor0
----
46
-304
64
-304
75
-304

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8875
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col2 < + CAST( col2 AS SIGNED ) + col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-8875
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col2 < + CAST ( col2 AS INTEGER ) + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL + 50 * 44 * - MIN( ALL - - 97 ) AS col1 FROM tab1 AS cor0
----
-213400

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + 50 * 44 * - MIN ( ALL - - 97 ) AS col1 FROM tab1 AS cor0
----
-213400

query I rowsort
SELECT - - col2 * - 72 FROM tab0 cor0
----
-3384
-7128
-720

query I rowsort
SELECT DISTINCT 48 FROM tab0 AS cor0 WHERE NOT ( ( + ( + col2 ) ) - col2 * + ( + 6 ) * - col0 ) IS NULL
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT DISTINCT - - col1 DIV 10 FROM tab2 AS cor0
----
5
6
7

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT - - col1 / 10 FROM tab2 AS cor0
----
5
6
7

query II rowsort
SELECT ALL col1 * - col1 AS col2, col2 FROM tab0
----
-1
99
-441
10
-6561
47

query I rowsort
SELECT + + col0 * 90 FROM tab2 cor0
----
4140
5760
6750

query I rowsort
SELECT DISTINCT - - 27 AS col1 FROM tab0 AS cor0
----
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 29 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT - 51 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT - 51 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT SUM( + 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8885
SELECT SUM ( + 33 ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + COUNT( * ) * - - 30 AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8886
SELECT + COUNT ( * ) * - - 30 AS col2 FROM tab2 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 75 ) col2 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - MAX( - - 90 ) FROM tab1 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8888
SELECT - MAX ( - - 90 ) FROM tab1 cor0
----
-90

query I rowsort
SELECT ALL col0 + 93 AS col0 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT DISTINCT 61 + + 10 * + col1 FROM tab2 AS cor0
----
571
731
831

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT DISTINCT - - 96 + + + COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT - - 96 + + + COUNT ( * ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL - COUNT( * ) + + 98 FROM tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL - COUNT ( * ) + + 98 FROM tab2 cor0
----
95

query I rowsort
SELECT ALL - ( - - col2 ) - - col0 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT 11 - + 28 + + ( - - col2 ) DIV + - col1 FROM tab0
----
-116
-17
-17

skipif mysql # not compatible
query I rowsort label-8894
SELECT 11 - + 28 + + ( - - col2 ) / + - col1 FROM tab0
----
-116
-17
-17

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 >= 35
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM tab0 WHERE + col2 <= - 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT - ( col1 ) / + 57 + + col2 - - ( + col2 ) + col1 IN ( 25 * 47, CAST( - 76 AS SIGNED ) + - col2, - ( - + col0 ) + - col2 * - + col1 / + + 76, + 77 / col0 * + col1 * 40 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT - ( col1 ) / + 57 + + col2 - - ( + col2 ) + col1 IN ( 25 * 47, CAST ( - 76 AS INTEGER ) + - col2, - ( - + col0 ) + - col2 * - + col1 / + + 76, + 77 / col0 * + col1 * 40 )
----
51
85
91

onlyif mysql # DIV for integer division: 
query III rowsort label-8898
SELECT col1 DIV 83 + - - col0 * ( - 11 ) * + - 72, + col2, col1 FROM tab0
----
9 values hashing to a6625eea2d2136fdd5a666a7a3f72e66

skipif mysql # not compatible
query III rowsort label-8898
SELECT col1 / 83 + - - col0 * ( - 11 ) * + - 72, + col2, col1 FROM tab0
----
9 values hashing to a6625eea2d2136fdd5a666a7a3f72e66

query I rowsort
SELECT 60 + - col2 FROM tab2
----
2
20
37

query I rowsort
SELECT ( + + 17 ) + - col2 AS col0 FROM tab1
----
-42
-51
-79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8901
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( 64 * + - CAST( NULL AS SIGNED ) ) <= - col0
----

skipif mysql # not compatible
query I rowsort label-8901
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( 64 * + - CAST ( NULL AS INTEGER ) ) <= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT + 17 + - col0 + - col0 - + col0 DIV - 85 + + 88 - - + col0 * + col1 FROM tab1 AS cor0
----
361
4201
717

skipif mysql # not compatible
query I rowsort label-8902
SELECT + 17 + - col0 + - col0 - + col0 / - 85 + + 88 - - + col0 * + col1 FROM tab1 AS cor0
----
361
4201
717

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL COUNT( * ) + - - 39 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL COUNT ( * ) + - - 39 FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL = ( col2 )
----

query I rowsort
SELECT ALL - 76 * + + col2 + - col2 FROM tab0 AS cor0
----
-3619
-7623
-770

query I rowsort
SELECT ALL col1 / + col1 FROM tab1 AS cor0 WHERE NOT + 79 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + col1 AS col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8908
SELECT DISTINCT COUNT( * ) * + MAX( ALL - ( + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * + + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8910
SELECT COUNT( * ) DIV - 58 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT COUNT ( * ) / - 58 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8911
SELECT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + 46 AS col2 FROM tab0
----
3726
46
966

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + 46 AS col2 FROM tab0
----
3726
46
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT - 92 * 50 + - + COUNT( * ) FROM tab2 AS cor0
----
-4603

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - 92 * 50 + - + COUNT ( * ) FROM tab2 AS cor0
----
-4603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
0

query II rowsort
SELECT ALL - 43 AS col0, + col2 FROM tab1 AS cor0
----
-43
59
-43
68
-43
96

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8919
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + col1 + - 27
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 35 + - col2 AS col1 FROM tab2 cor0
----
-23
-5
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - COUNT( * ) * ( + MIN( DISTINCT - - col2 ) ) AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - COUNT ( * ) * ( + MIN ( DISTINCT - - col2 ) ) AS col2 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT + 38 + - COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + 38 + - COUNT ( * ) FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT + COUNT( * ) + ( MIN( 97 ) ) FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8925
SELECT + COUNT ( * ) + ( MIN ( 97 ) ) FROM tab2 AS cor0
----
100

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT DISTINCT + AVG ( - - col0 ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + AVG ( - - col0 ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT 19 * CAST( NULL AS SIGNED ) + + - col2 + 88 - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT 19 * CAST ( NULL AS INTEGER ) + + - col2 + 88 - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT DISTINCT - - 98 + 53 - - col1 * CAST( NULL AS SIGNED ) * - + col2 * - col0 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - - 98 + 53 - - col1 * CAST ( NULL AS INTEGER ) * - + col2 * - col0 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL - col1 + - 49 AS col1 FROM tab2
----
-100
-116
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL MIN( ALL col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL MIN ( ALL col0 ) AS col0 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT ALL CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) - - 95 * - 45 * + MAX( DISTINCT - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) - - 95 * - 45 * + MAX ( DISTINCT - col1 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col2 >= 30 - - + col2
----

query I rowsort
SELECT + + 78 - + col1 AS col1 FROM tab0 AS cor0
----
-3
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT - - COUNT( + 35 ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT DISTINCT - - COUNT ( + 35 ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col0 + - 48 AS col2 FROM tab2 AS cor0
----
-2
16
27

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8938
SELECT col0, col0 AS col1, - col1 / + CAST( NULL AS SIGNED ) - - - 53 * col1 FROM tab2 AS cor0
----
9 values hashing to 1799f10e6a6d6d3d8b2b9ad6b7464bb9

skipif mysql # not compatible
query III rowsort label-8938
SELECT col0, col0 AS col1, - col1 / + CAST ( NULL AS INTEGER ) - - - 53 * col1 FROM tab2 AS cor0
----
9 values hashing to 1799f10e6a6d6d3d8b2b9ad6b7464bb9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT 77 >= + 97 * + 82 )
----

query I rowsort
SELECT ALL + 65 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94 col1, col2 FROM tab1 AS cor0
----
94
59
94
68
94
96

query II rowsort
SELECT DISTINCT - 79, col2 FROM tab2 AS cor0
----
-79
23
-79
40
-79
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT ALL MAX( - col0 ) AS col2, 38 AS col2 FROM tab0 AS cor0
----
-15
38

skipif mysql # not compatible
query II rowsort label-8943
SELECT ALL MAX ( - col0 ) AS col2, 38 AS col2 FROM tab0 AS cor0
----
-15
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - SUM( + + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8944
SELECT - SUM ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - col0 - - col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT + col2, - 67 FROM tab1 AS cor0 WHERE NOT 42 + - col1 IS NULL
----
59
-67
68
-67
96
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL 77 col1 FROM tab0 AS cor0 WHERE NOT ( + 31 * + CAST( - + ( + + 15 ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8948
SELECT ALL 77 col1 FROM tab0 AS cor0 WHERE NOT ( + 31 * + CAST ( - + ( + + 15 ) AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT + 27, col1 - + + col1 AS col0 FROM tab2 AS cor0
----
27
0
27
0
27
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 26 <= - - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - + 69 AND - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 >= + 32
----
46
51
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8954
SELECT MIN( - + col1 ) AS col1, ( + COUNT( * ) ) FROM tab2
----
-77
3

skipif mysql # not compatible
query II rowsort label-8954
SELECT MIN ( - + col1 ) AS col1, ( + COUNT ( * ) ) FROM tab2
----
-77
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8955
SELECT ALL CAST( NULL AS SIGNED ) * 88, col2 + - col0 AS col2 FROM tab1
----
NULL
-23
NULL
-26
NULL
45

skipif mysql # not compatible
query II rowsort label-8955
SELECT ALL CAST ( NULL AS INTEGER ) * 88, col2 + - col0 AS col2 FROM tab1
----
NULL
-23
NULL
-26
NULL
45

query I rowsort
SELECT ALL - col2 * - col0 * 1 * + 85 FROM tab1
----
416160
426275
525980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) * + 22 / + - col2 * - 94 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) * + 22 / + - col2 * - 94 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT ALL 8 * CAST( NULL AS SIGNED ) / - col2 / 58 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL 8 * CAST ( NULL AS INTEGER ) / - col2 / 58 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + 7, - col0 FROM tab2 WHERE NULL > + col1 + + col0 * - 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT ( - col0 ) DIV + col2 + + 48 FROM tab1
----
47
47
48

skipif mysql # not compatible
query I rowsort label-8960
SELECT ( - col0 ) / + col2 + + 48 FROM tab1
----
47
47
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8961
SELECT + - COUNT( * ) + ( + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT + - COUNT ( * ) + ( + + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT 69 DIV - 55 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8962
SELECT 69 / - 55 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 48 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-48
-48
-48

query II rowsort
SELECT DISTINCT + + col1 AS col2, + 2 / + col1 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 * - + 39 * + 89 AS col0 FROM tab1 AS cor0
----
-163137
-17355
-48594

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT - 40 * - COUNT( * ), 76 * 12 * - - COUNT( * ) * + 67 - 37 AS col2 FROM tab1 cor0 WHERE - col1 + 11 / + col0 IS NOT NULL
----
120
183275

skipif mysql # not compatible
query II rowsort label-8966
SELECT - 40 * - COUNT ( * ), 76 * 12 * - - COUNT ( * ) * + 67 - 37 AS col2 FROM tab1 cor0 WHERE - col1 + 11 / + col0 IS NOT NULL
----
120
183275

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT + col2 DIV col1 * + ( 12 ) FROM tab1 AS cor0
----
12
132
72

skipif mysql # not compatible
query I rowsort label-8967
SELECT + col2 / col1 * + ( 12 ) FROM tab1 AS cor0
----
12
132
72

query I rowsort
SELECT DISTINCT 7 + + col1 FROM tab0 AS cor0
----
28
8
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col2 + - 43 * 71, + ( 32 ), + + col1 ) OR NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + 56 - - col2 FROM tab2 AS cor0
----
32
33
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * 49 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + 57 + - col0 AS col0 FROM tab0
----
-30
-40
42

query I rowsort
SELECT - 93 + + col1 AS col2 FROM tab2
----
-16
-26
-42

query I rowsort
SELECT col0 + 58 + + 96 AS col0 FROM tab2
----
200
218
229

query III rowsort
SELECT * FROM tab1 WHERE - ( - col0 ) / - col1 + + + 93 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + col1 col1 FROM tab2
----
141
157
167

query I rowsort
SELECT 83 + - - col1 AS col0 FROM tab0
----
104
164
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 - - col2 * col0 col1 FROM tab1
----
4815
4934
6107

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT COUNT( * ) + - 11 - + COUNT( + 51 ) + + COUNT( * ) * - 26 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-8980
SELECT COUNT ( * ) + - 11 - + COUNT ( + 51 ) + + COUNT ( * ) * - 26 FROM tab2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT - 62 DIV + 21 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8981
SELECT - 62 / + 21 FROM tab1 cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 51 < - col0 * - + 46 + - 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT + col0 * + + col0 / col1 + col0 * - - CAST( NULL AS SIGNED ) - CAST( + col2 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT + col0 * + + col0 / col1 + col0 * - - CAST ( NULL AS INTEGER ) - CAST ( + col2 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT DISTINCT SUM( - + 69 ) FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT SUM ( - + 69 ) FROM tab0
----
-207

query II rowsort
SELECT DISTINCT + col1, - col1 * + 66 + - + ( + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 54 AS col1 FROM tab2
----
-2754
-3618
-4158

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT COUNT( ALL col1 ) * + 74, COUNT( * ) * - - 87 AS col0 FROM tab1 AS cor0
----
222
261

skipif mysql # not compatible
query II rowsort label-8988
SELECT COUNT ( ALL col1 ) * + 74, COUNT ( * ) * - - 87 AS col0 FROM tab1 AS cor0
----
222
261

query I rowsort
SELECT + 68 AS col1 FROM tab2 AS cor0 WHERE NOT - ( + 90 ) IS NULL
----
68
68
68

query I rowsort
SELECT ALL - 60 * ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5220
-5820
-900

query II rowsort
SELECT DISTINCT - + ( + + ( + col2 ) ) AS col2, + col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + 33
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8993
SELECT DISTINCT col0 AS col0, 36 DIV + + ( - + col0 ) AS col2 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-8993
SELECT DISTINCT col0 AS col0, 36 / + + ( - + col0 ) AS col2 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT 64 + - - col1 + 52 DIV + 30 + + - col1 + 23 FROM tab1
----
88
88
88

skipif mysql # not compatible
query I rowsort label-8994
SELECT 64 + - - col1 + 52 / + 30 + + - col1 + 23 FROM tab1
----
88
88
88

query I rowsort
SELECT - col1 + - + col1 * - col1 AS col1 FROM tab1
----
182
20
2162

query I rowsort
SELECT ALL - 48 * + 33 AS col2 FROM tab0
----
-1584
-1584
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT 15 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT 15 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 63, - ( + 82 ) AS col0 FROM tab1
----
-63
-82
-63
-82
-63
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT ALL + CAST( NULL AS SIGNED ) + + ( - CAST( + 66 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( - CAST ( + 66 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + 98 AS col0 FROM tab2 AS cor0
----
144
162
173

query I rowsort
SELECT ALL + 74 + col2 * - 27 AS col2 FROM tab2 AS cor0
----
-1006
-1492
-547

query I rowsort
SELECT ALL col0 * + 31 - + - col2 * - + col0 + + 48 FROM tab0
----
-192
-6548
1875

query I rowsort
SELECT DISTINCT - col0 * + - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT - 82 + + COUNT( 20 ) AS col0, ( SUM( DISTINCT + 93 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-73
93

skipif mysql # not compatible
query II rowsort label-9004
SELECT - 82 + + COUNT ( 20 ) AS col0, ( SUM ( DISTINCT + 93 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-73
93

query I rowsort
SELECT - - col2 + - col1 - + - col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE + CAST( + col1 AS SIGNED ) + col2 + CAST( + col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9006
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) + col2 + CAST ( + col0 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT ALL - AVG ( DISTINCT 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-9007
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 35 + + - 10 + - + 93 - - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-191
-3860
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 55
----

query I rowsort
SELECT ( - + ( col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - col0 * + + 21 + col0 AS col1, col2 * 68 + - 59 * + col2 FROM tab1
----
-1020
864
-1700
531
-1820
612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9012
SELECT ALL * FROM tab0 WHERE - col2 - - col2 * ( - CAST( - 96 AS SIGNED ) ) - col0 < + + col1 + 37
----

skipif mysql # not compatible
query III rowsort label-9012
SELECT ALL * FROM tab0 WHERE - col2 - - col2 * ( - CAST ( - 96 AS INTEGER ) ) - col0 < + + col1 + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT CAST( + 90 AS SIGNED ) FROM tab2
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9013
SELECT CAST ( + 90 AS INTEGER ) FROM tab2
----
90
90
90

query II rowsort
SELECT DISTINCT col0 AS col0, col2 * 66 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
6336
85
3894
91
4488

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN - col1 AND col0 * - ( ( - + col2 ) ) * + 19 + col1 + - - col1 + + col1 / - - 20 + - + ( - 5 )
----

query I rowsort
SELECT DISTINCT - 55 FROM tab1 WHERE + + col2 IS NOT NULL
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT + + SUM( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9018
SELECT + + SUM ( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 9 + + 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9020
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 23 * + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 23 * + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 71 AS col0 FROM tab2 cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT MIN( ALL + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9022
SELECT MIN ( ALL + col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT + 14 + + COUNT( * ) * - COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + 14 + + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT - ( ( - + col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT DISTINCT COUNT( * ) * + COUNT( - col2 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT COUNT ( * ) * + COUNT ( - col2 ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT - 87 * + ( 99 ) AS col0 FROM tab2
----
-8613

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND - - 17 + ( + 50 )
----
97
1
99

query II rowsort
SELECT DISTINCT 11, + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL + MAX( + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL + MAX ( + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT - 57 * - CAST( NULL AS SIGNED ) + - col1 + 35 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT - 57 * - CAST ( NULL AS INTEGER ) + - col1 + 35 * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 80 + 18 * col1 * col0 AS col1 FROM tab2
----
42308
88784
90530

query I rowsort
SELECT + 17 * col2 + col0 FROM tab0 AS cor0
----
1780
257
814

query I rowsort
SELECT - 30 * + + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9034
SELECT 51 col1, COUNT( * ) FROM tab1
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9034
SELECT 51 col1, COUNT ( * ) FROM tab1
----
51
3

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab0 WHERE - 27 IS NOT NULL
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT SUM( col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT SUM ( col1 ) FROM tab2
----
195

query II rowsort
SELECT ALL + col0, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + + col2 + 5 AS col2 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT + - col0 - - + col0 DIV 74 * 14 + 48 FROM tab1 AS cor0
----
-23
-29
-3

skipif mysql # not compatible
query I rowsort label-9039
SELECT + - col0 - - + col0 / 74 * 14 + 48 FROM tab1 AS cor0
----
-23
-29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 WHERE ( - col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 WHERE ( - col1 IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9041
SELECT ( CAST( + ( COUNT( DISTINCT 54 ) ) AS SIGNED ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9041
SELECT ( CAST ( + ( COUNT ( DISTINCT 54 ) ) AS INTEGER ) ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 23 * - 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT DISTINCT CAST( - 62 AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0 WHERE - 58 + + - 93 IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT CAST ( - 62 AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0 WHERE - 58 + + - 93 IS NOT NULL
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT DISTINCT - 54 DIV + - MIN( ALL col1 ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - 54 / + - MIN ( ALL col1 ) AS col2 FROM tab1
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 >= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9046
SELECT * FROM tab2 WHERE NOT col1 + + col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9046
SELECT * FROM tab2 WHERE NOT col1 + + col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 78 AS col1 FROM tab1 cor0
----
78
78
78

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + 48 <= NULL
----

query II rowsort
SELECT ALL - col1 AS col2, ( - 64 ) - + col1 * - col0 FROM tab2 AS cor0
----
-51
2282
-67
4961
-77
4864

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9050
SELECT - SUM( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT - SUM ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 61 AS col0 FROM tab2 AS cor0 WHERE ( + col2 IS NOT NULL )
----
61
61
61

onlyif mysql # DIV for integer division: 
query II rowsort label-9052
SELECT DISTINCT ( + col2 ) + 2 col1, col1 + - 33 + + + ( col2 ) DIV - - col2 AS col2 FROM tab1 cor0
----
61
-27
70
15
98
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9052
SELECT DISTINCT ( + col2 ) + 2 col1, col1 + - 33 + + + ( col2 ) / - - col2 AS col2 FROM tab1 cor0
----
61
-27
70
15
98
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) + - col2 + - ( - + col0 ) / + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) + - col2 + - ( - + col0 ) / + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT DISTINCT + + 99 DIV - col1 + + + col1 AS col2 FROM tab0 AS cor0
----
-98
17
80

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + + 99 / - col1 + + + col1 AS col2 FROM tab0 AS cor0
----
-98
17
80

query I rowsort
SELECT ALL + col1 + 18 + - - ( - - ( - col0 ) ) + + 59 AS col2 FROM tab0 AS cor0
----
-19
11
143

query I rowsort
SELECT - - 79 + - col2 AS col2 FROM tab0 AS cor0
----
-20
32
69

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59 + + col1 + - col2 * + col0 col2, 39 + + - col1 * - col1 FROM tab0 AS cor0
----
-565
6600
-790
480
-9543
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + col2 * - 91 + + col2 col0 FROM tab2 AS cor0
----
-3243
-6680
-9106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) + COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9060
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9061
SELECT ( + CAST( NULL AS DECIMAL ) ) + - - ( - col0 ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ( + CAST ( NULL AS REAL ) ) + - - ( - col0 ) + + col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 * + 88 AS col2, - 80 FROM tab2
----
2024
-80
3520
-80
5104
-80

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9064
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 62 AND + - CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9064
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 62 AND + - CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * - col1 col2 FROM tab0
----
528
6576
98

query III rowsort
SELECT * FROM tab0 WHERE col2 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9067
SELECT - col1 + - + col2 + + CAST( NULL AS SIGNED ), - 66 + + - col1 AS col2 FROM tab0
----
NULL
-147
NULL
-67
NULL
-87

skipif mysql # not compatible
query II rowsort label-9067
SELECT - col1 + - + col2 + + CAST ( NULL AS INTEGER ), - 66 + + - col1 AS col2 FROM tab0
----
NULL
-147
NULL
-67
NULL
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL - COUNT( 98 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - COUNT ( 98 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT MAX( + 33 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9070
SELECT MAX ( + 33 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
99

query I rowsort
SELECT - 50 * + 52 AS col2 FROM tab2 AS cor0
----
-2600
-2600
-2600

query I rowsort
SELECT ALL col0 * 31 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT col0 * - 13 AS col0 FROM tab0 AS cor0
----
-1131
-1261
-195

query I rowsort
SELECT DISTINCT - + 30 AS col0 FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9075
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - 84 * + - 99 AND + 77 + CAST( NULL AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9075
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - 84 * + - 99 AND + 77 + CAST ( NULL AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT + SUM( DISTINCT + 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + SUM ( DISTINCT + 8 ) FROM tab2
----
8

query II rowsort
SELECT DISTINCT + col0, + col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - col0 NOT IN ( - + ( + col2 ) / - col0 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 <> NULL
----

query I rowsort
SELECT + + 39 AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT + 6 AS col1, - 41 * - col1 AS col1 FROM tab2 AS cor0
----
6
2091
6
2747
6
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - - 66 * - - 96 + + SUM( DISTINCT + + ( - - col2 ) ) FROM tab2 AS cor0
----
6457

skipif mysql # not compatible
query I rowsort label-9082
SELECT - - 66 * - - 96 + + SUM ( DISTINCT + + ( - - col2 ) ) FROM tab2 AS cor0
----
6457

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT SUM( - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9083
SELECT SUM ( - + col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT 33 * 45 FROM tab0
----
1485

query I rowsort
SELECT 52 * - - 77 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c4a31353e632d23a6004ce1d25575321

query I rowsort
SELECT ALL 28 + - 23 AS col2 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT - 20 * COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT - 20 * COUNT ( * ) FROM tab1 AS cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT col2 DIV col2 * + 57 AS col2 FROM tab1 cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9089
SELECT col2 / col2 * + 57 AS col2 FROM tab1 cor0
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT - MAX( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( 85 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * - 30 * - col0 ) NOT IN ( 52 + col0, 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9094
SELECT + + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9094
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT DISTINCT SUM( ALL + ( col1 ) ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
103
-3

skipif mysql # not compatible
query II rowsort label-9095
SELECT DISTINCT SUM ( ALL + ( col1 ) ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
103
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + - col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT DISTINCT - CAST( + 25 AS SIGNED ) + 70 * + + 4 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT - CAST ( + 25 AS INTEGER ) + 70 * + + 4 FROM tab2
----
255

query I rowsort
SELECT - ( - col2 ) * 38 + - col0 FROM tab1
----
2157
2493
3597

query I rowsort
SELECT 25 + - + col0 * + col1 FROM tab1
----
-400
-4252
-689

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT - col1 * 95 + 35 DIV - col1 col1 FROM tab2
----
-4845
-6365
-7315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9100
SELECT - col1 * 95 + 35 / - col1 col1 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT ALL + + MIN( + 55 ) + - + 52 - - + 27 AS col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL + + MIN ( + 55 ) + - + 52 - - + 27 AS col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) <= + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL SUM( - 86 ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL SUM ( - 86 ) FROM tab0
----
-258

query I rowsort
SELECT DISTINCT - 4 + - col2 * col0 FROM tab2
----
-1062
-2564
-4354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT CAST( + 72 AS SIGNED ) * + 5 * + 44 + 6 * + col2 AS col2 FROM tab2 cor0
----
15978
16080
16188

skipif mysql # not compatible
query I rowsort label-9104
SELECT CAST ( + 72 AS INTEGER ) * + 5 * + 44 + 6 * + col2 AS col2 FROM tab2 cor0
----
15978
16080
16188

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT - MIN( ALL col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - MIN ( ALL col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - + 92 + col2 FROM tab2 AS cor0
----
-34
-52
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT + SUM( ALL + CAST( NULL AS SIGNED ) ) + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9107
SELECT + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col1 * 24 AS col2 FROM tab1
----
1128
120
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT DISTINCT 34 FROM tab1 WHERE NOT + 54 + + col1 * + col2 NOT BETWEEN NULL AND ( - CAST( - 38 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT 34 FROM tab1 WHERE NOT + 54 + + col1 * + col2 NOT BETWEEN NULL AND ( - CAST ( - 38 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT DISTINCT ( + 96 ) DIV + col1 FROM tab0
----
1
4
96

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT ( + 96 ) / + col1 FROM tab0
----
1
4
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 5 ) NOT BETWEEN + col0 AND - col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col1 ) AND ( + 45 + + col1 )
----

query I rowsort
SELECT - ( 33 ) FROM tab0 WHERE ( NULL ) <= - col0
----

query I rowsort
SELECT + col1 + - 43 FROM tab1
----
-29
-38
4

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( NULL ) = 49 * + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL - ( COUNT( * ) ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - ( COUNT ( * ) ) FROM tab1 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9119
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL 90 * + col1 AS col1 FROM tab0 WHERE NULL = 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + 32 col2 FROM tab2
----
1205
3112
3918

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - MAX( 72 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-9122
SELECT - MAX ( 72 ) FROM tab0
----
-72

query I rowsort
SELECT col0 * 47 FROM tab0 WHERE NOT - col0 / ( col2 ) + 97 NOT IN ( 39 + + col2 / - col1 )
----

query I rowsort
SELECT 19 * - 24 + col1 AS col0 FROM tab2
----
-379
-389
-405

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - ( col2 ) * col1 NOT BETWEEN ( - col1 ) AND NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE - 78 BETWEEN + 91 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT - MAX( col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9127
SELECT - MAX ( col2 ) col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT + CAST( NULL AS SIGNED ) * MIN( col2 ) col2 FROM tab0 WHERE col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9128
SELECT + CAST ( NULL AS INTEGER ) * MIN ( col2 ) col2 FROM tab0 WHERE col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - 29 + + col0 AS col0 FROM tab2
----
17
35
46

query I rowsort
SELECT + ( 34 ) - col0 FROM tab0
----
-53
-63
19

query I rowsort
SELECT DISTINCT 50 FROM tab0 WHERE NOT - 46 <> + col0
----

query I rowsort
SELECT + 18 + ( col1 ) * 25 AS col1 FROM tab1
----
1193
143
368

query III rowsort
SELECT * FROM tab1 WHERE 80 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - MAX( col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9134
SELECT - MAX ( col1 ) AS col0 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * col1 col1 FROM tab0 WHERE NOT ( NULL ) IN ( + 68 * - col0 )
----

query I rowsort
SELECT + col1 / - col2 AS col2 FROM tab2 WHERE NOT NULL <> col2
----

query I rowsort
SELECT 69 + 40 FROM tab1
----
109
109
109

query I rowsort
SELECT DISTINCT + col2 * - col2 - 42 FROM tab2
----
-1642
-3406
-571

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 70 + ( col2 ) ) >= ( NULL )
----

query I rowsort
SELECT ALL col1 + - 40 FROM tab2 AS cor0
----
11
27
37

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab1 cor0
----
-64

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT - MAX( ALL col2 ) + + 57 FROM tab0 AS cor0 WHERE NOT 45 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT - MAX ( ALL col2 ) + + 57 FROM tab0 AS cor0 WHERE NOT 45 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT - COUNT( * ) * + 59 AS col0 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-9144
SELECT - COUNT ( * ) * + 59 AS col0 FROM tab0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT 34 FROM tab1 WHERE NOT + 68 BETWEEN + 90 / col2 + 27 AND ( CAST( NULL AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query I rowsort label-9145
SELECT 34 FROM tab1 WHERE NOT + 68 BETWEEN + 90 / col2 + 27 AND ( CAST ( NULL AS INTEGER ) * - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN + col2 AND ( col2 + + 98 )
----
87
21
10

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT + 23 + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT + 23 + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
114

query I rowsort
SELECT DISTINCT + - 34 * + col1 FROM tab2 AS cor0
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT COUNT( ALL + 14 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( 46 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT COUNT ( ALL + 14 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( 46 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 23 col2 FROM tab2 AS cor0
----
-1173
-1541
-1771

query I rowsort
SELECT 94 * col0 + 23 AS col0 FROM tab0 AS cor0
----
1433
8201
9141

query I rowsort
SELECT ALL + 20 - col1 AS col1 FROM tab0 AS cor0 WHERE 83 IN ( - col0 )
----

query I rowsort
SELECT + 18 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 75 AS col0 FROM tab0 AS cor0 WHERE ( - 72 ) > - 44
----

query I rowsort
SELECT - col0 + 25 FROM tab0 AS cor0
----
-62
-72
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9157
SELECT DISTINCT + COUNT( DISTINCT ( + 57 ) ) col0 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + col1 BETWEEN - 44 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9157
SELECT DISTINCT + COUNT ( DISTINCT ( + 57 ) ) col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + col1 BETWEEN - 44 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT - 6 * 80 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT - 6 * 80 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT COUNT( * ) * COUNT( * ) + - 7 AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9159
SELECT COUNT ( * ) * COUNT ( * ) + - 7 AS col0 FROM tab2 AS cor0
----
2

query I rowsort
SELECT - ( 34 ) + + col2 FROM tab1 cor0
----
25
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col1 col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 + col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL 44 + - col0 FROM tab0
----
-43
-53
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT ALL ( col2 ) DIV 28 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL ( col2 ) / 28 FROM tab2
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 9 NOT BETWEEN ( + col1 + + 16 / col0 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT DISTINCT 31 DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT 31 / col0 FROM tab1
----
0

query I rowsort
SELECT col0 + + ( + col1 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col2 + - col1 col1 FROM tab1 AS cor0
----
4882
5010
6141

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL AND NOT NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT + col1 - - 69 AS col0 FROM tab1 WHERE 34 + + col0 * CAST( NULL AS SIGNED ) NOT BETWEEN - 62 AND ( col0 * 42 )
----

skipif mysql # not compatible
query I rowsort label-9172
SELECT + col1 - - 69 AS col0 FROM tab1 WHERE 34 + + col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN - 62 AND ( col0 * 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT 47 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
423

skipif mysql # not compatible
query I rowsort label-9174
SELECT 47 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
423

query I rowsort
SELECT DISTINCT - ( 85 ) * + col1 FROM tab1 AS cor0 WHERE - 37 - + col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - COUNT( + 63 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9176
SELECT - COUNT ( + 63 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - ( - 36 ) AS col2 FROM tab2 AS cor0
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT DISTINCT col0 DIV ( 26 DIV + 50 + col0 ) - + col1 * - 61 FROM tab0 AS cor0 WHERE 73 IS NOT NULL
----
1282
4942
62

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT col0 / ( 26 / + 50 + col0 ) - + col1 * - 61 FROM tab0 AS cor0 WHERE 73 IS NOT NULL
----
1282
4942
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT 80 * + + col2 + + + col2 DIV 42 col1 FROM tab1 AS cor0
----
4721
5441
7682

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9179
SELECT 80 * + + col2 + + + col2 / 42 col1 FROM tab1 AS cor0
----
4721
5441
7682

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT - - ( + - 34 ) * - + 21 + + 98 * - COUNT( * ) col2 FROM tab0 AS cor0
----
420

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9180
SELECT - - ( + - 34 ) * - + 21 + + 98 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
420

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9181
SELECT - col2 DIV + - CAST( 42 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
16
48
6

skipif mysql # not compatible
query I rowsort label-9181
SELECT - col2 / + - CAST ( 42 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
16
48
6

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL > col1 + - col2 * col2
----

query I rowsort
SELECT + 95 * col1 FROM tab2 AS cor0
----
4845
6365
7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT ALL 77 * + MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * CAST( - 46 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL 77 * + MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * CAST ( - 46 AS INTEGER ) )
----
NULL

query I rowsort
SELECT 85 * 73 AS col1 FROM tab0
----
6205
6205
6205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT + ( col2 ) FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-9186
SELECT + ( col2 ) FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + col2 ) ) BETWEEN - 10 + col0 AND NULL
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT DISTINCT - 15 + - + CAST( - MIN( - 55 ) AS SIGNED ) + 1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - 15 + - + CAST ( - MIN ( - 55 ) AS INTEGER ) + 1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + ( + 77 ) ) NOT IN ( col0 - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT + MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT + MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - COUNT( * ) + 31 FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9192
SELECT - COUNT ( * ) + 31 FROM tab1 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9193
SELECT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 WHERE col1 = - + col2 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 - - 76 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 35 * col1 FROM tab1
----
1645
175
490

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 + - 92 / - 81 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col2, col0 * - + col2 AS col2 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query II rowsort
SELECT - 81 AS col2, - col1 * - col1 + - + 15 * 24 FROM tab0 AS cor0
----
-81
-359
-81
6201
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT - 38 AS col2 FROM tab2 cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 41 col1 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT col0 + + - col0 - col2 + - 69 FROM tab0 AS cor0
----
-116
-168
-79

query I rowsort
SELECT ALL + 3 - - 96 FROM tab2 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT COUNT( * ) FROM tab0 WHERE + 24 NOT BETWEEN NULL AND + col2
----
1

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( * ) FROM tab0 WHERE + 24 NOT BETWEEN NULL AND + col2
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 = ( - col1 )
----

query I rowsort
SELECT col0 * col0 FROM tab2 WHERE ( NOT ( NOT + col2 IS NULL ) )
----

query II rowsort
SELECT DISTINCT + col2 AS col0, - 13 AS col0 FROM tab0
----
10
-13
47
-13
99
-13

query I rowsort
SELECT DISTINCT 28 - - - 33 FROM tab0
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9211
SELECT - CAST( - col0 AS SIGNED ) DIV 77 + col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
60
NULL
69
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9211
SELECT - CAST ( - col0 AS INTEGER ) / 77 + col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
60
NULL
69
NULL
96
NULL

query I rowsort
SELECT + col0 * - col2 + + - col0 * - col0 * - 48 FROM tab1 AS cor0
----
-129744
-351815
-403676

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col2
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE - 29 + - + col1 BETWEEN ( ( - col1 ) ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( ( - col1 ) ) * + + 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9219
SELECT DISTINCT - 26 * + - col1 FROM tab1 AS cor0 WHERE NOT CAST( + 94 AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT - 26 * + - col1 FROM tab1 AS cor0 WHERE NOT CAST ( + 94 AS REAL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 98 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + 98 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 43 * + 65 = col2
----
-51
-85
-91

query I rowsort
SELECT ALL - 63 AS col1 FROM tab1 cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT + - COUNT( * ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9223
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 62 = NULL
----

query II rowsort
SELECT col2, + 96 + - 38 FROM tab2
----
23
58
40
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT 55 * 3 + - - COUNT( * ) AS col1 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-9227
SELECT 55 * 3 + - - COUNT ( * ) AS col1 FROM tab1
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9228
SELECT + SUM( - + col1 ) DIV + 31 + + COUNT( * ), MIN( - CAST( + 93 AS SIGNED ) ) AS col0 FROM tab0
----
0
-93

skipif mysql # not compatible
query II rowsort label-9228
SELECT + SUM ( - + col1 ) / + 31 + + COUNT ( * ), MIN ( - CAST ( + 93 AS INTEGER ) ) AS col0 FROM tab0
----
0
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9229
SELECT DISTINCT * FROM tab1 WHERE col1 * + - ( + + col1 ) - - col1 + - 45 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9229
SELECT DISTINCT * FROM tab1 WHERE col1 * + - ( + + col1 ) - - col1 + - 45 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT col2 col2 FROM tab0 WHERE NOT ( + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9230
SELECT col2 col2 FROM tab0 WHERE NOT ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT - MIN( ALL - + 57 ) * + MIN( ALL - - col1 ) FROM tab2 WHERE NOT - 54 IS NULL
----
2907

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - MIN ( ALL - + 57 ) * + MIN ( ALL - - col1 ) FROM tab2 WHERE NOT - 54 IS NULL
----
2907

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + COUNT( DISTINCT + + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + COUNT ( DISTINCT + + col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 68 + + 41 * - - col0 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - 72 AS col1 FROM tab2 AS cor0
----
112
130
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT + 98 * 95 DIV + COUNT( * ) FROM tab1
----
3103

skipif mysql # not compatible
query I rowsort label-9235
SELECT + 98 * 95 / + COUNT ( * ) FROM tab1
----
3103

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 31, col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - col1 + + col2 * 50 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col2 + + + col0
----

query I rowsort
SELECT ALL 74 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 4
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL - ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT ALL + SUM( ALL + + col1 ) DIV + - ( + 84 ) + + + SUM( ALL + + col0 ) AS col1 FROM tab2 cor0
----
183

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + SUM ( ALL + + col1 ) / + - ( + 84 ) + + + SUM ( ALL + + col0 ) AS col1 FROM tab2 cor0
----
183

query I rowsort
SELECT + + col0 + - col2 - - - col1 AS col0 FROM tab2 AS cor0
----
-28
-50
-53

query I rowsort
SELECT - 48 * - col1 + + col1 + col0 - + col0 * + ( + col2 ) + + - col0 - + - 75 + + 23 FROM tab2 AS cor0
----
-969
1311
1539

query I rowsort
SELECT DISTINCT + + 91 * - + 94 + + + 42 FROM tab1 AS cor0
----
-8512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( ALL - - col0 ) + - 16 col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + - - 16 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + - - 16 FROM tab1 AS cor0
----
16

query I rowsort
SELECT DISTINCT + col2 - - + col2 AS col1 FROM tab2
----
116
46
80

query III rowsort
SELECT * FROM tab2 WHERE - col1 - - + 89 * + + col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT DISTINCT - CAST( NULL AS SIGNED ) - ( + - col0 ) + - 78 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - ( + - col0 ) + - 78 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL - col2 DIV + - 28 - + 19 FROM tab1
----
-16
-17
-17

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - col2 / + - 28 - + 19 FROM tab1
----
-16
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT + CAST( - + col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9252
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col2 * + + col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9254
SELECT * FROM tab0 cor0 WHERE NOT + CAST( + - col2 AS SIGNED ) <= + col0 * - - col1 / + - col2
----
87
21
10

skipif mysql # not compatible
query III rowsort label-9254
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( + - col2 AS INTEGER ) <= + col0 * - - col1 / + - col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - MAX( col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9256
SELECT - MAX ( col1 ) FROM tab2
----
-77

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL + SUM( DISTINCT + 84 ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + SUM ( DISTINCT + 84 ) AS col2 FROM tab2
----
84

query I rowsort
SELECT DISTINCT - 33 - 37 AS col2 FROM tab0 AS cor0 WHERE + 18 IS NOT NULL
----
-70

query I rowsort
SELECT col1 - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 + col0
----

query II rowsort
SELECT col2 AS col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 73 col2 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT DISTINCT 42 * - + ( + 1 ) + CAST( 1 AS SIGNED ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT 42 * - + ( + 1 ) + CAST ( 1 AS INTEGER ) FROM tab2 AS cor0
----
-41

query I rowsort
SELECT - + ( - - 48 ) * + col0 + + ( 27 ) * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-2482
-2485
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT DISTINCT + - 10 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT + - 10 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + 62 * + col2 FROM tab2 cor0
----
-1426
-2480
-3596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT ALL - + CAST( NULL AS SIGNED ) * - - 74 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-9267
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - 74 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, + col0 * 41 * + 96 FROM tab1 AS cor0
----
14
200736
47
358176
5
334560

query II rowsort
SELECT ALL - + col0 AS col1, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 70 * + col2 * - + col1 FROM tab0
----
-14700
-266490
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT - 49 * - SUM( DISTINCT - 47 ) AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT - 49 * - SUM ( DISTINCT - 47 ) AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT ALL 75 AS col0, - COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
75
-9

skipif mysql # not compatible
query II rowsort label-9273
SELECT ALL 75 AS col0, - COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
75
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT + - col1 + + + col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT + - MAX( - 2 ) + + + 51 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT + - MAX ( - 2 ) + + + 51 FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9278
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) / + 9 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND + - col1
----

skipif mysql # not compatible
query III rowsort label-9278
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) / + 9 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND + - col1
----

query I rowsort
SELECT DISTINCT col0 + + - 13 AS col2 FROM tab0
----
2
74
84

query I rowsort
SELECT - + col1 * 89 * - 95 + col2 - - 78 * ( - - col1 ) FROM tab2 AS cor0
----
435206
571769
657081

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - MAX( - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9281
SELECT - MAX ( - col0 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT DISTINCT + 17, - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
17
-46
17
-64
17
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + 86 col1 FROM tab0 AS cor0
----
-39
-76
13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 52 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col0 + ( + + 51 ) + col1 FROM tab0 AS cor0
----
-15
-45
117

query I rowsort
SELECT DISTINCT - + col2 + col0 + col1 AS col1 FROM tab0 AS cor0
----
-1
49
98

query II rowsort
SELECT ALL - 32, ( + + col0 ) FROM tab1 cor0
----
-32
51
-32
85
-32
91

query I rowsort
SELECT + col2 - + 1 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL + 55 * + COUNT( * ) + + SUM( + col1 ) + + 87 FROM tab2 AS cor0
----
447

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + 55 * + COUNT ( * ) + + SUM ( + col1 ) + + 87 FROM tab2 AS cor0
----
447

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT col1 DIV - 75 + + + 90 + - 7 AS col0 FROM tab2 AS cor0
----
82
83
83

skipif mysql # not compatible
query I rowsort label-9291
SELECT col1 / - 75 + + + 90 + - 7 AS col0 FROM tab2 AS cor0
----
82
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT SUM( ALL + - 39 ) FROM tab2 WHERE ( col0 * - + col1 / col2 ) IS NOT NULL
----
-117

skipif mysql # not compatible
query I rowsort label-9292
SELECT SUM ( ALL + - 39 ) FROM tab2 WHERE ( col0 * - + col1 / col2 ) IS NOT NULL
----
-117

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT - col2 - - 31 AS col0 FROM tab2 WHERE col2 * - col0 * col2 IS NOT NULL
----
-27
-9
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL > 76
----
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL > 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT + MAX( - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT + MAX ( - col0 ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 < - + col2
----

query I rowsort
SELECT ALL + + 94 AS col1 FROM tab1 cor0
----
94
94
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 76 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9300
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + + 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + 84 + 49 AS col1 FROM tab0 AS cor0
----
133

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 41, col1, - + col2, + col0 )
----

query I rowsort
SELECT ALL + - 1 * col1 + + 3 FROM tab2 cor0
----
-48
-64
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 88 col1 FROM tab1 AS cor0
----
41
74
83

query II rowsort
SELECT DISTINCT 22 AS col1, + 79 AS col1 FROM tab0 AS cor0
----
22
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 + + col1 + - col1 AND NULL
----

query I rowsort
SELECT ALL ( + 64 ) AS col0 FROM tab0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT SUM( DISTINCT + 48 ) + COUNT( * ) + - - 60 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-9309
SELECT SUM ( DISTINCT + 48 ) + COUNT ( * ) + - - 60 FROM tab2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT + MAX( - col0 ) + + - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-9310
SELECT + MAX ( - col0 ) + + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-49

query I rowsort
SELECT col0 * - 29 + 2 AS col0 FROM tab2
----
-1332
-1854
-2173

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT 87 * MIN( ALL col2 ) FROM tab2
----
2001

skipif mysql # not compatible
query I rowsort label-9312
SELECT 87 * MIN ( ALL col2 ) FROM tab2
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL + MAX( ALL col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL + MAX ( ALL col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94

query II rowsort
SELECT ALL + col2 AS col2, 37 AS col0 FROM tab1 cor0
----
59
37
68
37
96
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL col2 + - CAST( - 79 AS SIGNED ) FROM tab1 cor0
----
138
147
175

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL col2 + - CAST ( - 79 AS INTEGER ) FROM tab1 cor0
----
138
147
175

query I rowsort
SELECT DISTINCT + col1 + - + col2 * + col1 * + 37 * + col2 FROM tab2 AS cor0
----
-4558323
-8339289
-998172

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * 65 = - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9320
SELECT ALL - col2 + 95 AS col1, - col2 DIV + - col2 FROM tab1 AS cor0
----
-1
1
27
1
36
1

skipif mysql # not compatible
query II rowsort label-9320
SELECT ALL - col2 + 95 AS col1, - col2 / + - col2 FROM tab1 AS cor0
----
-1
1
27
1
36
1

query I rowsort
SELECT + - 89 AS col1 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL col2 * 77 FROM tab0 AS cor0 WHERE NULL <= col1 * - + CAST( NULL AS SIGNED ) / + 70
----

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL col2 * 77 FROM tab0 AS cor0 WHERE NULL <= col1 * - + CAST ( NULL AS INTEGER ) / + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT - COUNT( ALL - 97 ) * - - COUNT( * ) * - COUNT( + + 5 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9323
SELECT - COUNT ( ALL - 97 ) * - - COUNT ( * ) * - COUNT ( + + 5 ) FROM tab0
----
27

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 IS NULL )
----

query II rowsort
SELECT ALL ( + + ( 44 ) ) AS col2, - col0 FROM tab0
----
44
-15
44
-87
44
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL - 5 * + - SUM( DISTINCT col2 ) * + COUNT( * ) AS col1 FROM tab1
----
3345

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - 5 * + - SUM ( DISTINCT col2 ) * + COUNT ( * ) AS col1 FROM tab1
----
3345

query I rowsort
SELECT ALL - ( 93 ) FROM tab2 AS cor0
----
-93
-93
-93

query II rowsort
SELECT DISTINCT - - 67, col2 AS col2 FROM tab2 AS cor0
----
67
23
67
40
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ( - COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9329
SELECT ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL - 11 - SUM( ALL + col0 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9330
SELECT ALL - 11 - SUM ( ALL + col0 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----
NULL

query I rowsort
SELECT DISTINCT + col1 + 83 AS col2 FROM tab1 AS cor0
----
130
88
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9332
SELECT - CAST( col1 AS SIGNED ), + ( 58 ) DIV - + ( - 60 ) AS col1 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-9332
SELECT - CAST ( col1 AS INTEGER ), + ( 58 ) / - + ( - 60 ) AS col1 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT DISTINCT - ( + col2 ) DIV - col1 + - col1 col0 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT DISTINCT - ( + col2 ) / - col1 + - col1 col0 FROM tab1 AS cor0
----
-46
-8
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT 88 + COUNT( * ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT 88 + COUNT ( * ) FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - MAX( ALL + - 89 ) * - + ( - 15 ) AS col1 FROM tab2 AS cor0
----
1335

skipif mysql # not compatible
query I rowsort label-9338
SELECT - MAX ( ALL + - 89 ) * - + ( - 15 ) AS col1 FROM tab2 AS cor0
----
1335

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9339
SELECT ALL CAST( NULL AS DECIMAL ) + 77 * - 27 + ( + - 63 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL CAST ( NULL AS REAL ) + 77 * - 27 + ( + - 63 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - + 90 FROM tab0
----
1890
7290
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT - 11 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT - 11 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - ( + MAX( col0 ) ) AS col2 FROM tab0 WHERE - ( 20 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT - ( + MAX ( col0 ) ) AS col2 FROM tab0 WHERE - ( 20 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab1
----
-67

query I rowsort
SELECT + col2 + - + 62 AS col1 FROM tab0 AS cor0
----
-15
-52
37

query I rowsort
SELECT DISTINCT col1 + col1 - + - col2 * 60 AS col1 FROM tab2 AS cor0
----
1482
2554
3614

query I rowsort
SELECT DISTINCT + col1 + + 0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT 5 * - 33 AS col0 FROM tab2
----
-165
-165
-165

query I rowsort
SELECT col1 - + ( + + 45 ) FROM tab0
----
-24
-44
36

query I rowsort
SELECT - col1 - 14 AS col1 FROM tab1
----
-19
-28
-61

query I rowsort
SELECT 53 - + 31 - - + 44 AS col0 FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT ALL - 43, COUNT( * ) AS col1 FROM tab1
----
-43
3

skipif mysql # not compatible
query II rowsort label-9351
SELECT ALL - 43, COUNT ( * ) AS col1 FROM tab1
----
-43
3

query I rowsort
SELECT DISTINCT col0 - + col0 + - col2 * - 34 AS col2 FROM tab2 AS cor0
----
1360
1972
782

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT DISTINCT - - 80 DIV col0 AS col1 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - - 80 / col0 AS col1 FROM tab0 AS cor0
----
0
5

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT MAX( + 51 ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT MAX ( + 51 ) AS col1 FROM tab0
----
51

query I rowsort
SELECT + + col0 + - col1 + - + ( col1 ) * col0 FROM tab0 WHERE NOT NULL <= - + col2 * col2
----

query I rowsort
SELECT + col0 * - + col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT DISTINCT CAST( NULL AS SIGNED ) / + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + - col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT DISTINCT COUNT( - - 7 ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9361
SELECT DISTINCT COUNT ( - - 7 ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL - SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL - SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT + COUNT( - col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9364
SELECT + COUNT ( - col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT + col2 AS col2, - 49 + - + 17 FROM tab0 cor0
----
10
-66
47
-66
99
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + ( - COUNT( * ) ) * + COUNT( * ) * + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + ( - COUNT ( * ) ) * + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT - ( - col0 ) / col2 + - col0 + - 24 - - col1 * - - 43 * + CAST( NULL AS SIGNED ) + - - 52 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-9367
SELECT - ( - col0 ) / col2 + - col0 + - 24 - - col1 * - - 43 * + CAST ( NULL AS INTEGER ) + - - 52 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT col2 DIV col1 FROM tab2 AS cor0 WHERE - col2 * - 92 > ( + - col2 * 15 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9368
SELECT col2 / col1 FROM tab2 AS cor0 WHERE - col2 * - 92 > ( + - col2 * 15 )
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT DISTINCT + col1 + col1 * + CAST( - 36 AS SIGNED ) col0 FROM tab0 AS cor0
----
-2835
-35
-735

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9369
SELECT DISTINCT + col1 + col1 * + CAST ( - 36 AS INTEGER ) col0 FROM tab0 AS cor0
----
-2835
-35
-735

query I rowsort
SELECT DISTINCT - 38 * - 65 FROM tab1
----
2470

query III rowsort
SELECT * FROM tab0 WHERE - + 18 NOT BETWEEN col0 * - col2 + + 28 AND NULL
----

query I rowsort
SELECT - col0 + - - ( - - col0 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT 46 * - col2 FROM tab1
----
-2714
-3128
-4416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + + ( 73 ) - + col2 AS col0 FROM tab0 AS cor0
----
-26
26
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ALL COUNT( - 19 ) + + 82 AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL COUNT ( - 19 ) + + 82 AS col1 FROM tab2 AS cor0
----
85

query III rowsort
SELECT * FROM tab0 WHERE + 91 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - - + 51 FROM tab2
----
-13
-24
5

query I rowsort
SELECT ALL + 59 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE 4 = - 30
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 WHERE NOT + - col1 NOT BETWEEN + col1 AND - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - COUNT( - + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9382
SELECT - COUNT ( - + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT + CAST( + - 53 AS SIGNED ) AS col1 FROM tab2 cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT + CAST ( + - 53 AS INTEGER ) AS col1 FROM tab2 cor0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9384
SELECT - COUNT( * ) AS col1, + MAX( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-9384
SELECT - COUNT ( * ) AS col1, + MAX ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-3
91

query I rowsort
SELECT ALL - + col2 * + 23 AS col2 FROM tab0 AS cor0
----
-1081
-2277
-230

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9386
SELECT - col2 / 75 * + CAST( NULL AS SIGNED ) AS col0, col2 + 46 + col1 * + col2 FROM tab1 cor0
----
NULL
1486
NULL
3310
NULL
400

skipif mysql # not compatible
query II rowsort label-9386
SELECT - col2 / 75 * + CAST ( NULL AS INTEGER ) AS col0, col2 + 46 + col1 * + col2 FROM tab1 cor0
----
NULL
1486
NULL
3310
NULL
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT 61 * - 41 * - + COUNT( ALL - 3 ) AS col1 FROM tab0 AS cor0
----
7503

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT 61 * - 41 * - + COUNT ( ALL - 3 ) AS col1 FROM tab0 AS cor0
----
7503

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9390
SELECT col0, CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-9390
SELECT col0, CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE + col0 / col1 + + + 48 > - col1
----
-3

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE + col0 / col1 + + + 48 > - col1
----
-3

query I rowsort
SELECT - + ( - ( + col2 ) ) FROM tab2 WHERE NOT 62 + + - col0 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT + MIN( ( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9393
SELECT + MIN ( ( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 >= ( + 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT + CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9395
SELECT + CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - 77 + + - 71 FROM tab0 AS cor0
----
-148
-148
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT ALL COUNT( * ) DIV + 71 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL COUNT ( * ) / + 71 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + col0 col0 FROM tab1 AS cor0
----
126
160
166

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + - ( + 61 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

query I rowsort
SELECT col2 / 45 * - + col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + + 73 * + col1 AS col1 FROM tab0 AS cor0
----
1533
5913
73

query I rowsort
SELECT DISTINCT - 18 + - col0 * - col1 * + col0 FROM tab0 AS cor0
----
158931
18207
9391

query I rowsort
SELECT - ( + ( ( + - 46 ) ) ) FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT DISTINCT + + col0 DIV + col2 + + 81 AS col2 FROM tab2 AS cor0
----
82
83

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT + + col0 / + col2 + + 81 AS col2 FROM tab2 AS cor0
----
82
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL COUNT( * ) + 82 + - MAX( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL COUNT ( * ) + 82 + - MAX ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
108

query I rowsort
SELECT ALL 28 + + col0 FROM tab1
----
113
119
79

query I rowsort
SELECT 62 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col0 - + + 67 + - + ( - + col2 ) AS col1 FROM tab2
----
1014
2533
4341

query II rowsort
SELECT ALL + col1 AS col2, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL col1 * col0 * col0 * + + 91 - + 71 FROM tab2
----
28700601
34295554
9820285

query III rowsort
SELECT * FROM tab1 WHERE NULL > + 85
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col1 + + - ( - col2 ) FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT DISTINCT col1 DIV + col0 + - 42 FROM tab2
----
-41
-42

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT col1 / + col0 + - 42 FROM tab2
----
-41
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9417
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0, - ( + 48 ) / - col1 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9417
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0, - ( + 48 ) / - col1 * + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 14 + col2 - - 83 * + ( + + 22 ) = 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT DISTINCT - 45 DIV + col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - 45 / + col0 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT + 75 DIV - col1 + col1 FROM tab1 AS cor0
----
-10
46
9

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + 75 / - col1 + col1 FROM tab1 AS cor0
----
-10
46
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - ( MAX( - + col1 ) ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9421
SELECT - ( MAX ( - + col1 ) ) col1 FROM tab1
----
5

query I rowsort
SELECT DISTINCT ( - col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - ( + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9423
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + MAX( ALL - - col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9424
SELECT + MAX ( ALL - - col2 ) col0 FROM tab2
----
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - - + col1 <= col0 * - 17 / + col0 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9428
SELECT ALL CAST( - 97 AS SIGNED ), col2 FROM tab1
----
-97
59
-97
68
-97
96

skipif mysql # not compatible
query II rowsort label-9428
SELECT ALL CAST ( - 97 AS INTEGER ), col2 FROM tab1
----
-97
59
-97
68
-97
96

query II rowsort
SELECT - col2 AS col0, col0 AS col2 FROM tab2
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT DISTINCT + MAX( DISTINCT + col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9431
SELECT DISTINCT + MAX ( DISTINCT + col2 ) col0 FROM tab1
----
96

query I rowsort
SELECT ALL + col0 + - ( - - 34 ) * col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 61 * - 30 + + col0 + 15 + + 33 FROM tab1 cor0 WHERE NOT + 47 * col1 < - 17 - + col2
----
1929
1963
1969

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + col0 BETWEEN - + col2 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / 77 - + col2 * col0 * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / 77 - + col2 * col0 * - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT + CAST( 2 AS SIGNED ) col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9436
SELECT + CAST ( 2 AS INTEGER ) col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + + col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - COUNT( ALL - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9438
SELECT - COUNT ( ALL - col0 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 24 col0 FROM tab1
----
-10
-19
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9440
SELECT DISTINCT - ( + 92 ) + + - COUNT( * ) DIV - + 18 * 82 * - + COUNT( * ) AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - ( + 92 ) + + - COUNT ( * ) / - + 18 * 82 * - + COUNT ( * ) AS col1 FROM tab2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT + + 78 * - 30 * - - SUM( + + col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-283140

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT + + 78 * - 30 * - - SUM ( + + col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-283140

query III rowsort
SELECT * FROM tab1 WHERE + ( col2 ) = NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE col2 + - col2 BETWEEN - + col0 * + 51 AND col0
----
1
21
81

query II rowsort
SELECT DISTINCT + col2 - + col0 AS col1, ( + + col1 ) AS col1 FROM tab2
----
-17
67
-23
51
-24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT MAX( DISTINCT + + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT MAX ( DISTINCT + + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL col2 * - CAST( col1 AS SIGNED ) - col2 FROM tab2
----
-1196
-3120
-3944

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL col2 * - CAST ( col1 AS INTEGER ) - col2 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9447
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col1, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9447
SELECT DISTINCT + CAST ( NULL AS REAL ) * col1, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9448
SELECT - CAST( NULL AS SIGNED ) + col1 AS col1, + CAST( - col0 AS SIGNED ) * + ( - col0 ) AS col0 FROM tab0 cor0 WHERE NULL <= - col0 * + col2
----

skipif mysql # not compatible
query II rowsort label-9448
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col1, + CAST ( - col0 AS INTEGER ) * + ( - col0 ) AS col0 FROM tab0 cor0 WHERE NULL <= - col0 * + col2
----

query I rowsort
SELECT - col2 - + ( - 96 ) AS col0 FROM tab2 AS cor0
----
38
56
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + + 77 * - + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-9450
SELECT + + 77 * - + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT + MAX( - 64 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + MAX ( - 64 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, 66 AS col2 FROM tab2
----
23
66
40
66
58
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9453
SELECT ALL + CAST( + 82 AS SIGNED ) * 46 DIV col2 + + 15 FROM tab2 AS cor0
----
109
179
80

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + CAST ( + 82 AS INTEGER ) * 46 / col2 + + 15 FROM tab2 AS cor0
----
109
179
80

query II rowsort
SELECT + 52, 43 AS col0 FROM tab0 AS cor0
----
52
43
52
43
52
43

query I rowsort
SELECT ALL - 87 * - col1 AS col2 FROM tab1 AS cor0
----
1218
4089
435

query I rowsort
SELECT ALL - + 80 AS col1 FROM tab1 cor0 WHERE - col0 * 30 + col2 IS NOT NULL
----
-80
-80
-80

query I rowsort
SELECT + - col1 * 8 * + col0 AS col0 FROM tab1 AS cor0
----
-3400
-34216
-5712

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT 75 DIV + + col0 col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9459
SELECT 75 / + + col0 col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT - SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT + ( + + MIN( ALL - - col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9461
SELECT + ( + + MIN ( ALL - - col2 ) ) AS col1 FROM tab1
----
59

query I rowsort
SELECT - AVG ( ALL - col2 ) AS col0 FROM tab2 WHERE NOT NULL > + - 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT ALL + 33 DIV 93 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + 33 / 93 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9464
SELECT 1 DIV - - 3 AS col0, + col0 + CAST( NULL AS SIGNED ) + - col2 col1, - 72 AS col1 FROM tab1
----
9 values hashing to 800e7552a8caeea3c5bc737fd157a9c3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9464
SELECT 1 / - - 3 AS col0, + col0 + CAST ( NULL AS INTEGER ) + - col2 col1, - 72 AS col1 FROM tab1
----
9 values hashing to 800e7552a8caeea3c5bc737fd157a9c3

query I rowsort
SELECT DISTINCT col0 + + + 62 * + + col2 + - - 35 * + 65 AS col2 FROM tab2 AS cor0
----
3747
4819
5946

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT + COUNT( * ) + - - 86 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT + COUNT ( * ) + - - 86 FROM tab0 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9467
SELECT - + col0 + + CAST( NULL AS SIGNED ), col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9467
SELECT - + col0 + + CAST ( NULL AS INTEGER ), col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL - - 12 * - - 71 * 52 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
44307

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - - 12 * - - 71 * 52 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
44307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * + col0 col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL COUNT( + - col1 ) + 27 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL COUNT ( + - col1 ) + 27 FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT - col0 DIV - + 90 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9471
SELECT - col0 / - + 90 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col0 * + - col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT ALL col0 DIV ( - + col2 ) AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL col0 / ( - + col2 ) AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT + 97 DIV + col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9474
SELECT + 97 / + col0 FROM tab2
----
1
1
2

query II rowsort
SELECT 9 AS col0, col0 FROM tab1 AS cor0
----
9
51
9
85
9
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9476
SELECT * FROM tab1 AS cor0 WHERE + col2 + + col1 + - 32 + - ( + - col1 ) + col0 + + CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9476
SELECT * FROM tab1 AS cor0 WHERE + col2 + + col1 + - 32 + - ( + - col1 ) + col0 + + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 78 * - 65 FROM tab0 cor0
----
-5070
-5070
-5070

query I rowsort
SELECT ( + col0 ) + col2 * 82 AS col1 FROM tab0
----
3869
8215
907

query III rowsort
SELECT * FROM tab1 WHERE + col2 >= - col1 / - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col0 - - 0 * + - 52 * 64 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 2 - col2 AS col0 FROM tab0
----
-45
-8
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT COUNT( - 89 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9482
SELECT COUNT ( - 89 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT COUNT( ALL + + 73 ) * MAX( + - 52 ) col0 FROM tab2
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9483
SELECT COUNT ( ALL + + 73 ) * MAX ( + - 52 ) col0 FROM tab2
----
-156

query II rowsort
SELECT ALL col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT MAX( ALL 28 ) col1 FROM tab2
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9486
SELECT DISTINCT MAX ( ALL 28 ) col1 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9487
SELECT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9488
SELECT - CAST( NULL AS SIGNED ) * - + 64 / + 45 AS col2, 25 * col2 AS col0 FROM tab0 AS cor0
----
NULL
1175
NULL
2475
NULL
250

skipif mysql # not compatible
query II rowsort label-9488
SELECT - CAST ( NULL AS INTEGER ) * - + 64 / + 45 AS col2, 25 * col2 AS col0 FROM tab0 AS cor0
----
NULL
1175
NULL
2475
NULL
250

query I rowsort
SELECT ALL + - 75 AS col1 FROM tab2 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL MAX( DISTINCT + - 93 ) AS col2 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL MAX ( DISTINCT + - 93 ) AS col2 FROM tab1 cor0
----
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( - - col0 + - col1, col2, - + 90, - col0 * 28 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 80 IN ( - 41 )
----

query I rowsort
SELECT 83 + + 57 AS col0 FROM tab2 AS cor0
----
140
140
140

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <> - - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT - 99 * - + COUNT( * ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT - 99 * - + COUNT ( * ) FROM tab1
----
297

onlyif mysql # DIV for integer division: 
query II rowsort label-9496
SELECT DISTINCT col1 * col0 DIV + col2, 47 + + col0 AS col0 FROM tab1
----
62
138
7
132
7
98

skipif mysql # not compatible
query II rowsort label-9496
SELECT DISTINCT col1 * col0 / + col2, 47 + + col0 AS col0 FROM tab1
----
62
138
7
132
7
98

query I rowsort
SELECT - 36 + - col1 * + col2 AS col0 FROM tab1
----
-1380
-3232
-331

query II rowsort
SELECT DISTINCT + col0 * + ( + col2 ) AS col0, col2 FROM tab2
----
1058
23
2560
40
4350
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT + + col2 DIV - - ( + - col2 ) AS col0 FROM tab0 WHERE - - 10 * - 1 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9499
SELECT + + col2 / - - ( + - col2 ) AS col0 FROM tab0 WHERE - - 10 * - 1 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - 26 * + + col1 + + col1 AS col0 FROM tab2 AS cor0
----
1377
1809
2079

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col0 + + col1 * - col1 FROM tab1
----
-110
-2300
-247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 - - 27 * + ( + + col2 ) col1, col1 col2 FROM tab1
----
1534
5
1768
47
2496
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT ALL + CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + 1 + col0 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT DISTINCT col1 + + ( + - 9 ) AS col1 FROM tab1 AS cor0
----
-4
38
5

query I rowsort
SELECT + col2 * + - col1 + + col1 AS col0 FROM tab0 cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT + - 67 FROM tab1 AS cor0 WHERE ( NULL ) = - + 92 / - + col2 * - CAST( NULL AS SIGNED ) * - col0 + - col0
----

skipif mysql # not compatible
query I rowsort label-9510
SELECT + - 67 FROM tab1 AS cor0 WHERE ( NULL ) = - + 92 / - + col2 * - CAST ( NULL AS INTEGER ) * - col0 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT - col1 DIV + - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9511
SELECT - col1 / + - col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 * 94 AS col1 FROM tab2 AS cor0
----
-4794
-6298
-7238

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT - + 33 DIV + + 47 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT - + 33 / + + 47 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9514
SELECT CAST( NULL AS DECIMAL ) - + - COUNT( * ) * - 64 AS col2 FROM tab2 AS cor0 WHERE + col1 <= ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT CAST ( NULL AS REAL ) - + - COUNT ( * ) * - 64 AS col2 FROM tab2 AS cor0 WHERE + col1 <= ( col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col1, col2, - 26 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL + CAST( + MAX( DISTINCT col1 ) AS SIGNED ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9516
SELECT ALL + CAST ( + MAX ( DISTINCT col1 ) AS INTEGER ) col1 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9517
SELECT DISTINCT 46 DIV + CAST( + + col2 AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT 46 / + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT + + COUNT( * ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9518
SELECT + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT + - COUNT( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9519
SELECT DISTINCT + - COUNT ( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT - + col2 DIV col0 - + + col1 FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-9520
SELECT - + col2 / col0 - + + col1 FROM tab0 AS cor0
----
-2
-21
-84

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9522
SELECT DISTINCT + 16, COUNT( + 33 ) AS col2 FROM tab0 AS cor0
----
16
3

skipif mysql # not compatible
query II rowsort label-9522
SELECT DISTINCT + 16, COUNT ( + 33 ) AS col2 FROM tab0 AS cor0
----
16
3

query I rowsort
SELECT ALL + - ( + - col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 79 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE - 56 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + 58 AS col1 FROM tab1 cor0
----
58

query I rowsort
SELECT ALL - col0 + - + col1 + + + ( - col0 ) FROM tab1 AS cor0
----
-116
-175
-229

query II rowsort
SELECT DISTINCT col2, + 73 FROM tab0 AS cor0
----
10
73
47
73
99
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - MIN( col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9530
SELECT - MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT COUNT( * ) * + 41 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT COUNT ( * ) * + 41 FROM tab0
----
123

query I rowsort
SELECT ALL col2 * + 8 * + 78 AS col2 FROM tab2
----
14352
24960
36192

query I rowsort
SELECT DISTINCT col0 * - - 60 * 1 + col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 0 * - col1 + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + + COUNT( DISTINCT col2 ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9535
SELECT + + COUNT ( DISTINCT col2 ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT COUNT( * ) col2, 74 FROM tab1
----
3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9537
SELECT COUNT ( * ) col2, 74 FROM tab1
----
3
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 + + 71 * + ( + 21 ), col2 * 58 col2 FROM tab2 AS cor0
----
1514
1334
1531
2320
1549
3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + COUNT( * ) * - COUNT( * ) * MIN( + 41 ) FROM tab0 cor0
----
-369

skipif mysql # not compatible
query I rowsort label-9541
SELECT + COUNT ( * ) * - COUNT ( * ) * MIN ( + 41 ) FROM tab0 cor0
----
-369

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col0 + + - 76 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 29 AS col0 FROM tab0
----
29
29
29

query II rowsort
SELECT ALL 56 * - - col2 AS col0, col2 FROM tab1
----
3304
59
3808
68
5376
96

query II rowsort
SELECT - ( + col2 ) AS col2, 4 AS col2 FROM tab0
----
-10
4
-47
4
-99
4

query I rowsort
SELECT DISTINCT + + 85 AS col0 FROM tab0 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - 54 AND + - col2 * + col1 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT SUM( + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT SUM ( + + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9549
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col0 = 33 + - CAST( col2 AS DECIMAL ) - + col2 / + col2
----

skipif mysql # not compatible
query III rowsort label-9549
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col0 = 33 + - CAST ( col2 AS REAL ) - + col2 / + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - - 75 <= - col1 + - 8 * - 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COUNT( * ) * - - MIN( ALL + ( col0 ) ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9552
SELECT COUNT ( * ) * - - MIN ( ALL + ( col0 ) ) FROM tab0
----
45

query I rowsort
SELECT + ( - - col2 ) * + + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT ALL - 11 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - 11 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col0 + + col0 FROM tab0 AS cor0
----
-690
-783
-9506

query I rowsort
SELECT ( - col2 ) + - 52 / + + 88 FROM tab1 cor0 WHERE col2 * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + 30 AS col2 FROM tab1 AS cor0
----
-30

query II rowsort
SELECT ALL + col2, 59 AS col0 FROM tab1 AS cor0
----
59
59
68
59
96
59

query II rowsort
SELECT ALL + col0 AS col2, - col2 * + col0 * - col0 AS col0 FROM tab0
----
15
10575
87
75690
97
931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 14 AS col0, + 34 col0 FROM tab2
----
-14
34

query I rowsort
SELECT DISTINCT col0 + 58 FROM tab0
----
145
155
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL SUM( + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL SUM ( + col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT - COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab2 WHERE + 51 <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 51 <= + col2
----
NULL

query I rowsort
SELECT ALL + 59 AS col1 FROM tab0 cor0
----
59
59
59

query II rowsort
SELECT + col1, col1 * + + col2 + - col0 FROM tab2 AS cor0 WHERE ( ( ( NOT NULL IS NOT NULL ) ) )
----
51
1127
67
3811
77
3016

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 ) * - col1 BETWEEN + col2 * + - col1 * - 85 + + + col2 AND + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT + COUNT( * ) * + - 2 AS col2 FROM tab2 AS cor0 WHERE col2 * - col0 * - col0 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + COUNT ( * ) * + - 2 AS col2 FROM tab2 AS cor0 WHERE col2 * - col0 * - col0 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9568
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * ( - col2 ) * - col2 col0 FROM tab0 AS cor0
----
1000
103823
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL COUNT( * ) + 77 col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9571
SELECT ALL COUNT ( * ) + 77 col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT + 98 * COUNT( * ) DIV + - MIN( ALL - + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 98 * COUNT ( * ) / + - MIN ( ALL - + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9573
SELECT + 3 DIV + 98, + col2 AS col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-9573
SELECT + 3 / + 98, + col2 AS col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9574
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab2 WHERE + - ( 87 ) + col2 / col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL + COUNT( * ) FROM tab1 WHERE + + 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + COUNT ( * ) FROM tab1 WHERE + + 96 IS NULL
----
0

query I rowsort
SELECT + ( - + col1 ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL COUNT( * ) * - 32 FROM tab0, tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL COUNT ( * ) * - 32 FROM tab0, tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
9

query I rowsort
SELECT 13 FROM tab0 AS cor0 WHERE NOT col1 + - + col1 / - + 58 BETWEEN + col1 AND + 76
----
13

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - 83 * ( COUNT( * ) ) FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-9583
SELECT - 83 * ( COUNT ( * ) ) FROM tab1
----
-249

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * ( 25 ) AS col0 FROM tab0
----
2025
25
525

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9587
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + CAST( NULL AS SIGNED ) ) NOT BETWEEN col0 AND + col0
----

skipif mysql # not compatible
query III rowsort label-9587
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + CAST ( NULL AS INTEGER ) ) NOT BETWEEN col0 AND + col0
----

query I rowsort
SELECT ALL col1 * - col2 + + col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col0 + - col0 <> ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 * 97 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9592
SELECT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9592
SELECT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab0
----
31
31
31

query I rowsort
SELECT DISTINCT - col0 * + 64 FROM tab0
----
-5568
-6208
-960

query I rowsort
SELECT - col0 + 77 AS col1 FROM tab2
----
13
2
31

query III rowsort
SELECT ALL * FROM tab1 WHERE 92 / - 68 <= ( 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT - 95 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT - 95 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT + COUNT( * ) - + 7 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + COUNT ( * ) - + 7 FROM tab0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9600
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN ( - col0 ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-9600
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( - col0 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ( COUNT( * ) ) * 98 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-9601
SELECT ( COUNT ( * ) ) * 98 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT COUNT( * ) * + 94 - 54 AS col0 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-9602
SELECT COUNT ( * ) * + 94 - 54 AS col0 FROM tab0
----
228

query I rowsort
SELECT 34 * + col1 - col0 AS col1 FROM tab1
----
1507
425
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL + MIN( ALL 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + MIN ( ALL 82 ) FROM tab2
----
82

query I rowsort
SELECT 92 * + col0 AS col2 FROM tab0
----
1380
8004
8924

query I rowsort
SELECT 83 * 21 - + col2 * - 19 AS col0 FROM tab0
----
1933
2636
3624

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT + SUM( DISTINCT 60 ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + SUM ( DISTINCT 60 ) AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL COUNT( * ) * - 53 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL COUNT ( * ) * - 53 FROM tab1 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ( + ( COUNT( * ) ) ) * 51 + COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9609
SELECT ( + ( COUNT ( * ) ) ) * 51 + COUNT ( * ) FROM tab2 AS cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9610
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT MIN( col1 ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9611
SELECT MIN ( col1 ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 16 FROM tab2 WHERE ( NULL ) IS NULL
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT ( COUNT( * ) ) FROM ( tab0 cor0 CROSS JOIN tab1 )
----
9

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT ( COUNT ( * ) ) FROM ( tab0 cor0 CROSS JOIN tab1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE - ( ( 43 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE - ( ( 43 ) ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = col2
----

query I rowsort
SELECT - 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT col1 - 94 * 59 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-5465
-5525
-5545

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL - - COUNT( * ) * 6 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL - - COUNT ( * ) * 6 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT DISTINCT + + COUNT( * ) * 51 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + + COUNT ( * ) * 51 FROM tab2 AS cor0
----
153

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + - col2 > - 47 * - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - 44 FROM tab1 AS cor0
----
-2068
-220
-616

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 46 / + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT + + ( + SUM( DISTINCT col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + + ( + SUM ( DISTINCT col2 ) ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 33 FROM tab0 AS cor0 WHERE NOT - 60 + - col1 NOT IN ( 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT DISTINCT + MIN( + col0 ) * + 75 AS col1 FROM tab0 AS cor0
----
1125

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT + MIN ( + col0 ) * + 75 AS col1 FROM tab0 AS cor0
----
1125

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + - ( + COUNT( + col2 ) ) * 48 col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9628
SELECT + - ( + COUNT ( + col2 ) ) * 48 col2 FROM tab2 AS cor0
----
-144

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 72 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT COUNT( * ) * 82 AS col0 FROM tab0 WHERE NOT NULL = + 75 - - col2
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT COUNT ( * ) * 82 AS col0 FROM tab0 WHERE NOT NULL = + 75 - - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9631
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) = - col0 + col0
----

skipif mysql # not compatible
query III rowsort label-9631
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) = - col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * - 99 col1 FROM tab2
----
-1683
-1683
-1683

query I rowsort
SELECT DISTINCT + 80 * col0 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + COUNT( * ) * - 16 FROM tab1 WHERE + col1 IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) * - 16 FROM tab1 WHERE + col1 IS NOT NULL
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL 62 / - CAST( NULL AS SIGNED ) * MIN( + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9635
SELECT ALL 62 / - CAST ( NULL AS INTEGER ) * MIN ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( - + col2 ) FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT - SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT - SUM ( + col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + 68 * - COUNT( * ) FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 68 * - COUNT ( * ) FROM tab2
----
-204

query I rowsort
SELECT DISTINCT col0 * + col1 * - - col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT - col0 * - col1 * + 23 FROM tab0
----
2231
27945
42021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 63 col1 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT ALL 68 AS col1 FROM tab0 WHERE NOT - - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + - - col2 * + col2 AS col0 FROM tab1
----
3486
4671
9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + COUNT( DISTINCT col1 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9645
SELECT + COUNT ( DISTINCT col1 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 >= 99 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE + 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT - CAST( + - col2 AS SIGNED ) * - 12 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-14053
-36920
-46574

skipif mysql # not compatible
query I rowsort label-9651
SELECT - CAST ( + - col2 AS INTEGER ) * - 12 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-14053
-36920
-46574

query I rowsort
SELECT DISTINCT - 52 + + col1 FROM tab1 AS cor0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT DISTINCT 61 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
205
208
220

query I rowsort
SELECT 25 AS col1 FROM tab0 AS cor0 WHERE ( - 14 * - + 81 - 11 * col1 ) <> ( NULL )
----

query I rowsort
SELECT ALL - 8 * col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 46 + + - col2 AND ( 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * + col2 * - + col1 col0 FROM tab0
----
-106596
-2772
-5880

query I rowsort
SELECT ALL 35 + - col1 AS col1 FROM tab0
----
-46
14
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT ALL COUNT( * ) * + COUNT( * ) * + 21 col0 FROM tab2
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9658
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + 21 col0 FROM tab2
----
189

query I rowsort
SELECT col1 * + + 50 AS col1 FROM tab0
----
1050
4050
50

query I rowsort
SELECT DISTINCT col1 - + ( col0 ) AS col0 FROM tab0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 34 * + 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9663
SELECT * FROM tab1 WHERE ( col0 ) IN ( CAST( NULL AS SIGNED ) * - 82 )
----

skipif mysql # not compatible
query III rowsort label-9663
SELECT * FROM tab1 WHERE ( col0 ) IN ( CAST ( NULL AS INTEGER ) * - 82 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 < col2
----

query I rowsort
SELECT ALL - 50 AS col0 FROM tab0 WHERE - col0 * + col1 - col1 * + col2 = NULL AND - 10 IN ( + col1 )
----

query I rowsort
SELECT - + col1 * - + 65 + + + col2 - col2 - - col0 * 99 AS col1 FROM tab1 AS cor0
----
12064
5959
8740

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 / col2 * col1 - + col1 ) <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + AVG ( + col2 ) ) col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL 37 + + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 37 + + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT col1 / - 96 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 57 FROM tab2 AS cor0 WHERE 85 IN ( + - 50 )
----

query I rowsort
SELECT - 12 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
34
52
63

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT 39 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT + SUM( col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + SUM ( col0 ) FROM tab0
----
199

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + col1 BETWEEN - 28 AND ( + col1 )
----

query I rowsort
SELECT DISTINCT - col0 / + 37 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, col1 / - col0 / + 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - COUNT( * ) * - ( - 86 ) AS col1 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9678
SELECT - COUNT ( * ) * - ( - 86 ) AS col1 FROM tab2 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9679
SELECT + SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT ALL CAST( - - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9680
SELECT ALL CAST ( - - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - + 59 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT 60 * + MAX( DISTINCT - 86 ) AS col0 FROM tab1 AS cor0
----
-5160

skipif mysql # not compatible
query I rowsort label-9682
SELECT 60 * + MAX ( DISTINCT - 86 ) AS col0 FROM tab1 AS cor0
----
-5160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 col1, 67 FROM tab2 cor0
----
83
67
83
67
83
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9684
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) + + + col0 * + col2 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9684
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) + + + col0 * + col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL - SUM( 98 ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - SUM ( 98 ) FROM tab1 AS cor0
----
-294

query I rowsort
SELECT DISTINCT + + col0 * col2 FROM tab2 cor0 WHERE NOT col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col2 * col0 col1 FROM tab1
----
59
-5015
68
-6188
96
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT COUNT( - 24 ) + ( - 84 ) * 55 FROM tab1 WHERE NOT 37 * 89 / - col2 + - 87 * col1 BETWEEN - 32 * - col0 AND col2 * 58
----
-4617

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT COUNT ( - 24 ) + ( - 84 ) * 55 FROM tab1 WHERE NOT 37 * 89 / - col2 + - 87 * col1 BETWEEN - 32 * - col0 AND col2 * 58
----
-4617

query I rowsort
SELECT ALL + ( - col0 ) * + col1 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT ALL - CAST( - 42 AS SIGNED ) + COUNT( * ) col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9691
SELECT ALL - CAST ( - 42 AS INTEGER ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
45

query I rowsort
SELECT 40 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9693
SELECT DISTINCT + + 3 AS col2, CAST( NULL AS SIGNED ) + - 31 col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9693
SELECT DISTINCT + + 3 AS col2, CAST ( NULL AS INTEGER ) + - 31 col1 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT ALL + col0 DIV - col2 + - col1 + + 88 * - + col2 FROM tab0 AS cor0
----
-4217
-8713
-909

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + col0 / - col2 + - col1 + + 88 * - + col2 FROM tab0 AS cor0
----
-4217
-8713
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL SUM( DISTINCT 52 ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL SUM ( DISTINCT 52 ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT col0 + 58 - + col0 FROM tab0
----
58

query I rowsort
SELECT DISTINCT + 15 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
15

query I rowsort
SELECT DISTINCT 45 * - ( - 60 ) AS col0 FROM tab1
----
2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT ALL - ( - COUNT( * ) ) DIV - - MIN( ALL + 51 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - ( - COUNT ( * ) ) / - - MIN ( ALL + 51 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col0 ) NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9701
SELECT - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9701
SELECT - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + ( + col1 ) + col1 + col0 * + col1, col0 FROM tab0 AS cor0
----
1377
15
1869
87
99
97

query I rowsort
SELECT ALL col2 * col2 + col2 + - - 18 * + 94 + col0 FROM tab2 AS cor0
----
2290
3396
5189

query I rowsort
SELECT ALL - col0 - - + col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - - col1 * - col2 AS col0 FROM tab1 WHERE col0 BETWEEN col1 AND col2
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 WHERE 83 BETWEEN + col1 + col0 * - col2 AND - col0
----

skipif mysql # not compatible
query I rowsort label-9706
SELECT + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 WHERE 83 BETWEEN + col1 + col0 * - col2 AND - col0
----

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN + col2 - - + col2 + - + 89 AND NULL OR NOT - 63 * col0 + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT SUM( DISTINCT + + 38 ) + + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9708
SELECT SUM ( DISTINCT + + 38 ) + + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
32

query III rowsort
SELECT * FROM tab1 WHERE - - col2 + + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - - + col0 AS col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL 18 - - COUNT( * ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL 18 - - COUNT ( * ) AS col1 FROM tab2
----
21

query II rowsort
SELECT - col0 * - 67 * col2 AS col0, - ( col2 ) AS col1 FROM tab0 AS cor0
----
47235
-47
58290
-10
643401
-99

query I rowsort
SELECT - 89 + + - 25 + - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL >= 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 62 * - ( col1 ) col0, col0 FROM tab0 AS cor0
----
-1302
87
-5022
15
-62
97

query I rowsort
SELECT + + col2 * - 58 * - - 52 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query II rowsort
SELECT + + ( col1 ), - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * col2 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT - - ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - - ( COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT col1 * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 49 * + 77 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - 37 + - col1 * col1 AS col1 FROM tab1
----
-2246
-233
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT COUNT( col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9722
SELECT COUNT ( col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL - CAST( - - col1 AS SIGNED ) col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9723
SELECT ALL - CAST ( - - col1 AS INTEGER ) col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col2 + 50 AS col2 FROM tab0
----
149
60
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT SUM( DISTINCT - - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9725
SELECT SUM ( DISTINCT - - col1 ) AS col0 FROM tab2
----
195

query II rowsort
SELECT ALL col0 + + 32 + 3, col1 * col0 AS col1 FROM tab2 cor0
----
110
5025
81
2346
99
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT COUNT( * ) AS col0 FROM tab2 WHERE + col2 + + + col2 * + col2 BETWEEN - 63 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE + col2 + + + col2 * + col2 BETWEEN - 63 AND col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE - - col2 - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 88 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT 42 + - - col2 FROM tab0 AS cor0
----
141
52
89

query II rowsort
SELECT 73 AS col0, col2 FROM tab2 AS cor0
----
73
23
73
40
73
58

query II rowsort
SELECT ALL col0, - 71 FROM tab2 AS cor0
----
46
-71
64
-71
75
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9733
SELECT * FROM tab1 AS cor0 WHERE - 73 + + col2 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9733
SELECT * FROM tab1 AS cor0 WHERE - 73 + + col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - 83 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT + ( + MIN( - col2 ) ) - + 5 * 77 AS col2 FROM tab2
----
-443

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + ( + MIN ( - col2 ) ) - + 5 * 77 AS col2 FROM tab2
----
-443

query I rowsort
SELECT DISTINCT col1 + + col1 + 16 * + 60 + 23 - + 79 * + col0 FROM tab2
----
-2549
-3919
-4808

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL - COUNT( - + 79 ) + - MIN( + col1 ) AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - COUNT ( - + 79 ) + - MIN ( + col1 ) AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab2 WHERE + 91 + - 31 IS NULL
----

query I rowsort
SELECT col1 - + - col2 AS col2 FROM tab2
----
117
125
74

query II rowsort
SELECT - 75 - - col1, + 79 AS col1 FROM tab0
----
-54
79
-74
79
6
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT + CAST( 22 AS SIGNED ) * + + 11 AS col2 FROM tab1 cor0
----
242

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + CAST ( 22 AS INTEGER ) * + + 11 AS col2 FROM tab1 cor0
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 37, + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 37, + 13 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT - - CAST( + MAX( - - col2 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9744
SELECT - - CAST ( + MAX ( - - col2 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT - 37 - - col0 DIV + 46 col2 FROM tab1 WHERE NOT col2 IS NULL
----
-36
-36
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9745
SELECT - 37 - - col0 / + 46 col2 FROM tab1 WHERE NOT col2 IS NULL
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT - COUNT( + 52 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT - COUNT ( + 52 ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT - 38 * - 76 + - col2 AS col1 FROM tab2 AS cor0
----
2830
2848
2865

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL COUNT( * ) * + 27 AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL COUNT ( * ) * + 27 AS col0 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9750
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT DISTINCT - 20 / - + CAST( - + col2 AS SIGNED ) * - + col0 AS col2 FROM tab2 AS cor0 WHERE col1 NOT IN ( - - col1 )
----

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - 20 / - + CAST ( - + col2 AS INTEGER ) * - + col0 AS col2 FROM tab2 AS cor0 WHERE col1 NOT IN ( - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9752
SELECT - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 + - col2 * - 72 AS col2 FROM tab0 AS cor0
----
3431
7227
730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT - 62 AS col2 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query I rowsort label-9754
SELECT - 62 AS col2 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= - col0
----

query I rowsort
SELECT + 94 * + 13 FROM tab1 AS cor0
----
1222
1222
1222

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT + 31 * - + ( + 82 ) + - col0 DIV + col0 + - 39 + - 30 FROM tab2 AS cor0
----
-2612
-2612
-2612

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 31 * - + ( + 82 ) + - col0 / + col0 + - 39 + - 30 FROM tab2 AS cor0
----
-2612
-2612
-2612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 65 col0 FROM tab0 AS cor0
----
-1365
-5265
-65

query II rowsort
SELECT ALL 1 + - col1, + 4 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9760
SELECT + CAST( NULL AS SIGNED ) + CAST( col0 AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9760
SELECT + CAST ( NULL AS INTEGER ) + CAST ( col0 AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT + COUNT( - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + COUNT ( - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT + + 79 + col1 + - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT + + 79 + col1 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col2 + + - col2 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT - 68 + + + COUNT( * ) col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-65
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9764
SELECT - 68 + + + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-65
3

query I rowsort
SELECT col0 + 82 - col1 FROM tab0 cor0
----
148
16
178

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT - COUNT( * ) * + + 72 FROM tab2, tab0 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - COUNT ( * ) * + + 72 FROM tab2, tab0 AS cor0
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL - 10 + + + MAX( ALL - 29 ) FROM tab2, tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - 10 + + + MAX ( ALL - 29 ) FROM tab2, tab2 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT - COUNT( DISTINCT - 65 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9768
SELECT DISTINCT - COUNT ( DISTINCT - 65 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query I rowsort
SELECT DISTINCT + col0 + + 35 FROM tab0 AS cor0
----
122
132
50

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 84 * + col1 + - 6 FROM tab0 AS cor0
----
1758
6798
78

query I rowsort
SELECT - ( + + 82 ) - - col1 AS col2 FROM tab0 AS cor0
----
-1
-61
-81

query I rowsort
SELECT DISTINCT col2 * + ( + col1 ) + ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + - 15 ) IN ( col0 + + - col0, col1, + - col2, - - col2 ) OR col2 IS NOT NULL
----
1440
3264
354

query I rowsort
SELECT ALL + col2 - + 72 AS col1 FROM tab1 AS cor0
----
-13
-4
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT COUNT( * ) + 62 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT COUNT ( * ) + 62 FROM tab1
----
65

query I rowsort
SELECT + col1 + 7 AS col1 FROM tab2
----
58
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + MIN( DISTINCT + 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9778
SELECT + MIN ( DISTINCT + 35 ) FROM tab1
----
35

query III rowsort
SELECT ALL - col0 AS col1, col1 AS col1, - col1 FROM tab2
----
9 values hashing to 646374067d44d57f65b98f1ec628cc3e

query II rowsort
SELECT + 29 AS col2, ( + - 32 ) AS col2 FROM tab2
----
29
-32
29
-32
29
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - MAX( - - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9781
SELECT - MAX ( - - col2 ) FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 NOT IN ( 39, + col2 )
----

query II rowsort
SELECT - col1 * + ( - col2 ) + - col1 - + + col2, col0 - + + col1 AS col2 FROM tab0 WHERE NOT col0 + 88 + - 35 - col1 + + col1 <= - col0 + - 12
----
-1
96
179
66
3679
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT COUNT( + 61 ) * - MAX( DISTINCT col1 ) + + 30 AS col1 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-9784
SELECT COUNT ( + 61 ) * - MAX ( DISTINCT col1 ) + + 30 AS col1 FROM tab2
----
-201

query I rowsort
SELECT ALL + 29 * - + 56 FROM tab1
----
-1624
-1624
-1624

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT - col2 * + - col1 > - 24
----

query I rowsort
SELECT ALL 89 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 86 AS col0 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT ALL - col0 * col2 * + - col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT ALL + - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col0 + + + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, 70 * + + 29, col0 )
----

query I rowsort
SELECT ALL - col0 + + col1 + 31 FROM tab1 cor0
----
-13
-49
-6

query I rowsort
SELECT ALL - 13 + - + 9 * - col0 AS col1 FROM tab1 AS cor0
----
446
752
806

query I rowsort
SELECT col0 * - col0 + - col1 - - + col0 * - + col2 + - + col2 AS col1 FROM tab0 AS cor0
----
-1058
-19112
-8470

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT ALL ( - + MIN( col1 ) ), COUNT( * ) AS col1 FROM tab2
----
-51
3

skipif mysql # not compatible
query II rowsort label-9796
SELECT ALL ( - + MIN ( col1 ) ), COUNT ( * ) AS col1 FROM tab2
----
-51
3

query I rowsort
SELECT + col1 * - - col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - col1 + - - 14 - - + 14 + + + col0 * - 7 AS col1 FROM tab2
----
-345
-497
-564

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9799
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + + 15 ) / + CAST( NULL AS SIGNED ) + + + col0 + 0 / 19 AND - col2 + 64
----

skipif mysql # not compatible
query III rowsort label-9799
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + + 15 ) / + CAST ( NULL AS INTEGER ) + + + col0 + 0 / 19 AND - col2 + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT DISTINCT CAST( col0 AS SIGNED ) + col2 col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9800
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col2 col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT + 96 + - - 10 + 94 FROM tab0
----
200
200
200

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 - + - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT 38 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 >= NULL )
----

query I rowsort
SELECT + col1 + 20 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL - - MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - - MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT DISTINCT + 20 DIV + col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + 20 / + col2 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> 28
----

query I rowsort
SELECT ALL col2 * + + 83 AS col2 FROM tab1 AS cor0
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT + COUNT( - - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9811
SELECT + COUNT ( - - col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT MIN( ALL - 34 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT MIN ( ALL - 34 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col1 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
51
67
67
77
77

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 >= + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL SUM( DISTINCT 41 ) AS col1 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL SUM ( DISTINCT 41 ) AS col1 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + 63 * - COUNT( * ) * + + SUM( - - col1 ) FROM tab2
----
-36855

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + 63 * - COUNT ( * ) * + + SUM ( - - col1 ) FROM tab2
----
-36855

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL + MIN( - ( col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + MIN ( - ( col1 ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT + MIN( + col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + MIN ( + col0 ) AS col2 FROM tab1 cor0
----
51

query I rowsort
SELECT ALL + 99 * 32 FROM tab0 AS cor0
----
3168
3168
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9821
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 FROM tab1
----
-51
51
-85
85
-91
91

query II rowsort
SELECT col1 AS col2, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT col2, 1 FROM tab0 AS cor0
----
10
1
47
1
99
1

query I rowsort
SELECT ALL + col0 + col0 + + - ( + col2 ) FROM tab1 AS cor0
----
111
114
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT + - SUM( 73 ), 36 AS col1 FROM tab0 AS cor0
----
-219
36

skipif mysql # not compatible
query II rowsort label-9826
SELECT + - SUM ( 73 ), 36 AS col1 FROM tab0 AS cor0
----
-219
36

query II rowsort
SELECT - col2 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT DISTINCT + 62 * + COUNT( * ) FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT + 62 * + COUNT ( * ) FROM tab1
----
186

query I rowsort
SELECT ALL col2 * + + ( - col1 ) * + - col0 * col2 + + + col1 AS col1 FROM tab1
----
1479430
19776895
6580238

query III rowsort
SELECT * FROM tab1 WHERE + - ( - col1 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT ALL col2 DIV - + col2 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL col2 / - + col2 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 25 + - + 57 * + 98 FROM tab0
----
-5561
-5561
-5561

query I rowsort
SELECT DISTINCT + col2 * + + 52 * - 31 AS col2 FROM tab1
----
-109616
-154752
-95108

query I rowsort
SELECT col1 + - + col0 + + - col0 FROM tab0 AS cor0
----
-153
-193
51

query I rowsort
SELECT + + col2 * + col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
705
870
9603

query I rowsort
SELECT col1 + col0 * col1 * col0 AS col1 FROM tab1 AS cor0
----
36130
36428
389254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT ALL CAST( NULL AS SIGNED ) - col1 + + 83 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL CAST ( NULL AS INTEGER ) - col1 + + 83 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - - 19 AS col1 FROM tab0
----
-4
68
78

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 65 * - col2 AS col1 FROM tab2 AS cor0
----
1495
2600
3770

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - 73 = NULL
----

query II rowsort
SELECT + col2, col0 FROM tab1 cor0
----
59
85
68
91
96
51

query II rowsort
SELECT + col0, - col0 FROM tab2 cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( - - col1 ) + + 79 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 * col2 * - 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - + SUM( 91 ) col0 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9846
SELECT - + SUM ( 91 ) col0 FROM tab0 AS cor0
----
-273

query I rowsort
SELECT ALL - - 60 FROM tab1 cor0
----
60
60
60

query I rowsort
SELECT ( + 52 ) FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT + MIN( ALL col2 ) AS col1, 19 AS col0 FROM tab0
----
10
19

skipif mysql # not compatible
query II rowsort label-9849
SELECT + MIN ( ALL col2 ) AS col1, 19 AS col0 FROM tab0
----
10
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT ALL - CAST( - ( - 38 ) AS SIGNED ) FROM tab1
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - CAST ( - ( - 38 ) AS INTEGER ) FROM tab1
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col1, COUNT( * ) FROM tab0
----
-81
3

skipif mysql # not compatible
query II rowsort label-9851
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col1, COUNT ( * ) FROM tab0
----
-81
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT 92 * - 9 FROM tab0
----
-828
-828
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 87 col0, - col0 FROM tab1
----
87
-51
87
-85
87
-91

query I rowsort
SELECT + + 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + 97 + + MIN( ALL + 82 ) AS col0 FROM tab0
----
179

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + 97 + + MIN ( ALL + 82 ) AS col0 FROM tab0
----
179

query I rowsort
SELECT ALL ( - - col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 31 - - col1 AND ( - 23 * 85 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - COUNT( * ) + - + 57 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9860
SELECT - COUNT ( * ) + - + 57 FROM tab2 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col1 + col0 AS col0 FROM tab1
----
59
80
68
44
96
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT col1 * - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT col1 * - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT + 80 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 4 AND + + ( - ( col1 ) ) / - CAST( NULL AS SIGNED ) + - + 24
----

skipif mysql # not compatible
query I rowsort label-9863
SELECT + 80 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 4 AND + + ( - ( col1 ) ) / - CAST ( NULL AS INTEGER ) + - + 24
----

query I rowsort
SELECT - col0 + ( col1 ) FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT - 87 + - + col1 AS col0 FROM tab1 AS cor0
----
-101
-134
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT + MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9868
SELECT ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT + + CAST( + col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9869
SELECT + + CAST ( + col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ( - 95 ) FROM tab0 cor0
----
-95
-95
-95

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 >= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL + COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + + 50 * ( - MIN( - col1 ) ) AS col0 FROM tab0 cor0
----
4050

skipif mysql # not compatible
query I rowsort label-9873
SELECT + + 50 * ( - MIN ( - col1 ) ) AS col0 FROM tab0 cor0
----
4050

query I rowsort
SELECT + col1 * 84 * + + 85 FROM tab2 AS cor0
----
364140
478380
549780

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9875
SELECT CAST( 2 AS SIGNED ) DIV - 24 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT CAST ( 2 AS INTEGER ) / - 24 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9876
SELECT - col2 AS col2, CAST( NULL AS DECIMAL ) - + col1 * + 39 * col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-9876
SELECT - col2 AS col2, CAST ( NULL AS REAL ) - + col1 * + 39 * col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL + + SUM( ALL + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT + - ( - col1 ) * - + col0 + - + 54 AS col0 FROM tab2 AS cor0
----
-2400
-4982
-5079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col0, col1 + col2 FROM tab2 AS cor0
----
-23
74
-40
117
-58
125

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 + + 21 <= NULL
----

query I rowsort
SELECT - + 25 + - col2 * - ( - col2 ) FROM tab1 cor0
----
-3506
-4649
-9241

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT - 75 + - + COUNT( * ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-9882
SELECT - 75 + - + COUNT ( * ) AS col0 FROM tab2
----
-78

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 78 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT COUNT( * ) * + + ( ( - CAST( NULL AS SIGNED ) ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9884
SELECT COUNT ( * ) * + + ( ( - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9885
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + MIN( + col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9886
SELECT + MIN ( + col1 ) AS col0 FROM tab2 cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE NOT + col2 <= - - col2 + + + col2
----

query I rowsort
SELECT DISTINCT - col0 + + ( + + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + ( 71 ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9890
SELECT + ( 71 ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
68

query II rowsort
SELECT ALL - 37 * col1 + + + col0 * 19, col2 * - ( - col2 ) * - col1 AS col2 FROM tab2 cor0
----
-1013
-26979
-1054
-225388
-1633
-123200

query I rowsort
SELECT - col2 - - + col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT - 34 + + 89 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT + - SUM( - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + - SUM ( - + col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( col1 * + + ( + col0 ) ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9898
SELECT - + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / - col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL MIN( ( + + 37 ) ) AS col0 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL MIN ( ( + + 37 ) ) AS col0 FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT + + SUM( DISTINCT + ( - - col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9901
SELECT + + SUM ( DISTINCT + ( - - col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - 29 - + col0 FROM tab0 AS cor0 WHERE col0 * + col2 * + 93 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9903
SELECT * FROM tab2 AS cor0 WHERE NULL = ( - - col0 ) AND NOT CAST( NULL AS DECIMAL ) IN ( - 45 + 92 * - 3 )
----

skipif mysql # not compatible
query III rowsort label-9903
SELECT * FROM tab2 AS cor0 WHERE NULL = ( - - col0 ) AND NOT CAST ( NULL AS REAL ) IN ( - 45 + 92 * - 3 )
----

query I rowsort
SELECT col1 * 42 AS col0 FROM tab1 cor0 WHERE NOT NULL > ( + col1 )
----

query I rowsort
SELECT ALL + ( - AVG ( - col2 ) ) + - 62 FROM tab1 WHERE NOT + + col2 + + col2 NOT IN ( - col2 + + + col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 96 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + col1 col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL - - ( ( 89 ) ) FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT - col2 * + col2 / - col1 IS NULL
----
1
21
81

query II rowsort
SELECT + 28 + + col0, + col1 AS col0 FROM tab1
----
113
5
119
47
79
14

query I rowsort
SELECT - col2 + + - 91 AS col0 FROM tab2
----
-114
-131
-149

query I rowsort
SELECT 1 + + col2 + + 62 + + 23 AS col0 FROM tab1
----
145
154
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT COUNT( DISTINCT + 63 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9913
SELECT COUNT ( DISTINCT + 63 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL + CAST( NULL AS SIGNED ) + col2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT - - MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT - - MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9916
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 59 / - + col2 - - 77 * + 30 + + + 57 AND - col0 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9916
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 59 / - + col2 - - 77 * + 30 + + + 57 AND - col0 * CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - col1 + + col1 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 > + col0
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT ( col1 ) BETWEEN 8 AND NULL )
----

query I rowsort
SELECT - col0 * - 52 * + + col0 FROM tab2 AS cor0
----
110032
212992
292500

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0, 9 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9922
SELECT - CAST( NULL AS SIGNED ) - col1 + + - col1, + 70 + - col2 col2 FROM tab0
----
NULL
-29
NULL
23
NULL
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9922
SELECT - CAST ( NULL AS INTEGER ) - col1 + + - col1, + 70 + - col2 col2 FROM tab0
----
NULL
-29
NULL
23
NULL
60

query I rowsort
SELECT col2 - + ( ( col2 ) ) FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NULL IN ( + col2 + - 22 )
----

query II rowsort
SELECT DISTINCT + col1, + 47 FROM tab0
----
1
47
21
47
81
47

query III rowsort
SELECT * FROM tab2 WHERE + col1 + + + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT + COUNT( * ) + + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT + COUNT ( * ) + + 31 FROM tab2
----
34

query I rowsort
SELECT col2 * + ( + ( - + col2 ) ) + + - ( col2 ) AS col0 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT ALL 81 + - 53 AS col0 FROM tab1
----
28
28
28

query II rowsort
SELECT + col1 + - col0 - - 17, 42 AS col0 FROM tab0
----
-49
42
-79
42
83
42

query I rowsort
SELECT DISTINCT 99 + - col2 + 51 * col0 FROM tab1
----
2604
4375
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT + COUNT( ALL + col2 ) + - ( + 88 ) AS col2 FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + COUNT ( ALL + col2 ) + - ( + 88 ) AS col2 FROM tab0 cor0
----
-85

query I rowsort
SELECT ALL + - col2 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + - col2 + - - col2 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + + COUNT( * ) * - MAX( - - 25 ) AS col1 FROM tab1 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9935
SELECT + + COUNT ( * ) * - MAX ( - - 25 ) AS col1 FROM tab1 cor0
----
-75

query I rowsort
SELECT DISTINCT + + col2 * + 84 FROM tab0 AS cor0
----
3948
8316
840

query II rowsort
SELECT + + 75 * + + col0 * col1, col2 * - 39 AS col1 FROM tab2 AS cor0
----
175950
-897
369600
-1560
376875
-2262

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9938
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) * + + col1 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9938
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) * + + col1 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL CAST( + col2 AS SIGNED ) * + 66 AS col2 FROM tab2 AS cor0
----
1518
2640
3828

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL CAST ( + col2 AS INTEGER ) * + 66 AS col2 FROM tab2 AS cor0
----
1518
2640
3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT - + CAST( MAX( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9940
SELECT - + CAST ( MAX ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT ( - 78 ) FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT ALL - + 28 col2, + ( + + COUNT( * ) ) AS col2 FROM tab0 WHERE + col2 + - - col0 IS NULL
----
-28
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9942
SELECT ALL - + 28 col2, + ( + + COUNT ( * ) ) AS col2 FROM tab0 WHERE + col2 + - - col0 IS NULL
----
-28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT COUNT( ALL + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9943
SELECT COUNT ( ALL + - col2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9944
SELECT DISTINCT col0 AS col0, 40 DIV + + 30 FROM tab1
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-9944
SELECT DISTINCT col0 AS col0, 40 / + + 30 FROM tab1
----
51
1
85
1
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL MIN( ALL + 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL MIN ( ALL + 91 ) FROM tab2
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col2 * - - 98 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - - MIN( DISTINCT + - 68 ) FROM tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - - MIN ( DISTINCT + - 68 ) FROM tab1 cor0
----
-68

query I rowsort
SELECT ALL 90 * col2 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 * - col0 + + 55 AS col0 FROM tab0
----
-650
-815
-9548

query I rowsort
SELECT + col1 * + 9 + + 70 AS col1 FROM tab2
----
529
673
763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT 30 DIV 70 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9952
SELECT 30 / 70 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL + MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL + MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ( 47 ) + + col2 AS col2 FROM tab1 AS cor0
----
106
115
143

query I rowsort
SELECT col2 + - 28 FROM tab2 AS cor0
----
-5
12
30

query I rowsort
SELECT - + 98 * + col0 AS col1 FROM tab1 AS cor0 WHERE 99 * + col1 + + + col1 - + col0 + col0 > - col0 * - - col2
----
-4998
-8330
-8918

query I rowsort
SELECT + + 12 + + col0 FROM tab2 AS cor0
----
58
76
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 43 col1 FROM tab1 AS cor0
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT DISTINCT - - COUNT( * ) * - MAX( DISTINCT - + 53 ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - - COUNT ( * ) * - MAX ( DISTINCT - + 53 ) FROM tab0 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9960
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / + col2 * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9960
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + col2 * - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT + - 30 - + - ( + 5 ) AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-9961
SELECT + - 30 - + - ( + 5 ) AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL NOT IN ( + col2 * + col2 / - col0 / col2 + col2 * col0 + - - 14 )
----
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( + col2 * + col2 / - col0 / col2 + col2 * col0 + - - 14 )
----
0

query I rowsort
SELECT DISTINCT col1 + - - 62 FROM tab2
----
113
129
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - 96 - MAX( + + 9 ) AS col2 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-9964
SELECT - 96 - MAX ( + + 9 ) AS col2 FROM tab2
----
-105

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT - 89 - - CAST( NULL AS SIGNED ) + + AVG ( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT - 89 - - CAST ( NULL AS INTEGER ) + + AVG ( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT + col0 * - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 95 * - - col1 * 4 * - - 51 * - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 61 * - 12 BETWEEN 52 AND + + col2 + - + col1
----
-3798480
-42810420
-484500

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL - 7 * - COUNT( * ) col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9969
SELECT ALL - 7 * - COUNT ( * ) col0 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL + ( col0 ) * + 11 FROM tab1 AS cor0
----
1001
561
935

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2
----

query I rowsort
SELECT - 30 + 46 - - - 73 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + 85 FROM tab1 AS cor0 WHERE ( - 88 + - col2 - 45 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT - - col2 DIV - 37 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9974
SELECT - - col2 / - 37 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL - 98 * - COUNT( * ) FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL - 98 * - COUNT ( * ) FROM tab1 cor0
----
294

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 71 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 99 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + MIN( 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9978
SELECT + MIN ( 81 ) FROM tab1
----
81

query I rowsort
SELECT - 15 * + col1 FROM tab0
----
-1215
-15
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT + COUNT( * ) * - + 38 * 34 FROM tab0
----
-3876

skipif mysql # not compatible
query I rowsort label-9980
SELECT + COUNT ( * ) * - + 38 * 34 FROM tab0
----
-3876

query II rowsort
SELECT DISTINCT col0 * + col1 * + col1 * - - 80 AS col2, + col2 * 32 * - col1 FROM tab2
----
26934000
-124352
30356480
-98560
9571680
-37536

query I rowsort
SELECT ALL 69 + - + col0 FROM tab2
----
-6
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT + MIN( DISTINCT - 62 ) col2 FROM tab0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9983
SELECT DISTINCT + MIN ( DISTINCT - 62 ) col2 FROM tab0
----
-62

query I rowsort
SELECT + col0 * + 45 AS col1 FROM tab1
----
2295
3825
4095

onlyif mysql # DIV for integer division: 
query II rowsort label-9985
SELECT col2 + - 46 * - col2 + - col1 * + 44 AS col0, + col1 DIV ( + + 39 ) + + + col0 + 12 * col0 DIV 93 * + + 9 * 79 + 2 AS col2 FROM tab0 AS cor0
----
-1355
730
-454
7910
4609
8631

skipif mysql # not compatible
query II rowsort label-9985
SELECT col2 + - 46 * - col2 + - col1 * + 44 AS col0, + col1 / ( + + 39 ) + + + col0 + 12 * col0 / 93 * + + 9 * 79 + 2 AS col2 FROM tab0 AS cor0
----
-1355
730
-454
7910
4609
8631

onlyif mysql # DIV for integer division: 
query II rowsort label-9986
SELECT DISTINCT col1 DIV - + col1 AS col2, 13 AS col2 FROM tab1 AS cor0
----
-1
13

skipif mysql # not compatible
query II rowsort label-9986
SELECT DISTINCT col1 / - + col1 AS col2, 13 AS col2 FROM tab1 AS cor0
----
-1
13

query I rowsort
SELECT DISTINCT + 89 + + - col2 FROM tab0
----
-10
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL - ( COUNT( * ) ) + - - 90 AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - ( COUNT ( * ) ) + - - 90 AS col1 FROM tab0
----
87

query I rowsort
SELECT - col2 * 54 / col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 54 - ( - - 97 ) FROM tab0 AS cor0
----
-151

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 51 + col0 IN ( col1 + 3 + + col0, - col1 - 53 * + 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 6 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 - - 77 col2 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + + ( - 34 ) AS col0 FROM tab2 AS cor0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( col0 ) ) col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - - col2 - 55 FROM tab1 cor0
----
13
4
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT + 82 DIV 14 - - col0 * col1 + + col0 + + 93 col2 FROM tab0
----
1328
2012
292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9997
SELECT + 82 / 14 - - col0 * col1 + + col0 + + 93 col2 FROM tab0
----
1328
2012
292

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT - 88 + + 5, COUNT( * ) col0 FROM tab0
----
-83
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9998
SELECT - 88 + + 5, COUNT ( * ) col0 FROM tab0
----
-83
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab2
----
58

