hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-0
SELECT ALL - - 18 DIV CAST( + - 87 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - - 18 / CAST ( + - 87 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT SUM( + + 49 ) FROM tab1, tab0 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-2
SELECT SUM ( + + 49 ) FROM tab1, tab0 AS cor0
----
441

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

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

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

skipif mysql # not compatible
query I rowsort label-4
SELECT + MAX ( + 85 ) AS col1 FROM tab1
----
85

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

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

query I rowsort
SELECT + 85 AS col1 FROM tab1 cor0
----
85
85
85

query II rowsort
SELECT + 35 * - col0 AS col0, col1 FROM tab2 AS cor0
----
-1610
51
-2240
77
-2625
67

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> + 97
----

query I rowsort
SELECT - + col0 * + + ( - 78 ) AS col1 FROM tab0 AS cor0
----
1170
6786
7566

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

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

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

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab0 WHERE NOT ( + col0 / col1 ) NOT BETWEEN col2 * + col0 * - col0 AND + + col1 + 90 + 61
----
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT CAST( - col1 AS SIGNED ) + + col2 AS col1 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-15
SELECT CAST ( - col1 AS INTEGER ) + + col2 AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + col0 * + col1 * + col2 + + col2 FROM tab0 AS cor0
----
18280
57152
9702

query I rowsort
SELECT + 75 + col2 AS col1 FROM tab0 AS cor0
----
122
174
85

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

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

query I rowsort
SELECT ALL + - col2 * col2 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-21
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-22
SELECT DISTINCT - - 35 + - - col2 + - col1 AS col2, + 45 + 25 DIV col0 AS col1 FROM tab0 AS cor0
----
1
46
133
45
24
45

skipif mysql # not compatible
query II rowsort label-22
SELECT DISTINCT - - 35 + - - col2 + - col1 AS col2, + 45 + 25 / col0 AS col1 FROM tab0 AS cor0
----
1
46
133
45
24
45

query I rowsort
SELECT + + 65 * 56 * col0 FROM tab1 AS cor0
----
185640
309400
331240

query I rowsort
SELECT ALL + - 92 + + + col1 AS col2 FROM tab0 AS cor0
----
-11
-71
-91

query II rowsort
SELECT DISTINCT - 28 + - - 99, + col1 FROM tab2
----
71
51
71
67
71
77

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

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

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

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

query I rowsort
SELECT ALL + + col2 + - 26 FROM tab1 AS cor0
----
33
42
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT + col2 + col1 DIV - col0 * + + ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + col2 + col1 / - col0 * + + ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL 21 * + col2 - - 98 AS col1 FROM tab1 AS cor0
----
1337
1526
2114

query I rowsort
SELECT DISTINCT + 11 + 63 * - 25 FROM tab0 AS cor0
----
-1564

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT DISTINCT - col0 + - col2 * + 31 + + 65 DIV + 9 AS col2 FROM tab2
----
-1297
-1866
-752

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - col0 + - col2 * + 31 + + 65 / + 9 AS col2 FROM tab2
----
-1297
-1866
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT MIN( ALL col1 ) - - + COUNT( * ) + COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT MIN ( ALL col1 ) - - + COUNT ( * ) + COUNT ( * ) FROM tab0
----
7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * + col1 col1 FROM tab1
----
103823
125
2744

query I rowsort
SELECT ALL - col2 * + col1 * + - 33 AS col2 FROM tab1 AS cor0
----
105468
44352
9735

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-43
SELECT ALL - CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL - CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT DISTINCT - 76 DIV col1 FROM tab1 AS cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - 76 / col1 FROM tab1 AS cor0
----
-1
-15
-5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL - - COUNT( DISTINCT + 88 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - - COUNT ( DISTINCT + 88 ) FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - SUM( DISTINCT ( ( 62 ) ) ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - SUM ( DISTINCT ( ( 62 ) ) ) FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - SUM( 22 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-50
SELECT - SUM ( 22 ) FROM tab0
----
-66

query II rowsort
SELECT DISTINCT col2 * - col1 AS col0, - col1 FROM tab0
----
-210
-21
-3807
-81
-99
-1

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 23 / - col1
----

query I rowsort
SELECT + col2 * - 82 FROM tab0 cor0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL MAX( ALL + col2 ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL MAX ( ALL + col2 ) AS col1 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT - 43 + SUM( - 88 ) FROM tab0 AS cor0
----
-307

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - 43 + SUM ( - 88 ) FROM tab0 AS cor0
----
-307

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

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

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

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

query I rowsort
SELECT ALL 82 + - + col2 FROM tab0
----
-17
35
72

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE ( NOT ( NOT + - 69 IS NOT NULL ) )
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-61
SELECT 70 col0, + col2 DIV ( + + col2 ) FROM tab0 AS cor0
----
70
1
70
1
70
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-61
SELECT 70 col0, + col2 / ( + + col2 ) FROM tab0 AS cor0
----
70
1
70
1
70
1

query I rowsort
SELECT + + col2 * + 27 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 39 AS col2, + 86 FROM tab1 AS cor0
----
39
86

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

query I rowsort
SELECT + col2 * - - col2 * - col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL - 63 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - 63 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
189

query II rowsort
SELECT + + col2 * - ( - + col2 ) * col0 + 82, + col0 + + col0 * 73 AS col1 FROM tab1 cor0
----
295967
6290
420866
6734
470098
3774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT DISTINCT - ( + COUNT( * ) ) DIV + - 15 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - ( + COUNT ( * ) ) / + - 15 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - 1 - ( - col2 ) FROM tab1
----
58
67
95

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78, + col0 * - + col1 col2 FROM tab1 AS cor0
----
-78
-425
-78
-4277
-78
-714

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 NOT BETWEEN + + col1 AND + col1 + - + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL + col0 DIV + - col0 + col1 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL + col0 / + - col0 + col1 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT DISTINCT 91 * + - ( - col2 ) - + col2 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ( - MAX( - col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-78
SELECT ( - MAX ( - col2 ) ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT DISTINCT + - col2 DIV 92 - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + - col2 / 92 - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-98

query I rowsort
SELECT ALL 78 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL < - col2
----

query I rowsort
SELECT DISTINCT + col0 + 46 * + col2 FROM tab2 AS cor0
----
1104
1904
2743

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT DISTINCT CAST( + + 24 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT CAST ( + + 24 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
24

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

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - COUNT ( * ) + - 73 FROM tab2
----
-76

query II rowsort
SELECT ALL col2, 97 FROM tab0
----
10
97
47
97
99
97

query I rowsort
SELECT col0 + - 55 AS col2 FROM tab1
----
-4
30
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-88
SELECT DISTINCT col2 AS col0, + CAST( 12 AS SIGNED ) * + - 68 + col2 * - col1 AS col0 FROM tab0
----
10
-1026
47
-4623
99
-915

skipif mysql # not compatible
query II rowsort label-88
SELECT DISTINCT col2 AS col0, + CAST ( 12 AS INTEGER ) * + - 68 + col2 * - col1 AS col0 FROM tab0
----
10
-1026
47
-4623
99
-915

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT col0 + + col1 + - col1 DIV col1 + 5 - col0 FROM tab2 AS cor0
----
55
71
81

skipif mysql # not compatible
query I rowsort label-89
SELECT col0 + + col1 + - col1 / col1 + 5 - col0 FROM tab2 AS cor0
----
55
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT DISTINCT - COUNT( * ) * + - SUM( ALL 21 ) * - COUNT( DISTINCT - + col2 ) + 41 col2 FROM tab1 AS cor0
----
-526

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT ALL + 58 * CAST( + 22 AS SIGNED ) + - + col2 FROM tab2 AS cor0
----
1218
1236
1253

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL + 58 * CAST ( + 22 AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
1218
1236
1253

query I rowsort
SELECT col1 + - 34 + col0 FROM tab2 cor0
----
107
108
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 85 * 94, 99 )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 - - ( + + col1 ) AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-99
SELECT 15 DIV MIN( col0 ), COUNT( * ) AS col2 FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-99
SELECT 15 / MIN ( col0 ), COUNT ( * ) AS col2 FROM tab1
----
0
3

query I rowsort
SELECT ALL - 86 * col2 AS col1 FROM tab0
----
-4042
-8514
-860

query II rowsort
SELECT 60, col2 FROM tab2
----
60
23
60
40
60
58

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-106
SELECT + 29, COUNT( * ) * 86 * + - ( - MAX( + + 3 ) ) AS col1 FROM tab0 AS cor0
----
29
774

skipif mysql # not compatible
query II rowsort label-106
SELECT + 29, COUNT ( * ) * 86 * + - ( - MAX ( + + 3 ) ) AS col1 FROM tab0 AS cor0
----
29
774

query I rowsort
SELECT - 32 * + - col2 FROM tab0
----
1504
3168
320

query I rowsort
SELECT ALL 71 * + 90 * + col0 FROM tab1
----
325890
543150
581490

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 * 24 + - 99 ) < ( - - col0 )
----

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

query II rowsort
SELECT col2 AS col0, 62 + col0 FROM tab2 AS cor0
----
23
108
40
126
58
137

query II rowsort
SELECT DISTINCT col0 + + col2 AS col2, col0 FROM tab1
----
144
85
147
51
159
91

query I rowsort
SELECT 96 * - 85 AS col2 FROM tab1
----
-8160
-8160
-8160

query I rowsort
SELECT - col1 + 28 AS col2 FROM tab0 WHERE - 43 + + col2 + - ( + col0 ) <> + col0 * + 25
----
-53
27
7

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

onlyif mysql # DIV for integer division: 
query II rowsort label-118
SELECT 29 DIV + + col2, 69 AS col1 FROM tab2
----
0
69
0
69
1
69

skipif mysql # not compatible
query II rowsort label-118
SELECT 29 / + + col2, 69 AS col1 FROM tab2
----
0
69
0
69
1
69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT - col0 DIV - col2 + - + 48 * - + ( + col2 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
2833
3265
4608

skipif mysql # not compatible
query I rowsort label-120
SELECT - col0 / - col2 + - + 48 * - + ( + col2 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
2833
3265
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT - MIN( DISTINCT - 28 ) + COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-121
SELECT - MIN ( DISTINCT - 28 ) + COUNT ( * ) FROM tab0 AS cor0
----
31

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 4 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
50
68
79

query I rowsort
SELECT - - col0 + + 61 + + - 36 AS col1 FROM tab0 AS cor0
----
112
122
40

query I rowsort
SELECT ALL 3 + - ( - - col2 ) FROM tab2
----
-20
-37
-55

query I rowsort
SELECT 83 + - col2 FROM tab1
----
-13
15
24

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

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

query I rowsort
SELECT + - 32 AS col0 FROM tab0 cor0
----
-32
-32
-32

query I rowsort
SELECT - 64 * col0 * + 43 AS col0 FROM tab2 AS cor0
----
-126592
-176128
-206400

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL + - COUNT( * ) - - - 54 col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-130
SELECT ALL + - COUNT ( * ) - - - 54 col0 FROM tab0 AS cor0
----
-57

query II rowsort
SELECT + 44 AS col0, 65 AS col0 FROM tab1 AS cor0
----
44
65
44
65
44
65

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + 70 AND NULL
----

query II rowsort
SELECT - + col2 + 92, col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
34
75
52
64
69
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT MIN( + col0 ) * 48 col0 FROM tab1
----
2448

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-135
SELECT DISTINCT MIN ( + col0 ) * 48 col0 FROM tab1
----
2448

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT col1 DIV - - 43 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT col1 / - - 43 col2 FROM tab2
----
1
1
1

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

query I rowsort
SELECT 57 * + col1 AS col1 FROM tab0 AS cor0
----
1197
4617
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-140
SELECT DISTINCT - - col0 * + + CAST( NULL AS DECIMAL ) * + col2 / - col1 * 87 * 73 * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - - col0 * + + CAST ( NULL AS REAL ) * + col2 / - col1 * 87 * 73 * + col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 93 + + col0 IN ( - + col1 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 AS col2, - col1 col0, col1 * 82 FROM tab1
----
9 values hashing to bf8cb8bd1eb9cb1e18f3046c11c7ff29

query I rowsort
SELECT + col1 + + + col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 57 + col2 - col0 AS col0 FROM tab2
----
33
34
40

query I rowsort
SELECT col0 * + + 27 + 55 + 33 FROM tab0
----
2437
2707
493

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

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT MIN( ALL + col1 ) * MAX( 96 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
4893

skipif mysql # not compatible
query I rowsort label-150
SELECT MIN ( ALL + col1 ) * MAX ( 96 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4893

query I rowsort
SELECT - 95 * - col1 * + col2 * - col2 * + 51 FROM tab0 AS cor0
----
-10174500
-47485845
-866911005

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0, - col0 * 80 * + col2 + + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0, - col0 * 80 * + col2 + + 15 )
----
0

query I rowsort
SELECT - col2 - + - 26 FROM tab0
----
-21
-73
16

query I rowsort
SELECT DISTINCT - ( - 7 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-157
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL + ( + 80 ) * + + col0 AS col1 FROM tab1 AS cor0
----
4080
6800
7280

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT + 90 >= col2
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-160
SELECT DISTINCT - col1 DIV 7 AS col1, + col0 FROM tab2 AS cor0
----
-11
64
-7
46
-9
75

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT - col1 / 7 AS col1, + col0 FROM tab2 AS cor0
----
-11
64
-7
46
-9
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-162
SELECT - 26, - COUNT( * ) AS col1 FROM tab1
----
-26
-3

skipif mysql # not compatible
query II rowsort label-162
SELECT - 26, - COUNT ( * ) AS col1 FROM tab1
----
-26
-3

query II rowsort
SELECT + col2 AS col2, col0 * 24 FROM tab0
----
10
2088
47
360
99
2328

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + MIN( 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + MIN ( 62 ) FROM tab1
----
62

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 21 * + - 64 * + col1 / + - col1 + 86 IS NOT NULL
----

query I rowsort
SELECT + col2 + - + col0 + - 25 FROM tab2 AS cor0
----
-42
-48
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL - + CAST( + + col2 AS SIGNED ) + + 77 FROM tab1 AS cor0
----
-19
18
9

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL - + CAST ( + + col2 AS INTEGER ) + + 77 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-174
SELECT 83 / + CAST( NULL AS DECIMAL ) + 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT 83 / + CAST ( NULL AS REAL ) + 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - 70 + - 76 FROM tab0
----
-146
-146
-146

query I rowsort
SELECT DISTINCT ( + 7 ) * - 67 + - col1 AS col0 FROM tab0
----
-470
-490
-550

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

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

query I rowsort
SELECT DISTINCT + - col0 * - col0 FROM tab1 WHERE NOT + 26 NOT BETWEEN + col0 AND + 72
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 26 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - + COUNT( * ) - + COUNT( * ) + + MIN( ALL + col1 ) * + 62 * + 27 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
25104

skipif mysql # not compatible
query I rowsort label-181
SELECT - + COUNT ( * ) - + COUNT ( * ) + + MIN ( ALL + col1 ) * + 62 * + 27 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
25104

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

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT DISTINCT + col2 * + col1 DIV + - col1 + + col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT + col2 * + col1 / + - col1 + + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT + col1 + - + col2 * + - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-1330
-290
-3149

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

skipif mysql # not compatible
query I rowsort label-185
SELECT + - MAX ( ALL - + col1 ) * - + COUNT ( * ) + 80 AS col1 FROM tab0 AS cor0
----
77

query II rowsort
SELECT ALL + col0 * - 34, col0 AS col1 FROM tab2
----
-1564
46
-2176
64
-2550
75

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL + 59 * + 58 FROM tab0 AS cor0
----
3422
3422
3422

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT ALL + col2 DIV + + 18 AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + col2 / + + 18 AS col0 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT + + 53 * + COUNT( * ) FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + + 53 * + COUNT ( * ) FROM tab2 AS cor0
----
159

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) * + col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

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

query II rowsort
SELECT DISTINCT - 43 AS col1, - 3 FROM tab0 AS cor0
----
-43
-3

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

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - COUNT ( + 10 ) FROM tab2
----
-3

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 43 * + + 54 * - col2 FROM tab0
----
-1637010
-2020140
-22298166

onlyif mysql # aggregate syntax: 
query II rowsort label-199
SELECT DISTINCT - SUM( col1 ), 4 col1 FROM tab2 WHERE - + 85 IS NOT NULL
----
-195
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-199
SELECT DISTINCT - SUM ( col1 ), 4 col1 FROM tab2 WHERE - + 85 IS NOT NULL
----
-195
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL - - MIN( ALL + - col0 ) * 63 FROM tab2 AS cor0 WHERE + 86 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL - - MIN ( ALL + - col0 ) * 63 FROM tab2 AS cor0 WHERE + 86 IS NULL
----
NULL

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

query I rowsort
SELECT ALL + + col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL COUNT ( ALL + - 26 ) + + COUNT ( * ) FROM tab0
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - MIN( - + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24

skipif mysql # not compatible
query I rowsort label-206
SELECT - MIN ( - + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
24

query I rowsort
SELECT + 0 + - 53 + - + 82 AS col2 FROM tab2 AS cor0
----
-135
-135
-135

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT DISTINCT COUNT( ALL - + col1 ) * - + 20 + - COUNT( * ), 38 AS col1 FROM tab2
----
-63
38

skipif mysql # not compatible
query II rowsort label-210
SELECT DISTINCT COUNT ( ALL - + col1 ) * - + 20 + - COUNT ( * ), 38 AS col1 FROM tab2
----
-63
38

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT MAX( DISTINCT - col0 ) + + 37 AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT MAX ( DISTINCT - col0 ) + + 37 AS col1 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT 57 + - COUNT( * ) + + + 67 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-212
SELECT 57 + - COUNT ( * ) + + + 67 FROM tab1
----
121

query I rowsort
SELECT + col1 * - col1 * + col2 FROM tab0
----
-308367
-4410
-99

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

query I rowsort
SELECT - - col2 + - - col1 FROM tab1 AS cor0 WHERE - 0 IS NOT NULL
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= col2 + - 53 * 63
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 72
----

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 72
----

query I rowsort
SELECT DISTINCT 79 * + - 53 FROM tab0
----
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT - 2 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT - 2 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-221
SELECT DISTINCT - col0 col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) = + + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 17 AND + 18 * col1 - - ( - col2 ) * - + col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-224
SELECT 60 * - - col2 + CAST( NULL AS SIGNED ), + 17 AS col0 FROM tab0 AS cor0
----
NULL
17
NULL
17
NULL
17

skipif mysql # not compatible
query II rowsort label-224
SELECT 60 * - - col2 + CAST ( NULL AS INTEGER ), + 17 AS col0 FROM tab0 AS cor0
----
NULL
17
NULL
17
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL + MIN( + 56 ) FROM tab1 cor0
----
56

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + MIN ( + 56 ) FROM tab1 cor0
----
56

query I rowsort
SELECT + + col0 * 7 FROM tab2 AS cor0
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT + 64 * - COUNT( * ) AS col1 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-227
SELECT + 64 * - COUNT ( * ) AS col1 FROM tab1
----
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-228
SELECT ALL + col2 / - 18 + - + 41 FROM tab2 WHERE NOT NULL BETWEEN - col0 + + - CAST( + 16 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + col2 / - 18 + - + 41 FROM tab2 WHERE NOT NULL BETWEEN - col0 + + - CAST ( + 16 AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT COUNT( + 29 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-229
SELECT COUNT ( + 29 ) FROM tab0
----
3

query I rowsort
SELECT 48 * - + col0 AS col2 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT DISTINCT - col0 * + 77 AS col2 FROM tab0
----
-1155
-6699
-7469

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ALL - ( + COUNT( * ) ) * + ( - 72 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - ( + COUNT ( * ) ) * + ( - 72 ) FROM tab2
----
216

query I rowsort
SELECT DISTINCT + 81 * + col1 AS col2 FROM tab1
----
1134
3807
405

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT DISTINCT - 75 DIV + col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - 75 / + col2 FROM tab0
----
-1
-7
0

query I rowsort
SELECT DISTINCT - col2 * - 19 * - + col0 - - - col2 * - ( - 42 ) + + + 36 AS col0 FROM tab2 AS cor0
----
-21032
-50284
-85050

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT + 58 - + - COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + 58 - + - COUNT ( * ) AS col0 FROM tab2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT - + SUM( col1 ) * MAX( + 30 ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - + SUM ( col1 ) * MAX ( + 30 ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 96 < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-241
SELECT DISTINCT col0 / - col1 + + col1 + + CAST( NULL AS SIGNED ) + - col2 AS col1, 60 FROM tab0 AS cor0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-241
SELECT DISTINCT col0 / - col1 + + col1 + + CAST ( NULL AS INTEGER ) + - col2 AS col1, 60 FROM tab0 AS cor0
----
NULL
60

query I rowsort
SELECT col0 - - 92 FROM tab1
----
143
177
183

query III rowsort
SELECT * FROM tab0 WHERE - + 89 / col2 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - 97 FROM tab0 WHERE + col0 IS NOT NULL
----
-107
-144
-196

query I rowsort
SELECT ALL col2 - 69 AS col1 FROM tab0
----
-22
-59
30

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2, - 13 - - + col0 + + + 67 )
----

query II rowsort
SELECT DISTINCT - + 91 - col0 + - - col2 AS col0, 29 FROM tab1 AS cor0
----
-114
29
-117
29
-46
29

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

query I rowsort
SELECT ALL + ( + 84 ) FROM tab1 cor0
----
84
84
84

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

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

skipif mysql # not compatible
query II rowsort label-251
SELECT - - CAST ( + - col2 AS INTEGER ) AS col1, - 24 AS col0 FROM tab1 AS cor0
----
-59
-24
-68
-24
-96
-24

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

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

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

query I rowsort
SELECT ALL - 41 * + col2 FROM tab1
----
-2419
-2788
-3936

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT DISTINCT - 48 DIV + col2 col1 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-257
SELECT DISTINCT - 48 / + col2 col1 FROM tab0
----
-1
-4
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-258
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( 7 / - + col1 + - 77 / 52, - CAST( NULL AS SIGNED ) / col0, + col1 * + - col0 * + + 98, 22 * + col0 * - - 37 - + 93, - + col0, + + col2 )
----

skipif mysql # not compatible
query III rowsort label-258
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( 7 / - + col1 + - 77 / 52, - CAST ( NULL AS INTEGER ) / col0, + col1 * + - col0 * + + 98, 22 * + col0 * - - 37 - + 93, - + col0, + + col2 )
----

query II rowsort
SELECT DISTINCT + 15 AS col1, + ( - col1 ) FROM tab2
----
15
-51
15
-67
15
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - MAX( ALL 77 ) FROM tab1 WHERE NOT - 75 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-260
SELECT - MAX ( ALL 77 ) FROM tab1 WHERE NOT - 75 IS NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT SUM( - ( - 44 ) ) + - 28 col2 FROM tab2
----
104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-261
SELECT SUM ( - ( - 44 ) ) + - 28 col2 FROM tab2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT col2 + + CAST( col2 AS SIGNED ) col2 FROM tab0
----
198
20
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-262
SELECT col2 + + CAST ( col2 AS INTEGER ) col2 FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * - - 74 col2 FROM tab1 AS cor0
----
1132
3546
429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 37 * - col2 + + - col2 - - ( + - ( - - col0 ) ) col2 FROM tab0 AS cor0
----
1692
3564
360

query I rowsort
SELECT ALL col0 + + 28 FROM tab2 cor0
----
103
74
92

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT 62, - COUNT( * ) col0 FROM tab1
----
62
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-266
SELECT 62, - COUNT ( * ) col0 FROM tab1
----
62
-3

query II rowsort
SELECT ALL + col0 * + col2 + ( + col1 ) + - 65, - col2 FROM tab1 WHERE - col2 / 89 / + - ( col0 ) < NULL
----

query I rowsort
SELECT 97 * ( col1 ) * + + 61 - - - 86 FROM tab2
----
301681
396353
455523

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + 30 * - - COUNT( * ) - - + 6 * - COUNT( * ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-269
SELECT + 30 * - - COUNT ( * ) - - + 6 * - COUNT ( * ) AS col0 FROM tab1
----
72

query I rowsort
SELECT 48 * - col1 - + col0 AS col0 FROM tab2
----
-2494
-3291
-3760

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT DISTINCT - COUNT( * ) col1, + 78 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-271
SELECT DISTINCT - COUNT ( * ) col1, + 78 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
75

query I rowsort
SELECT DISTINCT + col0 + + - 40 AS col1 FROM tab0 AS cor0
----
-25
47
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 33 * - col1 col2 FROM tab0 AS cor0
----
1
-33
21
-693
81
-2673

query I rowsort
SELECT - 41 + col0 * - col0 FROM tab0 AS cor0
----
-266
-7610
-9450

query I rowsort
SELECT ALL - col2 - + 85 AS col0 FROM tab0 AS cor0
----
-132
-184
-95

query II rowsort
SELECT DISTINCT - - col0 / + 12 / + col2, + col1 FROM tab0 WHERE ( - col2 >= + 32 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-277
SELECT - COUNT( * ) * - COUNT( * ) - - MAX( ALL + - 24 ) AS col0 FROM tab1 WHERE + - CAST( NULL AS DECIMAL ) + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT - COUNT ( * ) * - COUNT ( * ) - - MAX ( ALL + - 24 ) AS col0 FROM tab1 WHERE + - CAST ( NULL AS REAL ) + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 82 - - ( col2 ) FROM tab1
----
141
150
178

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 + ( - col0 ) FROM tab2
----
1035
2536
4333

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

onlyif mysql # aggregate syntax: 
query II rowsort label-281
SELECT - SUM( DISTINCT - - 2 ) AS col0, 6 FROM tab1
----
-2
6

skipif mysql # not compatible
query II rowsort label-281
SELECT - SUM ( DISTINCT - - 2 ) AS col0, 6 FROM tab1
----
-2
6

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - col2 + + 37 + - 61 <= NULL
----

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

query I rowsort
SELECT 82 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - col1 * + ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL SUM( ALL - ( + + 70 ) ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL SUM ( ALL - ( + + 70 ) ) FROM tab2 AS cor0
----
-210

query I rowsort
SELECT ALL - 74 * + 47 AS col1 FROM tab0 AS cor0
----
-3478
-3478
-3478

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 * - + ( - 41 ) IS NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT ALL CAST( + - 60 AS SIGNED ) * + + col1 FROM tab0
----
-1260
-4860
-60

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL CAST ( + - 60 AS INTEGER ) * + + col1 FROM tab0
----
-1260
-4860
-60

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 < 38 * + - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - SUM( ALL + col1 ) * + COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-292
SELECT - SUM ( ALL + col1 ) * + COUNT ( * ) FROM tab1
----
-198

query I rowsort
SELECT + ( - 45 ) * + 89 AS col0 FROM tab2
----
-4005
-4005
-4005

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

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

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

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

query I rowsort
SELECT + 89 + + + 43 AS col2 FROM tab1 cor0
----
132
132
132

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

query I rowsort
SELECT ALL + ( + 15 ) + - col2 AS col2 FROM tab2 AS cor0
----
-25
-43
-8

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

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT + COUNT( * ) + - - 86 col0, + 24 * + 39 - - 72 FROM tab0 AS cor0
----
89
1008

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-300
SELECT + COUNT ( * ) + - - 86 col0, + 24 * + 39 - - 72 FROM tab0 AS cor0
----
89
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT + + SUM( DISTINCT + 61 ) + + 29 * - 93 FROM tab1 AS cor0
----
-2636

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + + SUM ( DISTINCT + 61 ) + + 29 * - 93 FROM tab1 AS cor0
----
-2636

query I rowsort
SELECT ALL - col2 - col0 AS col2 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL + 59 - + COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL + 59 - + COUNT ( * ) FROM tab0 AS cor0
----
56

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

query I rowsort
SELECT ALL 38 * + 76 * ( - 58 ) * + 89 AS col0 FROM tab1 AS cor0
----
-14907856
-14907856
-14907856

query I rowsort
SELECT + 18 - - 12 AS col0 FROM tab2 cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT - + 57 + + SUM( col0 ) AS col2 FROM tab1 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - + 57 + + SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
170

query I rowsort
SELECT ALL 36 + + col2 * + - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-309
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
-3
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT ALL col0 DIV - 63 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL col0 / - 63 AS col1 FROM tab1
----
-1
-1
0

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

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

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

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

query II rowsort
SELECT + 56 * + col2 AS col1, col1 * col1 FROM tab2 AS cor0
----
1288
2601
2240
5929
3248
4489

query I rowsort
SELECT - 53 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----

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

query I rowsort
SELECT 27 * + 11 AS col2 FROM tab2 AS cor0
----
297
297
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT 71 DIV - COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT 71 / - COUNT ( * ) FROM tab1 AS cor0
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL 9 + COUNT( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-320
SELECT ALL 9 + COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 cor0 WHERE NOT + 66 * - - 29 NOT BETWEEN + col1 AND + col1
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT DISTINCT 69 / + + col0 * + - col2 * + CAST( NULL AS SIGNED ) * col0 / - - col0 AS col2 FROM tab2 AS cor0 WHERE col0 / - col2 * + + col2 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT 69 / + + col0 * + - col2 * + CAST ( NULL AS INTEGER ) * col0 / - - col0 AS col2 FROM tab2 AS cor0 WHERE col0 / - col2 * + + col2 / col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-325
SELECT DISTINCT + CAST( - col1 AS SIGNED ), col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-325
SELECT DISTINCT + CAST ( - col1 AS INTEGER ), col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT - 87 + + col1 AS col1, + col0 FROM tab0 AS cor0 WHERE col2 * 45 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - MAX( - 86 ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - MAX ( - 86 ) AS col0 FROM tab0
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 33 IN ( - - 25, - 53, - 84 * - 64 )
----

query II rowsort
SELECT - col0 * + col1 + - col2 AS col0, col1 AS col0 FROM tab2
----
-2369
51
-4968
77
-5083
67

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT COUNT( * ) + + + SUM( - - 87 ) AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-331
SELECT COUNT ( * ) + + + SUM ( - - 87 ) AS col2 FROM tab0
----
264

query I rowsort
SELECT DISTINCT col2 * - + col1 + + 83 AS col2 FROM tab1
----
-1261
-212
-3113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT DISTINCT + - 8 * + COUNT( * ) + - 86 AS col1 FROM tab1 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT + - 8 * + COUNT ( * ) + - 86 AS col1 FROM tab1 AS cor0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT SUM( col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-335
SELECT SUM ( col1 ) AS col0 FROM tab0
----
103

query I rowsort
SELECT - col1 + - 18 FROM tab2
----
-69
-85
-95

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) BETWEEN NULL AND - 87
----

query I rowsort
SELECT ALL - col0 - 34 * + col2 FROM tab1
----
-2091
-2403
-3315

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

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

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

query I rowsort
SELECT 78 + + col1 FROM tab2
----
129
145
155

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( + col0 * - col2 ) IS NULL
----

query I rowsort
SELECT - 60 + 58 FROM tab0
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 + 97 ) <> NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT col0 + + col2 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
104
133
69

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

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

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

query I rowsort
SELECT 82 - + col0 FROM tab0
----
-15
-5
67

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

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

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - 32 + - ( CAST ( SUM ( - col1 ) AS INTEGER ) ) FROM tab1
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT IN ( + 65 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - 85 > ( col0 + 49 )
----
3

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - 85 > ( col0 + 49 )
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ALL 20 * col1 AS col2 FROM tab1 AS cor0
----
100
280
940

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT DISTINCT COUNT( * ) DIV 80 FROM tab1 AS cor0 WHERE col0 DIV 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT COUNT ( * ) / 80 FROM tab1 AS cor0 WHERE col0 / 37 IS NULL
----
0

query I rowsort
SELECT 85 * 90 FROM tab0
----
7650
7650
7650

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
54

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab2 ON ( 95 ) IS NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 21 - 54 * 10 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT + + 34 DIV - MIN( - col1 * 80 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-369
SELECT + + 34 / - MIN ( - col1 * 80 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT ALL + + col2 + col1 DIV col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + + col2 + col1 / col1 FROM tab0 AS cor0
----
100
11
48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT - CAST( col2 AS SIGNED ) col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-372
SELECT - CAST ( col2 AS INTEGER ) col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL - 92 + MAX( DISTINCT col0 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - 92 + MAX ( DISTINCT col0 ) FROM tab2
----
-17

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) NOT IN ( + col0 + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-375
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col0 * col1 ) <= ( 15 ) OR NOT + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col0 * col1 ) <= ( 15 ) OR NOT + col1 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + 9 - + col2 FROM tab0
----
-1
-38
-90

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT + col1 * col1 - 79 NOT IN ( - 7 + col1 )
----

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 39 / 43 IN ( - col0 / col1 + - col0 )
----

query I rowsort
SELECT - ( + - 40 ) * col0 + 82 AS col2 FROM tab2 AS cor0
----
1922
2642
3082

query I rowsort
SELECT - 93 * - col0 + col2 + + col2 FROM tab0 AS cor0
----
1489
8111
9219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-382
SELECT CAST( NULL AS DECIMAL ) * - 42 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT CAST ( NULL AS REAL ) * - 42 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-383
SELECT + 99 * - col0 + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL - col0 * - 74 FROM tab2 AS cor0
----
3404
4736
5550

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT - SUM( ALL - - col2 ) * + - ( 9 ) + + 65 * - 73 AS col0 FROM tab1 AS cor0
----
-2738

skipif mysql # not compatible
query I rowsort label-387
SELECT - SUM ( ALL - - col2 ) * + - ( 9 ) + + 65 * - 73 AS col0 FROM tab1 AS cor0
----
-2738

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 6 * + col2 col1 FROM tab2 cor0
----
-138
-240
-348

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-391
SELECT AVG ( ALL col2 ) + CAST( - ( + 74 ) AS DECIMAL ) AS col1 FROM tab2 cor0 WHERE NOT ( - col1 ) >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT AVG ( ALL col2 ) + CAST ( - ( + 74 ) AS REAL ) AS col1 FROM tab2 cor0 WHERE NOT ( - col1 ) >= ( NULL )
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT col2 + col1 col2 FROM tab1 WHERE NOT ( + CAST( + col0 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-396
SELECT col2 + col1 col2 FROM tab1 WHERE NOT ( + CAST ( + col0 AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT ALL - - 8 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT 49 DIV - 32 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-399
SELECT 49 / - 32 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 * 81 * + - col0 FROM tab2
----
171396
331776
455625

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT ALL col0 DIV + 45 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL col0 / + 45 FROM tab1
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-402
SELECT DISTINCT + SUM( - col1 ) DIV - COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + SUM ( - col1 ) / - COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT ALL + col2 + + col2 * + 56 + col1 FROM tab0 cor0
----
2760
5644
591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT - CAST( + - col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-404
SELECT - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT 57 * - col2 AS col1 FROM tab0
----
-2679
-5643
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT col0 DIV + - 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-406
SELECT col0 / + - 77 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * ( - col0 ) FROM tab1 WHERE NULL NOT IN ( - col0 * - - 83 - + + col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - MAX ( ALL - 16 ) FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-410
SELECT DISTINCT - + col1 + - CAST( + 65 AS SIGNED ), col0 FROM tab2 AS cor0
----
-116
46
-132
75
-142
64

skipif mysql # not compatible
query II rowsort label-410
SELECT DISTINCT - + col1 + - CAST ( + 65 AS INTEGER ), col0 FROM tab2 AS cor0
----
-116
46
-132
75
-142
64

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + - col0 col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

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

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

query I rowsort
SELECT DISTINCT - col2 * col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-1677
-3431
-580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL 51 + + CAST( col2 AS SIGNED ) + + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1491
3315
405

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL 51 + + CAST ( col2 AS INTEGER ) + + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1491
3315
405

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-418
SELECT - 49, + MIN( - col1 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE col0 > NULL
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-418
SELECT - 49, + MIN ( - col1 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE col0 > NULL
----
-49
NULL

query I rowsort
SELECT 40 + - 91 + + 86 FROM tab1
----
35
35
35

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

query II rowsort
SELECT col0 * + 61, ( + col1 ) FROM tab0
----
5307
21
5917
1
915
81

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

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + + 12 AS col0, 60 FROM tab2 AS cor0
----
12
60
12
60
12
60

query II rowsort
SELECT - 94, - col2 * + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-94
-210
-94
-3807
-94
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-426
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + 44 + + 9 * - col1 / + CAST( NULL AS SIGNED ) = ( col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-426
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + 44 + + 9 * - col1 / + CAST ( NULL AS INTEGER ) = ( col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT COUNT( * ) - - COUNT( * ), + COUNT( DISTINCT + 21 ) AS col0 FROM tab1
----
6
1

skipif mysql # not compatible
query II rowsort label-427
SELECT COUNT ( * ) - - COUNT ( * ), + COUNT ( DISTINCT + 21 ) AS col0 FROM tab1
----
6
1

query I rowsort
SELECT DISTINCT ( - 52 ) AS col2 FROM tab2
----
-52

query I rowsort
SELECT DISTINCT + col0 * + 85 * - + 79 FROM tab1
----
-342465
-570775
-611065

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - SUM( + + 37 ) AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-430
SELECT - SUM ( + + 37 ) AS col0 FROM tab0
----
-111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT + MIN( - 32 ) - - + AVG ( DISTINCT + 76 ) FROM tab2 AS cor0 WHERE - col0 + + 37 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + MIN ( - 32 ) - - + AVG ( DISTINCT + 76 ) FROM tab2 AS cor0 WHERE - col0 + + 37 >= NULL
----
NULL

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT NULL = - 58
----

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 * - - col1 * 23 IS NOT NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT + SUM( - 15 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT + SUM ( - 15 ) FROM tab2
----
-45

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

query I rowsort
SELECT col2 * ( 82 ) AS col0 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT ALL 81 * + col0 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT DISTINCT 99 * + + col0 AS col1 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT ALL + col2 + + - 56 AS col1 FROM tab0 WHERE NOT + + col2 + - - 1 * 28 IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-446
SELECT + - col1 FROM tab2 cor0 WHERE NOT - CAST( + col1 AS DECIMAL ) < ( + 73 )
----

skipif mysql # not compatible
query I rowsort label-446
SELECT + - col1 FROM tab2 cor0 WHERE NOT - CAST ( + col1 AS REAL ) < ( + 73 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-447
SELECT 35 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND 44 * + ( - CAST( NULL AS DECIMAL ) ) / - 55 + - 31 - 75
----
0

skipif mysql # not compatible
query I rowsort label-447
SELECT 35 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND 44 * + ( - CAST ( NULL AS REAL ) ) / - 55 + - 31 - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( 31 + + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( 31 + + 53 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT ALL ( col2 ) / - CAST( NULL AS SIGNED ) * 62 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL ( col2 ) / - CAST ( NULL AS INTEGER ) * 62 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE ( - ( + - col0 ) IS NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-451
SELECT + COUNT ( ALL - 26 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL + 48 * 98 + + - COUNT( * ) FROM tab0 AS cor0
----
4701

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + 48 * 98 + + - COUNT ( * ) FROM tab0 AS cor0
----
4701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + - col0 col2 FROM tab0 AS cor0
----
-108
-96
-98

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

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

query I rowsort
SELECT + 51 - + + col1 AS col2 FROM tab1
----
37
4
46

query I rowsort
SELECT DISTINCT - col1 - col1 - col1 * - col0 FROM tab2
----
2244
4774
4891

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / + ( 58 ) * + col2 NOT BETWEEN NULL AND NULL AND col0 BETWEEN - col1 AND - 23 * - col1 + col0 + 25
----

query I rowsort
SELECT ALL + 14 + - + col2 FROM tab2
----
-26
-44
-9

query I rowsort
SELECT DISTINCT 58 * + 8 * - - 53 FROM tab0
----
24592

query I rowsort
SELECT ALL 6 - col0 FROM tab1
----
-45
-79
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-461
SELECT DISTINCT + COUNT( * ) AS col1, 11 * 28 * - 61 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
-18788

skipif mysql # not compatible
query II rowsort label-461
SELECT DISTINCT + COUNT ( * ) AS col1, 11 * 28 * - 61 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
-18788

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 56 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-463
SELECT + COUNT ( * ) / 59 - - 17 AS col2 FROM tab1 AS cor0
----
17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 90 * + 85 * col1 + + col0 > ( + col0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( + 36 ) IS NULL
----

query II rowsort
SELECT + col2 AS col2, 36 * - col0 * ( - + 2 ) FROM tab2
----
23
3312
40
4608
58
5400

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, + 68 + col2 col2 FROM tab0 cor0
----
-10
78
-47
115
-99
167

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

query II rowsort
SELECT col1 AS col2, + col1 + + 37 * 77 AS col1 FROM tab2 AS cor0
----
51
2900
67
2916
77
2926

onlyif mysql # aggregate syntax: 
query II rowsort label-472
SELECT DISTINCT + COUNT( * ), 11 * + 49 * - SUM( col1 ) * - 52 * + 37 AS col1 FROM tab2 AS cor0
----
3
202222020

skipif mysql # not compatible
query II rowsort label-472
SELECT DISTINCT + COUNT ( * ), 11 * + 49 * - SUM ( col1 ) * - 52 * + 37 AS col1 FROM tab2 AS cor0
----
3
202222020

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

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - MIN( DISTINCT 71 ) FROM tab1 WHERE NOT col0 IS NULL
----
-71

skipif mysql # not compatible
query I rowsort label-474
SELECT - MIN ( DISTINCT 71 ) FROM tab1 WHERE NOT col0 IS NULL
----
-71

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

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

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

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

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

query I rowsort
SELECT ALL 56 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query II rowsort
SELECT ALL + 12 + col0 + - + 48 * col0 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-2150
23
-2996
40
-3513
58

query I rowsort
SELECT - col0 + - + 51 + + col1 AS col0 FROM tab0 AS cor0
----
-117
-147
15

query I rowsort
SELECT DISTINCT 3 FROM tab0 AS cor0 WHERE col0 - col2 < + col1
----
3

query I rowsort
SELECT - 70 FROM tab1 AS cor0 WHERE + col2 + 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT ALL col2 DIV ( - - 10 ) FROM tab0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL col2 / ( - - 10 ) FROM tab0
----
1
4
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - col1 - + - col0 + - col2 * - 74 - - 19 )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + - 56 ) * - ( - + col2 ) IS NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT - COUNT( * ) * 77 AS col1 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-488
SELECT - COUNT ( * ) * 77 AS col1 FROM tab2
----
-231

query I rowsort
SELECT DISTINCT col2 * - 72 FROM tab2
----
-1656
-2880
-4176

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab1 WHERE + + col2 - - col1 * - - col1 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT - 53 / - - col1 + + + col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + 56 * - col2 / + 78 - + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-498
SELECT * FROM tab2 AS cor0 WHERE NULL > + + col2 OR col1 - - CAST( NULL AS SIGNED ) + + + col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-498
SELECT * FROM tab2 AS cor0 WHERE NULL > + + col2 OR col1 - - CAST ( NULL AS INTEGER ) + + + col0 <= NULL
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT MIN( DISTINCT 4 ) DIV - 87 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT MIN ( DISTINCT 4 ) / - 87 AS col0 FROM tab1
----
0

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

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

query I rowsort
SELECT - 59 + 18 AS col0 FROM tab1 cor0
----
-41
-41
-41

query I rowsort
SELECT + col2 + 12 * + 0 - col0 FROM tab2
----
-17
-23
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT + CAST( NULL AS SIGNED ) * + SUM( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IN ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IN ( - 6 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + - col0 col1 FROM tab1 AS cor0
----
-2652
-7310
-8372

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

skipif mysql # not compatible
query I rowsort label-509
SELECT - + 25 * - - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + - MAX( DISTINCT + col2 ) * + 12 AS col2 FROM tab2 AS cor0
----
-696

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + - MAX ( DISTINCT + col2 ) * + 12 AS col2 FROM tab2 AS cor0
----
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 83 col0 FROM tab2 cor0
----
-25
-43
-60

query II rowsort
SELECT ALL col1 + 62 AS col2, col1 FROM tab1 AS cor0
----
109
47
67
5
76
14

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

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT ALL + col1 DIV - ( col2 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + col1 / - ( col2 ) FROM tab0
----
-1
-2
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT ALL 64 DIV ( - col1 ) AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL 64 / ( - col1 ) AS col0 FROM tab2
----
-1
0
0

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

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

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

query I rowsort
SELECT + col1 * + ( - 31 ) FROM tab1 AS cor0
----
-1457
-155
-434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT ALL + 62 DIV ( + COUNT( * ) ) + - - 48 AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 62 / ( + COUNT ( * ) ) + - - 48 AS col2 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-92

query I rowsort
SELECT - col0 * + 33 - + col2 AS col0 FROM tab0 cor0
----
-2881
-3300
-542

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL + 42 + - ( - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-527
SELECT ALL + 42 + - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
45

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-530
SELECT + CAST ( - col1 AS INTEGER ) AS col0, + 58 * - col0 + + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

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

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

query II rowsort
SELECT ALL - 78 * + col1, + col1 AS col2 FROM tab2 AS cor0
----
-3978
51
-5226
67
-6006
77

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL - COUNT( * ) + + + 8 AS col2 FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - COUNT ( * ) + + + 8 AS col2 FROM tab0 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT 9 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT 9 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT 75 + + COUNT( * ) + + MAX( + col0 ) FROM tab0
----
175

skipif mysql # not compatible
query I rowsort label-535
SELECT 75 + + COUNT ( * ) + + MAX ( + col0 ) FROM tab0
----
175

query I rowsort
SELECT col1 + + + 34 * - col0 AS col0 FROM tab0
----
-2937
-3297
-429

query I rowsort
SELECT + col1 + - - col1 - - col1 AS col2 FROM tab0
----
243
3
63

query I rowsort
SELECT 23 + - 83 FROM tab1
----
-60
-60
-60

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT 10 + + - CAST( col1 AS SIGNED ) - 20 FROM tab1
----
-15
-24
-57

skipif mysql # not compatible
query I rowsort label-541
SELECT 10 + + - CAST ( col1 AS INTEGER ) - 20 FROM tab1
----
-15
-24
-57

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

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

query II rowsort
SELECT ALL + - 99 + col0 + - - ( - + col0 ) AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-99
59
-99
68
-99
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT ALL MAX( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-547
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - col0 <> CAST ( - + 7 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT - + 85 / - MIN( DISTINCT - - 77 ) FROM tab1 WHERE NOT col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-548
SELECT - + 85 / - MIN ( DISTINCT - - 77 ) FROM tab1 WHERE NOT col2 < NULL
----
NULL

query I rowsort
SELECT ALL + 11 * col2 * 33 * - - 69 FROM tab0
----
1177209
2479653
250470

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE + 89 * + col2 - - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + 79 * + + 32 * - - COUNT( * ) FROM tab0 cor0
----
7584

skipif mysql # not compatible
query I rowsort label-551
SELECT + 79 * + + 32 * - - COUNT ( * ) FROM tab0 cor0
----
7584

query II rowsort
SELECT + ( + - 65 ) + col1, - col2 AS col1 FROM tab0 AS cor0
----
-44
-10
-64
-99
16
-47

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

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

query I rowsort
SELECT DISTINCT - 4 + + col2 FROM tab0
----
43
6
95

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-555
SELECT ( - col2 ) AS col0, + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-555
SELECT ( - col2 ) AS col0, + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT ALL - col0 + col1 + - col1 * - 15 FROM tab2
----
1168
770
997

onlyif mysql # aggregate syntax: 
query II rowsort label-557
SELECT - - 69 AS col1, MAX( + + 26 ) col0 FROM tab0 WHERE - 5 > NULL
----
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-557
SELECT - - 69 AS col1, MAX ( + + 26 ) col0 FROM tab0 WHERE - 5 > NULL
----
69
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL >= col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL - SUM( ALL - 80 ) AS col0 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - SUM ( ALL - 80 ) AS col0 FROM tab1 AS cor0
----
240

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

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

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

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

query I rowsort
SELECT + 30 * 57 + + - col2 FROM tab0 AS cor0
----
1611
1663
1700

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT + CAST( 69 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif mysql # not compatible
query I rowsort label-566
SELECT + CAST ( 69 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT 97 * col0 * col2 FROM tab0 AS cor0
----
68385
84390
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT ALL 38 * + - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 38 * + - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 < NULL
----

query II rowsort
SELECT col2 - - + 88 + col2 * - 10 + - - col1, - col2 AS col1 FROM tab1 cor0
----
-438
-59
-477
-68
-762
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT DISTINCT + - MAX( ALL - 83 ) FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT + - MAX ( ALL - 83 ) FROM tab2 cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT - CAST( - col0 AS SIGNED ) - - - 92 AS col2 FROM tab0 AS cor0
----
-5
-77
5

skipif mysql # not compatible
query I rowsort label-571
SELECT - CAST ( - col0 AS INTEGER ) - - - 92 AS col2 FROM tab0 AS cor0
----
-5
-77
5

query I rowsort
SELECT DISTINCT - 86 - 11 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + col1 * - col2 * col0 AS col0 FROM tab2
----
-197120
-291450
-53958

query II rowsort
SELECT + 65 * + + 88, ( + + 55 ) AS col1 FROM tab0
----
5720
55
5720
55
5720
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 36 >= col2
----

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

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

query I rowsort
SELECT - col1 * + - 40 * - 10 FROM tab1 AS cor0
----
-18800
-2000
-5600

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

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT + 77 AS col1, - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
77
-3

skipif mysql # not compatible
query II rowsort label-580
SELECT + 77 AS col1, - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
77
-3

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

skipif mysql # not compatible
query III rowsort label-581
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - + col1 + - 51 + ( 14 ) FROM tab0 AS cor0
----
-118
-38
-58

query I rowsort
SELECT - col1 * - ( + + col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN + + 36 AND + - 94 / - + 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT - COUNT( * ) + - 31 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - COUNT ( * ) + - 31 FROM tab1
----
-34

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

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

query I rowsort
SELECT 81 * + col1 + + + col1 FROM tab2
----
4182
5494
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-587
SELECT - 14 DIV - col1 + 74 FROM tab1
----
74
75
76

skipif mysql # not compatible
query I rowsort label-587
SELECT - 14 / - col1 + 74 FROM tab1
----
74
75
76

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT DISTINCT COUNT( * ) AS col0, 51 FROM tab2
----
3
51

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT COUNT ( * ) AS col0, 51 FROM tab2
----
3
51

query I rowsort
SELECT + col2 + 0 FROM tab1 WHERE + + col1 IS NULL
----

query I rowsort
SELECT 46 * - - col2 * + + 54 FROM tab0
----
116748
245916
24840

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

query I rowsort
SELECT DISTINCT + 74 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - 31
----

query I rowsort
SELECT - 58 * + col0 AS col0 FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT CAST( + - 22 AS SIGNED ) * + 56 - + 29 * COUNT( * ) FROM tab0
----
-1319

skipif mysql # not compatible
query I rowsort label-594
SELECT CAST ( + - 22 AS INTEGER ) * + 56 - + 29 * COUNT ( * ) FROM tab0
----
-1319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT ALL CAST( + 96 AS SIGNED ) - - COUNT( * ) col1 FROM tab1
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-595
SELECT ALL CAST ( + 96 AS INTEGER ) - - COUNT ( * ) col1 FROM tab1
----
99

query I rowsort
SELECT col0 + ( - 56 ) FROM tab1
----
-5
29
35

query I rowsort
SELECT - col0 * - col0 * + col0 * - col0 + - 36 + + - col0 AS col2 FROM tab1
----
-52200746
-6765288
-68575088

query I rowsort
SELECT ALL - 44 + - + ( col1 ) AS col2 FROM tab1
----
-49
-58
-91

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

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

query I rowsort
SELECT ALL - + col2 * col1 FROM tab0 WHERE NOT - col1 * - col2 + - col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT - COUNT( * ) * - CAST( + 47 AS SIGNED ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-601
SELECT - COUNT ( * ) * - CAST ( + 47 AS INTEGER ) AS col0 FROM tab1
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - 13 col0 FROM tab0
----
-650
-650
-650

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT ( col1 - - 88 + - col0 > ( NULL ) )
----

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

skipif mysql # not compatible
query I rowsort label-604
SELECT + COUNT ( ALL + + 33 ) FROM tab2
----
3

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL - 82 * SUM( - + col2 ) + + SUM( col1 ) AS col2 FROM tab0 cor0
----
12895

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - 82 * SUM ( - + col2 ) + + SUM ( col1 ) AS col2 FROM tab0 cor0
----
12895

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-612
SELECT ALL 43 + CAST( + col0 AS SIGNED ) * - - col1 col1 FROM tab0 AS cor0
----
1258
140
1870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-612
SELECT ALL 43 + CAST ( + col0 AS INTEGER ) * - - col1 col1 FROM tab0 AS cor0
----
1258
140
1870

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - + 74 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-619
SELECT ALL - col0 col1, + col0 DIV - + col1 FROM tab1 AS cor0
----
-51
-3
-85
-17
-91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-619
SELECT ALL - col0 col1, + col0 / - + col1 FROM tab1 AS cor0
----
-51
-3
-85
-17
-91
-1

query I rowsort
SELECT ALL - - col1 + - + 75 FROM tab0 cor0
----
-54
-74
6

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

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

query I rowsort
SELECT DISTINCT col1 * + + col1 - + - ( col2 ) + - col2 * - - col0 * + 26 * - col2 FROM tab2 AS cor0
----
2668369
635308
6564347

query I rowsort
SELECT ALL - ( col1 ) * 51 FROM tab2 AS cor0
----
-2601
-3417
-3927

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT DISTINCT 84 + + 59 AS col2, COUNT( * ) FROM tab1 cor0
----
143
3

skipif mysql # not compatible
query II rowsort label-625
SELECT DISTINCT 84 + + 59 AS col2, COUNT ( * ) FROM tab1 cor0
----
143
3

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

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

query II rowsort
SELECT - ( - 20 ), col2 FROM tab1
----
20
59
20
68
20
96

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT + SUM( DISTINCT 88 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-629
SELECT + SUM ( DISTINCT 88 ) FROM tab1
----
88

query I rowsort
SELECT - 58 FROM tab0 WHERE NULL IS NULL
----
-58
-58
-58

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

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

query II rowsort
SELECT - + 45 + - ( + - col2 ) AS col2, - col2 + - 82 FROM tab2 AS cor0
----
-22
-105
-5
-122
13
-140

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT - 35 + MAX( - CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-634
SELECT - 35 + MAX ( - CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
40

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

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT - col2 / + + 75 FROM tab1
----
-1
0

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 8 FROM tab0 AS cor0
----
-168
-648
-8

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-641
SELECT ALL 62 AS col0, - CAST( NULL AS SIGNED ) + + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
62
NULL
62
NULL
62
NULL

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL 62 AS col0, - CAST ( NULL AS INTEGER ) + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
62
NULL
62
NULL
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT + COUNT( - - 89 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-642
SELECT + COUNT ( - - 89 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - 56 AS col0 FROM tab1 AS cor0 WHERE NULL > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> 28
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT - 26 * + + COUNT( * ) * - 39 FROM tab1
----
3042

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT - 26 * + + COUNT ( * ) * - 39 FROM tab1
----
3042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL - + col2 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) > + 36
----

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - + col2 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) > + 36
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT SUM( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-649
SELECT SUM ( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT ( + 9 ) * - + 86 FROM tab0
----
-774
-774
-774

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-651
SELECT ( - CAST( NULL AS SIGNED ) ) * + - 39 AS col2, 47 FROM tab1
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-651
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - 39 AS col2, 47 FROM tab1
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT + - 49 * - col2 * + col1 + 10 FROM tab1 cor0
----
14465
156614
65866

query I rowsort
SELECT 95 + - 76 FROM tab2 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - COUNT( DISTINCT + - col1 ) * + + 55 AS col1 FROM tab2 cor0 WHERE + 59 / + col2 IS NOT NULL
----
-165

skipif mysql # not compatible
query I rowsort label-654
SELECT - COUNT ( DISTINCT + - col1 ) * + + 55 AS col1 FROM tab2 cor0 WHERE + 59 / + col2 IS NOT NULL
----
-165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL + 35 + - + ( + 28 ) + + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + 35 + - + ( + 28 ) + + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
103

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE col2 < NULL
----

query I rowsort
SELECT ALL + 72 + + - col2 + - - 63 FROM tab2
----
112
77
95

query I rowsort
SELECT DISTINCT - 33 * - ( + - col1 ) FROM tab1
----
-1551
-165
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-662
SELECT ALL col0 - CAST( - col0 AS SIGNED ) FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL col0 - CAST ( - col0 AS INTEGER ) FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + col2 * ( + 34 ) * - col1 FROM tab0
----
-129438
-3366
-7140

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

query I rowsort
SELECT - col2 * + - 86 FROM tab0
----
4042
8514
860

query I rowsort
SELECT 36 * - col1 AS col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-667
SELECT DISTINCT - COUNT( * ) AS col0, - 95 FROM tab2 AS cor0
----
-3
-95

skipif mysql # not compatible
query II rowsort label-667
SELECT DISTINCT - COUNT ( * ) AS col0, - 95 FROM tab2 AS cor0
----
-3
-95

query I rowsort
SELECT + ( - col1 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

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

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
103

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

query I rowsort
SELECT ALL - col1 * - 35 * col0 AS col1 FROM tab2
----
172480
175875
82110

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

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + - MAX ( - + ( - - col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-673
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-674
SELECT DISTINCT col0 DIV - - col0, 18 * ( 56 ) AS col0 FROM tab0 AS cor0
----
1
1008

skipif mysql # not compatible
query II rowsort label-674
SELECT DISTINCT col0 / - - col0, 18 * ( 56 ) AS col0 FROM tab0 AS cor0
----
1
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT ALL + 90 * COUNT( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + 90 * COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
0

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

query II rowsort
SELECT 40 * - col1 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-2040
-51
-2680
-67
-3080
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL MIN( DISTINCT - 74 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-678
SELECT ALL MIN ( DISTINCT - 74 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + 93 FROM tab2 WHERE NOT - 60 >= - col0
----
93

query I rowsort
SELECT DISTINCT + col0 * 45 FROM tab2
----
2070
2880
3375

query I rowsort
SELECT 37 * - 8 * + ( - col2 ) FROM tab1
----
17464
20128
28416

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

query I rowsort
SELECT ALL col0 * + + col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-684
SELECT DISTINCT - 65 DIV + COUNT( * ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT - 65 / + COUNT ( * ) AS col0 FROM tab2
----
-21

query I rowsort
SELECT ALL + ( + col2 ) * - col0 * col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL + - 4 + + col2 AS col2 FROM tab0 AS cor0
----
43
6
95

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

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

query I rowsort
SELECT + col0 + - col0 * - + col2 FROM tab2
----
1104
2624
4425

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

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

query I rowsort
SELECT DISTINCT - ( 51 ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 56 + + 31 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND - col2
----

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

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 - 78 * + col2 * col0 AS col0 FROM tab1
----
-383232
-391465
-485860

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 - - 19 col0 FROM tab1
----
37
37
37

query I rowsort
SELECT col1 - - 64 FROM tab2
----
115
131
141

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

query I rowsort
SELECT DISTINCT - 17 FROM tab1 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-701
SELECT + - col1 * col2 * col1, - CAST( NULL AS SIGNED ) + - + col2 * col2 AS col0 FROM tab0 cor0
----
-308367
NULL
-4410
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-701
SELECT + - col1 * col2 * col1, - CAST ( NULL AS INTEGER ) + - + col2 * col2 AS col0 FROM tab0 cor0
----
-308367
NULL
-4410
NULL
-99
NULL

query I rowsort
SELECT 41 * col0 * 38 FROM tab2 AS cor0
----
116850
71668
99712

query I rowsort
SELECT + col1 * col1 - 47 AS col2 FROM tab0 AS cor0
----
-46
394
6514

query I rowsort
SELECT DISTINCT col0 * + col2 * + col2 AS col0 FROM tab1 AS cor0
----
295885
420784
470016

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

query II rowsort
SELECT ALL + 46, col1 FROM tab2
----
46
51
46
67
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL - 27 * COUNT( + 92 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL - 27 * COUNT ( + 92 ) FROM tab1
----
-81

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 ) > + + 79 + - + 94 + - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT DISTINCT - - 18 * - ( - COUNT( - ( 52 ) ) ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT - - 18 * - ( - COUNT ( - ( 52 ) ) ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT - COUNT( * ) * + 12 AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-712
SELECT - COUNT ( * ) * + 12 AS col2 FROM tab0 AS cor0
----
-36

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query II rowsort label-716
SELECT DISTINCT + 73 DIV 55 col1, + col0 col2 FROM tab0
----
1
15
1
87
1
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-716
SELECT DISTINCT + 73 / 55 col1, + col0 col2 FROM tab0
----
1
15
1
87
1
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT COUNT( * ) + + + COUNT( - + col1 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-718
SELECT COUNT ( * ) + + + COUNT ( - + col1 ) AS col0 FROM tab1
----
6

query I rowsort
SELECT + 61 + - col2 FROM tab2 WHERE ( 78 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL + 4 * + - COUNT( * ) col1 FROM tab1
----
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT DISTINCT + 32 DIV col1 * + 25 FROM tab0 AS cor0
----
0
25
800

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT + 32 / col1 * + 25 FROM tab0 AS cor0
----
0
25
800

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + 0 FROM tab0 cor0
----
-10
-47
-99

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

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

query II rowsort
SELECT ALL col2 - - ( 66 ), + 36 AS col2 FROM tab0
----
113
36
165
36
76
36

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-731
SELECT ALL MAX( + 1 ) + + - COUNT( * ) + 67 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL MAX ( + 1 ) + + - COUNT ( * ) + 67 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT COUNT( * ) FROM tab0 WHERE NOT + - ( + + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-732
SELECT COUNT ( * ) FROM tab0 WHERE NOT + - ( + + col0 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + - 72 FROM tab2 cor0
----
-72

query I rowsort
SELECT - 58 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

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

query I rowsort
SELECT DISTINCT - col0 + + 58 FROM tab2 cor0
----
-17
-6
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 <= 91 + - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT DISTINCT - 67 DIV + - COUNT( * ) col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-739
SELECT DISTINCT - 67 / + - COUNT ( * ) col1 FROM tab2 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT DISTINCT + - 65 + - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT + - 65 + - col1 / + col1 AS col2 FROM tab0 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 <> ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT ALL 49 + - 12, COUNT( * ) AS col2 FROM tab2
----
37
3

skipif mysql # not compatible
query II rowsort label-743
SELECT ALL 49 + - 12, COUNT ( * ) AS col2 FROM tab2
----
37
3

query I rowsort
SELECT col2 * + - col1 * - col0 FROM tab2
----
197120
291450
53958

query II rowsort
SELECT 77 AS col2, 89 FROM tab1
----
77
89
77
89
77
89

query I rowsort
SELECT ALL - 77 + col0 FROM tab1
----
-26
14
8

query I rowsort
SELECT DISTINCT + 44 * + + col1 AS col1 FROM tab1
----
2068
220
616

onlyif mysql # aggregate syntax: 
query II rowsort label-748
SELECT DISTINCT + ( - 44 ), 73 * - + SUM( - - col2 ) AS col1 FROM tab0
----
-44
-11388

skipif mysql # not compatible
query II rowsort label-748
SELECT DISTINCT + ( - 44 ), 73 * - + SUM ( - - col2 ) AS col1 FROM tab0
----
-44
-11388

query II rowsort
SELECT ALL - 9 AS col0, - 34 AS col2 FROM tab0
----
-9
-34
-9
-34
-9
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col1 * col1 col0 FROM tab2
----
46
-2601
64
-5929
75
-4489

query I rowsort
SELECT + + 6 + + + col0 FROM tab2 cor0
----
52
70
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT ALL - - col1 * col2 DIV + col2 + - 2 AS col1 FROM tab1 AS cor0
----
12
3
45

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - - col1 * col2 / + col2 + - 2 AS col1 FROM tab1 AS cor0
----
12
3
45

query I rowsort
SELECT DISTINCT - - 43 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
43

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL 1 * SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL 1 * SUM ( - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - col2 * col1 + + - ( - 18 ) * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-3537
1356
1647

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

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

query I rowsort
SELECT - col2 - + + col0 + + col1 + - + 81 FROM tab2 AS cor0
----
-108
-147
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-762
SELECT + + col1 DIV - col1 AS col2, - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1
-425
-1
-4277
-1
-714

skipif mysql # not compatible
query II rowsort label-762
SELECT + + col1 / - col1 AS col2, - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1
-425
-1
-4277
-1
-714

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT - 15 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-765
SELECT - 15 / + col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT - 33 DIV - + 17 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-766
SELECT - 33 / - + 17 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT DISTINCT 2 DIV - - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 2 / - - col1 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT MIN( DISTINCT - 37 ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT MIN ( DISTINCT - 37 ) FROM tab2
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

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

query II rowsort
SELECT ALL + col2, + col2 * ( + 34 ) + - col0 * + col0 * - col2 FROM tab0 AS cor0 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT ALL col2 - - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL col2 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-28
-37
-9

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

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

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

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 * 19 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE 35 >= + col0 + col1
----

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

query I rowsort
SELECT ALL col1 + + 3 FROM tab0
----
24
4
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 52 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + ( - col1 ) * - col2 + - 71 * col1 FROM tab1
----
-141
-60
350

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

query I rowsort
SELECT - ( col1 ) * 89 + 86 * + col1 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT col0 + + ( + col2 + - ( col1 ) ) AS col0 FROM tab0
----
-19
195
76

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

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

query I rowsort
SELECT - 33 AS col0 FROM tab1 WHERE NULL <> + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-787
SELECT DISTINCT - col2 FROM tab0 WHERE NOT CAST( 81 AS DECIMAL ) * - col0 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT - col2 FROM tab0 WHERE NOT CAST ( 81 AS REAL ) * - col0 NOT IN ( col1 )
----

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

query I rowsort
SELECT ALL - 1 * col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT 74 + COUNT( * ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-790
SELECT 74 + COUNT ( * ) FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 94 * col1 ) > ( - col1 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT - 42 - ( + COUNT( * ) ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - 42 - ( + COUNT ( * ) ) FROM tab1
----
-45

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - 44 / + col2 )
----

query I rowsort
SELECT - 95 * col1 AS col1 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT col2 DIV - col0 + 91 AS col0 FROM tab0
----
88
90
91

skipif mysql # not compatible
query I rowsort label-796
SELECT col2 / - col0 + 91 AS col0 FROM tab0
----
88
90
91

query I rowsort
SELECT DISTINCT - col1 + - 97 AS col1 FROM tab1
----
-102
-111
-144

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

query I rowsort
SELECT ALL + col0 * 54 AS col0 FROM tab1
----
2754
4590
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT ALL - 75 + ( col1 + + col2 ) DIV + col1 FROM tab0 WHERE ( - col1 * col1 - col2 ) IS NOT NULL
----
-74
-74
25

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL - 75 + ( col1 + + col2 ) / + col1 FROM tab0 WHERE ( - col1 * col1 - col2 ) IS NOT NULL
----
-74
-74
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-801
SELECT * FROM tab2 WHERE ( ( + col0 ) * - CAST( 95 * - 20 AS SIGNED ) + 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-801
SELECT * FROM tab2 WHERE ( ( + col0 ) * - CAST ( 95 * - 20 AS INTEGER ) + 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ( col1 ) + 6 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-805
SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT col2 + 40 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT MIN( col1 ) + 44 * + COUNT( * ) FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT MIN ( col1 ) + 44 * + COUNT ( * ) FROM tab1
----
137

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

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

query I rowsort
SELECT + col1 + + 18 FROM tab2
----
69
85
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 - - 87 col0 FROM tab1
----
82
82
82

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

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL col0 / 83 FROM tab2 AS cor0
----
0
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + - COUNT ( * ) / 11 AS col2 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT ALL - ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL + MIN( ALL + - col2 ) * SUM( - col1 + - col2 * - 29 ) AS col1 FROM tab0
----
-437679

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL + MIN ( ALL + - col2 ) * SUM ( - col1 + - col2 * - 29 ) AS col1 FROM tab0
----
-437679

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT - COUNT( * ) FROM tab0 WHERE NOT - col2 NOT BETWEEN 3 AND col0 / col2
----
0

skipif mysql # not compatible
query I rowsort label-823
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - col2 NOT BETWEEN 3 AND col0 / col2
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) NOT IN ( 30 * 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT ALL 78 + ( col2 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 72 + + ( - col2 ) col0 FROM tab1 AS cor0
----
-1104
-3452
-419

query I rowsort
SELECT ALL + col2 * - + 82 AS col2 FROM tab2
----
-1886
-3280
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT 66 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
594

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT 66 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
594

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

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

query I rowsort
SELECT + AVG ( 4 ) FROM tab2 AS cor0 WHERE + col1 + - col0 IS NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-840
SELECT ALL CAST( 32 AS SIGNED ) FROM tab1 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL CAST ( 32 AS INTEGER ) FROM tab1 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT DISTINCT + MAX( + + col1 ) DIV - 78 + 41 + COUNT( * ) AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + MAX ( + + col1 ) / - 78 + 41 + COUNT ( * ) AS col0 FROM tab0
----
43

query III rowsort
SELECT * FROM tab0 WHERE NULL < 32
----

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

query I rowsort
SELECT + 36 - + ( + col1 ) AS col1 FROM tab0
----
-45
15
35

query I rowsort
SELECT ALL + 86 * + ( 84 ) * - col1 + col0 + + 84 * + 60 AS col1 FROM tab2
----
-363338
-478893
-551144

query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab2 WHERE NULL <= ( + col0 * + col0 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE - - 11 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-849
SELECT - AVG ( ALL + + 4 ) + CAST( NULL AS DECIMAL ) * + COUNT( DISTINCT - ( + col0 ) ) * AVG ( DISTINCT col2 + 96 * 90 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT - AVG ( ALL + + 4 ) + CAST ( NULL AS REAL ) * + COUNT ( DISTINCT - ( + col0 ) ) * AVG ( DISTINCT col2 + 96 * 90 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 / 35 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

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

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

query II rowsort
SELECT 49 + - col2, - col0 AS col2 FROM tab0 cor0
----
-50
-97
2
-15
39
-87

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

query II rowsort
SELECT 40, col0 FROM tab1
----
40
51
40
85
40
91

query I rowsort
SELECT ALL + 62 * - col2 FROM tab2
----
-1426
-2480
-3596

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-858
SELECT + 67 * + ( + 39 ) + + - MIN( - CAST( - 12 AS SIGNED ) ) * 69 FROM tab2 cor0
----
1785

skipif mysql # not compatible
query I rowsort label-858
SELECT + 67 * + ( + 39 ) + + - MIN ( - CAST ( - 12 AS INTEGER ) ) * 69 FROM tab2 cor0
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT 38 * - 0 * + COUNT( + - 4 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT 38 * - 0 * + COUNT ( + - 4 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-860
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-860
SELECT ALL - MIN ( ALL + col1 ) col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 * + 53 AS col2 FROM tab0 AS cor0
----
-2491
-5247
-530

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT - 44 IS NULL
----
51
85
91

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

query I rowsort
SELECT ALL 61 * col1 FROM tab0 AS cor0
----
1281
4941
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col2 FROM tab0 WHERE NOT col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 79 AS col0 FROM tab2
----
1817
3160
4582

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( + col2 IS NULL ) )
----

query I rowsort
SELECT + 56 * + - 75 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT - col1 AS col2, col2 * + ( + + col1 ) + - col2 FROM tab2 AS cor0
----
-51
1150
-67
3828
-77
3040

query I rowsort
SELECT + col0 * col0 + + 8 FROM tab1 AS cor0
----
2609
7233
8289

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT - - 68 DIV + + 23 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-875
SELECT - - 68 / + + 23 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL 61 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-6
10

query I rowsort
SELECT - col0 * 69 + - + 96 * + col0 FROM tab2 AS cor0
----
-10560
-12375
-7590

query I rowsort
SELECT + + 29 + - + 35 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT + ( 33 ) + - MAX( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-879
SELECT + ( 33 ) + - MAX ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
84

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

query I rowsort
SELECT 45 * + 82 + + - col2 FROM tab2 AS cor0
----
3632
3650
3667

query I rowsort
SELECT DISTINCT + col2 + + col1 * + 13 FROM tab0 AS cor0
----
1100
112
283

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

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 67 + 31 / - + col2 * + - col2 + - - 82 AND NULL
----

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

query I rowsort
SELECT ALL + col1 - + 87 + 88 * - 45 + - - col2 * - + ( 13 ) AS col1 FROM tab2
----
-4295
-4490
-4734

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-887
SELECT ALL + CAST ( + col1 AS INTEGER ) col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT + MAX( DISTINCT 40 ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + MAX ( DISTINCT 40 ) AS col0 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL - SUM( + - col2 ) * + COUNT( * ) + + - 86 + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
586

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL - SUM ( + - col2 ) * + COUNT ( * ) + + - 86 + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
586

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

query I rowsort
SELECT - 85 * + - col2 FROM tab0
----
3995
8415
850

query I rowsort
SELECT ALL + 3 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 20 AS col2 FROM tab0 cor0
----
20

query I rowsort
SELECT + + 60 AS col0 FROM tab2 cor0
----
60
60
60

query II rowsort
SELECT col1, col1 AS col2 FROM tab2 WHERE NOT NULL >= ( + - 10 - - 34 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col2 FROM tab0 WHERE NOT ( col2 ) <> + col0 - - col1 * - + 74
----

query I rowsort
SELECT ALL col2 * - 55 FROM tab0
----
-2585
-5445
-550

query I rowsort
SELECT DISTINCT ( - 40 ) * - 96 FROM tab2
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT + 86 * - ( MIN( + + col2 ) ) FROM tab1
----
-5074

skipif mysql # not compatible
query I rowsort label-904
SELECT + 86 * - ( MIN ( + + col2 ) ) FROM tab1
----
-5074

query I rowsort
SELECT col2 * 51 FROM tab0
----
2397
5049
510

query I rowsort
SELECT + 93 AS col0 FROM tab1 WHERE NOT - - col2 NOT IN ( - col0 + + col0, 90 )
----

query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab2 AS cor0 WHERE ( + 9 * 30 ) = + 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-908
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-231

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

skipif mysql # not compatible
query II rowsort label-909
SELECT DISTINCT + 93 + - CAST ( NULL AS INTEGER ) + + - col0, - col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL + 6 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT - 98 DIV + - 81 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-913
SELECT - 98 / + - 81 AS col0 FROM tab2 AS cor0
----
1
1
1

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-915
SELECT + - 3 / col0 col0 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query II rowsort label-916
SELECT + col0, col1 / - - col1 AS col2 FROM tab2 AS cor0
----
46
1
64
1
75
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-917
SELECT COUNT ( * ) AS col2, 85 col2 FROM tab0 AS cor0
----
3
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - COUNT( * ) - + 97 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-919
SELECT - COUNT ( * ) - + 97 FROM tab0
----
-100

query I rowsort
SELECT + col1 * - - 39 - - col0 AS col1 FROM tab1
----
1924
280
597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 + - + 50 col1 FROM tab2
----
-42
-55
-63

query I rowsort
SELECT DISTINCT 95 - 2 AS col1 FROM tab0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - + col1 col2 FROM tab2
----
28
37
9

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

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 - + 55 AS col0 FROM tab0
----
-45
-8
44

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT DISTINCT col1 - - col2 + + col1 DIV - + 96 AS col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT col1 - - col2 + + col1 / - + 96 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT COUNT( * ) + + - COUNT( * ) * + MIN( - col1 ) + - - COUNT( * ) + + 49 * + + 37 * - - MIN( ALL col0 ) FROM tab0 AS cor0
----
27444

skipif mysql # not compatible
query I rowsort label-927
SELECT COUNT ( * ) + + - COUNT ( * ) * + MIN ( - col1 ) + - - COUNT ( * ) + + 49 * + + 37 * - - MIN ( ALL col0 ) FROM tab0 AS cor0
----
27444

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + + 78 * + 59 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-13806

skipif mysql # not compatible
query I rowsort label-928
SELECT + + 78 * + 59 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-13806

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT DISTINCT - - 60 DIV + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
2
60

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT - - 60 / + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
2
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 54 <= + col0
----
46
51
23

query I rowsort
SELECT col1 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

query II rowsort
SELECT ALL col0, - 47 * + col1 FROM tab2 AS cor0
----
46
-2397
64
-3619
75
-3149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) + 61 + - + ( + - col1 ) <> + 1
----

query II rowsort
SELECT ALL col0 + + - col2 AS col0, - 28 AS col1 FROM tab0
----
-2
-28
-32
-28
77
-28

query I rowsort
SELECT DISTINCT - col1 * 55 AS col0 FROM tab1
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT + COUNT( * ) + - MIN( + col2 ) + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-938
SELECT + COUNT ( * ) + - MIN ( + col2 ) + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 81 * 43 * 78 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT + 28 * - COUNT( ALL + - col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-940
SELECT + 28 * - COUNT ( ALL + - col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL - MIN( - - 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL - MIN ( - - 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT 27 + + - CAST( + col0 AS SIGNED ) + 16 * + - col2 FROM tab2
----
-387
-677
-976

skipif mysql # not compatible
query I rowsort label-942
SELECT 27 + + - CAST ( + col0 AS INTEGER ) + 16 * + - col2 FROM tab2
----
-387
-677
-976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT + col0 + - CAST( - col2 AS SIGNED ) 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-943
SELECT + col0 + - CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
104
133
69

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

query I rowsort
SELECT ALL - 46 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col0 * col1
----

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

skipif mysql # not compatible
query III rowsort label-947
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + col0 + - 73 * - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-948
SELECT + 7 + COUNT( * ) + - CAST( NULL AS SIGNED ) + AVG ( + - 46 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT + 7 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + AVG ( + - 46 ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-950
SELECT ALL col0 * CAST( NULL AS DECIMAL ) * + ( - col2 ) * + col1 + + 11 * - 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL col0 * CAST ( NULL AS REAL ) * + ( - col2 ) * + col1 + + 11 * - 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - - col2 AS col2 FROM tab0 AS cor0 WHERE col1 * - col2 <= NULL
----

query I rowsort
SELECT DISTINCT 93 + + - col2 AS col0 FROM tab0 cor0
----
-6
46
83

query I rowsort
SELECT DISTINCT 60 + col0 * + ( + 38 ) AS col0 FROM tab2 AS cor0
----
1808
2492
2910

query II rowsort
SELECT - 30 AS col1, - 50 AS col0 FROM tab0
----
-30
-50
-30
-50
-30
-50

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

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

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

query I rowsort
SELECT DISTINCT - 0 * + - col2 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-958
SELECT col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-958
SELECT col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

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

query I rowsort
SELECT DISTINCT + col1 / - + 59 FROM tab2 WHERE NOT ( NULL ) <> + col0
----

query I rowsort
SELECT ALL - + col2 + - - col1 + col2 FROM tab0 WHERE col2 + + col2 NOT BETWEEN + + 93 AND NULL
----
21

query II rowsort
SELECT 64 * - - col1, + col0 AS col2 FROM tab1
----
3008
91
320
85
896
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-964
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - + 10 )
----

skipif mysql # not compatible
query III rowsort label-964
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - + 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-965
SELECT * FROM tab1 AS cor0 WHERE NOT 96 / - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-965
SELECT * FROM tab1 AS cor0 WHERE NOT 96 / - - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL COUNT( + 27 ) + - + 55 * + 45 AS col1 FROM tab2 AS cor0
----
-2472

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL COUNT ( + 27 ) + - + 55 * + 45 AS col1 FROM tab2 AS cor0
----
-2472

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

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

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

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

query I rowsort
SELECT - col0 * + 97 AS col0 FROM tab2
----
-4462
-6208
-7275

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-970
SELECT ( + - col1 ) * - + col1 + CAST( - ( + CAST( - col0 AS DECIMAL ) ) AS SIGNED ) DIV col1 + + col0 FROM tab0
----
195
532
6576

skipif mysql # not compatible
query I rowsort label-970
SELECT ( + - col1 ) * - + col1 + CAST ( - ( + CAST ( - col0 AS REAL ) ) AS INTEGER ) / col1 + + col0 FROM tab0
----
195
532
6576

query II rowsort
SELECT - 14, col0 - + col2 AS col2 FROM tab1
----
-14
-45
-14
23
-14
26

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT - 12 DIV - col0 * + + col1 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-972
SELECT - 12 / - col0 * + + col1 * - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - 76 + 19 + - ( - col1 ) + + 57 * 36 * - col0 <= NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 39 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-976
SELECT + - col0 + - 49 * - CAST( + col2 AS SIGNED ) col0, ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
2288
NULL
403
NULL
4754
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-976
SELECT + - col0 + - 49 * - CAST ( + col2 AS INTEGER ) col0, ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
2288
NULL
403
NULL
4754
NULL

query II rowsort
SELECT DISTINCT + col1 * - + col2, col0 / + col0 FROM tab0 WHERE NULL >= - + col2 * - col2 + 38
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= 61 * + + ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-979
SELECT 27 DIV - 19 + + 25 * + CAST( + + MIN( ALL + 81 ) AS SIGNED ) FROM tab2 AS cor0
----
2024

skipif mysql # not compatible
query I rowsort label-979
SELECT 27 / - 19 + + 25 * + CAST ( + + MIN ( ALL + 81 ) AS INTEGER ) FROM tab2 AS cor0
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-980
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 81 NOT IN ( + col2, CAST( NULL AS SIGNED ) + col2 * + - ( + + 29 ) ) )
----

skipif mysql # not compatible
query III rowsort label-980
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 81 NOT IN ( + col2, CAST ( NULL AS INTEGER ) + col2 * + - ( + + 29 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT - 2 * MAX( ALL - - col0 ) * + 69 - + COUNT( * ) FROM tab0 AS cor0
----
-13389

skipif mysql # not compatible
query I rowsort label-981
SELECT - 2 * MAX ( ALL - - col0 ) * + 69 - + COUNT ( * ) FROM tab0 AS cor0
----
-13389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT + + CAST( + col1 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-982
SELECT + + CAST ( + col1 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + + + 1 + + col2 * - - 14 FROM tab1 AS cor0
----
1294
742
862

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 NOT IN ( + 39 * 7 + - 2 + - col1, col0 * - col0, - + 10, - 17 * col2 + col1 - - - ( + 92 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - MIN( ALL + 72 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-986
SELECT - MIN ( ALL + 72 ) AS col2 FROM tab2
----
-72

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT CAST( 60 AS SIGNED ) FROM tab0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-990
SELECT CAST ( 60 AS INTEGER ) FROM tab0
----
60
60
60

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

query I rowsort
SELECT - col1 * - col1 - - + col2 + + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-3911
-4604
-4931

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

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

query I rowsort
SELECT 98 * + col1 FROM tab0
----
2058
7938
98

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

query II rowsort
SELECT DISTINCT + 9 AS col1, 72 FROM tab0 AS cor0
----
9
72

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT + MAX( + col1 ) AS col0, 43 FROM tab2 AS cor0
----
77
43

skipif mysql # not compatible
query II rowsort label-997
SELECT + MAX ( + col1 ) AS col0, 43 FROM tab2 AS cor0
----
77
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-998
SELECT CAST( + + SUM( - - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT ALL - 70 DIV + + 67 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 70 / + + 67 FROM tab1 cor0
----
-1
-1
-1

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

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

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

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

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

query II rowsort
SELECT + - 39 AS col1, col0 * - col2 AS col1 FROM tab1 AS cor0
----
-39
-4896
-39
-5015
-39
-6188

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT - + CAST( + ( + + 38 ) AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-102
-113
-84

skipif mysql # not compatible
query I rowsort label-1005
SELECT - + CAST ( + ( + + 38 ) AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-102
-113
-84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 99 * - 66 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE ( - - col1 ) BETWEEN 42 + + col1 AND 6 + 82
----

query I rowsort
SELECT - col2 + + + col2 + + col2 FROM tab0
----
10
47
99

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

query I rowsort
SELECT ALL + col0 * - 37 + + ( + 71 ) FROM tab2 AS cor0
----
-1631
-2297
-2704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1011
SELECT ALL - COUNT( * ) * + + 20 DIV 70 AS col2, - SUM( - col0 ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
0
188

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL - COUNT ( * ) * + + 20 / 70 AS col2, - SUM ( - col0 ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
0
188

query I rowsort
SELECT ALL col2 - + + col0 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT ALL - - col1 AS col0, - 95 * - col0 / + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 / - - 23, - 31 )
----

query I rowsort
SELECT + 71 * - 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b3bbf52f703b79682cd7939910c69b

query I rowsort
SELECT DISTINCT + col1 + + col2 * col2 FROM tab1
----
3486
4671
9230

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

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

query I rowsort
SELECT 67 + ( col2 ) + + col1 - + col1 AS col0 FROM tab0 AS cor0
----
114
166
77

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

query II rowsort
SELECT DISTINCT col0 AS col0, ( - col0 ) + + 31 FROM tab0 AS cor0
----
15
16
87
-56
97
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT + + ( 83 ) + + col2 + + 53 AS col0, + 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < + col1 / + CAST( - - col2 AS SIGNED ) * - CAST( - + 97 AS SIGNED ) / + 71
----

skipif mysql # not compatible
query II rowsort label-1021
SELECT + + ( 83 ) + + col2 + + 53 AS col0, + 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < + col1 / + CAST ( - - col2 AS INTEGER ) * - CAST ( - + 97 AS INTEGER ) / + 71
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 45 + + - 40 <> - - col0
----

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT ( + MAX ( - col2 ) ) AS col0 FROM tab0
----
-10

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

query I rowsort
SELECT ALL col2 * - col2 * - col2 FROM tab1
----
205379
314432
884736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1026
SELECT DISTINCT - CAST( + col2 AS SIGNED ), - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

skipif mysql # not compatible
query II rowsort label-1026
SELECT DISTINCT - CAST ( + col2 AS INTEGER ), - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

query II rowsort
SELECT DISTINCT 66 * col1, ( - col1 ) AS col1 FROM tab0
----
1386
-21
5346
-81
66
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1028
SELECT - + CAST( col2 AS SIGNED ), col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif mysql # not compatible
query II rowsort label-1028
SELECT - + CAST ( col2 AS INTEGER ), col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + 33 * - + col1 AS col1 FROM tab2
----
-1683
-2211
-2541

query I rowsort
SELECT DISTINCT - 90 * + - col0 AS col2 FROM tab0
----
1350
7830
8730

query I rowsort
SELECT ALL - - col2 * 16 + - col1 AS col2 FROM tab1 cor0
----
1041
1522
939

query I rowsort
SELECT DISTINCT + + col2 * - ( + - 40 ) + - + 9 AS col0 FROM tab1 AS cor0
----
2351
2711
3831

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL - 72 * - 43 FROM tab2 AS cor0 WHERE - CAST( + + 54 AS SIGNED ) * - 86 * col1 IS NOT NULL
----
3096
3096
3096

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - 72 * - 43 FROM tab2 AS cor0 WHERE - CAST ( + + 54 AS INTEGER ) * - 86 * col1 IS NOT NULL
----
3096
3096
3096

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - 13 * + col2 col2 FROM tab1 AS cor0
----
-1234
-762
-837

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

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

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

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

query I rowsort
SELECT ALL + col1 * + ( - + 79 ) AS col1 FROM tab2
----
-4029
-5293
-6083

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT 85 + + COUNT ( * ) FROM tab2
----
88

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

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + COUNT ( * ) / + COUNT ( DISTINCT + col1 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + col1 AND - - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT col1 * - 38 AS col0, - CAST( + 90 AS SIGNED ) AS col1 FROM tab0
----
-3078
-90
-38
-90
-798
-90

skipif mysql # not compatible
query II rowsort label-1046
SELECT col1 * - 38 AS col0, - CAST ( + 90 AS INTEGER ) AS col1 FROM tab0
----
-3078
-90
-38
-90
-798
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ( + MAX( + 1 ) ) * + + ( + 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1048
SELECT ( + MAX ( + 1 ) ) * + + ( + 18 ) FROM tab2
----
18

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

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT + 67 / + col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT 2 + - + SUM( col1 ) AS col0 FROM tab2
----
-193

skipif mysql # not compatible
query I rowsort label-1050
SELECT 2 + - + SUM ( col1 ) AS col0 FROM tab2
----
-193

query II rowsort
SELECT DISTINCT 97 AS col2, + 41 FROM tab2 cor0
----
97
41

query I rowsort
SELECT col2 + + + col2 FROM tab0 cor0
----
198
20
94

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

query I rowsort
SELECT + col1 * 4 + + 80 + + + col1 * col2 FROM tab2 AS cor0
----
1457
3468
4234

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - 51 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT + COUNT( * ) + + - ( + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + COUNT ( * ) + + - ( + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1062
SELECT ALL - SUM( + col2 ), - COUNT( * ) AS col1 FROM tab0
----
-156
-3

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL - SUM ( + col2 ), - COUNT ( * ) AS col1 FROM tab0
----
-156
-3

query I rowsort
SELECT DISTINCT - + col2 * 92 - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1007
-4339
-9205

query I rowsort
SELECT - + col0 * + 95 AS col2 FROM tab2 AS cor0
----
-4370
-6080
-7125

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

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

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

query I rowsort
SELECT - - ( - - 83 ) * + 5 FROM tab0 AS cor0
----
415
415
415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 * col1 * 88 col1, - col0 FROM tab1 AS cor0
----
33088
-91
3520
-85
9856
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL + MIN( 66 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + MIN ( 66 ) FROM tab2
----
66

query I rowsort
SELECT ALL + col1 * 79 FROM tab0
----
1659
6399
79

query I rowsort
SELECT ALL - + col1 + - + 72 FROM tab2 WHERE NULL IS NULL
----
-123
-139
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT DISTINCT 97 * + MAX( - 87 ) * + 63 AS col1, - COUNT( * ) * 7 FROM tab2
----
-531657
-21

skipif mysql # not compatible
query II rowsort label-1072
SELECT DISTINCT 97 * + MAX ( - 87 ) * + 63 AS col1, - COUNT ( * ) * 7 FROM tab2
----
-531657
-21

query I rowsort
SELECT ALL + 29 * 90 AS col0 FROM tab0
----
2610
2610
2610

query I rowsort
SELECT DISTINCT - + col0 * + 88 FROM tab2 WHERE NOT col2 * 5 IS NULL
----
-4048
-5632
-6600

query I rowsort
SELECT - + 61 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

query I rowsort
SELECT - col0 * + + col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT MIN( + + col1 ) + COUNT( * ) AS col0 FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-1078
SELECT MIN ( + + col1 ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
8

query II rowsort
SELECT + - col2 + col2 AS col1, - col2 + - + 93 FROM tab0 AS cor0
----
0
-103
0
-140
0
-192

query I rowsort
SELECT + 88 + + 4 AS col2 FROM tab1 AS cor0
----
92
92
92

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

query I rowsort
SELECT ALL 1 * 44 AS col2 FROM tab1
----
44
44
44

query I rowsort
SELECT DISTINCT col0 * - - col2 + col2 + - 1 FROM tab1
----
4991
5073
6255

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 BETWEEN 43 AND + + 55 * col1
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 - - col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + COUNT( DISTINCT 89 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + COUNT ( DISTINCT 89 ) FROM tab1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL - COUNT( * ) + + SUM( ALL col2 ) AS col0 FROM tab0 WHERE NOT 46 IS NULL
----
153

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - COUNT ( * ) + + SUM ( ALL col2 ) AS col0 FROM tab0 WHERE NOT 46 IS NULL
----
153

query I rowsort
SELECT ( col2 ) * + col1 * - - col1 AS col1 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col0 AND NULL
----
59
68

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1093
SELECT ALL + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT DISTINCT - col0 DIV + - col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - col0 / + - col2 FROM tab0
----
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT ALL - COUNT( * ) + 14 DIV 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

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

query II rowsort
SELECT col0, + 70 * - 83 + - col2 + - - 14 AS col1 FROM tab0 AS cor0
----
15
-5843
87
-5806
97
-5895

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1099
SELECT DISTINCT col2 DIV CAST( - 88 AS SIGNED ) FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT col2 / CAST ( - 88 AS INTEGER ) FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT col2 * - + col0 - - col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT 96 * - MIN( DISTINCT - - col2 ) AS col1 FROM tab1
----
-5664

skipif mysql # not compatible
query I rowsort label-1101
SELECT 96 * - MIN ( DISTINCT - - col2 ) AS col1 FROM tab1
----
-5664

query I rowsort
SELECT 14 * ( + 21 ) AS col0 FROM tab2
----
294
294
294

query I rowsort
SELECT ( - - 30 ) * - - 69 FROM tab1
----
2070
2070
2070

query I rowsort
SELECT 62 * - 21 AS col0 FROM tab0
----
-1302
-1302
-1302

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

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

query I rowsort
SELECT ALL - 79 FROM tab0 AS cor0 WHERE 14 * + col1 * - + 25 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * col2 col1 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT ALL + col1 + + 39 AS col1 FROM tab0
----
120
40
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) > 91 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT ALL col2, + 3 AS col2 FROM tab2 AS cor0
----
23
3
40
3
58
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col2 * - ( - col2 ) AS col2, - col2 col1 FROM tab1 AS cor0
----
3540
-59
4692
-68
9312
-96

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

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

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

query I rowsort
SELECT ALL - 21 * col2 + + 58 FROM tab2
----
-1160
-425
-782

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL 98 + + COUNT( col2 ) AS col2 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL 98 + + COUNT ( col2 ) AS col2 FROM tab2
----
101

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

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

query I rowsort
SELECT + 46 * - - col1 - - 52 AS col1 FROM tab0
----
1018
3778
98

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

query I rowsort
SELECT 10 * - 40 + - 93 FROM tab1
----
-493
-493
-493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 3 + col0 * + - col2 - - 75 col0 FROM tab1 AS cor0
----
-4824
-4943
-6116

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

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

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

query I rowsort
SELECT + + col1 * + + col1 * 34 + - col0 + + 97 FROM tab2 AS cor0
----
152648
201619
88485

query I rowsort
SELECT ( 62 ) AS col1 FROM tab2
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL + 35 * col1 * CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + 35 * col1 * CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT - 14, + col2 AS col0 FROM tab2 AS cor0
----
-14
23
-14
40
-14
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT ALL 49 DIV - col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL 49 / - col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT ( col0 ) * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-1134
SELECT ( col0 ) * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 * + + col2 col1 FROM tab1 AS cor0
----
295885
420784
470016

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

query II rowsort
SELECT DISTINCT + + col2, 47 * col0 + + col0 * 3 FROM tab2 cor0
----
23
2300
40
3200
58
3750

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1139
SELECT * FROM tab1 WHERE NOT col1 + - CAST( - col0 AS SIGNED ) + - + 65 > + - 75
----

skipif mysql # not compatible
query III rowsort label-1139
SELECT * FROM tab1 WHERE NOT col1 + - CAST ( - col0 AS INTEGER ) + - + 65 > + - 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT col2 DIV + 83 + - 12 col1 FROM tab0
----
-11
-12
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1140
SELECT col2 / + 83 + - 12 col1 FROM tab0
----
-11
-12
-12

query II rowsort
SELECT DISTINCT col1, - col2 * - + col1 + + 90 FROM tab0
----
1
189
21
300
81
3897

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1143
SELECT DISTINCT COUNT ( ALL - + 8 ) col2 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT ALL - 21 + + + col2 * 18 AS col1 FROM tab1 cor0
----
1041
1203
1707

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT COUNT( * ) * - 22 AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1147
SELECT COUNT ( * ) * - 22 AS col2 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL + MIN( ALL + 39 ) * - + 34 FROM tab1
----
-1326

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + MIN ( ALL + 39 ) * - + 34 FROM tab1
----
-1326

query I rowsort
SELECT - 54 * - col2 * - - col2 + + col2 * + 32 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - col2 * - + col1 * + col1 AND NULL
----
183512
29302
87680

query I rowsort
SELECT + col0 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-19
195
76

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

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

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

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

query I rowsort
SELECT + + 31 FROM tab1 WHERE - col0 + - col2 IS NOT NULL
----
31
31
31

query I rowsort
SELECT ALL - col0 * - 40 - col0 + - + col2 + - col0 AS col0 FROM tab2
----
1725
2392
2792

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT - COUNT( * ) AS col2, COUNT( * ) col0 FROM tab1
----
-3
3

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 - + col0 + + - 15 FROM tab1
----
-117
-185
-197

query I rowsort
SELECT ALL + 23 * - col2 AS col2 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT DISTINCT - col2 * + 52 FROM tab2
----
-1196
-2080
-3016

query I rowsort
SELECT + col1 - - col1 FROM tab1 cor0
----
10
28
94

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

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

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

query I rowsort
SELECT + 63 AS col1 FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT - 10 * 62 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL - + MAX( DISTINCT + + 43 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - + MAX ( DISTINCT + + 43 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT ALL col0 * CAST ( NULL AS INTEGER ) + + ( - col1 ) * + 36 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT - - 13 * - - 97 * - 5 AS col0 FROM tab0 AS cor0
----
-6305
-6305
-6305

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT DISTINCT - 84 DIV + - 93 + + 88 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - 84 / + - 93 + + 88 FROM tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT + + 26 FROM tab0 cor0
----
26

query II rowsort
SELECT DISTINCT col2 AS col2, col2 - col1 * - 2 * 49 + - col0 + - ( col1 ) FROM tab1
----
59
459
68
4536
96
1403

query I rowsort
SELECT col0 * - - 21 AS col1 FROM tab0
----
1827
2037
315

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT DISTINCT col2 DIV - - 73 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT col2 / - - 73 FROM tab2
----
0

query I rowsort
SELECT - 38 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL - 23 + ( 86 ) + - + COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL - 23 + ( 86 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT COUNT( * ) + 8 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT COUNT ( * ) + 8 FROM tab2 AS cor0
----
11

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT col0 * 89 * + col0 + 95 DIV - col0 FROM tab2 AS cor0
----
188322
364543
500624

skipif mysql # not compatible
query I rowsort label-1184
SELECT col0 * 89 * + col0 + 95 / - col0 FROM tab2 AS cor0
----
188322
364543
500624

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1186
SELECT - CAST( - + CAST( + + 61 AS DECIMAL ) AS SIGNED ) - COUNT( * ) col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1186
SELECT - CAST ( - + CAST ( + + 61 AS REAL ) AS INTEGER ) - COUNT ( * ) col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL col0 + col2 + + col2 FROM tab2 AS cor0
----
144
191
92

query I rowsort
SELECT DISTINCT - 78 FROM tab2 cor0 WHERE NOT 18 IS NULL AND NOT NULL = + col1
----

query I rowsort
SELECT + col2 - + - col1 * ( - - col2 ) * + 49 AS col0 FROM tab2
----
150960
190472
57500

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT + col0 DIV - + col0 - - - col2 AS col1 FROM tab0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-1190
SELECT + col0 / - + col0 - - - col2 AS col1 FROM tab0
----
-100
-11
-48

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

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

query I rowsort
SELECT ( + 33 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

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

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE ( NOT + col0 < NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1195
SELECT DISTINCT - - CAST ( - 0 AS INTEGER ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 44 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
143
3611
934

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

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

query I rowsort
SELECT - + col1 * + col1 * + 91 AS col1 FROM tab2 AS cor0
----
-236691
-408499
-539539

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

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

query I rowsort
SELECT DISTINCT + 56 * - ( ( + 84 ) ) FROM tab0
----
-4704

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT DISTINCT - 29 DIV - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - 29 / - col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col0 * 19 )
----

query I rowsort
SELECT DISTINCT + 26 / + 84 * 10 + col1 + - + 6 * - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT ALL - 36 DIV + col2 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - 36 / + col2 AS col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT - + 11 * + col1 * + + 90 FROM tab1 AS cor0
----
-13860
-46530
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT DISTINCT col1 * col2 DIV + 86 + - ( 11 ) FROM tab1 cor0
----
-8
26
4

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT col1 * col2 / + 86 + - ( 11 ) FROM tab1 cor0
----
-8
26
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - MIN( DISTINCT - 54 ) + - ( COUNT( + col2 ) ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - MIN ( DISTINCT - 54 ) + - ( COUNT ( + col2 ) ) FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT 45 * - - COUNT( * ) + + 48 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-1210
SELECT 45 * - - COUNT ( * ) + + 48 FROM tab0
----
183

query I rowsort
SELECT ALL - ( - - 53 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT - col1 + 36 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-66
-98

query I rowsort
SELECT DISTINCT - + 85 FROM tab2 cor0
----
-85

query I rowsort
SELECT DISTINCT - col0 + + col1 + - + 30 AS col2 FROM tab1 AS cor0
----
-110
-67
-74

query I rowsort
SELECT - 54 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT DISTINCT + col0 + - col1 DIV - + col2 + col1 AS col0 FROM tab0
----
110
97
98

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + col0 + - col1 / - + col2 + col1 AS col0 FROM tab0
----
110
97
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL 82 + COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 82 + COUNT ( * ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ( MIN( ALL 96 ) ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1219
SELECT ( MIN ( ALL 96 ) ) AS col1 FROM tab2
----
96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT ALL 80 col1, + COUNT( * ) AS col1 FROM tab1
----
80
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1223
SELECT CAST( NULL AS SIGNED ) * + 60 * - 20 * + COUNT( * ) AS col0, - ( + 94 ) * - + COUNT( * ) * SUM( DISTINCT + col1 ) + 39 AS col2 FROM tab0
----
NULL
29085

skipif mysql # not compatible
query II rowsort label-1223
SELECT CAST ( NULL AS INTEGER ) * + 60 * - 20 * + COUNT ( * ) AS col0, - ( + 94 ) * - + COUNT ( * ) * SUM ( DISTINCT + col1 ) + 39 AS col2 FROM tab0
----
NULL
29085

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + SUM( DISTINCT + 91 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT + SUM ( DISTINCT + 91 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col0
----
NULL

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

query II rowsort
SELECT + col1 * + col2 AS col0, + 5 * - - col0 * - col1 FROM tab1 AS cor0 WHERE NOT + col0 <> col2 * - col0 + - col1
----

query II rowsort
SELECT ALL + col0 + + + 84 AS col1, - col2 + 48 + col2 * col2 FROM tab2 AS cor0
----
130
554
148
1608
159
3354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73 * - + 4 * col0, col1 col0 FROM tab1
----
-14892
14
-24820
5
-26572
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT SUM( DISTINCT + 71 ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1229
SELECT SUM ( DISTINCT + 71 ) AS col1 FROM tab0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col2 col1 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT 92 AS col1, + col0 FROM tab2
----
92
46
92
64
92
75

query II rowsort
SELECT - col1 AS col2, + col1 + 54 AS col0 FROM tab0
----
-1
55
-21
75
-81
135

query I rowsort
SELECT - col0 + + + col0 * + 48 AS col0 FROM tab0 AS cor0 WHERE NULL <= 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT + col2 + - + ( + CAST( - 73 AS SIGNED ) ) - - 85 FROM tab0 AS cor0
----
168
205
257

skipif mysql # not compatible
query I rowsort label-1234
SELECT + col2 + - + ( + CAST ( - 73 AS INTEGER ) ) - - 85 FROM tab0 AS cor0
----
168
205
257

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT ALL - 95 + - 85 DIV + col2 AS col1 FROM tab0 AS cor0
----
-103
-95
-96

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL - 95 + - 85 / + col2 AS col1 FROM tab0 AS cor0
----
-103
-95
-96

query I rowsort
SELECT col2 + - col1 FROM tab2 AS cor0 WHERE - col1 = + + col1 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE 17 NOT BETWEEN ( col2 * col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT 51 IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + + col2 * col1 col2 FROM tab1
----
1358
309
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT - 23 * ( SUM( col2 ) ) FROM tab0
----
-3588

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT - 23 * ( SUM ( col2 ) ) FROM tab0
----
-3588

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1241
SELECT ALL * FROM tab2 WHERE NOT - col1 + CAST( + col2 - col0 * - 87 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1241
SELECT ALL * FROM tab2 WHERE NOT - col1 + CAST ( + col2 - col0 * - 87 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT + 87 * COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 + 54 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + 87 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 + 54 = NULL
----
0

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

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

query I rowsort
SELECT + col1 + ( 91 ) FROM tab2
----
142
158
168

query I rowsort
SELECT + col0 + 59 * 29 AS col0 FROM tab0
----
1726
1798
1808

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT - 22 * COUNT( - ( + ( col0 ) ) ) + 8 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT - 22 * COUNT ( - ( + ( col0 ) ) ) + 8 AS col2 FROM tab0
----
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT - ( - CAST( col1 AS SIGNED ) ) FROM tab2 WHERE NOT + 40 * 10 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1252
SELECT - ( - CAST ( col1 AS INTEGER ) ) FROM tab2 WHERE NOT + 40 * 10 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * 72 + col1 AS col2 FROM tab2
----
1707
2957
4243

query III rowsort
SELECT * FROM tab1 WHERE - 95 * + 20 <= ( 20 ) - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 66 / 25 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 53 FROM tab2 WHERE NOT 63 NOT BETWEEN ( + 87 / col1 - 53 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT 43 * COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( - ( col0 ) - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT 43 * COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( - ( col0 ) - col0 )
----
0

query I rowsort
SELECT ALL col2 * - 42 AS col0 FROM tab2 AS cor0
----
-1680
-2436
-966

query I rowsort
SELECT DISTINCT - 51 FROM tab1 cor0 WHERE NOT + 68 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT 22 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1261
SELECT 22 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + SUM( - col2 ) + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT + SUM ( - col2 ) + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL - - ( + col1 ) * 73 FROM tab2 AS cor0
----
3723
4891
5621

query I rowsort
SELECT col2 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1267
SELECT + 49 + MIN( col2 ) DIV - 19 col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1267
SELECT + 49 + MIN ( col2 ) / - 19 col2 FROM tab2 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT ALL + col0 * - col2 + + 77 DIV + ( col2 ) FROM tab1 AS cor0
----
-4896
-5014
-6187

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + col0 * - col2 + + 77 / + ( col2 ) FROM tab1 AS cor0
----
-4896
-5014
-6187

query I rowsort
SELECT DISTINCT - 68 + + 39 AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1270
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1270
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + - col0 col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT col1 * col2 AS col2 FROM tab0 WHERE + ( 14 ) - col1 NOT IN ( 51 * 98 )
----
210
3807
99

query I rowsort
SELECT DISTINCT 70 + - col2 + col1 * - 60 FROM tab0
----
-1200
-4837
-89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 22 col1 FROM tab0
----
-1034
-2178
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT + - 71 DIV col1 * - 64 AS col0 FROM tab2 AS cor0
----
0
64
64

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - 71 / col1 * - 64 AS col0 FROM tab2 AS cor0
----
0
64
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT + + 48 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-1278
SELECT + + 48 / + col1 AS col0 FROM tab1 AS cor0
----
1
3
9

query I rowsort
SELECT ALL + 62 + col0 FROM tab1
----
113
147
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1280
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= CAST( 78 AS SIGNED ) - col0
----

skipif mysql # not compatible
query III rowsort label-1280
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= CAST ( 78 AS INTEGER ) - col0
----

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

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + MIN( ALL - - ( 23 ) ) + - COUNT( ( 35 ) - col0 ) col0 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1283
SELECT + MIN ( ALL - - ( 23 ) ) + - COUNT ( ( 35 ) - col0 ) col0 FROM tab2
----
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 97 ) BETWEEN NULL AND 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT 26 * - col2 AS col1 FROM tab1 AS cor0
----
-1534
-1768
-2496

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - + ( 80 ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + + ( + 95 ) * - col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 * + col2 col0 FROM tab1 AS cor0
----
3717
4284
6048

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

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT col0 * - - ( + col2 ) + - 77 * - 52 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) = ( + 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT + SUM( ALL + col1 ) AS col1, 2 FROM tab0
----
103
2

skipif mysql # not compatible
query II rowsort label-1297
SELECT + SUM ( ALL + col1 ) AS col1, 2 FROM tab0
----
103
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 94 * + col0 + col1 / col1 AND ( + col0 ) + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1298
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 94 * + col0 + col1 / col1 AND ( + col0 ) + - col1
----
0

query I rowsort
SELECT ALL col2 + + 45 - col0 FROM tab1 AS cor0
----
19
22
90

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

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

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

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

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

query I rowsort
SELECT + 60 + - col0 + col0 + 13 FROM tab2
----
73
73
73

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

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

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

query I rowsort
SELECT + 8 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * - col2 AND NULL
----

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

query I rowsort
SELECT - col0 * + 59 FROM tab2 AS cor0
----
-2714
-3776
-4425

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( - CAST( + 8 AS SIGNED ) ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( - CAST ( + 8 AS INTEGER ) ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - + col1 + 84 FROM tab1 AS cor0
----
37
70
79

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col0 + - 0 col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL - 65 + - col2 FROM tab0
----
-112
-164
-75

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 85 col1, 25 AS col0, - col0 AS col0 FROM tab1
----
9 values hashing to 66fb010a4ef5ffa293e888e3f5aa3f61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT - col0 * - 30 + + - 73 * + col0 DIV col0 FROM tab2 cor0
----
1307
1847
2177

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - col0 * - 30 + + - 73 * + col0 / col0 FROM tab2 cor0
----
1307
1847
2177

query I rowsort
SELECT DISTINCT 26 * + + 11 + + 18 + 92 + - + col2 FROM tab1 AS cor0
----
300
328
337

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

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

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

query II rowsort
SELECT col2 + + col2 AS col1, col2 AS col1 FROM tab2 WHERE NULL >= 2
----

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

query I rowsort
SELECT 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + + 13 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 25 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 39 * COUNT( + 46 ) + + + COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 39 * COUNT ( + 46 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL SUM( + col0 ) * + 12 col0 FROM tab0 AS cor0 WHERE ( NOT + - col1 NOT IN ( + col0 / + 60 + - + 59 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1334
SELECT ALL SUM ( + col0 ) * + 12 col0 FROM tab0 AS cor0 WHERE ( NOT + - col1 NOT IN ( + col0 / + 60 + - + 59 ) )
----
NULL

query I rowsort
SELECT col1 * + - 14 + + 42 FROM tab2 AS cor0
----
-1036
-672
-896

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 62, + col2, - 68 )
----

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT - - COUNT ( - col1 ) FROM tab0 cor0
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 > + - 84
----

query I rowsort
SELECT DISTINCT - col0 * - 47 FROM tab1
----
2397
3995
4277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1341
SELECT DISTINCT COUNT( * ) DIV + 40 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT COUNT ( * ) / + 40 AS col2 FROM tab2
----
0

query II rowsort
SELECT ALL + col0, - 40 * + col1 FROM tab2
----
46
-2040
64
-3080
75
-2680

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

query I rowsort
SELECT ( - - 4 ) FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT 8 * - - COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1345
SELECT 8 * - - COUNT ( * ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT - col0 * 83 AS col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT col1 * + col0 + col1 - - col0 + + 78 FROM tab1 AS cor0
----
4493
593
857

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1348
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= CAST( ( + + 12 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1348
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= CAST ( ( + + 12 ) AS INTEGER )
----

query I rowsort
SELECT 76 * - - col2 + col0 AS col2 FROM tab1 AS cor0
----
4569
5259
7347

query I rowsort
SELECT DISTINCT col2 + 23 * + col0 * + 94 FROM tab1
----
110358
183829
196810

query II rowsort
SELECT DISTINCT - col2 - + col0 * + col1, - col2 * + col2 * + + ( - col2 ) + ( - - 64 ) AS col0 FROM tab0
----
-1262
103887
-1837
1064
-196
970363

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + COUNT( * ) * - - 80 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-1352
SELECT + COUNT ( * ) * - - 80 FROM tab0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 * col0 * + 7 + - col0 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + 75 * - ( + COUNT( DISTINCT + - col2 ) ) col1 FROM tab0 cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1354
SELECT + 75 * - ( + COUNT ( DISTINCT + - col2 ) ) col1 FROM tab0 cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT DISTINCT + CAST( NULL AS SIGNED ), 98 AS col1 FROM tab0 AS cor0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-1355
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 98 AS col1 FROM tab0 AS cor0
----
NULL
98

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

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 33 - - + col1 * - 38 AS col1 FROM tab0 AS cor0
----
-3045
-5
-765

query I rowsort
SELECT ALL col2 + - ( col1 ) + + 44 + ( - 46 ) + - + col1 * + + col2 * - - 50 * - col2 FROM tab2 cor0
----
11269389
1348920
6159961

query I rowsort
SELECT ALL - + col1 * + col0 AS col1 FROM tab1 WHERE col2 * 83 + + col2 IS NULL
----

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

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT - col2 = col1
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, + col1 * - 12 col0 FROM tab1
----
51
-168
85
-60
91
-564

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

query I rowsort
SELECT DISTINCT col1 * + 22 AS col1 FROM tab2 AS cor0
----
1122
1474
1694

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT 78 * COUNT( * ) col1 FROM tab2
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1368
SELECT 78 * COUNT ( * ) col1 FROM tab2
----
234

query I rowsort
SELECT ALL col1 * col0 * + 97 FROM tab2
----
227562
478016
487425

query I rowsort
SELECT + 29 * ( + col1 ) FROM tab1
----
1363
145
406

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - 95 * + SUM( + col1 ) AS col0 FROM tab1
----
-6270

skipif mysql # not compatible
query I rowsort label-1372
SELECT - 95 * + SUM ( + col1 ) AS col0 FROM tab1
----
-6270

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( + 16 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 55 + - col0 FROM tab0
----
-32
-42
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT - 65 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - 65 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-62

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

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

query I rowsort
SELECT + col1 * 79 * + - 58 AS col2 FROM tab1 AS cor0
----
-215354
-22910
-64148

onlyif mysql # DIV for integer division: 
query II rowsort label-1378
SELECT ( + 88 ) - 32 + + col1 DIV + ( + - col2 ) * - col1 * + 64, col0 col1 FROM tab1 AS cor0
----
56
51
56
85
56
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1378
SELECT ( + 88 ) - 32 + + col1 / + ( + - col2 ) * - col1 * + 64, col0 col1 FROM tab1 AS cor0
----
56
51
56
85
56
91

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

query I rowsort
SELECT DISTINCT col0 * 25 AS col1 FROM tab1 AS cor0
----
1275
2125
2275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL COUNT( ALL - 59 ) + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL COUNT ( ALL - 59 ) + 31 FROM tab2
----
34

query I rowsort
SELECT DISTINCT ( 56 ) - 17 FROM tab2
----
39

query I rowsort
SELECT + col2 + - col1 * - col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT + col2 * - + col2 FROM tab1 WHERE col0 + + + col0 + - col1 NOT IN ( col1 + + + col1, - col1 * + 62 + + ( - + 6 ) )
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT COUNT( * ) - + ( - COUNT( * ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT COUNT ( * ) - + ( - COUNT ( * ) ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE col0 * - - col1 IN ( - + 91, 40, + - col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1388
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + + + 73 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT COUNT( * ) + + 35 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-1389
SELECT COUNT ( * ) + + 35 FROM tab2
----
38

query II rowsort
SELECT DISTINCT col1 - + + col0 AS col1, 0 * col1 AS col0 FROM tab2 AS cor0
----
-8
0
13
0
5
0

query II rowsort
SELECT - col1 * + col0 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL COUNT( * ) + - 64 FROM tab2 cor0 WHERE col0 + - 40 + + 91 BETWEEN - col0 AND + + col2 * col0
----
-61

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL COUNT ( * ) + - 64 FROM tab2 cor0 WHERE col0 + - 40 + + 91 BETWEEN - col0 AND + + col2 * col0
----
-61

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1394
SELECT + MAX ( ALL - 89 ) col0 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT + 79 * col0 FROM tab2 cor0
----
3634
5056
5925

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1397
SELECT DISTINCT + 13 col0, - 72 * - CAST( NULL AS SIGNED ) - + + col1 FROM tab2 AS cor0
----
13
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1397
SELECT DISTINCT + 13 col0, - 72 * - CAST ( NULL AS INTEGER ) - + + col1 FROM tab2 AS cor0
----
13
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1399
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 28 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) * + 28 col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1400
SELECT DISTINCT + 30 DIV - col2 - col2 FROM tab1 WHERE NOT - CAST( 49 AS DECIMAL ) * + - col1 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + 30 / - col2 - col2 FROM tab1 WHERE NOT - CAST ( 49 AS REAL ) * + - col1 IS NULL
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT - col1 + - col2 + - + 54 FROM tab0 WHERE NOT - - 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT ALL col1, + col2 DIV - - col0 + - + col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL col1, + col2 / - - col0 + - + col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT + - ( - col2 ) + - CAST( NULL AS SIGNED ) / col0 * - col2 FROM tab0 AS cor0 WHERE NULL <= 97
----

skipif mysql # not compatible
query I rowsort label-1404
SELECT + - ( - col2 ) + - CAST ( NULL AS INTEGER ) / col0 * - col2 FROM tab0 AS cor0 WHERE NULL <= 97
----

query II rowsort
SELECT - - col0 AS col0, col1 + col0 FROM tab2 AS cor0
----
46
97
64
141
75
142

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT ALL 60 * CAST( NULL AS SIGNED ) + + 98 - + 71 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL 60 * CAST ( NULL AS INTEGER ) + + 98 - + 71 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT - ( col2 ) DIV col0 + - - col2 * - ( + col2 ) FROM tab0 AS cor0
----
-100
-2212
-9802

skipif mysql # not compatible
query I rowsort label-1408
SELECT - ( col2 ) / col0 + - - col2 * - ( + col2 ) FROM tab0 AS cor0
----
-100
-2212
-9802

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 99 * col2 * - col1 + - - 69 + + 97 * - col1 + - col2 + col2 * + 47 FROM tab1 AS cor0
----
136183
31503
315042

query I rowsort
SELECT DISTINCT + 74 + + ( col0 ) FROM tab2 cor0
----
120
138
149

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

query I rowsort
SELECT + + col1 + - ( - + col1 ) + col1 * + 46 AS col0 FROM tab1 AS cor0
----
2256
240
672

query II rowsort
SELECT + col2, - 84 * + - col1 AS col1 FROM tab1
----
59
420
68
3948
96
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT + 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-1417
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 20 - 69 FROM tab2
----
-89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 / col2 + - col0 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1421
SELECT ALL + COUNT( ALL + - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0

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

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

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

query I rowsort
SELECT DISTINCT - 21 FROM tab2 WHERE NOT - + 35 <> - 45
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT - + CAST( - + col1 AS SIGNED ) * - - 96 AS col0 FROM tab0 cor0
----
2016
7776
96

skipif mysql # not compatible
query I rowsort label-1425
SELECT - + CAST ( - + col1 AS INTEGER ) * - - 96 AS col0 FROM tab0 cor0
----
2016
7776
96

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

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

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

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

query I rowsort
SELECT col1 * + col0 * - 84 FROM tab0
----
-102060
-153468
-8148

query II rowsort
SELECT - 30, col2 * + col0 AS col1 FROM tab1
----
-30
4896
-30
5015
-30
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1431
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT col0 * + CAST( NULL AS SIGNED ) * - col2 > 64
----

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) * - col2 > 64
----

query I rowsort
SELECT col2 * - 25 FROM tab1
----
-1475
-1700
-2400

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN 78 AND col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 > col0 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT 7 - - 4 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1439
SELECT + col1 - + 67 + col0 + col2 + ( - col2 ) * col1 * + - col1 * - 88 / + CAST( NULL AS DECIMAL ) * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT + col1 - + 67 + col0 + col2 + ( - col2 ) * col1 * + - col1 * - 88 / + CAST ( NULL AS REAL ) * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 95 + - col2 + col1 * - col0 col2 FROM tab2 AS cor0
----
-1168
-184
427

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + - 88 * + 68 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT ALL + ( - + col0 ) + - col1 + + col0 DIV - col0 col2 FROM tab0 AS cor0
----
-109
-97
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1442
SELECT ALL + ( - + col0 ) + - col1 + + col0 / - col0 col2 FROM tab0 AS cor0
----
-109
-97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) - - + col1 col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT col0 + + col2 DIV col0 + - - 28 AS col0 FROM tab1 cor0
----
113
119
80

skipif mysql # not compatible
query I rowsort label-1444
SELECT col0 + + col2 / col0 + - - 28 AS col0 FROM tab1 cor0
----
113
119
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL - ( - - MIN( DISTINCT + col0 ) ) FROM tab1 WHERE - + col2 NOT IN ( + ( - + col0 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL - ( - - MIN ( DISTINCT + col0 ) ) FROM tab1 WHERE - + col2 NOT IN ( + ( - + col0 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT + MIN( ALL + + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1447
SELECT + MIN ( ALL + + 45 ) FROM tab2
----
45

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL 21 + + CAST( - AVG ( 73 ) AS SIGNED ) * - - 84 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL 21 + + CAST ( - AVG ( 73 ) AS INTEGER ) * - - 84 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT CAST( NULL AS SIGNED ) * + col1 + - 1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1452
SELECT CAST ( NULL AS INTEGER ) * + col1 + - 1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT COUNT( ALL - 92 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1455
SELECT COUNT ( ALL - 92 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-1456
SELECT col0 col0, - 50 DIV - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1456
SELECT col0 col0, - 50 / - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

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

query I rowsort
SELECT - - 2 * + 69 FROM tab0 AS cor0
----
138
138
138

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1460
SELECT - 63 AS col0, - col0 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1460
SELECT - 63 AS col0, - col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-63
NULL
-63
NULL
-63
NULL

query II rowsort
SELECT col1 AS col1, 81 * col0 FROM tab0 AS cor0
----
1
7857
21
7047
81
1215

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 NOT BETWEEN + 30 * 74 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT + CAST( - col2 AS SIGNED ) + col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-1463
SELECT + CAST ( - col2 AS INTEGER ) + col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT ALL col0 + col1 * - 70 FROM tab2
----
-3524
-4615
-5326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 21 col2 FROM tab2 WHERE NULL IS NULL
----
21
21
21

query I rowsort
SELECT 47 + col2 * - + col0 FROM tab1
----
-4849
-4968
-6141

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1467
SELECT - 84 * + CAST( NULL AS DECIMAL ) AS col2, + col2 + + col1 AS col1 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-1467
SELECT - 84 * + CAST ( NULL AS REAL ) AS col2, + col2 + + col1 AS col1 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 93 + + col1 col0, 25 + + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
144
48
160
83
170
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - COUNT( * ) * - - 63 AS col0 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-1469
SELECT - COUNT ( * ) * - - 63 AS col0 FROM tab2
----
-189

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

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

query I rowsort
SELECT col1 * + + col0 * + - col1 - + + col2 AS col1 FROM tab1 WHERE ( NULL NOT BETWEEN + 44 + - col2 AND - 51 + - 10 )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1473
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

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

query I rowsort
SELECT 16 + + col0 + + col0 + - + col0 AS col0 FROM tab0
----
103
113
31

query I rowsort
SELECT ALL + 49 * 96 FROM tab2
----
4704
4704
4704

query I rowsort
SELECT col1 + - 0 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - 40 * - col0 + + + col2 FROM tab0
----
3490
3979
647

query I rowsort
SELECT 11 + - col1 AS col2 FROM tab1 AS cor0
----
-3
-36
6

query I rowsort
SELECT ALL + - 86 * + 2 FROM tab1 AS cor0
----
-172
-172
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT ALL + col2 + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + col2 + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + - col1 * col0 - - - col0 AS col0 FROM tab0 AS cor0
----
18183
57090
9506

query I rowsort
SELECT - - col0 * - col2 - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT - 47 IS NOT NULL )
----
-752
-880
-9702

query I rowsort
SELECT ALL - col0 * col0 * + col1 * + col2 FROM tab0 AS cor0
----
-1589490
-856575
-931491

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

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 - col2 - - 86 + + - col2 < - 18
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT COUNT( ALL - - ( 41 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1488
SELECT COUNT ( ALL - - ( 41 ) ) FROM tab2
----
3

query II rowsort
SELECT ALL col1 AS col2, 57 + - 56 AS col1 FROM tab2
----
51
1
67
1
77
1

query I rowsort
SELECT ALL col2 * + - 30 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT - 25 * - COUNT( * ) * 87 FROM tab1
----
6525

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - 25 * - COUNT ( * ) * 87 FROM tab1
----
6525

query III rowsort
SELECT col1 AS col2, 33 AS col1, 29 FROM tab0
----
9 values hashing to 81504e94c1cd2f3887e0b65729fb25e4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1493
SELECT - COUNT( * ) * COUNT( * ) DIV + 12 FROM tab0 WHERE NOT NULL < - col1 * - 76 DIV + 93 - 68
----
0

skipif mysql # not compatible
query I rowsort label-1493
SELECT - COUNT ( * ) * COUNT ( * ) / + 12 FROM tab0 WHERE NOT NULL < - col1 * - 76 / + 93 - 68
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1495
SELECT ALL + 29 DIV - MAX( - col0 ) + - 69 AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + 29 / - MAX ( - col0 ) + - 69 AS col0 FROM tab2 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 * + 6 + + 33 - + col1 col0 FROM tab1 AS cor0
----
-290
-299
-332

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL - SUM( - 80 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - SUM ( - 80 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT - CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 94 * + 97 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 94 * + 97 <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1501
SELECT DISTINCT + 42 + - col0 AS col1, - 35 / - + 37 / - + col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-45
NULL
-55
NULL
27
NULL

skipif mysql # not compatible
query II rowsort label-1501
SELECT DISTINCT + 42 + - col0 AS col1, - 35 / - + 37 / - + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-45
NULL
-55
NULL
27
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT ALL - + CAST( col1 AS SIGNED ) + - 9 FROM tab0 WHERE - ( + + col0 ) IS NOT NULL
----
-10
-30
-90

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - + CAST ( col1 AS INTEGER ) + - 9 FROM tab0 WHERE - ( + + col0 ) IS NOT NULL
----
-10
-30
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT DISTINCT + CAST( - 30 AS SIGNED ) * + - col1 + - 31 FROM tab0
----
-1
2399
599

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT + CAST ( - 30 AS INTEGER ) * + - col1 + - 31 FROM tab0
----
-1
2399
599

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

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

query I rowsort
SELECT ALL 95 + - col0 FROM tab2
----
20
31
49

query I rowsort
SELECT + 43 * + col1 * - - 39 AS col0 FROM tab0
----
135837
1677
35217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT - ( + + CAST( col0 AS SIGNED ) ) + + col1 * CAST( - col0 AS SIGNED ) + - + 36 FROM tab1
----
-4404
-546
-801

skipif mysql # not compatible
query I rowsort label-1509
SELECT - ( + + CAST ( col0 AS INTEGER ) ) + + col1 * CAST ( - col0 AS INTEGER ) + - + 36 FROM tab1
----
-4404
-546
-801

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

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

query I rowsort
SELECT + 28 + - - col1 AS col1 FROM tab0
----
109
29
49

query I rowsort
SELECT ALL col2 - + 88 FROM tab0
----
-41
-78
11

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

query I rowsort
SELECT + + 20 + + + col0 FROM tab0 AS cor0
----
107
117
35

onlyif mysql # DIV for integer division: 
query II rowsort label-1515
SELECT + + col0 + + + 0 + - - col0, 25 DIV - 10 col0 FROM tab2 AS cor0
----
128
-2
150
-2
92
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1515
SELECT + + col0 + + + 0 + - - col0, 25 / - 10 col0 FROM tab2 AS cor0
----
128
-2
150
-2
92
-2

query I rowsort
SELECT ALL - 82 - + + col1 FROM tab2
----
-133
-149
-159

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

query I rowsort
SELECT ALL 95 - col0 FROM tab1
----
10
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT - 94 * COUNT( * ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1519
SELECT - 94 * COUNT ( * ) FROM tab0 AS cor0
----
-282

query I rowsort
SELECT ALL 98 * + col1 * + + col2 FROM tab0 AS cor0
----
20580
373086
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL + - MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + - MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - + COUNT( * ) * MAX( + col1 ) + 72 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1524
SELECT - + COUNT ( * ) * MAX ( + col1 ) + 72 FROM tab2 AS cor0
----
-159

query I rowsort
SELECT col0 - - col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
104
133
69

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

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

query I rowsort
SELECT + col1 * 80 AS col2 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL - ( - SUM( - 43 ) ) AS col1 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL - ( - SUM ( - 43 ) ) AS col1 FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL 88 * + COUNT( * ) col1 FROM tab2
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1529
SELECT ALL 88 * + COUNT ( * ) col1 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT SUM( - 52 ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1530
SELECT SUM ( - 52 ) FROM tab1 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col0 * - + col1 + - 14
----

query I rowsort
SELECT DISTINCT + ( + - 34 ) FROM tab0
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1533
SELECT ALL - - col2 FROM tab1 cor0 WHERE 16 + + + CAST( - + ( - col2 ) AS DECIMAL ) * - - col2 <= + col2
----

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL - - col2 FROM tab1 cor0 WHERE 16 + + + CAST ( - + ( - col2 ) AS REAL ) * - - col2 <= + col2
----

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

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE ( ( NOT ( NULL IS NOT NULL ) ) )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + + SUM( + col1 ) + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-1536
SELECT + + SUM ( + col1 ) + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT + col0 + + + col1 DIV + col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1537
SELECT + col0 + + + col1 / + col0 FROM tab1 cor0
----
51
85
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 * + 94 col0 FROM tab2 AS cor0 WHERE + col1 / - col0 > NULL
----

query I rowsort
SELECT + AVG ( DISTINCT + - 81 ) FROM tab2 AS cor0 WHERE - col2 + - col2 BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT ALL - col0 + 43 FROM tab1 cor0
----
-42
-48
-8

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

query I rowsort
SELECT DISTINCT - 65 + - 87 AS col1 FROM tab1
----
-152

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

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

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

query I rowsort
SELECT col1 * 99 * - - col1 FROM tab2
----
257499
444411
586971

query I rowsort
SELECT 21 * 40 AS col0 FROM tab2
----
840
840
840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1548
SELECT col0 * - col1, col0 / + + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2
----
-2346
NULL
-4928
NULL
-5025
NULL

skipif mysql # not compatible
query II rowsort label-1548
SELECT col0 * - col1, col0 / + + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2
----
-2346
NULL
-4928
NULL
-5025
NULL

query II rowsort
SELECT col2 + + col0 * + col1, col1 FROM tab1
----
4345
47
484
5
810
14

query I rowsort
SELECT 75 + + col1 AS col1 FROM tab2
----
126
142
152

query I rowsort
SELECT DISTINCT col0 - 97 AS col0 FROM tab0
----
-10
-82
0

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

query II rowsort
SELECT + col2, + col0 * - col2 * 97 + + 19 AS col0 FROM tab1 AS cor0
----
59
-486436
68
-600217
96
-474893

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 99 * + col0 <> 15
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - - CAST ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + + + 66 <= - col1
----
-15
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - MIN( ALL - 40 ) * + 77 AS col2 FROM tab2
----
3080

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - MIN ( ALL - 40 ) * + 77 AS col2 FROM tab2
----
3080

query I rowsort
SELECT + col0 * - 98 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + COUNT( * ) * 39 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-1564
SELECT + COUNT ( * ) * 39 FROM tab0
----
117

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT - CAST( - - 17 AS SIGNED ) + - COUNT( - col0 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1571
SELECT - CAST ( - - 17 AS INTEGER ) + - COUNT ( - col0 ) FROM tab1
----
-20

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

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + ( + 69 ), + col2, - 69 )
----

query I rowsort
SELECT + 66 AS col1 FROM tab2 AS cor0 WHERE 71 - - 17 * 80 >= 79 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <> + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL ( + COUNT( * ) ) + + 25 AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL ( + COUNT ( * ) ) + + 25 AS col0 FROM tab0 AS cor0
----
28

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

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

query I rowsort
SELECT DISTINCT 17 + col0 FROM tab1
----
102
108
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 WHERE 56 <> - - col1
----
-3

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 WHERE 56 <> - - col1
----
-3

query I rowsort
SELECT - col0 - - 89 + col1 AS col2 FROM tab0
----
-7
155
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1583
SELECT * FROM tab0 WHERE - ( + CAST( + col0 AS SIGNED ) ) >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1583
SELECT * FROM tab0 WHERE - ( + CAST ( + col0 AS INTEGER ) ) >= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1584
SELECT col0 + - - 14 AS col2, - 57 + - CAST( + col2 AS SIGNED ) + - 43 - - col1 * col2 + col1 DIV 17 * - - col0 FROM tab0 AS cor0
----
101
187
111
-100
29
3720

skipif mysql # not compatible
query II rowsort label-1584
SELECT col0 + - - 14 AS col2, - 57 + - CAST ( + col2 AS INTEGER ) + - 43 - - col1 * col2 + col1 / 17 * - - col0 FROM tab0 AS cor0
----
101
187
111
-100
29
3720

query I rowsort
SELECT - 90 * + col1 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL + 7 + - 10 + + CAST( + - col2 AS SIGNED ) - ( + - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
363
4206
615

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + 7 + - 10 + + CAST ( + - col2 AS INTEGER ) - ( + - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
363
4206
615

query II rowsort
SELECT + col1 AS col2, + col2 + - ( - 33 ) FROM tab1 AS cor0
----
14
129
47
101
5
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT ALL COUNT( col1 ) DIV + 63 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1588
SELECT ALL COUNT ( col1 ) / + 63 col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - + 58 FROM tab1 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - COUNT( * ) * 75 col2 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1590
SELECT - COUNT ( * ) * 75 col2 FROM tab0 AS cor0
----
-225

query I rowsort
SELECT DISTINCT col0 * - 79 AS col2 FROM tab1 AS cor0
----
-4029
-6715
-7189

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 51 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT col1 * - ( + - col1 ) * + CAST( 49 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
108241
1225
9604

skipif mysql # not compatible
query I rowsort label-1593
SELECT col1 * - ( + - col1 ) * + CAST ( 49 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
108241
1225
9604

query I rowsort
SELECT DISTINCT + 23 FROM tab0 AS cor0 WHERE - col1 / - 55 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * - ( col0 ) col1 FROM tab2
----
-3404
-4736
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL - MIN( ALL + 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - MIN ( ALL + 40 ) FROM tab2
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT 82 + ( - 91 ) + - - MIN( - 50 ) col1 FROM tab2
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1598
SELECT 82 + ( - 91 ) + - - MIN ( - 50 ) col1 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT 43 + + 43 AS col0 FROM tab1 WHERE + col2 / col0 * col2 = - + col0
----

query II rowsort
SELECT DISTINCT col1, + 10 FROM tab0 AS cor0
----
1
10
21
10
81
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + 82 + - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
73

skipif mysql # not compatible
query I rowsort label-1602
SELECT + 82 + - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
73

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * + col0 col0 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT + 14 + 88 + - + 77 AS col1 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - MIN( - col2 ) * - COUNT( * ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - MIN ( - col2 ) * - COUNT ( * ) AS col2 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT - + COUNT( * ) * - - 87 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = + 27
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT - + COUNT ( * ) * - - 87 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = + 27
----
0

query II rowsort
SELECT 84 + - - col0 AS col1, + 2 FROM tab1 AS cor0
----
135
2
169
2
175
2

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

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 35 + COUNT ( * ) FROM tab0 cor0
----
38

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT ALL 30 - - + 73 AS col1 FROM tab0 cor0
----
103
103
103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab0 WHERE NOT NULL IN ( - 25 / + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab0 WHERE NOT NULL IN ( - 25 / + - col1 )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT + + MAX( DISTINCT col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT + + MAX ( DISTINCT col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
141

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-1618
SELECT CAST( NULL AS SIGNED ) * + MIN( DISTINCT + - col1 ) * - COUNT( * ) + 37 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + - col1 ) * - COUNT ( * ) + 37 FROM tab1
----
NULL

query I rowsort
SELECT ( - - 90 ) FROM tab2 AS cor0
----
90
90
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 90 >= - 68
----

query I rowsort
SELECT ALL + 34 * - col1 - col1 * - 81 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - 37 + 23 AND NULL
----

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

query I rowsort
SELECT ALL - 56 + col2 FROM tab0 cor0
----
-46
-9
43

query I rowsort
SELECT 53 * - - col1 AS col0 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT + col0 * + col1 * - col1 + - col1 * + col2 FROM tab2 WHERE NOT 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT - 91 * + COUNT( * ) * + ( - - ( + + COUNT( * ) ) ), ( + - COUNT( * ) ) AS col0 FROM tab2
----
-819
-3

skipif mysql # not compatible
query II rowsort label-1626
SELECT - 91 * + COUNT ( * ) * + ( - - ( + + COUNT ( * ) ) ), ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-819
-3

query I rowsort
SELECT ALL - col1 * 40 AS col0 FROM tab1
----
-1880
-200
-560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1628
SELECT 43 * col2, col2 AS col1, - CAST( - col0 AS SIGNED ) + + col0 + - + col1 AS col0 FROM tab0
----
9 values hashing to 7033eed493c3b59c4be59565bb6f87bb

skipif mysql # not compatible
query III rowsort label-1628
SELECT 43 * col2, col2 AS col1, - CAST ( - col0 AS INTEGER ) + + col0 + - + col1 AS col0 FROM tab0
----
9 values hashing to 7033eed493c3b59c4be59565bb6f87bb

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT ( - 38 NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN 80 AND NULL
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - + COUNT( * ) * + 77 FROM tab1 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - + COUNT ( * ) * + 77 FROM tab1 cor0
----
-231

query I rowsort
SELECT ALL - + col0 + + 35 * 77 FROM tab0 AS cor0
----
2598
2608
2680

query I rowsort
SELECT + - col0 - 44 AS col1 FROM tab1 AS cor0
----
-129
-135
-95

query I rowsort
SELECT ALL - 9 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT 8 - - + 28 * - 2 DIV + col2 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1638
SELECT 8 - - + 28 * - 2 / + col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1639
SELECT + 11 DIV 47 - + col0 + + CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-1639
SELECT + 11 / 47 - + col0 + + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-37
-44
-80

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

query I rowsort
SELECT ALL 9 + 55 FROM tab1
----
64
64
64

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

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

query II rowsort
SELECT ALL + 94 * - 70 AS col1, ( col1 ) AS col2 FROM tab1
----
-6580
14
-6580
47
-6580
5

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

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + col0 / + + ( + col0 ) FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT + COUNT( * ) * - 91 AS col0, 70 FROM tab1 AS cor0
----
-273
70

skipif mysql # not compatible
query II rowsort label-1646
SELECT + COUNT ( * ) * - 91 AS col0, 70 FROM tab1 AS cor0
----
-273
70

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

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

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL 28 * + + SUM( - col1 ) * - 20 FROM tab2 cor0
----
109200

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL 28 * + + SUM ( - col1 ) * - 20 FROM tab2 cor0
----
109200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL - COUNT( * ) + + MAX( + col1 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - COUNT ( * ) + + MAX ( + col1 ) FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT - + MAX( ALL + 91 ) + CAST( NULL AS SIGNED ) * COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT - + MAX ( ALL + 91 ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) + - - 45 AS col1 FROM tab0 AS cor0
----
39

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

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

query II rowsort
SELECT col0 + 12 AS col1, ( - col1 ) FROM tab1
----
103
-47
63
-14
97
-5

query I rowsort
SELECT ALL 0 * - 30 FROM tab0
----
0
0
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1661
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * ) col0 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) / col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT ALL + 87 DIV col1 AS col2 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + 87 / col1 AS col2 FROM tab1
----
1
17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT SUM( DISTINCT col0 ) * - + COUNT( * ) + - 11 + - ( + - ( + + 97 ) ) col1 FROM tab2
----
-469

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1663
SELECT DISTINCT SUM ( DISTINCT col0 ) * - + COUNT ( * ) + - 11 + - ( + - ( + + 97 ) ) col1 FROM tab2
----
-469

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - SUM( DISTINCT 42 ) col0 FROM tab1
----
-42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT 73 AS col0, - COUNT( * ) AS col2 FROM tab0
----
73
-3

skipif mysql # not compatible
query II rowsort label-1667
SELECT 73 AS col0, - COUNT ( * ) AS col2 FROM tab0
----
73
-3

query I rowsort
SELECT ALL - 97 AS col1 FROM tab1 cor0 WHERE + col1 <> + + ( col1 ) * + col1 + - col1
----
-97
-97
-97

query I rowsort
SELECT DISTINCT ( 44 ) + - 38 FROM tab1 AS cor0
----
6

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

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

query I rowsort
SELECT DISTINCT - col2 + - 17 AS col1 FROM tab0 AS cor0 WHERE NOT - 35 IS NULL
----
-116
-27
-64

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

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

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 74 + + - COUNT ( * ) FROM tab0
----
71

query II rowsort
SELECT col0 AS col2, + 50 / + 19 * 28 AS col2 FROM tab1 AS cor0 WHERE 62 * + - ( - + col0 ) IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT 60 * + 27 * - + 88 FROM tab0
----
-142560

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT + COUNT( * ) * 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT + COUNT ( * ) * 7 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + SUM( - + 49 ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-1679
SELECT + SUM ( - + 49 ) FROM tab2
----
-147

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

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

query II rowsort
SELECT ALL + 50, col2 AS col1 FROM tab2 AS cor0
----
50
23
50
40
50
58

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

query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT - 38 - col1 FROM tab1 WHERE NULL <> + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT MAX( ALL 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-1686
SELECT MAX ( ALL 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + SUM( + 68 ) + MIN( ALL col1 ) AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + SUM ( + 68 ) + MIN ( ALL col1 ) AS col0 FROM tab2
----
255

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

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

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

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

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

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

query I rowsort
SELECT 52 + 5 FROM tab0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT DISTINCT CAST( - 93 AS SIGNED ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT CAST ( - 93 AS INTEGER ) FROM tab0
----
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - MAX( col0 ) AS col2 FROM tab1 WHERE NOT - 4 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-1695
SELECT - MAX ( col0 ) AS col2 FROM tab1 WHERE NOT - 4 IS NULL
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT ( COUNT( * ) ) FROM tab2 WHERE 85 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT ( COUNT ( * ) ) FROM tab2 WHERE 85 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT COUNT( * ) * 61 AS col2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-1698
SELECT COUNT ( * ) * 61 AS col2 FROM tab1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1699
SELECT DISTINCT + 51 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 28 * CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + 51 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 28 * CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 59 ) NOT IN ( 3 * 25 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - ( + 47 ) > - 97
----

query I rowsort
SELECT col2 + - 3 FROM tab1 cor0
----
56
65
93

query I rowsort
SELECT 50 + - 78 FROM tab2 WHERE 50 + 53 * 13 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 21 FROM tab2
----
25
43
54

query I rowsort
SELECT DISTINCT 72 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
72

query I rowsort
SELECT + col0 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 col1 FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 + - 71 )
----
-11
-34
98

query I rowsort
SELECT DISTINCT 73 * col2 AS col2 FROM tab0 AS cor0
----
3431
7227
730

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT - + col0 DIV 71 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1709
SELECT - + col0 / 71 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col1 * 89 AS col1 FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT ALL - + ( MIN( - col0 ) ) DIV 87 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - + ( MIN ( - col0 ) ) / 87 AS col0 FROM tab1 AS cor0
----
1

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * 51 - col0 * col1 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + + 19 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( ( col2 ) ) AND ( 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - 61 BETWEEN - col1 + + col2 * col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1715
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 61 BETWEEN - col1 + + col2 * col0 AND NULL
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT - ( + col2 ) DIV col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-1717
SELECT - ( + col2 ) / col1 AS col2 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT - 13 FROM tab1 WHERE NOT - col2 IS NULL
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT - ( - - 41 ) DIV + 4 AS col0 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1719
SELECT - ( - - 41 ) / + 4 AS col0 FROM tab2
----
-10
-10
-10

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + CAST ( 6 AS INTEGER ) FROM tab1
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN - 87 + ( col1 + 58 ) AND NULL
----

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

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

query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab0 cor0 WHERE NOT col2 * - col2 > ( + 99 )
----
-1215
-1827
-97

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

query I rowsort
SELECT + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT - + ( ( + col1 ) ) BETWEEN NULL AND - col0
----
1

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT - + ( ( + col1 ) ) BETWEEN NULL AND - col0
----
1

query I rowsort
SELECT ALL col1 * + col1 + + 11 FROM tab0
----
12
452
6572

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL - MIN( ALL + col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1731
SELECT ALL - MIN ( ALL + col1 ) col2 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT + - col1 * + 10 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - 41 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 > NULL
----

query I rowsort
SELECT - - col2 + - col2 + + + 39 * - 11 FROM tab2 AS cor0
----
-429
-429
-429

query I rowsort
SELECT - - col1 + col2 + + ( - col1 ) FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 * - 33 * col0 + - 91 * - col1 col0 FROM tab0 AS cor0
----
-3013
-32709
-58293

query I rowsort
SELECT + - 15 + ( + col0 ) FROM tab0 AS cor0
----
0
72
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col0 FROM tab1 WHERE col2 > NULL
----

query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab0 WHERE NULL NOT IN ( + 65 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - - 17 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL SUM( ALL - - 70 ) + - - 67 AS col0 FROM tab1
----
277

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL SUM ( ALL - - 70 ) + - - 67 AS col0 FROM tab1
----
277

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * 27 + - col2 * + ( col1 - + 60 * - col1 ) NOT BETWEEN col0 AND - 80
----

query I rowsort
SELECT DISTINCT 39 + - ( - col1 ) + - col1 * col1 * + 74 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-192384
-332080
-438630

query I rowsort
SELECT - 62 * - + 37 AS col1 FROM tab1
----
2294
2294
2294

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( + 95 )
----

query II rowsort
SELECT ALL 15 * + - 41, ( + 95 ) * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-615
4546
-615
9406
-615
971

onlyif mysql # DIV for integer division: 
query II rowsort label-1748
SELECT 48 DIV + - col1 AS col1, col1 * - + col2 + 71 AS col0 FROM tab2 cor0
----
0
-1102
0
-3009
0
-3815

skipif mysql # not compatible
query II rowsort label-1748
SELECT 48 / + - col1 AS col1, col1 * - + col2 + 71 AS col0 FROM tab2 cor0
----
0
-1102
0
-3009
0
-3815

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL NOT BETWEEN col0 AND NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) <> + col2 + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 55 / 50 + - col1 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( - col2 ) * + col2 * - 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53, 21 col0 FROM tab0 AS cor0
----
53
21
53
21
53
21

query I rowsort
SELECT DISTINCT col1 * - 52 + col2 FROM tab2 cor0 WHERE NOT ( col1 * - col0 * - col0 + - col0 * col1 ) NOT BETWEEN + col0 - col2 * + col2 AND - ( 88 ) + - col2
----

query I rowsort
SELECT DISTINCT col2 * + col2 / col1 AS col0 FROM tab2 AS cor0 WHERE NULL <> 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT DISTINCT col0 DIV 21 AS col2 FROM tab1 AS cor0
----
2
4

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT col0 / 21 AS col2 FROM tab1 AS cor0
----
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT DISTINCT - MAX( DISTINCT + - col1 ) * MIN( - + col0 ) AS col2 FROM tab2 AS cor0
----
-3825

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) * MIN ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-3825

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + + col0 + - 0 )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1759
SELECT ALL + - col0 DIV + - ( CAST( - - 11 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + - col0 / + - ( CAST ( - - 11 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1
7
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1760
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 19 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1760
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 19 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 87 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT DISTINCT - COUNT( * ) AS col0, 3 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1762
SELECT DISTINCT - COUNT ( * ) AS col0, 3 FROM tab2 cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( - col2 ) col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT - COUNT( * ) * + 10 AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT - COUNT ( * ) * + 10 AS col2 FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT MAX( - + col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1766
SELECT MAX ( - + col2 ) AS col1 FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - col2 * + 71 col1 FROM tab0
----
10
-710
47
-3337
99
-7029

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT ( + 3 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT + MIN( DISTINCT + + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) AS col2 FROM tab0
----
10

query II rowsort
SELECT ALL - + col1 + - + col0, col0 FROM tab1 AS cor0
----
-138
91
-65
51
-90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT + - COUNT( * ) + + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1771
SELECT + - COUNT ( * ) + + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 * col0 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 * col0 + + col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + + col0 < col1 - + + 54 * + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1774
SELECT MIN( DISTINCT - col2 ), CAST( NULL AS SIGNED ) * - AVG ( ALL - - col2 ) col2 FROM tab1
----
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1774
SELECT MIN ( DISTINCT - col2 ), CAST ( NULL AS INTEGER ) * - AVG ( ALL - - col2 ) col2 FROM tab1
----
-96
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT DISTINCT + + MIN( DISTINCT - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT + + MIN ( DISTINCT - col1 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1777
SELECT + - MAX( DISTINCT - - col2 ) AS col2, 76 FROM tab0 AS cor0
----
-99
76

skipif mysql # not compatible
query II rowsort label-1777
SELECT + - MAX ( DISTINCT - - col2 ) AS col2, 76 FROM tab0 AS cor0
----
-99
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1778
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - + col1 + 9 * - CAST( NULL AS SIGNED ) NOT BETWEEN - 97 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1778
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - + col1 + 9 * - CAST ( NULL AS INTEGER ) NOT BETWEEN - 97 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 13 + + + col1 FROM tab2 AS cor0
----
38
54
64

query I rowsort
SELECT - col0 * col2 - - - col1 + + col0 FROM tab1 AS cor0
----
-4859
-4935
-6144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) + + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT ALL + COUNT( ALL - - col2 ) - COUNT( * ) + COUNT( * ) AS col1, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-1782
SELECT ALL + COUNT ( ALL - - col2 ) - COUNT ( * ) + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT COUNT( * ) + - 40 AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-1783
SELECT COUNT ( * ) + - 40 AS col1 FROM tab0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1784
SELECT ALL - col0 + + 6 * + 10 AS col2, CAST( - ( 84 ) AS SIGNED ) FROM tab2
----
-15
-84
-4
-84
14
-84

skipif mysql # not compatible
query II rowsort label-1784
SELECT ALL - col0 + + 6 * + 10 AS col2, CAST ( - ( 84 ) AS INTEGER ) FROM tab2
----
-15
-84
-4
-84
14
-84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( + 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1786
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) > - 97 - + CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1786
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) > - 97 - + CAST ( + + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT ALL + COUNT( * ) * + 99 DIV 3 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + COUNT ( * ) * + 99 / 3 FROM tab2
----
99

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 30 > + + 14 - - - col0
----

query I rowsort
SELECT DISTINCT - AVG ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + + col2 ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT - col1 DIV + + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT - col1 / + + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL + 58 + - - ( + + col1 ), col0 FROM tab1 AS cor0 WHERE NOT - 13 + + 29 IS NULL
----
105
91
63
85
72
51

query I rowsort
SELECT + 7 FROM tab0 cor0 WHERE + col0 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 61 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT ALL - - col1 * - col0 AS col1, 61 FROM tab0 AS cor0
----
-1215
61
-1827
61
-97
61

query I rowsort
SELECT + + col2 * col2 * + 17 AS col0 FROM tab0 AS cor0
----
166617
1700
37553

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT 9 DIV ( - CAST( - + 39 AS SIGNED ) ) + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT 9 / ( - CAST ( - + 39 AS INTEGER ) ) + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1797
SELECT - - CAST( NULL AS SIGNED ) * 10, COUNT( * ) col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1797
SELECT - - CAST ( NULL AS INTEGER ) * 10, COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT col1 DIV col1 * + - 77 FROM tab2
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1798
SELECT col1 / col1 * + - 77 FROM tab2
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT DISTINCT 37 AS col1, COUNT( * ) AS col1 FROM tab2
----
37
3

skipif mysql # not compatible
query II rowsort label-1799
SELECT DISTINCT 37 AS col1, COUNT ( * ) AS col1 FROM tab2
----
37
3

query I rowsort
SELECT ALL 62 * 58 AS col2 FROM tab0
----
3596
3596
3596

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1801
SELECT * FROM tab0 WHERE NOT - ( + col0 ) < + CAST( NULL AS SIGNED ) * + col1 + - ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-1801
SELECT * FROM tab0 WHERE NOT - ( + col0 ) < + CAST ( NULL AS INTEGER ) * + col1 + - ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 - - col2 * - col0 AND ( + col2 + - col2 ) AND - - col1 = + + col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col1, - 90 + col0, + - 65 * + - 70 / - 93 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 98 > - + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT 4 + + - MAX( ALL - + ( 50 ) ) AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1808
SELECT 4 + + - MAX ( ALL - + ( 50 ) ) AS col1 FROM tab0 AS cor0
----
54

query I rowsort
SELECT - col0 + 87 AS col1 FROM tab1 AS cor0
----
-4
2
36

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + - col2 col1 FROM tab1 AS cor0
----
-104
-113
-141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1812
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1812
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL - - 72 + + col2 * 3 FROM tab0 AS cor0
----
102
213
369

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL 81 + + MAX( - 80 ) + - 47 AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL 81 + + MAX ( - 80 ) + - 47 AS col1 FROM tab1
----
-46

query I rowsort
SELECT 4 * - col1 AS col1 FROM tab1
----
-188
-20
-56

query II rowsort
SELECT DISTINCT + col0 - - - 49, + col0 FROM tab1
----
2
51
36
85
42
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT DISTINCT CAST( NULL AS SIGNED ) - col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 < - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 87 * + - col2 FROM tab2
----
2001
3480
5046

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 = + + col0
----

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab2 WHERE NOT - col2 IN ( col2, 70 + col0, + col2, + + 90 )
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT DISTINCT + 14 col0, COUNT( * ) FROM tab1
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1822
SELECT DISTINCT + 14 col0, COUNT ( * ) FROM tab1
----
14
3

query I rowsort
SELECT ALL + - ( - col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-84
-84
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1825
SELECT DISTINCT - - MIN( ALL + col1 ) DIV - 98 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT - - MIN ( ALL + col1 ) / - 98 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT col1 * + 87 * + CAST( + col1 AS SIGNED ) * + col2 * + col2 + - col2 FROM tab2 AS cor0
----
119705800
1313786594
825316760

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT col1 * + 87 * + CAST ( + col1 AS INTEGER ) * + col2 * + col2 + - col2 FROM tab2 AS cor0
----
119705800
1313786594
825316760

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 35 NOT IN ( - + col2, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 83
----

query I rowsort
SELECT ALL col2 * + 69 * + ( + 24 ) FROM tab0
----
163944
16560
77832

query I rowsort
SELECT - 87 * + 39 FROM tab0
----
-3393
-3393
-3393

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 28 + - - col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT + 72 DIV - 62 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + 72 / - 62 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT col2 * - + 20 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab1 WHERE - col0 IN ( - col2 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT ( - + col1 ) DIV col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1835
SELECT ( - + col1 ) / col1 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - COUNT( * ) FROM tab1 WHERE NOT - - 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - - 5 IS NOT NULL
----
0

query I rowsort
SELECT + 85 * - 33 AS col2 FROM tab1
----
-2805
-2805
-2805

query I rowsort
SELECT - 91 + + col1 FROM tab0
----
-10
-70
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL - COUNT( ALL + + col0 ) + + 77 AS col0 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL - COUNT ( ALL + + col0 ) + + 77 AS col0 FROM tab2 cor0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT DISTINCT 50 + 0 DIV - col2 AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT 50 + 0 / - col2 AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT + col0 - + ( + + 53 ) DIV - 46 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1841
SELECT + col0 - + ( + + 53 ) / - 46 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT DISTINCT - - col2 + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT - - col2 + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT ALL + col1 * 98 - + - col2 - - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + col1 * 98 - + - col2 - - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 54 - col2 FROM tab2 cor0
----
-112
-77
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT 66 DIV 8 - - + col2 * + - col1 * - - ( - 78 ) FROM tab0
----
16388
296954
7730

skipif mysql # not compatible
query I rowsort label-1846
SELECT 66 / 8 - - + col2 * + - col1 * - - ( - 78 ) FROM tab0
----
16388
296954
7730

query I rowsort
SELECT col2 + + - 92 FROM tab1
----
-24
-33
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT + col2 + + - 32 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT + col2 + + - 32 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE - 12 NOT IN ( + col0 * - col2 * + col1 )
----
59
68
96

query I rowsort
SELECT ALL - ( + col1 ) - + + col1 + col2 FROM tab1
----
-26
49
68

query I rowsort
SELECT DISTINCT + + col2 * + 39 * col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
382239
3900
86151

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 16 + - 0 / + col1, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1853
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( ( - col0 ) * CAST( NULL AS SIGNED ) * + + 70 - ( col1 ) - col0 )
----

skipif mysql # not compatible
query III rowsort label-1853
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( ( - col0 ) * CAST ( NULL AS INTEGER ) * + + 70 - ( col1 ) - col0 )
----

query II rowsort
SELECT ALL - 79, + col1 * + col2 * + + col1 AS col1 FROM tab2 AS cor0
----
-79
237160
-79
260362
-79
59823

query II rowsort
SELECT ALL - col1 AS col2, 20 FROM tab1 cor0
----
-14
20
-47
20
-5
20

query II rowsort
SELECT + col1, col2 * - col2 AS col2 FROM tab1 cor0
----
14
-9216
47
-4624
5
-3481

query II rowsort
SELECT + col2, 55 FROM tab1 cor0
----
59
55
68
55
96
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT DISTINCT COUNT( * ), + 84 + - 72 AS col1 FROM tab2 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT COUNT ( * ), + 84 + - 72 AS col1 FROM tab2 AS cor0
----
3
12

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - col2 * col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT - + col1 DIV + ( 2 ) - 45 - + + 42 FROM tab2 AS cor0
----
-112
-120
-125

skipif mysql # not compatible
query I rowsort label-1860
SELECT - + col1 / + ( 2 ) - 45 - + + 42 FROM tab2 AS cor0
----
-112
-120
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT ( + MAX( ALL - 78 ) ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT ( + MAX ( ALL - 78 ) ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT ( col0 ) * + 88 FROM tab0 AS cor0
----
1320
7656
8536

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + - MAX( ALL + col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1863
SELECT + - MAX ( ALL + col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT - + MAX( DISTINCT col1 ) AS col2, MAX( ALL col2 ) FROM tab2 cor0
----
-77
58

skipif mysql # not compatible
query II rowsort label-1864
SELECT - + MAX ( DISTINCT col1 ) AS col2, MAX ( ALL col2 ) FROM tab2 cor0
----
-77
58

query I rowsort
SELECT + ( 39 ) * - col0 + + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-2040
-3400
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1866
SELECT * FROM tab2, tab1 AS cor0 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1866
SELECT * FROM tab2, tab1 AS cor0 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 95 + - col0 * 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT DISTINCT - 62 AS col2, - ( + COUNT( - 70 ) ) * + - 17 + + 39 FROM tab2
----
-62
90

skipif mysql # not compatible
query II rowsort label-1868
SELECT DISTINCT - 62 AS col2, - ( + COUNT ( - 70 ) ) * + - 17 + + 39 FROM tab2
----
-62
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - 71 col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT 23 AS col2 FROM tab2 WHERE - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1870
SELECT 23 AS col2 FROM tab2 WHERE - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 12 * + col0 + + 13 FROM tab2
----
565
781
913

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - - ( - + 60 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1872
SELECT - - ( - + 60 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 + - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( + 8 ) AS col2 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT ALL + ( - - SUM( ALL - - col2 ) ) * - COUNT( * ) AS col0, + 43 * + - MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
-669
2537

skipif mysql # not compatible
query II rowsort label-1875
SELECT ALL + ( - - SUM ( ALL - - col2 ) ) * - COUNT ( * ) AS col0, + 43 * + - MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
-669
2537

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 26 * + col1 IS NOT NULL
----

query I rowsort
SELECT 77 + - col1 AS col1 FROM tab1 cor0
----
30
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL COUNT( * ) * - 66 AS col2 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL COUNT ( * ) * - 66 AS col2 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT 76 * - 26 + - + 6 AS col2 FROM tab2 AS cor0
----
-1982
-1982
-1982

query II rowsort
SELECT DISTINCT - col1 * - col1 AS col2, - 25 FROM tab0 AS cor0
----
1
-25
441
-25
6561
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT DISTINCT col0 + + - CAST( + + col2 AS SIGNED ) + - col2 + + col1 FROM tab2 AS cor0
----
26
51
61

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT col0 + + - CAST ( + + col2 AS INTEGER ) + - col2 + + col1 FROM tab2 AS cor0
----
26
51
61

query I rowsort
SELECT ALL col1 * + col2 AS col1 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1883
SELECT DISTINCT + col0 AS col0, CAST( NULL AS SIGNED ) * - col2 - - ( + + col1 ) * + col0 col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) < + 22 * - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1883
SELECT DISTINCT + col0 AS col0, CAST ( NULL AS INTEGER ) * - col2 - - ( + + col1 ) * + col0 col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) < + 22 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT DISTINCT - col1 DIV - 96 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT - col1 / - 96 FROM tab2
----
0

query I rowsort
SELECT col0 * + - col2 * - + ( + 67 ) AS col1 FROM tab0
----
47235
58290
643401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 AS col1, + col2 col1 FROM tab2
----
85
23
85
40
85
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT DISTINCT COUNT( * ) AS col1, 9 FROM tab0
----
3
9

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT COUNT ( * ) AS col1, 9 FROM tab0
----
3
9

query I rowsort
SELECT ALL ( + + 30 ) FROM tab2 cor0 WHERE + col0 NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col0 FROM tab1 cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT + MIN( - 49 ) FROM tab2 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + MIN ( - 49 ) FROM tab2 cor0
----
-49

query II rowsort
SELECT ALL - col1 AS col2, - col2 AS col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT DISTINCT + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT - ( + col2 ) DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT - ( + col2 ) / - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1894
SELECT + + 22 AS col1, + COUNT( * ) - 36 FROM tab1 AS cor0
----
22
-33

skipif mysql # not compatible
query II rowsort label-1894
SELECT + + 22 AS col1, + COUNT ( * ) - 36 FROM tab1 AS cor0
----
22
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT - COUNT( ALL col0 ) * + COUNT( DISTINCT - col2 ) * + 10 + + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - COUNT ( ALL col0 ) * + COUNT ( DISTINCT - col2 ) * + 10 + + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col2 * + - col0 * + 19 / - col1
----

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab2 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + col1 * + ( - col2 ), + 3, - + 37, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + col1 * + ( - col2 ), + 3, - + 37, col1 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1900
SELECT 18, COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
18
0

skipif mysql # not compatible
query II rowsort label-1900
SELECT 18, COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
18
0

query II rowsort
SELECT + col2 AS col2, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT ALL + col2 * + 42 + + 30 * - + col0 + 29 + + - col0 * - col0 DIV col0 col1 FROM tab0 cor0
----
-2074
1374
1568

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1902
SELECT ALL + col2 * + 42 + + 30 * - + col0 + 29 + + - col0 * - col0 / col0 col1 FROM tab0 cor0
----
-2074
1374
1568

query II rowsort
SELECT ALL + 51 + col0 AS col2, - ( - col2 ) FROM tab0
----
138
10
148
99
66
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT COUNT( ALL + + col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1904
SELECT DISTINCT COUNT ( ALL + + col1 ) col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * + - col2 col2 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT + col1 DIV - ( - 80 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1906
SELECT + col1 / - ( - 80 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL + 82 + COUNT( * ) * - 69 FROM tab0 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + 82 + COUNT ( * ) * - 69 FROM tab0 AS cor0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT ALL + - col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + - col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + ( + COUNT( * ) ) FROM tab2 cor0 WHERE + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT + ( + COUNT ( * ) ) FROM tab2 cor0 WHERE + col1 = NULL
----
0

query I rowsort
SELECT col2 / - + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1911
SELECT - + col1 - - col1 + - + CAST( + col1 AS SIGNED ) * - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1911
SELECT - + col1 - - col1 + - + CAST ( + col1 AS INTEGER ) * - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - + col0 col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT - 15 - + col0 AS col2 FROM tab2 AS cor0
----
-61
-79
-90

query I rowsort
SELECT 14 * - col1 FROM tab2 AS cor0 WHERE NULL > - 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT DISTINCT + + ( - - col2 ) DIV + col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT + + ( - - col2 ) / + col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + col0 col2 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT - 0 DIV - col2 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - 0 / - col2 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 1 + + ( - - 66 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT + SUM( - 91 ) AS col2 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + SUM ( - 91 ) AS col2 FROM tab0
----
-273

query I rowsort
SELECT DISTINCT + col0 * col1 * + + 79 FROM tab2
----
185334
389312
396975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col2 FROM tab1 cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT + - COUNT( * ) * - ( 35 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-1923
SELECT + - COUNT ( * ) * - ( 35 ) FROM tab0 AS cor0
----
105

query I rowsort
SELECT + + col1 * + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + ( - - 75 ) AS col2 FROM tab1 cor0
----
75
75
75

query I rowsort
SELECT DISTINCT col1 + - + col2 AS col2 FROM tab1 WHERE NOT ( 55 ) >= - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT + ( + - MIN( DISTINCT - col1 ) ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-1927
SELECT + ( + - MIN ( DISTINCT - col1 ) ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT MIN( - - col2 ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-1928
SELECT MIN ( - - col2 ) AS col1 FROM tab1 cor0
----
59

query I rowsort
SELECT ALL col1 + + 20 * + col2 AS col1 FROM tab0 AS cor0
----
1021
1981
221

onlyif mysql # aggregate syntax: 
query II rowsort label-1930
SELECT 45 + SUM( DISTINCT col0 ) AS col0, COUNT( * ) AS col0 FROM tab2 cor0
----
230
3

skipif mysql # not compatible
query II rowsort label-1930
SELECT 45 + SUM ( DISTINCT col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 cor0
----
230
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT COUNT( * ) + + MAX( ( + 58 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 97 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT COUNT ( * ) + + MAX ( ( + 58 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 97 AND NULL
----
NULL

query I rowsort
SELECT - 15 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-29
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col1, ( 99 ) FROM tab2 AS cor0 WHERE - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + + SUM( col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + + SUM ( col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT MIN( + + col0 ) + 58 + 39 AS col2 FROM tab2 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT MIN ( + + col0 ) + 58 + 39 AS col2 FROM tab2 AS cor0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1937
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 22 + + col1 FROM tab0
----
103
23
43

query II rowsort
SELECT DISTINCT col0, - 54 * ( + + 7 ) AS col0 FROM tab2
----
46
-378
64
-378
75
-378

query III rowsort
SELECT ALL + col0 AS col1, + 7 AS col0, - col1 AS col1 FROM tab1
----
9 values hashing to 9a5477d1fb53f75bb76ae544d8be7c84

query II rowsort
SELECT ALL + col1, 12 FROM tab0 AS cor0
----
1
12
21
12
81
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + col1 NOT BETWEEN - col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1943
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL - 20 * - COUNT( * ) + 16 AS col0 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL - 20 * - COUNT ( * ) + 16 AS col0 FROM tab2 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + + SUM( DISTINCT + + col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-1945
SELECT + + SUM ( DISTINCT + + col0 ) FROM tab2 cor0
----
185

query I rowsort
SELECT DISTINCT + - col1 + - ( col2 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT + + CAST( 20 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
43
60
78

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + + CAST ( 20 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
43
60
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) - + ( + + COUNT( * ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) - + ( + + COUNT ( * ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + col1 + col2 * - col1 AS col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT col0 * 4 FROM tab1
----
204
340
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL 2 * 38 + - - COUNT( col0 ) * + MAX( + ( + col0 ) ) * - COUNT( * ) + 11 * 3 + - - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-754

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL 2 * 38 + - - COUNT ( col0 ) * + MAX ( + ( + col0 ) ) * - COUNT ( * ) + 11 * 3 + - - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-754

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 74 + - 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT DISTINCT + 32 DIV - + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + 32 / - + col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41, 73 col0 FROM tab1
----
41
73
41
73
41
73

query I rowsort
SELECT DISTINCT 68 * 42 FROM tab0
----
2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT ALL + 90 * + col1 * + CAST( - - col1 AS SIGNED ) FROM tab1
----
17640
198810
2250

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL + 90 * + col1 * + CAST ( - - col1 AS INTEGER ) FROM tab1
----
17640
198810
2250

query I rowsort
SELECT DISTINCT - 56 * + col2 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT COUNT( ALL - col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1958
SELECT COUNT ( ALL - col1 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col0 * 80 FROM tab1 cor0
----
-4080
-6800
-7280

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL SUM( ALL + 57 ) AS col2 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL SUM ( ALL + 57 ) AS col2 FROM tab1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT + SUM( DISTINCT - col2 ) + COUNT( * ) AS col0 FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-1961
SELECT + SUM ( DISTINCT - col2 ) + COUNT ( * ) AS col0 FROM tab2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT - ( 72 ) * - + COUNT( * ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - ( 72 ) * - + COUNT ( * ) FROM tab1
----
216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1963
SELECT ALL - 78 DIV 26, col1 * - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
-3
NULL
-3
NULL
-3
NULL

skipif mysql # not compatible
query II rowsort label-1963
SELECT ALL - 78 / 26, col1 * - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
-3
NULL
-3
NULL
-3
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - col1 - + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - - COUNT( - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1965
SELECT - - COUNT ( - + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL + + col2 * + col2 * - - 56 * - col0 + - col1 FROM tab2 AS cor0
----
-1362755
-14128867
-5734477

query I rowsort
SELECT ALL - 67 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT 87 + - 25 + 74 - 28 + + - COUNT( * ) AS col1 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 87 + - 25 + 74 - 28 + + - COUNT ( * ) AS col1 FROM tab2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT DISTINCT ( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - 21 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 93 + + col2 FROM tab1
----
4839
7964
8531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT DISTINCT + CAST( + 98 AS SIGNED ) AS col2 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT + CAST ( + 98 AS INTEGER ) AS col2 FROM tab0
----
98

query I rowsort
SELECT ALL + col1 - ( 59 ) FROM tab0
----
-38
-58
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 + col1 + - col1 - 71 * - 71 col1, col2, col1 AS col2 FROM tab2
----
9 values hashing to baaec747f5520c0c32fb46007babd1a4

query I rowsort
SELECT DISTINCT col0 / + col0 AS col0 FROM tab2 WHERE NOT ( ( + col0 ) BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - + ( + col2 ) + - - 24 FROM tab2 AS cor0
----
-16
-34
1

query I rowsort
SELECT ALL + ( + col1 ) * col0 + + col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - + SUM( - 40 ) AS col2 FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-1979
SELECT - + SUM ( - 40 ) AS col2 FROM tab0 cor0
----
120

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1981
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + COUNT ( * ) col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col2, - col2 + - ( + 18 ) FROM tab1 AS cor0
----
59
-77
68
-86
96
-114

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - + 23 ) NOT IN ( 90, col2 * + 78 )
----

query I rowsort
SELECT - 64 * + - 15 FROM tab0 AS cor0
----
960
960
960

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 99 * - MIN( ALL + - 15 ) AS col1 FROM tab1
----
1485

skipif mysql # not compatible
query I rowsort label-1985
SELECT 99 * - MIN ( ALL + - 15 ) AS col1 FROM tab1
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL MIN( + - 65 ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL MIN ( + - 65 ) FROM tab1
----
-65

query I rowsort
SELECT ALL col0 * + 35 FROM tab0
----
3045
3395
525

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL COUNT( ALL 0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL COUNT ( ALL 0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL col2 * - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - COUNT( - 5 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1990
SELECT - COUNT ( - 5 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * + 4 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT ALL - CAST( + 30 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - CAST ( + 30 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ALL 50 + - col2 * col2 * + + col0 AS col1 FROM tab1
----
-295835
-420734
-469966

onlyif mysql # DIV for integer division: 
query II rowsort label-1994
SELECT col2 DIV + col0 + + 58 AS col2, + col2 * + ( + - col2 ) AS col1 FROM tab0
----
58
-100
59
-9801
61
-2209

skipif mysql # not compatible
query II rowsort label-1994
SELECT col2 / + col0 + + 58 AS col2, + col2 * + ( + - col2 ) AS col1 FROM tab0
----
58
-100
59
-9801
61
-2209

query I rowsort
SELECT col1 * + + col1 + - col0 + + col0 FROM tab2 AS cor0 WHERE - col1 * + 95 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT ( - COUNT( * ) ) col1 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1997
SELECT DISTINCT ( - COUNT ( * ) ) col1 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - col1 * ( - col1 ) * - 77 + + - 82 AS col0 FROM tab2 AS cor0
----
-200359
-345735
-456615

query I rowsort
SELECT DISTINCT - - col1 * + col1 + - - 64 * + + col2 + - + col1 FROM tab0 AS cor0
----
1060
6336
9488

query I rowsort
SELECT + + col2 * - col2 + - col0 * + + col2 AS col1 FROM tab2 AS cor0
----
-1587
-4160
-7714

query I rowsort
SELECT col2 + col1 + + col2 + + + 85 * 86 * + col1 FROM tab0 AS cor0
----
153551
592285
7509

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT ALL - - col0 DIV 61 + - + col0 * + - col2 * col2 + + 81 * - + col0 * col1 + - col0 + + col1 + 63 FROM tab2 AS cor0
----
-154669
-165624
-296691

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - - col0 / 61 + - + col0 * + - col2 * col2 + + 81 * - + col0 * col1 + - col0 + + col1 + 63 FROM tab2 AS cor0
----
-154669
-165624
-296691

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2003
SELECT * FROM tab2 AS cor0 WHERE - 76 / + CAST( + 39 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT * FROM tab2 AS cor0 WHERE - 76 / + CAST ( + 39 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + 55 + - + COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 55 + - + COUNT ( * ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col2 + + - 17 FROM tab1 cor0
----
42
51
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT COUNT( * ) * - 68 + 30 AS col2 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2006
SELECT COUNT ( * ) * - 68 + 30 AS col2 FROM tab1 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2007
SELECT ALL + 72, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
query II rowsort label-2007
SELECT ALL + 72, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
72
NULL
72
NULL
72
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2008
SELECT DISTINCT - col1 * 19 DIV + + col2 + + + col1 + - 87 + + 32 + + + 17 * - col1 AS col1, 47 FROM tab1 AS cor0
----
-136
47
-281
47
-820
47

skipif mysql # not compatible
query II rowsort label-2008
SELECT DISTINCT - col1 * 19 / + + col2 + + + col1 + - 87 + + 32 + + + 17 * - col1 AS col1, 47 FROM tab1 AS cor0
----
-136
47
-281
47
-820
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT ALL 96 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 96 / col0 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL col0 + - ( + 6 ) - + ( - + 63 ) FROM tab2 WHERE NOT + 53 BETWEEN col0 AND + + col1 * ( - 72 ) * - 70
----
121
132

query I rowsort
SELECT ALL 29 + - col0 * + 98 AS col1 FROM tab2
----
-4479
-6243
-7321

query I rowsort
SELECT - col0 * + - col1 AS col2 FROM tab0
----
1215
1827
97

query II rowsort
SELECT + col0 * + col1 AS col2, - col0 AS col2 FROM tab2
----
2346
-46
4928
-64
5025
-75

query I rowsort
SELECT DISTINCT - 87 + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT 99 * col2 * + col1 AS col0 FROM tab1
----
133056
29205
316404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 AS col0, ( col1 ) col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT - col1, - 43 AS col0 FROM tab0 AS cor0
----
-1
-43
-21
-43
-81
-43

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT col1 * - 76 * col0 FROM tab2 cor0
----
-178296
-374528
-381900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 51 col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL - MIN( + col0 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2022
SELECT ALL - MIN ( + col0 ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT DISTINCT 23, COUNT( * ) AS col0 FROM tab1
----
23
3

skipif mysql # not compatible
query II rowsort label-2023
SELECT DISTINCT 23, COUNT ( * ) AS col0 FROM tab1
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT COUNT( * ) * ( - - 91 ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-2024
SELECT COUNT ( * ) * ( - - 91 ) FROM tab2
----
273

query II rowsort
SELECT + col0, - 4 * + 48 + col0 + - col2 FROM tab2
----
46
-169
64
-168
75
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT - 35 DIV - - 44 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT - 35 / - - 44 AS col1 FROM tab0
----
0
0
0

query II rowsort
SELECT - col2 AS col0, 99 * - col0 + col0 * - 90 AS col0 FROM tab1
----
-59
-16065
-68
-17199
-96
-9639

query II rowsort
SELECT DISTINCT - col2, - col2 AS col1 FROM tab0 cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1, + 83, - + col1, + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ( - MAX( DISTINCT 64 ) ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-2030
SELECT ( - MAX ( DISTINCT 64 ) ) AS col2 FROM tab1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT - col2 * + CAST( NULL AS SIGNED ) * 88 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT - col2 * + CAST ( NULL AS INTEGER ) * 88 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2032
SELECT + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + - 62 FROM tab2 cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 79 * - col1 AS col1 FROM tab1 AS cor0
----
1106
3713
395

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL + - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - 48 * + col0 + + + col0 FROM tab0 cor0
----
-4089
-4559
-705

query I rowsort
SELECT - - 45 - - - 14 * + + 91 - 29 FROM tab1 AS cor0
----
-1258
-1258
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT CAST( NULL AS SIGNED ) - - + col2 + - 26 + + 21 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT CAST ( NULL AS INTEGER ) - - + col2 + - 26 + + 21 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 5 - - col1 AS col0 FROM tab2
----
56
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - COUNT( * ) + + 76 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2040
SELECT - COUNT ( * ) + + 76 FROM tab1
----
73

query I rowsort
SELECT ALL 79 * col1 FROM tab1
----
1106
3713
395

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + CAST( - col0 AS SIGNED ) * + + 29 * 17 + - - 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + CAST ( - col0 AS INTEGER ) * + + 29 * 17 + - - 3 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT ALL 86 AS col0, COUNT( * ) col2 FROM tab2 AS cor0
----
86
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2044
SELECT ALL 86 AS col0, COUNT ( * ) col2 FROM tab2 AS cor0
----
86
3

query II rowsort
SELECT ALL + col1 * + - col1, col2 - + col2 AS col2 FROM tab1 AS cor0
----
-196
0
-2209
0
-25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT - - COUNT( DISTINCT 80 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - - COUNT ( DISTINCT 80 ) AS col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 97 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT COUNT( - ( col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2048
SELECT COUNT ( - ( col0 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + - 10 * 54 * - col0 FROM tab0 AS cor0
----
46980
52380
8100

query I rowsort
SELECT - col1 * - - ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query II rowsort
SELECT 89 * - col0, + col1 FROM tab0 cor0
----
-1335
81
-7743
21
-8633
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + - + 75 + col0 AS col0 FROM tab1
----
69
72
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col1 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ALL + 24 * 4 + - col1 + + + 24 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 * col0
----

skipif mysql # not compatible
query I rowsort label-2056
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT 53 AS col2, + SUM( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
53
103

skipif mysql # not compatible
query II rowsort label-2057
SELECT 53 AS col2, + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
53
103

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= + 45 * + ( + col1 )
----

query I rowsort
SELECT ALL - - col1 + - 63 FROM tab2 AS cor0
----
-12
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL + - 39 + - - COUNT( * ) col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2060
SELECT ALL + - 39 + - - COUNT ( * ) col0 FROM tab2 AS cor0
----
-36

query II rowsort
SELECT col0 + + 4 AS col0, + 20 FROM tab1 cor0
----
55
20
89
20
95
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col0 * 21 + - col2 AS col2 FROM tab2 AS cor0
----
-1384
-1633
-989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT - CAST( NULL AS SIGNED ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - CAST ( NULL AS INTEGER ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + 61 AS col0 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT DISTINCT + col0 * - 28 + col1 * + 47 AS col0 FROM tab1 AS cor0
----
-2145
-339
-770

query I rowsort
SELECT ALL - col1 + + + 96 - - col2 * - 56 FROM tab0 AS cor0
----
-2617
-485
-5449

query II rowsort
SELECT - + 69 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

query I rowsort
SELECT ALL - col1 * + col0 - col0 + 61 AS col1 FROM tab0 AS cor0
----
-1169
-133
-1853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col2 FROM tab1
----
27
27
27

query II rowsort
SELECT DISTINCT + 39 - - 44, col1 AS col0 FROM tab0
----
83
1
83
21
83
81

query III rowsort
SELECT * FROM tab2 WHERE - + 10 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT ALL + col1 - + col2 DIV - - 13 + - + col1 AS col1 FROM tab2
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + col1 - + col2 / - - 13 + - + col1 AS col1 FROM tab2
----
-1
-3
-4

query I rowsort
SELECT 69 - col0 AS col0 FROM tab1
----
-16
-22
18

query I rowsort
SELECT 85 * - col1 * + - 0 * + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT + col2 DIV - 19 col2 FROM tab0 cor0
----
-2
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2076
SELECT + col2 / - 19 col2 FROM tab0 cor0
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL + COUNT( + 22 ) * + MAX( ALL + + col2 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL + COUNT ( + 22 ) * + MAX ( ALL + + col2 ) FROM tab0 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + 47 AS col0 FROM tab0 AS cor0
----
2209
4653
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 77 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 77 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ( - MIN( + col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2082
SELECT ( - MIN ( + col0 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT ALL - 39 * + + COUNT( * ) AS col2 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - 39 * + + COUNT ( * ) AS col2 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT 26 * + 59 FROM tab0 AS cor0
----
1534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT - - col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 / - - col1
----

skipif mysql # not compatible
query I rowsort label-2085
SELECT - - col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - col1 / - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT - + ( + 13 ) * + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT - + ( + 13 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2087
SELECT ALL + 77 DIV COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + 77 / COUNT ( * ) FROM tab2 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + col0 AS col1, 22 FROM tab1 AS cor0
----
51
22
85
22
91
22

query I rowsort
SELECT + 53 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2091
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN + - CAST( NULL AS SIGNED ) AND + - 50 )
----

skipif mysql # not compatible
query III rowsort label-2091
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND + - 50 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - + 18 + + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 19 * col2 FROM tab0 AS cor0
----
1978
277
908

query I rowsort
SELECT - 49 * - - col0 AS col1 FROM tab0
----
-4263
-4753
-735

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col1, ( + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 col1, + col0 FROM tab2
----
1173
46
3080
64
3886
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT + 29 * COUNT( - 47 ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 29 * COUNT ( - 47 ) AS col0 FROM tab2
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <= NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL + COUNT( * ) * + ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2099
SELECT ALL + COUNT ( * ) * + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT 3 * + col1 * - 47 AS col1 FROM tab1
----
-1974
-6627
-705

query I rowsort
SELECT ALL 1 + + + col0 FROM tab2
----
47
65
76

query I rowsort
SELECT - 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT 52 * + - col1 FROM tab2
----
-2652
-3484
-4004

query I rowsort
SELECT + - col2 - + 5 AS col0 FROM tab0 AS cor0
----
-104
-15
-52

query I rowsort
SELECT - - col1 - col2 + 93 - - col1 FROM tab1 AS cor0
----
119
25
44

query I rowsort
SELECT DISTINCT + 46 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
4002
4462
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT - ( SUM( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - ( SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 67 + - 15 * + 81 AS col0 FROM tab0
----
-1148
-1148
-1148

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT DISTINCT + SUM( ( - ( + col0 ) ) ) - + ( + - COUNT( * ) ) col0, + COUNT( * ) AS col1 FROM tab0
----
-196
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2109
SELECT DISTINCT + SUM ( ( - ( + col0 ) ) ) - + ( + - COUNT ( * ) ) col0, + COUNT ( * ) AS col1 FROM tab0
----
-196
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN col1 AND - col1
----

query I rowsort
SELECT DISTINCT col1 - + - 21 AS col1 FROM tab2
----
72
88
98

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ( + ( + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2113
SELECT ( + ( + COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - 96 * - ( - + col0 ) FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL < - col2
----

query I rowsort
SELECT ALL + col1 * + col1 * + 97 AS col1 FROM tab1
----
19012
214273
2425

query II rowsort
SELECT ALL col2 * col1 * col0 * col0 AS col0, + 34 AS col1 FROM tab2
----
12615680
34
21858750
34
2482068
34

query I rowsort
SELECT + col1 * - + ( + 28 ) - - + 64 AS col2 FROM tab2 AS cor0
----
-1364
-1812
-2092

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - 16 * + 46 FROM tab0 AS cor0
----
-736
-736
-736

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - 66 NOT BETWEEN - col0 * - - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 + + 15 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT - col1 * - + ( - col1 ) - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT - col1 * - + ( - col1 ) - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 91 * - - 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT DISTINCT 37 DIV col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT 37 / col1 AS col2 FROM tab2
----
0

query I rowsort
SELECT col0 + - 3 AS col0 FROM tab1
----
48
82
88

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - 92 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 79 <= + 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT + 50 DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + 50 / - col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col2, col0 * + + col1 col1 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query I rowsort
SELECT + col1 / + 79 + + col1 FROM tab0 cor0 WHERE + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 + - + col1 col2 FROM tab1 cor0
----
-53
-62
-95

query I rowsort
SELECT col2 + + col0 * 19 AS col1 FROM tab1
----
1065
1674
1797

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2134
SELECT DISTINCT col0 DIV CAST( 91 AS SIGNED ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT col0 / CAST ( 91 AS INTEGER ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT + COUNT( * ) * + MIN( 73 ) FROM tab0 WHERE NOT + col2 * + col2 NOT BETWEEN ( NULL ) AND ( - col2 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT + COUNT ( * ) * + MIN ( 73 ) FROM tab0 WHERE NOT + col2 * + col2 NOT BETWEEN ( NULL ) AND ( - col2 * col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT MIN( ( - col1 ) ) * - 66 AS col0 FROM tab2
----
5082

skipif mysql # not compatible
query I rowsort label-2136
SELECT MIN ( ( - col1 ) ) * - 66 AS col0 FROM tab2
----
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL - SUM( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - SUM ( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * 84 AS col2 FROM tab0
----
1764
6804
84

query I rowsort
SELECT ALL col1 + col1 * + col0 FROM tab2
----
2397
5005
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT ALL col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT SUM( DISTINCT col2 ) + COUNT( * ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
124

skipif mysql # not compatible
query I rowsort label-2141
SELECT SUM ( DISTINCT col2 ) + COUNT ( * ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
124

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE ( 30 - + col0 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2143
SELECT * FROM tab1 WHERE + CAST( + 13 AS SIGNED ) + + 32 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2143
SELECT * FROM tab1 WHERE + CAST ( + 13 AS INTEGER ) + + 32 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( + 21 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2145
SELECT + ( COUNT( * ) ) * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT + ( COUNT ( * ) ) * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 55 AS col0 FROM tab1 WHERE NOT NULL <> ( + col1 + - 91 * col2 )
----

query I rowsort
SELECT DISTINCT col1 * + 89 FROM tab1
----
1246
4183
445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT DISTINCT 97 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT 97 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 62 * 67
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 / + 46 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT 72 DIV + ( col0 ) - col1 FROM tab0
----
-1
-21
-77

skipif mysql # not compatible
query I rowsort label-2151
SELECT 72 / + ( col0 ) - col1 FROM tab0
----
-1
-21
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT 21 DIV col0 - - col2 * col1 col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2152
SELECT 21 / col0 - - col2 * col1 col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL col1 + + 40 AS col1 FROM tab1 WHERE NULL IN ( + col2 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT col0 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND 68 * CAST( 43 / + ( - 34 ) AS SIGNED )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2154
SELECT col0 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND 68 * CAST ( 43 / + ( - 34 ) AS INTEGER )
----
51
85
91

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE 70 * col1 <> col0
----
59
68
96

query I rowsort
SELECT DISTINCT - 73 FROM tab1 WHERE ( 60 ) <> ( 96 + col0 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - COUNT( * ) * 27 + + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - COUNT ( * ) * 27 + + COUNT ( * ) FROM tab0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT - col1 + CAST( col2 + + col1 * col2 AS SIGNED ) FROM tab1
----
1426
3217
349

skipif mysql # not compatible
query I rowsort label-2158
SELECT - col1 + CAST ( col2 + + col1 * col2 AS INTEGER ) FROM tab1
----
1426
3217
349

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT + COUNT( DISTINCT 2 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + COUNT ( DISTINCT 2 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT COUNT( * ) * + 91 FROM tab0 cor0 WHERE NOT ( + 10 * col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT COUNT ( * ) * + 91 FROM tab0 cor0 WHERE NOT ( + 10 * col1 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 * 30 FROM tab2 AS cor0 WHERE NOT - col0 + + ( col2 ) IS NULL
----
-1200
-1740
-690

query I rowsort
SELECT DISTINCT 7 FROM tab2 AS cor0 WHERE NOT NULL <= 82
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 52 <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 52 <> - col0
----
0

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( col2 + 32 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2167
SELECT * FROM tab1 cor0 WHERE NOT NULL >= ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2167
SELECT * FROM tab1 cor0 WHERE NOT NULL >= ( CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT ALL CAST( col0 AS SIGNED ) * 99 FROM tab2
----
4554
6336
7425

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL CAST ( col0 AS INTEGER ) * 99 FROM tab2
----
4554
6336
7425

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - col1 * + col1 + + 47 * - col0 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - 85 FROM tab1 AS cor0 CROSS JOIN tab1
----
-85

query I rowsort
SELECT - 9 * col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-459
-603
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL + ( + SUM( DISTINCT - col0 ) ) FROM tab2 WHERE NULL BETWEEN col1 * col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + ( + SUM ( DISTINCT - col0 ) ) FROM tab2 WHERE NULL BETWEEN col1 * col0 AND NULL
----
NULL

query I rowsort
SELECT ALL + col0 + - 81 AS col1 FROM tab1 AS cor0
----
-30
10
4

query I rowsort
SELECT DISTINCT - col1 + + 76 FROM tab0 AS cor0
----
-5
55
75

query I rowsort
SELECT DISTINCT + ( col1 ) * + 21 AS col0 FROM tab1 cor0
----
105
294
987

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2176
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= - CAST( + 98 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2176
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= - CAST ( + 98 AS REAL )
----
0

query I rowsort
SELECT ALL - col1 * col2 + - 31 AS col2 FROM tab2 AS cor0
----
-1204
-3111
-3917

query I rowsort
SELECT - col1 * - 57 FROM tab1 AS cor0
----
2679
285
798

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN ( - ( 62 ) * col2 ) AND 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + + 99 + col2 AS col1 FROM tab1
----
-5782
-6664
-9408

query III rowsort
SELECT * FROM tab2 WHERE col2 / col0 BETWEEN NULL AND ( + col0 + + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 94 ) * col0 + col1 AS col2 FROM tab2
----
4375
6093
7117

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab2 WHERE NOT ( NULL ) > ( - col1 - col2 )
----

query I rowsort
SELECT col1 + - ( - col2 ) FROM tab1
----
110
115
64

query I rowsort
SELECT col2 + - + 40 AS col1 FROM tab0
----
-30
59
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT DISTINCT + ( 91 ) DIV + ( col1 ) + + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
102
69
77

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT + ( 91 ) / + ( col1 ) + + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
102
69
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL - 89 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - 89 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + 96 <= NULL
----

query I rowsort
SELECT + ( + col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) > ( 74 / - 83 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT - MIN( DISTINCT - + ( - 2 ) ) DIV + 34 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2192
SELECT - MIN ( DISTINCT - + ( - 2 ) ) / + 34 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT ALL + ( col0 ) DIV - col1 + col1 AS col2 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + ( col0 ) / - col1 + col1 AS col2 FROM tab2 AS cor0
----
51
66
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 15 / + col1 IS NULL
----

query I rowsort
SELECT 30 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL col0 * - - 69 + col1 * - col2 FROM tab1
----
2175
3083
5570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + - 54 col1 FROM tab1
----
-4331
-479
-768

query I rowsort
SELECT 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT - 22 + - 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

query I rowsort
SELECT - col2 - 70 * + ( col1 ) FROM tab2 AS cor0
----
-3593
-4748
-5430

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 24 * + col0 AS col0 FROM tab0 AS cor0
----
-2088
-2328
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT - col0 * col1 * + CAST( ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-2203
SELECT - col0 * col1 * + CAST ( ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - + MAX( col2 ) * ( + 86 ) FROM tab0 AS cor0
----
-8514

skipif mysql # not compatible
query I rowsort label-2204
SELECT - + MAX ( col2 ) * ( + 86 ) FROM tab0 AS cor0
----
-8514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 74 col0 FROM tab1 cor0 WHERE NOT NULL <> - 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col2 FROM tab0 cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 57 ) NOT BETWEEN + 71 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 3 + + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 7 * col1 * - 6 + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 96 + - 87 * + 70 FROM tab2 WHERE NOT col0 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT ALL + 83 DIV + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + 83 / + COUNT ( * ) FROM tab2
----
27

query I rowsort
SELECT DISTINCT - 32 * 19 AS col0 FROM tab1 WHERE NOT ( + + 8 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col2 ) = ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2214
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT BETWEEN - + CAST( + ( - ( col0 ) ) AS DECIMAL ) / col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT BETWEEN - + CAST ( + ( - ( col0 ) ) AS REAL ) / col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT - 86 * - COUNT( * ) FROM tab2 cor0
----
258

skipif mysql # not compatible
query I rowsort label-2215
SELECT - 86 * - COUNT ( * ) FROM tab2 cor0
----
258

query I rowsort
SELECT 27 / 18 FROM tab1 AS cor0 WHERE NOT - col1 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT + + col0 DIV - col0 + col2 * - 33 + - - col2 FROM tab1 AS cor0
----
-1889
-2177
-3073

skipif mysql # not compatible
query I rowsort label-2218
SELECT + + col0 / - col0 + col2 * - 33 + - - col2 FROM tab1 AS cor0
----
-1889
-2177
-3073

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 31 * - col0 IS NULL
----

query I rowsort
SELECT - ( 81 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-128
-180
-91

query I rowsort
SELECT - - 61 + - + col2 AS col1 FROM tab0 AS cor0
----
-38
14
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2223
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) DIV + ( - COUNT( * ) ) FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-2223
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) / + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL col2 + col1 + + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - col1 )
----

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL col2 + col1 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 15 ) = NULL
----

query I rowsort
SELECT ALL 12 + col1 AS col2 FROM tab1
----
17
26
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + COUNT( DISTINCT - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2227
SELECT + COUNT ( DISTINCT - - col0 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 24 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1 WHERE NOT ( - - 28 * - col1 + col0 ) IS NULL
----
16

query I rowsort
SELECT DISTINCT + 9 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2231
SELECT + + 11, MAX( DISTINCT - col1 ) + - 72 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
11
-80

skipif mysql # not compatible
query II rowsort label-2231
SELECT + + 11, MAX ( DISTINCT - col1 ) + - 72 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
11
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT ALL CAST( NULL AS SIGNED ) * - - col0 / + - col1 * + col1 AS col2 FROM tab0 cor0 WHERE NOT ( - ( + col2 ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 / + - col1 * + col1 AS col2 FROM tab0 cor0 WHERE NOT ( - ( + col2 ) ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = ( - col0 )
----

query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 - col1 FROM tab0 AS cor0
----
-259
-7580
-9311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2235
SELECT * FROM tab0 AS cor0 WHERE + CAST( - col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2235
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) >= NULL
----

query I rowsort
SELECT - 25 FROM tab0 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT DISTINCT + MIN( - col2 ) FROM tab1 WHERE NULL BETWEEN - col2 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 WHERE NULL BETWEEN - col2 AND col1
----
NULL

query I rowsort
SELECT col1 + 69 + - col2 + + - col1 + + col0 AS col2 FROM tab0
----
146
37
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT + - 57 * + MAX( - 82 ) FROM tab0 AS cor0
----
4674

skipif mysql # not compatible
query I rowsort label-2239
SELECT + - 57 * + MAX ( - 82 ) FROM tab0 AS cor0
----
4674

query I rowsort
SELECT ALL - - 3 FROM tab1 AS cor0 WHERE NOT ( - 1 BETWEEN NULL AND - + 72 )
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 3 / col0 + + col1 BETWEEN ( col1 ) AND col2
----
3

skipif mysql # not compatible
query I rowsort label-2241
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 3 / col0 + + col1 BETWEEN ( col1 ) AND col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT CAST( - 82 AS SIGNED ) BETWEEN NULL AND ( - col0 * col1 + - - col2 - + 49 / col0 )
----
4

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT CAST ( - 82 AS INTEGER ) BETWEEN NULL AND ( - col0 * col1 + - - col2 - + 49 / col0 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT ALL + col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col2 * - 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - + 52 IN ( 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 42 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT col2 DIV + 73 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2249
SELECT col2 / + 73 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT - MIN( - + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2250
SELECT - MIN ( - + col0 ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 * - col1 > - + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2252
SELECT 7 DIV - MIN( DISTINCT + col2 ) AS col0, COUNT( * ) * + 2 FROM tab1
----
0
6

skipif mysql # not compatible
query II rowsort label-2252
SELECT 7 / - MIN ( DISTINCT + col2 ) AS col0, COUNT ( * ) * + 2 FROM tab1
----
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL - CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 65 * col1 - - col2 <> NULL
----

query I rowsort
SELECT - 14 * - col0 + + - 67 AS col2 FROM tab2
----
577
829
983

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 27 + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT 9 * + ( COUNT( * ) ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT 9 * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
27

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 ) = + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 90 + + 1 + 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 59 * col0 * - col0 * col0 + col0 FROM tab1
----
-36233290
-44460598
-7826358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + + col0 col1 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT COUNT( * ) + - + 13 AS col1 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-2264
SELECT COUNT ( * ) + - + 13 AS col1 FROM tab1
----
-10

query I rowsort
SELECT ALL 87 * + 80 + + col2 * + col2 FROM tab2
----
10324
7489
8560

query I rowsort
SELECT - 93 + - - col0 FROM tab2
----
-18
-29
-47

query I rowsort
SELECT DISTINCT col1 - + 90 AS col2 FROM tab1
----
-43
-76
-85

query I rowsort
SELECT ALL 81 * + col1 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL 8 * COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL 8 * COUNT ( * ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL MAX( - + col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL MAX ( - + col1 ) AS col1 FROM tab1 cor0
----
-5

query I rowsort
SELECT - ( - - 23 ) * - col0 FROM tab2 AS cor0
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT - 21 * + COUNT( * ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - 21 * + COUNT ( * ) FROM tab0 AS cor0
----
-63

query II rowsort
SELECT - 2 AS col1, 90 - - col1 FROM tab1
----
-2
104
-2
137
-2
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 21 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT ALL + + 11 DIV + ( + col1 ) * 7 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + + 11 / + ( + col1 ) * 7 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - 66 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT - col2 + - col2 FROM tab1 cor0 WHERE NOT - col1 > 69
----
-118
-136
-192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 64 + + - 30 >= - col2 + - col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - COUNT( ( + + col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2280
SELECT - COUNT ( ( + + col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2282
SELECT ALL col1, CAST( NULL AS SIGNED ) * - + 11 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2282
SELECT ALL col1, CAST ( NULL AS INTEGER ) * - + 11 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT - 61 * - col0 + - 54 FROM tab0 AS cor0
----
5253
5863
861

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL - SUM( 18 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL - SUM ( 18 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 - - 43 NOT BETWEEN col2 * - ( + + col0 ) / 60 AND - 57
----

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NULL <= + - col2
----

query I rowsort
SELECT 60 + - + col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col1 * + + col0 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT col0 DIV - col0 + - col0 col1 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2292
SELECT DISTINCT col0 / - col0 + - col0 col1 FROM tab0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL - COUNT( * ) * - 10 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - COUNT ( * ) * - 10 FROM tab1 AS cor0
----
30

query I rowsort
SELECT + 39 AS col2 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT 59 + + col0 * - + ( + + ( + col2 ) ) - col1 FROM tab2 AS cor0
----
-1050
-2578
-4358

onlyif mysql # DIV for integer division: 
query II rowsort label-2296
SELECT ALL + col2 + + - col2 + - col0 * 82 DIV - col0 AS col1, + 10 AS col0 FROM tab1 AS cor0
----
82
10
82
10
82
10

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL + col2 + + - col2 + - col0 * 82 / - col0 AS col1, + 10 AS col0 FROM tab1 AS cor0
----
82
10
82
10
82
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2297
SELECT col2 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT col2 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + - col1 + + col1 * - - ( col0 ) * - + col2 col0 FROM tab1
----
-25014
-290817
-68492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + + 94 - + col0 + + + 18 * - - 3 col2 FROM tab1 AS cor0
----
155
161
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - MAX( - 92 ) FROM tab0 AS cor0 WHERE 91 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT - MAX ( - 92 ) FROM tab0 AS cor0 WHERE 91 * - col0 IS NULL
----
NULL

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL ( + col2 ) + - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT + - col2 + - CAST( NULL AS SIGNED ) * col2 * + 44 * + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2303
SELECT + - col2 + - CAST ( NULL AS INTEGER ) * col2 * + 44 * + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT - CAST( NULL AS SIGNED ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT - CAST ( NULL AS INTEGER ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + 32 AS col2 FROM tab0
----
131
42
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + 30 + - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT MIN( 36 ) - + 65 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-2309
SELECT MIN ( 36 ) - + 65 FROM tab2
----
-29

query I rowsort
SELECT ALL col2 * - col0 - col1 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - 78 - - MAX( DISTINCT + col1 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2311
SELECT - 78 - - MAX ( DISTINCT + col1 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT + ( + col2 ) - + col1 AS col2 FROM tab0
----
-11
-34
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 / 25 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT ALL - COUNT( * ) * + + 75 + + 42 + AVG ( col1 ) FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL - COUNT ( * ) * + + 75 + + 42 + AVG ( col1 ) FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( + + 48 ) * - - 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
816

query III rowsort
SELECT ALL * FROM tab0 WHERE - 52 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 * 80 AS col0 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT ALL + col1 * - 97 * + col2 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-113781
-298760
-376942

query II rowsort
SELECT DISTINCT col2 AS col0, 87 AS col1 FROM tab2 cor0
----
23
87
40
87
58
87

query II rowsort
SELECT ALL 82 * col2, col2 FROM tab0
----
3854
47
8118
99
820
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT + 30 DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 30 / + col2 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT 9 * - col2 FROM tab2
----
-207
-360
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT - 97 / CAST( NULL AS SIGNED ) / MIN( DISTINCT + col2 ) * + 44 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 97 / CAST ( NULL AS INTEGER ) / MIN ( DISTINCT + col2 ) * + 44 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( 66 ) * col0 + 5 FROM tab2
----
3041
4229
4955

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT - 97 DIV col2 col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2326
SELECT DISTINCT - 97 / col2 col1 FROM tab1
----
-1

query I rowsort
SELECT + - col0 + + col1 AS col0 FROM tab2 WHERE NOT ( - col2 + col0 ) = col2
----
-8
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT MIN( ALL - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2328
SELECT MIN ( ALL - col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + col2 * - col1 * - col2 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - col1 + + 59 * - - 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) + + + ( - + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + ( + + ( col0 ) ) ) col1 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 83 * + col0, + col2 col0 FROM tab0
----
1245
47
7221
10
8051
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab2 WHERE - + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab2 WHERE - + col1 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT ALL 13 DIV + + col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL 13 / + + col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + + col0 * - - 9 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT + col2 DIV 97 DIV - + 48 + + 61 FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2338
SELECT + col2 / 97 / - + 48 + + 61 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT 30 + - + col2 AS col1 FROM tab0
----
-17
-69
20

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - + col2 * + 19 * + - 26 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 13 AS col2, + 86 * + + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
13
3956
13
5504
13
6450

query I rowsort
SELECT DISTINCT - 76 + + col1 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-155
-2204
-9876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) DIV + MIN( - col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2344
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) / + MIN ( - col0 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col2 + ( + - col2 ) FROM tab2
----
-116
-46
-80

query I rowsort
SELECT ALL 91 FROM tab1 WHERE - - 25 IS NOT NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT - 3 + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 3 + + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT + 68 + + + ( - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + ( + ( - COUNT( * ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 68 + + + ( - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + ( + ( - COUNT ( * ) ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col1 ) col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE ( - - ( + + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + ( col2 ) ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 + col1 / + col1, - col1 - - 36 * + - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 73 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col1 FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col1 * - col1 + 19 - - - 88
----

query I rowsort
SELECT - 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - + ( - MIN( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2356
SELECT - + ( - MIN ( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 21 * 48 FROM tab2 AS cor0
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT - CAST( + - SUM( DISTINCT - col2 ) AS SIGNED ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2359
SELECT - CAST ( + - SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL + - COUNT( * ) + + + 27 AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + - COUNT ( * ) + + + 27 AS col1 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT - 35 * + 22 AS col2 FROM tab1 cor0 WHERE NOT ( 20 - col0 NOT BETWEEN + - 44 AND NULL )
----

query I rowsort
SELECT col2 + + col0 + + - col1 AS col0 FROM tab2
----
18
27
66

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 91 IN ( col0 * 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2364
SELECT * FROM tab0 WHERE NOT + col2 - CAST( col2 AS SIGNED ) * 36 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2364
SELECT * FROM tab0 WHERE NOT + col2 - CAST ( col2 AS INTEGER ) * 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 95 col1 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2366
SELECT - 97, CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - + 72 - - + 77 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2366
SELECT - 97, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - + 72 - - + 77 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 84 + - col1 * + col1 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 2 * 74 BETWEEN NULL AND col1 * 47
----

query I rowsort
SELECT 20 * col1 FROM tab0
----
1620
20
420

query III rowsort
SELECT * FROM tab1 WHERE - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 9 >= - 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2372
SELECT ALL + - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2372
SELECT ALL + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 - col2 * col2 * - col1 * - 94 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-12128219
-1635990
-20428788

query I rowsort
SELECT DISTINCT - col0 * col0 - + col1 AS col2 FROM tab1
----
-2615
-7230
-8328

query I rowsort
SELECT + 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col2, + 50 AS col1 FROM tab2 AS cor0
----
195
50

skipif mysql # not compatible
query II rowsort label-2376
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col2, + 50 AS col1 FROM tab2 AS cor0
----
195
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2377
SELECT COUNT( * ) DIV + - CAST( + SUM( ALL + - 19 ) AS SIGNED ) + - 51 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( * ) / + - CAST ( + SUM ( ALL + - 19 ) AS INTEGER ) + - 51 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + col0 * + - col1 * 8 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3400
-34216
-5712

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + COUNT( * ) + - - MIN( ALL 48 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2379
SELECT + COUNT ( * ) + - - MIN ( ALL 48 ) AS col0 FROM tab2 cor0
----
51

query I rowsort
SELECT + 42 * + 7 FROM tab0 AS cor0
----
294
294
294

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT MIN( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT MIN ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 61 * + 14 AND 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + SUM( - col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-2383
SELECT + SUM ( - col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT ALL col2 + ( 17 ) FROM tab0
----
116
27
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 88 col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2386
SELECT DISTINCT + MIN( col2 ) col2, + COUNT( * ) + - CAST( NULL AS DECIMAL ) + + 99 * - SUM( 31 ) FROM tab2 AS cor0
----
23
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2386
SELECT DISTINCT + MIN ( col2 ) col2, + COUNT ( * ) + - CAST ( NULL AS REAL ) + + 99 * - SUM ( 31 ) FROM tab2 AS cor0
----
23
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 60 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT - ( 35 ) DIV COUNT( * ) AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2388
SELECT - ( 35 ) / COUNT ( * ) AS col0 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2389
SELECT ALL + MIN( DISTINCT - ( - col0 ) ), - COUNT( * ) AS col2 FROM tab2
----
46
-3

skipif mysql # not compatible
query II rowsort label-2389
SELECT ALL + MIN ( DISTINCT - ( - col0 ) ), - COUNT ( * ) AS col2 FROM tab2
----
46
-3

query I rowsort
SELECT DISTINCT - ( ( 68 ) ) FROM tab0 AS cor0
----
-68

query I rowsort
SELECT ALL + ( col1 ) + + 63 AS col1 FROM tab0
----
144
64
84

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - col2 ) NOT IN ( - col1, 57, + + col2 * - col2 * - + 41 * + col2, + 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 77 * - col2 FROM tab1
----
376992
386155
476476

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT col2 DIV - ( - - col0 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT col2 / - ( - - col0 ) FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL col1 * - col1 + 36 FROM tab1
----
-160
-2173
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT - COUNT( ALL + col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT - COUNT( * ) + COUNT( * ) AS col1, - 98 FROM tab2
----
0
-98

skipif mysql # not compatible
query II rowsort label-2397
SELECT - COUNT ( * ) + COUNT ( * ) AS col1, - 98 FROM tab2
----
0
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT + col2 DIV + 31 + - - col1 AS col1 FROM tab2
----
51
68
78

skipif mysql # not compatible
query I rowsort label-2398
SELECT + col2 / + 31 + - - col1 AS col1 FROM tab2
----
51
68
78

query I rowsort
SELECT ALL + 75 * - col0 FROM tab2
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( - 20 ) + - col1 * - col1 col2, 46 FROM tab2 cor0
----
2581
46
4469
46
5909
46

query I rowsort
SELECT DISTINCT 70 + + col1 - + 93 AS col0 FROM tab2 AS cor0
----
28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL + CAST( NULL AS SIGNED ) - - 60 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + CAST ( NULL AS INTEGER ) - - 60 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2403
SELECT + 24 AS col0, col1 + - + col0 + ( + col2 ) DIV - col2 FROM tab0
----
24
-67
24
-97
24
65

skipif mysql # not compatible
query II rowsort label-2403
SELECT + 24 AS col0, col1 + - + col0 + ( + col2 ) / - col2 FROM tab0
----
24
-67
24
-97
24
65

query III rowsort
SELECT * FROM tab2 WHERE - 49 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 + + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT + col0 * - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + col0 * - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - 11 - 85 FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 / - col0 - - + 69 NOT IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT - + COUNT( * ) + 50 AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - + COUNT ( * ) + 50 AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT + 16 + + + 78 FROM tab0 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

query I rowsort
SELECT - col0 * + col0 * + col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT 94 * + 75 FROM tab0 AS cor0
----
7050

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 = + col1 + + col1 * - col0 + ( - - 88 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2415
SELECT DISTINCT + 7 DIV + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + 7 / + col2 AS col2 FROM tab1
----
0

query II rowsort
SELECT ALL col2 AS col0, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL - 67 * + 77 AS col0 FROM tab2 AS cor0
----
-5159
-5159
-5159

query I rowsort
SELECT col0 * - col1 * - - ( + col1 ) FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT + 26 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2420
SELECT ALL MIN( DISTINCT col1 ) AS col0, - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL MIN ( DISTINCT col1 ) AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - COUNT( + - 62 ) + - 65 AS col1 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2421
SELECT - COUNT ( + - 62 ) + - 65 AS col1 FROM tab0 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 74 col0 FROM tab0 AS cor0
----
155
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT - MIN( + + col2 ) + 31 * + COUNT( * ) * - ( 6 ) FROM tab2 AS cor0
----
-581

skipif mysql # not compatible
query I rowsort label-2423
SELECT - MIN ( + + col2 ) + 31 * + COUNT ( * ) * - ( 6 ) FROM tab2 AS cor0
----
-581

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - 23 * + + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 68 * + ( - col0 ) FROM tab0 AS cor0
----
1020
5916
6596

query I rowsort
SELECT DISTINCT - 53 + + 7 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 25 + + 45 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT ALL 0 + 46 AS col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + 74 + - 89 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE 1 = + + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + SUM( + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + SUM ( + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL - col0 * + 99 + + + col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - col0 * + 99 + + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 * - - col0 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2434
SELECT col0 AS col0, 90 * + - 2 * ( + + CAST( NULL AS SIGNED ) ) * col1 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2434
SELECT col0 AS col0, 90 * + - 2 * ( + + CAST ( NULL AS INTEGER ) ) * col1 AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + 2 * col2 * - col0 + - ( + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT - 96 - + + COUNT( * ) - - + COUNT( * ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT - 96 - + + COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab0
----
-96

query I rowsort
SELECT ALL 33 - + - col0 + 76 FROM tab0
----
124
196
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT ALL + - CAST( NULL AS SIGNED ) - + + 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL + - CAST ( NULL AS INTEGER ) - + + 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2439
SELECT col0 * CAST( NULL AS DECIMAL ) * - - col1 / + + 48 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT col0 * CAST ( NULL AS REAL ) * - - col1 / + + 48 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT ALL col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55 col2, col0 FROM tab0
----
55
15
55
87
55
97

query I rowsort
SELECT DISTINCT - 8 * - + 84 AS col1 FROM tab2
----
672

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2443
SELECT DISTINCT * FROM tab1 WHERE + col2 > - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2443
SELECT DISTINCT * FROM tab1 WHERE + col2 > - + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + 25 * + col1 AS col0 FROM tab1
----
1175
125
350

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT - 59 * COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - 59 * COUNT ( * ) FROM tab1
----
-177

query I rowsort
SELECT DISTINCT - 14 * 49 FROM tab1
----
-686

query II rowsort
SELECT col1, col0 - + ( - col2 ) + + col2 * + col1 AS col1 FROM tab1
----
14
1491
47
3355
5
439

query I rowsort
SELECT ( + ( col0 ) ) * - - col2 AS col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 > NULL
----

query I rowsort
SELECT ( - - 48 ) AS col1 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT - 46 * - col0 * + 68 * + col0 AS col2 FROM tab2
----
12812288
17595000
6618848

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT SUM( - 10 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2452
SELECT SUM ( - 10 ) FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2453
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2453
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 + - 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 ALL col0 * - col2 + col2 - + + col1 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2455
SELECT * FROM tab1 WHERE NOT + col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2455
SELECT * FROM tab1 WHERE NOT + col0 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT + 45 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2456
SELECT + 45 / - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - - COUNT( * ) - - SUM( ALL + - col0 ) col2 FROM tab0 cor0 WHERE NOT ( NOT col0 IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2457
SELECT ALL - - COUNT ( * ) - - SUM ( ALL + - col0 ) col2 FROM tab0 cor0 WHERE NOT ( NOT col0 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT MIN( col2 ) AS col1 FROM tab0 AS cor0 WHERE + col1 * col1 + + col0 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-2458
SELECT MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE + col1 * col1 + + col0 IS NOT NULL
----
10

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 2 > NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - MIN( - col2 ) + ( COUNT( * ) ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - MIN ( - col2 ) + ( COUNT ( * ) ) FROM tab1 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT DISTINCT + col0 DIV col2 + 7 AS col2 FROM tab1 cor0
----
7
8

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + col0 / col2 + 7 AS col2 FROM tab1 cor0
----
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - + COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2463
SELECT - + COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 45 + col0 + col0 AS col0 FROM tab2
----
137
173
195

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT DISTINCT 23 - - 37 AS col1, COUNT( * ) AS col1 FROM tab1
----
60
3

skipif mysql # not compatible
query II rowsort label-2465
SELECT DISTINCT 23 - - 37 AS col1, COUNT ( * ) AS col1 FROM tab1
----
60
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT MIN( - 3 ) + 57 + + - 68 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT MIN ( - 3 ) + 57 + + - 68 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + 29 + + - SUM( ALL - + col1 ) AS col2 FROM tab2
----
224

skipif mysql # not compatible
query I rowsort label-2467
SELECT + 29 + + - SUM ( ALL - + col1 ) AS col2 FROM tab2
----
224

query I rowsort
SELECT 56 + + - 50 AS col1 FROM tab1
----
6
6
6

query II rowsort
SELECT col1, - col0 * 62 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
-2852
67
-4650
77
-3968

query I rowsort
SELECT DISTINCT - col1 + + + col2 * + 64 AS col2 FROM tab1 cor0
----
3771
4305
6130

query I rowsort
SELECT ALL + 3 * - ( col1 ) AS col2 FROM tab0
----
-243
-3
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 68 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT + 60 * - col0 * - CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-42300
-52200
-576180

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 60 * - col0 * - CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-42300
-52200
-576180

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT - ( - - 3 ) * 92 FROM tab1
----
-276
-276
-276

query I rowsort
SELECT + col0 * - 91 FROM tab2
----
-4186
-5824
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL CAST( NULL AS SIGNED ) * + col0 * + + 41 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2478
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 * + + 41 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + ( 46 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 15 * + + 10, 95 AS col0 FROM tab0
----
150
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - - col1, col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2482
SELECT + SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT DISTINCT 82 * + col1, - ( - col2 ) + - + col0 AS col2 FROM tab1 AS cor0
----
1148
45
3854
-23
410
-26

query I rowsort
SELECT DISTINCT - + 57 FROM tab0 WHERE NOT - 42 * col2 + + - col1 IS NULL
----
-57

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT + ( + 66 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + - 57 * - 95 FROM tab1 AS cor0
----
5415
5415
5415

query I rowsort
SELECT + col2 + - ( - 43 ) FROM tab2 AS cor0
----
101
66
83

query I rowsort
SELECT ALL + - col2 + - + col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT col1 * + col0 + - col1 + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-98
1104
1632

query I rowsort
SELECT - ( + col2 ) + + col1 * col1 FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT - + col0 + + 93 FROM tab2 AS cor0
----
18
29
47

query I rowsort
SELECT DISTINCT - 83 + - - 90 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NULL IN ( col1, - ( + col1 ), + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + + 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 28 + + - 47 FROM tab0, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col0, 55 + - 98 * col0, - + 36 col0 FROM tab1
----
9 values hashing to bf6e06c4b828a633d7b7728309e2cbff

query I rowsort
SELECT ALL - col1 + - - col0 + + col2 * - col1 * - col0 * - - 46 AS col0 FROM tab2 AS cor0
----
13406708
2482063
9067507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL + CAST( SUM( DISTINCT + ( - col0 ) ) AS SIGNED ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + CAST ( SUM ( DISTINCT + ( - col0 ) ) AS INTEGER ) FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT - + CAST( + 8 AS SIGNED ) FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-2500
SELECT - + CAST ( + 8 AS INTEGER ) FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT + 67, - col0 * + col2 + 22 AS col0 FROM tab0
----
67
-683
67
-848
67
-9581

onlyif mysql # aggregate syntax: 
query II rowsort label-2503
SELECT - 84 col1, COUNT( * ) FROM tab0
----
-84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2503
SELECT - 84 col1, COUNT ( * ) FROM tab0
----
-84
3

query II rowsort
SELECT + + col1 AS col1, 65 + - col0 * + 66 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
-2971
67
-4885
77
-4159

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2506
SELECT - COUNT( * ), 26 AS col1 FROM tab1
----
-3
26

skipif mysql # not compatible
query II rowsort label-2506
SELECT - COUNT ( * ), 26 AS col1 FROM tab1
----
-3
26

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col1 FROM tab2 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80 AS col2, - col2 col1 FROM tab0
----
-80
-10
-80
-47
-80
-99

query I rowsort
SELECT ALL col2 + 92 FROM tab1 AS cor0
----
151
160
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 64 col2, - 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
18 values hashing to 6671889f4e2e8f4385d9ba122024f8ac

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - COUNT( * ) * 91 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2511
SELECT ALL - COUNT ( * ) * 91 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-819

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 51 IS NULL
----

query I rowsort
SELECT - col0 * + - col0 AS col2 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL + ( + col1 ) + - - col1 + + 12 - - + col2 FROM tab1 AS cor0
----
136
174
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 57 - col2 <= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT - + COUNT( DISTINCT + CAST( - + 50 AS SIGNED ) ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT - + COUNT ( DISTINCT + CAST ( - + 50 AS INTEGER ) ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - 72 + - col1 AS col2 FROM tab2 AS cor0
----
-123
-139
-149

query I rowsort
SELECT ALL - - col0 - + + col1 AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - col0 + - - col0 + col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 52 FROM tab1 AS cor0 WHERE - ( - col0 ) + - col1 = - 24 + - - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT 98 + + COUNT( * ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT 98 + + COUNT ( * ) FROM tab1
----
101

query I rowsort
SELECT 7 + - + col2 AS col0 FROM tab2
----
-16
-33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + 37 + - + COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2525
SELECT + 37 + - + COUNT ( * ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT COUNT( * ) - - MAX( ALL + col1 ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT COUNT ( * ) - - MAX ( ALL + col1 ) AS col0 FROM tab2
----
80

query I rowsort
SELECT ALL col0 - - 68 AS col2 FROM tab2
----
114
132
143

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 53 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - 85 AS col0 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT - - 97 AS col1 FROM tab1 AS cor0 WHERE NOT - 65 / - 59 * + col0 > NULL
----

query II rowsort
SELECT ALL col1, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT MAX( - 61 ) FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2532
SELECT MAX ( - 61 ) FROM tab2 cor0
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-2533
SELECT ALL + col0 AS col0, ( col1 ) DIV - 8 + - - col1 AS col2 FROM tab2 AS cor0
----
46
45
64
68
75
59

skipif mysql # not compatible
query II rowsort label-2533
SELECT ALL + col0 AS col0, ( col1 ) / - 8 + - - col1 AS col2 FROM tab2 AS cor0
----
46
45
64
68
75
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - col0 BETWEEN - + 69 AND - col1 / ( + ( + 26 ) )
----

query II rowsort
SELECT ALL col0 AS col1, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT MIN( DISTINCT + + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2536
SELECT MIN ( DISTINCT + + col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT 34 + + - COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2537
SELECT 34 + + - COUNT ( * ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT 59 * - col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-3396
-3921
-5613

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 * - + 90 > - col2 * - col1
----

query I rowsort
SELECT - - 25 + - - col2 + ( col2 ) AS col2 FROM tab2 WHERE NOT 16 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + 15 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 22 / - 2 * + - col1 + 64 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

query II rowsort
SELECT ALL col1 + - col0, 66 AS col0 FROM tab0 AS cor0
----
-66
66
-96
66
66
66

query I rowsort
SELECT DISTINCT - col2 + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-157
-183
-97

query I rowsort
SELECT - col2 + - 7 FROM tab1
----
-103
-66
-75

query I rowsort
SELECT + 2 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-3
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT + col0 + 33 + 28 DIV + col0 FROM tab2 AS cor0
----
108
79
97

skipif mysql # not compatible
query I rowsort label-2548
SELECT + col0 + 33 + 28 / + col0 FROM tab2 AS cor0
----
108
79
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2549
SELECT ALL - 74 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - 74 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT 13 DIV - + 5 AS col0 FROM tab2 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2551
SELECT 13 / - + 5 AS col0 FROM tab2 cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col2 col0 FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT DISTINCT + 53 * + 9 - - + 15 AS col0, col1 FROM tab1 cor0
----
492
14
492
47
492
5

query I rowsort
SELECT ALL ( - + col1 ) - + - col0 AS col2 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT 28 * + - MAX( - - 71 ) * + SUM( DISTINCT + - 74 ) + - + COUNT( * ) AS col2 FROM tab2
----
147109

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT 28 * + - MAX ( - - 71 ) * + SUM ( DISTINCT + - 74 ) + - + COUNT ( * ) AS col2 FROM tab2
----
147109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2556
SELECT AVG ( ALL - ( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT AVG ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT - SUM( DISTINCT + 67 ) AS col2 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-2557
SELECT - SUM ( DISTINCT + 67 ) AS col2 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT + 47 * + MIN( - col2 ) FROM tab2
----
-2726

skipif mysql # not compatible
query I rowsort label-2558
SELECT + 47 * + MIN ( - col2 ) FROM tab2
----
-2726

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT DISTINCT - + ( + + 20 ) DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - + ( + + 20 ) / col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT + col0 DIV - col2 col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2562
SELECT DISTINCT + col0 / - col2 col1 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2563
SELECT CAST( NULL AS SIGNED ) col0, - col0 + col1 * + ( - - 36 ) + - col2 FROM tab2 AS cor0
----
NULL
1767
NULL
2279
NULL
2668

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2563
SELECT CAST ( NULL AS INTEGER ) col0, - col0 + col1 * + ( - - 36 ) + - col2 FROM tab2 AS cor0
----
NULL
1767
NULL
2279
NULL
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT DISTINCT col1 DIV - col0 + - col2 FROM tab0 AS cor0
----
-10
-52
-99

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT col1 / - col0 + - col2 FROM tab0 AS cor0
----
-10
-52
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2565
SELECT DISTINCT - CAST( col1 AS SIGNED ) DIV - 6 AS col0 FROM tab0 AS cor0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT - CAST ( col1 AS INTEGER ) / - 6 AS col0 FROM tab0 AS cor0
----
0
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT + MIN( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2566
SELECT + MIN ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + - 62 AS col2 FROM tab2
----
-2852
-3968
-4650

query I rowsort
SELECT ALL + ( 83 ) FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT col0 * 46 FROM tab2
----
2116
2944
3450

query II rowsort
SELECT ALL - 75, + col1 AS col1 FROM tab1
----
-75
14
-75
47
-75
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2572
SELECT ALL + CAST( NULL AS SIGNED ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-2572
SELECT ALL + CAST ( NULL AS INTEGER ), - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT ALL + + col1 + - ( CAST( NULL AS SIGNED ) ) / + col0 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + + col1 + - ( CAST ( NULL AS INTEGER ) ) / + col0 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT + - MIN( - col2 ) AS col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT + - MIN ( - col2 ) AS col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
58

query I rowsort
SELECT - col1 - + - 62 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT - col1 * 6 FROM tab1 cor0
----
-282
-30
-84

query I rowsort
SELECT - col2 - - col0 - - col2 * col0 FROM tab2 AS cor0
----
1081
2584
4367

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - COUNT( - + col1 ) * 49 FROM tab2 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - COUNT ( - + col1 ) * 49 FROM tab2 cor0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT + + CAST( - col2 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-2580
SELECT + + CAST ( - col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL 77 + col1 AS col1 FROM tab1
----
124
82
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT 76 AS col2, 20 + - ( 2 ) + 6 + - ( MAX( ALL + col1 ) ) + + + 84 AS col1 FROM tab2
----
76
31

skipif mysql # not compatible
query II rowsort label-2582
SELECT 76 AS col2, 20 + - ( 2 ) + 6 + - ( MAX ( ALL + col1 ) ) + + + 84 AS col1 FROM tab2
----
76
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT MAX( - 9 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2583
SELECT MAX ( - 9 ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL - col1 * - 93 AS col1 FROM tab2
----
4743
6231
7161

query I rowsort
SELECT DISTINCT + 8 * + 50 * col0 FROM tab2
----
18400
25600
30000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT - + 54 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2586
SELECT - + 54 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 63 * - + 19 FROM tab1 AS cor0
----
1197

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2588
SELECT - + 40 * + SUM( DISTINCT 8 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 99 NOT BETWEEN + + col1 AND NULL OR ( NOT ( NOT NULL NOT IN ( + + CAST( - + col0 AS DECIMAL ), 41 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - + 40 * + SUM ( DISTINCT 8 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 99 NOT BETWEEN + + col1 AND NULL OR ( NOT ( NOT NULL NOT IN ( + + CAST ( - + col0 AS REAL ), 41 ) ) )
----
NULL

query I rowsort
SELECT - 7 * + 63 FROM tab0 AS cor0
----
-441
-441
-441

query I rowsort
SELECT ALL - ( + col2 ) + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT ALL + CAST( + 65 AS SIGNED ) col0 FROM tab0
----
65
65
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2591
SELECT ALL + CAST ( + 65 AS INTEGER ) col0 FROM tab0
----
65
65
65

query I rowsort
SELECT DISTINCT ( + 7 ) FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - COUNT( * ) * + 75 + - 66 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-2593
SELECT - COUNT ( * ) * + 75 + - 66 FROM tab1
----
-291

query I rowsort
SELECT col2 + 8 AS col0 FROM tab2
----
31
48
66

query I rowsort
SELECT col2 + - col2 * - col1 AS col0 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab0 WHERE NOT + 57 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT - col1 + ( col1 ) DIV 50 col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2597
SELECT - col1 + ( col1 ) / 50 col2 FROM tab2
----
-50
-66
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 WHERE NOT - col1 / col2 <> col2 + - 98 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 44 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ( + CAST( NULL AS SIGNED ) ) * 32 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ( + CAST ( NULL AS INTEGER ) ) * 32 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL SUM( ALL ( col1 ) ) - 64 AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL SUM ( ALL ( col1 ) ) - 64 AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - 85 + COUNT( * ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 85 + COUNT ( * ) AS col1 FROM tab0
----
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 95 + - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 < + 15
----
87
21
10

query I rowsort
SELECT + col2 * + ( col2 * 75 ) FROM tab0
----
165675
735075
7500

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + COUNT( * ) * + COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2606
SELECT + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
12

query I rowsort
SELECT col0 + col2 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2608
SELECT col1 FROM tab0 WHERE NOT CAST( + col0 AS DECIMAL ) * + col2 IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2608
SELECT col1 FROM tab0 WHERE NOT CAST ( + col0 AS REAL ) * + col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL SUM( ALL 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL SUM ( ALL 1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT + col2 + CAST( 86 - 99 AS SIGNED ) AS col1 FROM tab1
----
46
55
83

skipif mysql # not compatible
query I rowsort label-2611
SELECT + col2 + CAST ( 86 - 99 AS INTEGER ) AS col1 FROM tab1
----
46
55
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT col0 FROM tab1 AS cor0 WHERE col2 * + ( CAST( - 67 AS SIGNED ) ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2612
SELECT col0 FROM tab1 AS cor0 WHERE col2 * + ( CAST ( - 67 AS INTEGER ) ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col0 + + 84 * + 53 AS col2 FROM tab2 WHERE - 59 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 33 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT + - CAST( - 15 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-2615
SELECT + - CAST ( - 15 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT - CAST( 85 AS SIGNED ) col1 FROM tab2 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2617
SELECT - CAST ( 85 AS INTEGER ) col1 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 50 = - col1 + 91
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN ( + col0 ) * 38 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 3 AND ( - 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL 69 + + ( COUNT( * ) ) FROM tab0 WHERE 63 + ( 74 ) / ( col0 ) IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL 69 + + ( COUNT ( * ) ) FROM tab0 WHERE 63 + ( 74 ) / ( col0 ) IS NOT NULL
----
72

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL 87 * + COUNT( * ) col0 FROM tab1
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2624
SELECT ALL 87 * + COUNT ( * ) col0 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + MIN( DISTINCT - 17 ) col2 FROM tab0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2625
SELECT ALL + MIN ( DISTINCT - 17 ) col2 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL + - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 85 * col1 + col2 AS col1 FROM tab0 AS cor0
----
1795
184
6932

query I rowsort
SELECT ALL + col2 * - ( - col1 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - ( + 89 ) * + col0 AS col0 FROM tab2 WHERE ( + col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT DISTINCT + MAX( DISTINCT + - 87 ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT + MAX ( DISTINCT + - 87 ) AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL - - col2 * - 70 FROM tab1 AS cor0
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT 39 + + COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT 39 + + COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL + SUM( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + SUM ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT MIN( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL < col2
----
NULL

query I rowsort
SELECT - - col0 * + col2 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT 70 + - col1 FROM tab0 AS cor0 WHERE - 85 + - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * + ( + - 0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab1 AS cor0 WHERE ( + 51 + - col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 = col2 * ( + col1 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 + - + 76 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 * + + col2 )
----

query I rowsort
SELECT - col2 + + + ( + col2 ) * - - 75 AS col1 FROM tab0
----
3478
7326
740

query I rowsort
SELECT ALL col1 + - 47 FROM tab0
----
-26
-46
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE col0 IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT + 45 + ( col0 ) DIV 87 - 71 FROM tab0
----
-25
-25
-26

skipif mysql # not compatible
query I rowsort label-2645
SELECT + 45 + ( col0 ) / 87 - 71 FROM tab0
----
-25
-25
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2646
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col0 col0 FROM tab2
----
2647
4564
5993

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 78 + - 44 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 37 * + + col2 + - col0 FROM tab2
----
1416
2071
805

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT + 4 * COUNT( * ) + - COUNT( col2 + - col1 * col2 ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 4 * COUNT ( * ) + - COUNT ( col2 + - col1 * col2 ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT DISTINCT + - ( col2 ) + - + 86 DIV - col2 AS col0 FROM tab2 AS cor0
----
-20
-38
-57

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + - ( col2 ) + - + 86 / - col2 AS col0 FROM tab2 AS cor0
----
-20
-38
-57

query I rowsort
SELECT ALL 81 - - 43 AS col0 FROM tab1 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT - 8 * + ( 87 ) AS col0 FROM tab2 AS cor0 WHERE 14 >= - 17
----
-696

query I rowsort
SELECT - + ( + + 14 ) FROM tab0 AS cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) > - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - + MAX( DISTINCT + + 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - + MAX ( DISTINCT + + 24 ) FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2657
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 < CAST( + - 16 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2657
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 67 < CAST ( + - 16 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 26 * - 35 * - col2 + col1 + col2 * + 29 AS col2 FROM tab2 AS cor0
----
21648
37637
54529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT + - 74 DIV - COUNT( + col2 ) - + 16 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2659
SELECT + - 74 / - COUNT ( + col2 ) - + 16 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT COUNT( * ) AS col0, + MAX( ALL - col0 ) FROM tab0
----
3
-15

skipif mysql # not compatible
query II rowsort label-2660
SELECT COUNT ( * ) AS col0, + MAX ( ALL - col0 ) FROM tab0
----
3
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 40 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT + MIN( ALL + + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + MIN ( ALL + + col0 ) AS col2 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, + col2 col1 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT - 58 FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-58

query II rowsort
SELECT DISTINCT 65 AS col0, + 60 FROM tab2
----
65
60

query II rowsort
SELECT - col2 AS col2, + 52 FROM tab1
----
-59
52
-68
52
-96
52

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 + - 88 * + - col1 ) NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2669
SELECT DISTINCT col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2669
SELECT DISTINCT col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL ) OR ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2671
SELECT + + 45 AS col1, CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-2671
SELECT + + 45 AS col1, CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
45
NULL
45
NULL
45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT DISTINCT - CAST( + + 99 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - CAST ( + + 99 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2673
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - - ( col2 ) + - - ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2673
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - - ( col2 ) + - - ( + CAST ( + col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + + 23 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + ( + MAX( - 47 ) ) + - + 95 FROM tab1 AS cor0
----
-142

skipif mysql # not compatible
query I rowsort label-2675
SELECT + ( + MAX ( - 47 ) ) + - + 95 FROM tab1 AS cor0
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT - col0 + + - 6 DIV + 55 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2676
SELECT - col0 + + - 6 / + 55 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT DISTINCT - - col2 + - CAST( NULL AS SIGNED ) * + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - - col2 + - CAST ( NULL AS INTEGER ) * + + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT ALL - MIN( - + 40 ) AS col0, 65 FROM tab2 AS cor0
----
40
65

skipif mysql # not compatible
query II rowsort label-2679
SELECT ALL - MIN ( - + 40 ) AS col0, 65 FROM tab2 AS cor0
----
40
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT ALL - col1 / col0 + + CAST( NULL AS SIGNED ) + 11 + + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2680
SELECT ALL - col1 / col0 + + CAST ( NULL AS INTEGER ) + 11 + + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col2 - + col2 * + 71
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE ( NOT + col1 IS NULL )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 47 col2, col1 * ( 53 ) AS col2 FROM tab0 AS cor0
----
-34
4293
26
1113
46
53

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 + + col0 >= NULL
----

query I rowsort
SELECT ALL - - col2 + + - 6 AS col1 FROM tab0 AS cor0
----
4
41
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 * col2 * col2 = 62 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT COUNT( * ) DIV - + 92 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT COUNT ( * ) / - + 92 AS col2 FROM tab1
----
0

query I rowsort
SELECT - 61 * + col0 AS col1 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL - ( MAX( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL - ( MAX ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 61 + + - col2 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2691
SELECT + + col2 + - CAST( NULL AS DECIMAL ) - 88 * + 76 FROM tab0 AS cor0 WHERE col0 <= + ( - col2 ) * - 54
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT + + col2 + - CAST ( NULL AS REAL ) - 88 * + 76 FROM tab0 AS cor0 WHERE col0 <= + ( - col2 ) * - 54
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2692
SELECT DISTINCT - + ( - CAST( - col1 AS SIGNED ) ) + - col1 FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - + ( - CAST ( - col1 AS INTEGER ) ) + - col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT SUM( ALL + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT SUM ( ALL + col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 65 * - col2 - + col2 AS col0 FROM tab0 AS cor0
----
3008
6336
640

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - ( - col2 ) ) + + col1 <= NULL
----

query I rowsort
SELECT ALL + col1 * - col2 * - col1 * col2 + 92 * + col0 FROM tab2 AS cor0
----
1380161
15107896
9492288

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2698
SELECT + col0 / ( col2 ) * - - col0 + - - 21 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 / + col2, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2698
SELECT + col0 / ( col2 ) * - - col0 + - - 21 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 / + col2, + CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT DISTINCT + ( + col2 ) DIV + col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + ( + col2 ) / + col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = NULL AND NULL BETWEEN ( NULL ) AND - + 84 * 12
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 NOT IN ( + 96 * - 11, + col1 + 57, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT - ( col0 ) DIV + + ( + - 37 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2702
SELECT - ( col0 ) / + + ( + - 37 ) FROM tab2
----
1
1
2

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 - 82 FROM tab1
----
-14
14
-47
-14
-5
-23

query I rowsort
SELECT DISTINCT + col0 + + - 42 AS col0 FROM tab0 AS cor0
----
-27
45
55

query I rowsort
SELECT + col2 * + 72 + - col2 AS col2 FROM tab1
----
4189
4828
6816

query I rowsort
SELECT 73 * + - ( - 53 ) FROM tab0
----
3869
3869
3869

query II rowsort
SELECT DISTINCT col0 AS col2, + 80 FROM tab0
----
15
80
87
80
97
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT - SUM( - - col1 ) DIV - 27 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2708
SELECT - SUM ( - - col1 ) / - 27 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - - 0 * + 52 <> NULL
----

query I rowsort
SELECT ALL - + 23 * + col2 FROM tab0 AS cor0
----
-1081
-2277
-230

query I rowsort
SELECT AVG ( - ( + col1 ) ) FROM tab0 cor0 WHERE 24 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( - - col2 ) + - 6 FROM tab2 AS cor0
----
-29
-46
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT ALL + col0 + - - col0 DIV col2 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + col0 + - - col0 / col2 FROM tab0 AS cor0
----
15
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE - + ( + col2 ) * - ( 82 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2715
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE - + ( + col2 ) * - ( 82 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT DISTINCT 19 + - + COUNT( * ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT 19 + - + COUNT ( * ) AS col2 FROM tab0
----
16

query I rowsort
SELECT ( - - col0 ) + 0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2718
SELECT ALL - col0 + + - CAST( NULL AS SIGNED ) AS col2, CAST( - + 67 AS SIGNED ) AS col1 FROM tab2
----
NULL
-67
NULL
-67
NULL
-67

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL - col0 + + - CAST ( NULL AS INTEGER ) AS col2, CAST ( - + 67 AS INTEGER ) AS col1 FROM tab2
----
NULL
-67
NULL
-67
NULL
-67

query I rowsort
SELECT - col0 * col1 + - col0 + 48 AS col0 FROM tab2
----
-2344
-4944
-5052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2720
SELECT DISTINCT + ( + + col0 ) / + 55 + col1 - + CAST( NULL AS SIGNED ) + - col1 - - col0 col2, - col2 * + + 5 FROM tab1
----
NULL
-295
NULL
-340
NULL
-480

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2720
SELECT DISTINCT + ( + + col0 ) / + 55 + col1 - + CAST ( NULL AS INTEGER ) + - col1 - - col0 col2, - col2 * + + 5 FROM tab1
----
NULL
-295
NULL
-340
NULL
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ( + + COUNT( * ) ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2721
SELECT ( + + COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col1 - - - 42 FROM tab1
----
-47
-56
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT DISTINCT - 70 + + + ( - COUNT( * ) ) FROM tab2, tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT - 70 + + + ( - COUNT ( * ) ) FROM tab2, tab0 AS cor0
----
-79

query I rowsort
SELECT - - col1 * - 73 * + col1 AS col2 FROM tab1 AS cor0
----
-14308
-161257
-1825

query II rowsort
SELECT - + ( + col0 ), + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2726
SELECT ALL * FROM tab0 WHERE NOT + CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2726
SELECT ALL * FROM tab0 WHERE NOT + CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 69 ) AS col1 FROM tab2
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 81 ) = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 / - 80 - + 26 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL + + COUNT( * ) * - 58 AS col0 FROM tab1 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + + COUNT ( * ) * - 58 AS col0 FROM tab1 cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - - 38 * + COUNT( - col2 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - - 38 * + COUNT ( - col2 ) FROM tab2 AS cor0
----
114

query I rowsort
SELECT + + col2 * - 15 FROM tab0 AS cor0
----
-1485
-150
-705

query I rowsort
SELECT 63 FROM tab0 AS cor0 WHERE NOT + 91 * - 67 * - col0 IS NULL
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2735
SELECT DISTINCT - CAST( - 89 AS SIGNED ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) / - col0 AS col1 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - 61 * + + 66 FROM tab1 AS cor0
----
-4026
-4026
-4026

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 42 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT ALL - SUM( + + col2 ) * - + 77 * + 41 + - COUNT( * ) + COUNT( * ) DIV + - 18 FROM tab2
----
381994

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - SUM ( + + col2 ) * - + 77 * + 41 + - COUNT ( * ) + COUNT ( * ) / + - 18 FROM tab2
----
381994

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT MAX( - col2 ) * - COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT MAX ( - col2 ) * - COUNT ( * ) FROM tab1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT ALL col2 DIV - ( - - ( col2 ) ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL col2 / - ( - - ( col2 ) ) AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + SUM( DISTINCT 40 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2742
SELECT + SUM ( DISTINCT 40 ) FROM tab0 AS cor0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT MAX( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT MAX ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 60 + + col1 FROM tab1 AS cor0
----
-13
-46
-55

query I rowsort
SELECT ALL 12 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + 24 + + 85 * - col0 FROM tab0
----
-1204
-7361
-8122

query I rowsort
SELECT - + 84 + + col1 * - col0 * - col0 FROM tab0 AS cor0
----
158865
18141
9325

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - + 19 * - + COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT - + 19 * - + COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT - COUNT( * ) DIV + 61 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT - COUNT ( * ) / + 61 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL ( - col2 ) + 10 FROM tab2 AS cor0
----
-13
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL - COUNT( * ) + + + COUNT( + 62 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - COUNT ( * ) + + + COUNT ( + 62 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 * - 87 AS col1 FROM tab0 AS cor0
----
4089
8613
870

query I rowsort
SELECT ALL 10 + 8 * col0 AS col0 FROM tab0
----
130
706
786

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2754
SELECT DISTINCT + col0 * + - col0 + col0 * + col2 * - CAST( NULL AS DECIMAL ) + - col0 * col0 * 95 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT + col0 * + - col0 + col0 * + col2 * - CAST ( NULL AS REAL ) + - col0 * col0 * 95 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 - + - 71 FROM tab2
----
13
31
48

query I rowsort
SELECT + ( + + col0 ) - - 45 FROM tab0
----
132
142
60

query I rowsort
SELECT - 83 - - 75 AS col2 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 1 - + 11 * col0 AS col0 FROM tab1
----
-1000
-560
-934

onlyif mysql # aggregate syntax: 
query II rowsort label-2759
SELECT DISTINCT ( - + MIN( 49 ) ) AS col0, 93 AS col0 FROM tab2
----
-49
93

skipif mysql # not compatible
query II rowsort label-2759
SELECT DISTINCT ( - + MIN ( 49 ) ) AS col0, 93 AS col0 FROM tab2
----
-49
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2761
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 63 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 68 / + + 21, + 43, - + col0, - col1 + + + 58, + col2 * - col0 )
----

query I rowsort
SELECT DISTINCT + - ( - col1 ) * 71 * - col0 FROM tab0 AS cor0
----
-129717
-6887
-86265

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 47 AND NOT col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + - MAX( + col0 ) * + ( - - COUNT( * ) ) col0 FROM tab0 cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2766
SELECT ALL + - MAX ( + col0 ) * + ( - - COUNT ( * ) ) col0 FROM tab0 cor0
----
-291

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - 83 * + + 50 * COUNT( * ) FROM tab0 AS cor0
----
-12450

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - 83 * + + 50 * COUNT ( * ) FROM tab0 AS cor0
----
-12450

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT + COUNT( * ) * + 32 AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-2769
SELECT + COUNT ( * ) * + 32 AS col2 FROM tab2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * col2 * - 38 col1 FROM tab0
----
155382
327294
33060

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT ALL - 87 DIV + col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - 87 / + col0 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL 74 * - SUM( ALL + 96 ) AS col1 FROM tab1
----
-21312

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL 74 * - SUM ( ALL + 96 ) AS col1 FROM tab1
----
-21312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2773
SELECT DISTINCT * FROM tab2 WHERE + 83 = + CAST( NULL AS SIGNED ) / 25 + - 59 + 87 + + col0 * - col2 * - - col1
----

skipif mysql # not compatible
query III rowsort label-2773
SELECT DISTINCT * FROM tab2 WHERE + 83 = + CAST ( NULL AS INTEGER ) / 25 + - 59 + 87 + + col0 * - col2 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + 54 + - COUNT( * ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2774
SELECT + 54 + - COUNT ( * ) AS col1 FROM tab0
----
51

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL - COUNT( * ) col0 FROM tab2 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2776
SELECT ALL - COUNT ( * ) col0 FROM tab2 WHERE NOT col2 IS NULL
----
-3

query I rowsort
SELECT - - col1 + ( - col1 ) * - - col1 + + 44 FROM tab2 AS cor0 WHERE 97 / + 3 IS NOT NULL
----
-2506
-4378
-5808

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + col1 * - 58 + + + 33
----
0

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + col1 * - 58 + + + 33
----
0

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE - 84 + col0 < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT ALL - + ( + + 54 ) + 79 DIV + 33 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - + ( + + 54 ) + 79 / + 33 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT ALL 62 DIV + col0 - - + col1 * + col1 FROM tab0
----
1
441
6565

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL 62 / + col0 - - + col1 * + col1 FROM tab0
----
1
441
6565

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2785
SELECT ALL CAST( NULL AS DECIMAL ) + + 41 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL CAST ( NULL AS REAL ) + + 41 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT 3 AS col2, MIN( col1 ) + + 67 AS col2 FROM tab2
----
3
118

skipif mysql # not compatible
query II rowsort label-2786
SELECT 3 AS col2, MIN ( col1 ) + + 67 AS col2 FROM tab2
----
3
118

query II rowsort
SELECT ALL 53, + 56 AS col0 FROM tab2
----
53
56
53
56
53
56

query I rowsort
SELECT ALL + 32 * - col0 AS col0 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL - CAST( 69 AS SIGNED ) AS col2 FROM tab0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - CAST ( 69 AS INTEGER ) AS col2 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 84 <> + 38 * + ( ( col0 ) ) * - 40
----

query I rowsort
SELECT DISTINCT 82 * - col2 FROM tab1 AS cor0
----
-4838
-5576
-7872

query I rowsort
SELECT - 73 FROM tab1, tab2 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 * - 86 AS col2 FROM tab2
----
23
-3956
40
-5504
58
-6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col2, + col0 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - 41, - col1 AS col1 FROM tab1 AS cor0
----
41
-14
41
-47
41
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col2 + + 6 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col2 + + 6 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 15 * + 54 AS col1, col2 FROM tab2 AS cor0
----
810
23
810
40
810
58

query I rowsort
SELECT 0 * + col2 + - - 70 + + + 23 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE NOT 0 BETWEEN col2 AND + CAST( NULL AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2800
SELECT * FROM tab2 AS cor0 WHERE NOT 0 BETWEEN col2 AND + CAST ( NULL AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT 84 + + + SUM( - 69 ) + - 28 FROM tab2
----
-151

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT 84 + + + SUM ( - 69 ) + - 28 FROM tab2
----
-151

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 55 * - col2 + + - 29 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL - 32 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 32 / + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT - MIN( + 17 ) + - 3 - - + SUM( + + col1 ) AS col1 FROM tab2 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT - MIN ( + 17 ) + - 3 - - + SUM ( + + col1 ) AS col1 FROM tab2 AS cor0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT MIN( - col1 ) + SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2807
SELECT MIN ( - col1 ) + SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 97 + col1 IN ( + 80, - col1 + + 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT col1 + + - ( CAST( + col1 AS SIGNED ) ) - col1 * + 49 * - - col2 + - col2 - col0 col1 FROM tab0 cor0
----
-10387
-186605
-5047

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2809
SELECT DISTINCT col1 + + - ( CAST ( + col1 AS INTEGER ) ) - col1 * + 49 * - - col2 + - col2 - col0 col1 FROM tab0 cor0
----
-10387
-186605
-5047

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT 8 * + COUNT( * ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-2810
SELECT 8 * + COUNT ( * ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
24

query I rowsort
SELECT - - col0 FROM tab1 WHERE - 93 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2812
SELECT ALL col0, - ( - 71 ) * 61 + CAST( NULL AS SIGNED ) - col0 - 32 + col1 + col2 * - 40 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2812
SELECT ALL col0, - ( - 71 ) * 61 + CAST ( NULL AS INTEGER ) - col0 - 32 + col1 + col2 * - 40 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2813
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2813
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 * col1 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 85, col2 FROM tab1 cor0
----
-85
59
-85
68
-85
96

query I rowsort
SELECT DISTINCT - + col1 - - 86 AS col1 FROM tab1 AS cor0
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL - COUNT( ALL - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - COUNT ( ALL - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT - 8 * + 46 - 69 AS col2, 17 AS col0 FROM tab2 AS cor0
----
-437
17
-437
17
-437
17

query I rowsort
SELECT + - 57 * col1 * - col0 * 29 AS col1 FROM tab2 AS cor0
----
3877938
8145984
8306325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT DISTINCT + - MAX( - 80 ) FROM tab1 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED ) * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + - MAX ( - 80 ) FROM tab1 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER ) * col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col0 FROM tab2 cor0 WHERE + 71 * + - ( - + col1 ) + + - ( - ( col2 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT + COUNT( * ) + - 35 AS col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + COUNT ( * ) + - 35 AS col0 FROM tab1 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT - col0 <> NULL ) )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT + - col2 * - col0 * - + col1 / - + 15 >= NULL
----

query I rowsort
SELECT + ( - 54 ) FROM tab1 WHERE NOT NULL > 61
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 68 * col1 + + 47 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL - SUM( DISTINCT + - col0 ) * + 16 FROM tab1 WHERE NULL IS NULL
----
3632

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - SUM ( DISTINCT + - col0 ) * + 16 FROM tab1 WHERE NULL IS NULL
----
3632

query I rowsort
SELECT 18 * + col0 * col0 FROM tab1
----
130050
149058
46818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + - col0 col1, + col0 + + + ( - col1 ) FROM tab2 AS cor0
----
2346
-5
4928
-13
5025
8

query I rowsort
SELECT + 79 * + - 35 AS col2 FROM tab1 AS cor0
----
-2765
-2765
-2765

query II rowsort
SELECT + 93, col2 FROM tab0 AS cor0
----
93
10
93
47
93
99

query I rowsort
SELECT ALL - col0 * 52 * col2 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT CAST( + - ( col0 ) AS SIGNED ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-2833
SELECT CAST ( + - ( col0 ) AS INTEGER ) AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT + col1 + - + ( + + 20 ) FROM tab2
----
31
47
57

query II rowsort
SELECT ALL + col1 AS col1, col1 * 88 + - col1 * - 72 AS col1 FROM tab0
----
1
160
21
3360
81
12960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2836
SELECT ( COUNT( * ) ) + CAST( NULL AS SIGNED ) * COUNT( + + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * COUNT ( + + col1 ) FROM tab2
----
NULL

query I rowsort
SELECT - 10 * col0 + + 44 AS col1 FROM tab2
----
-416
-596
-706

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - MAX( 56 ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - MAX ( 56 ) AS col0 FROM tab2
----
-56

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 69 >= NULL
----

query I rowsort
SELECT DISTINCT + 53 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2841
SELECT - 13 - + 1 AS col2, - CAST( NULL AS SIGNED ) FROM tab2
----
-14
NULL
-14
NULL
-14
NULL

skipif mysql # not compatible
query II rowsort label-2841
SELECT - 13 - + 1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
-14
NULL
-14
NULL
-14
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2842
SELECT * FROM tab0 AS cor0 WHERE 19 NOT BETWEEN col1 * - col1 AND col1 * - ( - + CAST( + 47 AS DECIMAL ) ) * - + col2 + + col2 + - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2842
SELECT * FROM tab0 AS cor0 WHERE 19 NOT BETWEEN col1 * - col1 AND col1 * - ( - + CAST ( + 47 AS REAL ) ) * - + col2 + + col2 + - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - 6 + + - col2 FROM tab2 AS cor0
----
22
3
31

query II rowsort
SELECT ALL + col1 * + col2 AS col1, col0 + - + col2 + + + col2 + 94 FROM tab2 AS cor0
----
1173
140
3080
158
3886
169

query I rowsort
SELECT + - col0 * 1 * - 14 AS col0 FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT - MAX( ALL - col2 ) DIV + CAST( + + 25 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - MAX ( ALL - col2 ) / + CAST ( + + 25 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 96 * 23 FROM tab1 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT + col1 DIV - 43 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2848
SELECT + col1 / - 43 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT col0 DIV + - ( ( - 90 ) ) AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2849
SELECT col0 / + - ( ( - 90 ) ) AS col2 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - col2 / + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT ALL COUNT( * ) AS col0, - 21 + + - 46 AS col2 FROM tab0
----
3
-67

skipif mysql # not compatible
query II rowsort label-2851
SELECT ALL COUNT ( * ) AS col0, - 21 + + - 46 AS col2 FROM tab0
----
3
-67

query II rowsort
SELECT - col1 AS col2, col2 * - 54 AS col2 FROM tab2
----
-51
-1242
-67
-3132
-77
-2160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col0 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT ALL col0 AS col1, CAST( - 58 AS SIGNED ) + - 81 + - col2 AS col1 FROM tab1
----
51
-235
85
-198
91
-207

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL col0 AS col1, CAST ( - 58 AS INTEGER ) + - 81 + - col2 AS col1 FROM tab1
----
51
-235
85
-198
91
-207

query II rowsort
SELECT ALL - 38 AS col1, col2 FROM tab2
----
-38
23
-38
40
-38
58

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + - col0 * - 30 * - col1 + ( + + 18 ) - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + MAX( ALL + + ( col1 ) ) * - + COUNT( * ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + MAX ( ALL + + ( col1 ) ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL - - MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - - MIN ( col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT - + col2 * - 87 AS col2 FROM tab1 cor0
----
5133
5916
8352

query I rowsort
SELECT DISTINCT 69 * col1 * ( - col1 ) FROM tab2 WHERE NOT + col2 * + 28 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 = + + ( - + col0 ) - - col0 * - - col1 * 92 * col0 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT + COUNT( * ) + + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2863
SELECT + COUNT ( * ) + + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT - + 76 + col0 DIV col0 FROM tab0 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-2864
SELECT - + 76 + col0 / col0 FROM tab0 AS cor0
----
-75
-75
-75

query II rowsort
SELECT + 21, 18 AS col2 FROM tab2 AS cor0 WHERE 17 + 18 IS NOT NULL
----
21
18
21
18
21
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT COUNT( + 29 ) * - 66 + 59 FROM tab2 cor0
----
-139

skipif mysql # not compatible
query I rowsort label-2866
SELECT COUNT ( + 29 ) * - 66 + 59 FROM tab2 cor0
----
-139

query I rowsort
SELECT - col2 + - col0 + + col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( + - 36 ) + col1 * - + col2 col0 FROM tab0
----
-3342
-3591
-4347

query I rowsort
SELECT DISTINCT col2 * - + col1 - - + col1 FROM tab1
----
-1330
-290
-3149

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT 11 * + - COUNT( * ) AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-2872
SELECT 11 * + - COUNT ( * ) AS col1 FROM tab0
----
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2873
SELECT + + col1 DIV CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2873
SELECT + + col1 / CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 28 * - col2 + + 11 col1 FROM tab2 AS cor0
----
1054
1568
604

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + - col1 AND + col2
----

query I rowsort
SELECT DISTINCT + 22 + - + col2 * + col1 - 94 FROM tab2 cor0
----
-1245
-3152
-3958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT DISTINCT - COUNT( * ) - + - CAST( NULL AS SIGNED ) / + SUM( DISTINCT - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT - col2 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT - CAST( 42 AS SIGNED ) col0 FROM tab0
----
-42
-42
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2878
SELECT - CAST ( 42 AS INTEGER ) col0 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT 78 * + col0 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN col0 + - 44 * + - col1 - col1 AND NULL
----

query I rowsort
SELECT ALL 80 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
80
80
80

query I rowsort
SELECT col0 * ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT + 54 * + COUNT( * ) FROM tab2 cor0
----
162

skipif mysql # not compatible
query I rowsort label-2883
SELECT + 54 * + COUNT ( * ) FROM tab2 cor0
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-2884
SELECT ALL - + 31 AS col2, COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
-31
-9

skipif mysql # not compatible
query II rowsort label-2884
SELECT ALL - + 31 AS col2, COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-31
-9

query I rowsort
SELECT col1 * - 91 AS col0 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT ALL 14 + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL 14 + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 4 * - 76 AS col2 FROM tab0
----
304

query II rowsort
SELECT ( - col0 ) AS col2, + col1 + + 63 AS col1 FROM tab0
----
-15
144
-87
84
-97
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT - 12 DIV - 24 * - 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - 12 / - 24 * - 69 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT COUNT( * ) * - MAX( ALL - + col0 ) / + 58 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT COUNT ( * ) * - MAX ( ALL - + col0 ) / + 58 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * + - col0 col0 FROM tab2
----
-1610
-2240
-2625

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT DISTINCT + 92 DIV col0 AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + 92 / col0 AS col0 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT 70 DIV col0 AS col1 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT 70 / col0 AS col1 FROM tab2 cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT DISTINCT + col1 * ( - ( CAST( NULL AS SIGNED ) ) ) + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT + col1 * ( - ( CAST ( NULL AS INTEGER ) ) ) + + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + + 32 + - - 5 AS col0 FROM tab1 cor0
----
122
128
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT DISTINCT ( - + col1 ) + + + col1 + ( + 71 ) + - - col2 * + - col1 + + + col2 DIV - 94 * + 8 * + + col0 FROM tab2 AS cor0
----
-1102
-3009
-3815

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT ( - + col1 ) + + + col1 + ( + 71 ) + - - col2 * + - col1 + + + col2 / - 94 * + 8 * + + col0 FROM tab2 AS cor0
----
-1102
-3009
-3815

query I rowsort
SELECT ALL col1 + + + 31 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT CAST( NULL AS SIGNED ) + MAX( ALL + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT CAST ( NULL AS INTEGER ) + MAX ( ALL + col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2900
SELECT MAX( + ( - CAST( - col1 AS SIGNED ) ) ) + - 53 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2900
SELECT MAX ( + ( - CAST ( - col1 AS INTEGER ) ) ) + - 53 FROM tab1
----
-6

query I rowsort
SELECT + ( + col1 ) * + + col2 + - col0 FROM tab2
----
1127
3016
3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT col0 + + + col2 - col1 * - CAST( col2 AS SIGNED ) col1 FROM tab1
----
1491
3355
439

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2902
SELECT col0 + + + col2 - col1 * - CAST ( col2 AS INTEGER ) col1 FROM tab1
----
1491
3355
439

query I rowsort
SELECT DISTINCT - + ( - - 3 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2904
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2904
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT col1 * col2 + + 64 + - - 18 AS col2 FROM tab0 AS cor0
----
181
292
3889

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT - col0 DIV 6 AS col1 FROM tab2 AS cor0
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-2907
SELECT - col0 / 6 AS col1 FROM tab2 AS cor0
----
-10
-12
-7

query II rowsort
SELECT + ( 96 ) * - 87, col1 FROM tab0 cor0
----
-8352
1
-8352
21
-8352
81

query I rowsort
SELECT DISTINCT ( - - col0 ) * + col1 AS col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT - col1, col0 * - - col0 - + col2 AS col2 FROM tab1 AS cor0
----
-14
2505
-47
8213
-5
7166

query III rowsort
SELECT * FROM tab1 WHERE + - 72 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT col2 + - CAST( - + col1 AS SIGNED ) * - col2 AS col0 FROM tab1
----
-1248
-236
-3128

skipif mysql # not compatible
query I rowsort label-2912
SELECT col2 + - CAST ( - + col1 AS INTEGER ) * - col2 AS col0 FROM tab1
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT ( + col0 ) DIV - col1 FROM tab2 WHERE col2 NOT BETWEEN + col2 AND - col2 * + col2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT ( + col0 ) / - col1 FROM tab2 WHERE col2 NOT BETWEEN + col2 AND - col2 * + col2
----
-1
0
0

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + 40 * - + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL - + SUM( ( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - + SUM ( ( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT col0 + + ( + 97 ) AS col1 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT ALL - 91 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - 91 / - col1 AS col1 FROM tab0 AS cor0
----
1
4
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab1 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL - + COUNT( * ) - COUNT( * ) + COUNT( - - 31 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - + COUNT ( * ) - COUNT ( * ) + COUNT ( - - 31 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 37 + - 34 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT SUM( DISTINCT + + ( + - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2921
SELECT SUM ( DISTINCT + + ( + - col1 ) ) AS col2 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT - col2 * col1 + - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT - col2 * col1 + - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * - 47 + - 92 + + + 81 AS col2 FROM tab2
----
2151
2997
3514

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT + ( + COUNT( * ) ) - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT + ( + COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT + col1 - - 55 AS col2 FROM tab2
----
106
122
132

query I rowsort
SELECT + 17 - 71 FROM tab0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2927
SELECT + 31 - col0 * CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2927
SELECT + 31 - col0 * CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2928
SELECT + 73 + + + COUNT( * ) + + CAST( - - 10 AS SIGNED ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2928
SELECT + 73 + + + COUNT ( * ) + + CAST ( - - 10 AS INTEGER ) FROM tab0 AS cor0
----
86

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 7 <> - - 76
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT COUNT( * ) DIV MIN( ALL + - 56 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT COUNT ( * ) / MIN ( ALL + - 56 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT + ( - 84 ) AS col1 FROM tab0
----
-84

query I rowsort
SELECT ALL ( + - 73 ) AS col0 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2934
SELECT + - CAST( + - MIN( + col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2934
SELECT + - CAST ( + - MIN ( + col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - 13
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= 51
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col2 * - - 94, - col2, col0 )
----

query I rowsort
SELECT ALL - col1 + 26 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - COUNT( * ) FROM tab2 WHERE NOT - ( - + ( col2 ) ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - ( - + ( col2 ) ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT MIN( ALL + - 48 ) * - + COUNT( * ) AS col0 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-2940
SELECT MIN ( ALL + - 48 ) * - + COUNT ( * ) AS col0 FROM tab2
----
144

query I rowsort
SELECT DISTINCT + 60 FROM tab0 WHERE NOT - + 20 - - 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + 35 col0 FROM tab0
----
3045
3395
525

query I rowsort
SELECT 72 * col2 * - col2 FROM tab2 WHERE NOT + col2 + + col1 * - 37 IS NULL
----
-115200
-242208
-38088

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL MIN( DISTINCT - col2 ) col1 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2944
SELECT ALL MIN ( DISTINCT - col2 ) col1 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT DISTINCT + col1 DIV + col2 * - - col1 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + col1 / + col2 * - - col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + ( - - 73 ) + + col2 AS col0 FROM tab1 cor0
----
132
141
169

query II rowsort
SELECT DISTINCT 23 AS col0, col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + + ( - 18 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1545
-1745
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT COUNT( * ) * - 38 AS col0 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-2950
SELECT COUNT ( * ) * - 38 AS col0 FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT col0 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT col0 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL - COUNT( ALL + - 98 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - COUNT ( ALL + - 98 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col2 AS col0, - ( col2 ) AS col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT 35 - - - COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2955
SELECT 35 - - - COUNT ( * ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IS NULL AND NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2957
SELECT ALL - + 20 + + COUNT( * ) AS col1, 26 * + COUNT( * ) * + MAX( ALL + col2 ) col2 FROM tab2 AS cor0
----
-17
4524

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2957
SELECT ALL - + 20 + + COUNT ( * ) AS col1, 26 * + COUNT ( * ) * + MAX ( ALL + col2 ) col2 FROM tab2 AS cor0
----
-17
4524

query I rowsort
SELECT - col1 + - 24 AS col1 FROM tab1 AS cor0
----
-29
-38
-71

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + + col1 NOT IN ( - + 95 * + ( col1 ), col2 + + col2 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 30 + + ( + + 77 ) FROM tab1 AS cor0
----
107
107
107

query I rowsort
SELECT - - col1 + - - 22 FROM tab2 AS cor0
----
73
89
99

query I rowsort
SELECT DISTINCT col0 * + col1 - + 80 + - col0 AS col1 FROM tab0
----
-80
1120
1660

query I rowsort
SELECT 45 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT - 7 + - - col0 + + - col2 DIV - 62 AS col0 FROM tab2
----
39
57
68

skipif mysql # not compatible
query I rowsort label-2964
SELECT - 7 + - - col0 + + - col2 / - 62 AS col0 FROM tab2
----
39
57
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT ALL + SUM( + col1 ), - MIN( ALL - - col0 ) col1 FROM tab0
----
103
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2965
SELECT ALL + SUM ( + col1 ), - MIN ( ALL - - col0 ) col1 FROM tab0
----
103
-15

query I rowsort
SELECT DISTINCT - ( col0 ) - 20 AS col0 FROM tab2 WHERE NOT - col0 * col2 * + 73 IS NULL
----
-66
-84
-95

query I rowsort
SELECT ALL - 56 * - col0 - - ( col1 ) AS col2 FROM tab0
----
4893
5433
921

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + ( + SUM( ALL - 38 ) ) * + + COUNT( * ) + + 54 FROM tab0 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2968
SELECT + ( + SUM ( ALL - 38 ) ) * + + COUNT ( * ) + + 54 FROM tab0 cor0
----
-288

query II rowsort
SELECT DISTINCT col0, + 10 + - 13 * + col0 AS col2 FROM tab1
----
51
-653
85
-1095
91
-1173

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 53 + + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT ALL COUNT( * ) AS col0, + 38 AS col0 FROM tab0 cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-2971
SELECT ALL COUNT ( * ) AS col0, + 38 AS col0 FROM tab0 cor0
----
3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT - MIN( DISTINCT - 83 ) AS col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2972
SELECT - MIN ( DISTINCT - 83 ) AS col2 FROM tab1 AS cor0
----
83

query II rowsort
SELECT DISTINCT - - 26 AS col2, col0 * - 6 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
26
-522
26
-582
26
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2974
SELECT ALL + 26, CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2974
SELECT ALL + 26, CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
26
NULL
26
NULL
26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT SUM( - - ( + col2 ) ) AS col0, 12 + - - 77 FROM tab2 AS cor0
----
121
89

skipif mysql # not compatible
query II rowsort label-2975
SELECT SUM ( - - ( + col2 ) ) AS col0, 12 + - - 77 FROM tab2 AS cor0
----
121
89

query I rowsort
SELECT ALL + + col2 * col0 + + + col2 + - + col2 + + col1 - + + col0 * 84 / col2 + + - col2 * - col2 * - col1 + + 88 / 38 * - col1 AS col0 FROM tab2 AS cor0 WHERE + ( + col2 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, - col1 * + col0 col1 FROM tab2 cor0
----
51
-2346
67
-5025
77
-4928

query II rowsort
SELECT DISTINCT + - 92, + 63 AS col0 FROM tab0 AS cor0
----
-92
63

query I rowsort
SELECT 31 + + + col1 AS col1 FROM tab2 AS cor0
----
108
82
98

query I rowsort
SELECT + 77 FROM tab2 WHERE NOT col0 IS NULL
----
77
77
77

query I rowsort
SELECT + 80 * + col2 AS col1 FROM tab2
----
1840
3200
4640

query III rowsort
SELECT * FROM tab1 WHERE NOT - 46 + + 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - ( 42 ) ) AS col2 FROM tab2
----
-42

query I rowsort
SELECT ALL col1 * - col2 + - ( + - 16 ) + + col0 * col1 FROM tab1 cor0
----
-614
1097
146

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 82 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( 32 ) * 31
----

query I rowsort
SELECT DISTINCT + 36 * - col2 AS col2 FROM tab2 AS cor0
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT DISTINCT - COUNT( * ) + ( + + 71 ) + + - 5 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - COUNT ( * ) + ( + + 71 ) + + - 5 FROM tab1 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * col2 * col1 / col2 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT - COUNT( * ) - + 92 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - COUNT ( * ) - + 92 FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT + + col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab2 WHERE NULL IS NULL
----
102
134
154

query III rowsort
SELECT * FROM tab0 WHERE - col0 * ( + 6 ) + - col0 IS NULL
----

query II rowsort
SELECT - col2, - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / col1 * + col2 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / col1 * + col2 * + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - - col1 BETWEEN col0 AND - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 27 FROM tab1 cor0 WHERE NOT 63 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 29 < + col2 * + col0 - - col1
----

query I rowsort
SELECT DISTINCT col0 * - col0 * 2 AS col0 FROM tab0 AS cor0
----
-15138
-18818
-450

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3000
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( + 2 AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-3000
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + 2 AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - MAX( ALL + - 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3001
SELECT - MAX ( ALL + - 41 ) FROM tab2
----
41

query I rowsort
SELECT - - col1 / - 22 AS col0 FROM tab0 AS cor0 WHERE NOT + ( - col0 ) / + + 60 + - col2 * + col2 * - 63 + - 93 NOT BETWEEN + col0 AND + 74
----

query I rowsort
SELECT ALL - + 51 AS col1 FROM tab0 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + ( + MAX( ALL - - ( col2 ) ) ) * + COUNT( * ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3004
SELECT + ( + MAX ( ALL - - ( col2 ) ) ) * + COUNT ( * ) AS col2 FROM tab1
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3005
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT 23 + - + MAX( ALL + 60 ) AS col1 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-3006
SELECT 23 + - + MAX ( ALL + 60 ) AS col1 FROM tab2
----
-37

query II rowsort
SELECT DISTINCT - col2, col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-23
51
-40
77
-58
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL 94 * SUM( col1 * + col2 ) FROM tab2 WHERE NOT + col2 IS NULL
----
765066

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL 94 * SUM ( col1 * + col2 ) FROM tab2 WHERE NOT + col2 IS NULL
----
765066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 65 AS col0 FROM tab0 WHERE NOT 16 * 95 IS NULL
----
5655
6305
975

query I rowsort
SELECT + col1 * col2 + 21 * 65 FROM tab0
----
1464
1575
5172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + - col1 col2 FROM tab2
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT col2 DIV 15 AS col0 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-3014
SELECT col2 / 15 AS col0 FROM tab1
----
3
4
6

query I rowsort
SELECT + 84 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3016
SELECT ALL 95 DIV COUNT( * ) + COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL 95 / COUNT ( * ) + COUNT ( * ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - COUNT( * ) FROM tab2 WHERE + col0 + + 69 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3017
SELECT - COUNT ( * ) FROM tab2 WHERE + col0 + + 69 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT - col0 DIV col2 + 22 AS col2 FROM tab2
----
20
21
21

skipif mysql # not compatible
query I rowsort label-3018
SELECT - col0 / col2 + 22 AS col2 FROM tab2
----
20
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT COUNT( * ) * - COUNT( DISTINCT 68 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT COUNT ( * ) * - COUNT ( DISTINCT 68 ) col0 FROM tab0
----
-3

query I rowsort
SELECT + 82 * - 31 AS col1 FROM tab1
----
-2542
-2542
-2542

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3021
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT NULL > + col0 * + 62
----

skipif mysql # not compatible
query I rowsort label-3021
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT NULL > + col0 * + 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * col2 col1 FROM tab0
----
-3384
-7128
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE + 22 NOT BETWEEN 84 / - col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE + 22 NOT BETWEEN 84 / - col0 AND ( NULL )
----
0

query I rowsort
SELECT ( 15 ) AS col2 FROM tab2
----
15
15
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + 17 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN col1 AND ( NULL )
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - ( 18 ) + 58 FROM tab1 WHERE NOT 3 IS NULL
----
148
310
904

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( + ( col2 ) * - 94 ) AND 98
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN + 90 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 34 * col1 + - 26 * 75 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3033
SELECT * FROM tab1 WHERE NOT + 20 > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3033
SELECT * FROM tab1 WHERE NOT + 20 > ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 75 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT MIN( - 78 ) DIV 5 AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT MIN ( - 78 ) / 5 AS col1 FROM tab2
----
-15

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT DISTINCT - 40 DIV 47 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT - 40 / 47 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col2 + + 2 FROM tab0 AS cor0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - COUNT( * ) + 62 AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3040
SELECT - COUNT ( * ) + 62 AS col2 FROM tab2 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT ALL col2 DIV col2 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT ALL col2 / col2 col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + 44 + COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3042
SELECT + 44 + COUNT ( * ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT - + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 + + 23 AS col1 FROM tab2 AS cor0
----
100
74
90

query I rowsort
SELECT DISTINCT + 32 + ( 39 ) FROM tab1 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * col2 + - col2 BETWEEN NULL AND - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 2 + 73 AS col2 FROM tab0 AS cor0
----
75

query I rowsort
SELECT + 87 * col1 + - 85 FROM tab1 AS cor0
----
1133
350
4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT ALL - col2 * - CAST( col0 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL - col2 * - CAST ( col0 AS INTEGER ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( ALL + - col0 ) * - 8 col1 FROM tab0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3050
SELECT COUNT ( ALL + - col0 ) * - 8 col1 FROM tab0
----
-24

query I rowsort
SELECT DISTINCT + 65 + 46 AS col0 FROM tab2
----
111

query I rowsort
SELECT ALL col1 * - 86 * 72 AS col2 FROM tab0
----
-130032
-501552
-6192

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL 46 * + col1 DIV + col1 + - col1 * - ( + col1 ) AS col0 FROM tab1
----
2255
242
71

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL 46 * + col1 / + col1 + - col1 * - ( + col1 ) AS col0 FROM tab1
----
2255
242
71

query I rowsort
SELECT 72 * 36 AS col0 FROM tab2 WHERE NULL NOT BETWEEN 91 AND + 7
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= 17
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE - col2 - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - ( - ( COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3057
SELECT - ( - ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - col2 * + col2 + ( - col2 ) - + col2 FROM tab2 AS cor0
----
-1680
-3480
-575

query I rowsort
SELECT ALL + + ( + - col1 ) * col2 + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT ( col2 ) + - 86 AS col2 FROM tab0 AS cor0
----
-39
-76
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT DISTINCT 85 * COUNT( * ) - 53 AS col0 FROM tab1 WHERE ( NOT 83 NOT IN ( 41 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT 85 * COUNT ( * ) - 53 AS col0 FROM tab1 WHERE ( NOT 83 NOT IN ( 41 ) )
----
-53

query I rowsort
SELECT DISTINCT + col2 + 37 FROM tab2
----
60
77
95

query III rowsort
SELECT * FROM tab2 WHERE ( + + col0 ) IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 85 ) = + col0 - 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT CAST( + col1 AS SIGNED ) + col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3066
SELECT CAST ( + col1 AS INTEGER ) + col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - 78 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - 78 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - + MAX( + 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - + MAX ( + 32 ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN + col0 AND - col1 * 53
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - + 61
----

query I rowsort
SELECT ALL - ( ( + AVG ( DISTINCT - ( 58 ) ) ) ) FROM tab2 WHERE NOT ( + - col0 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT DISTINCT - 40 col1 FROM tab2 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND ( + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3074
SELECT DISTINCT - 40 col1 FROM tab2 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT 79 * - + COUNT( * ) AS col1 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 79 * - + COUNT ( * ) AS col1 FROM tab1
----
-237

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 * + - 60 AND NULL
----

query I rowsort
SELECT + 45 * - - col0 FROM tab1
----
2295
3825
4095

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3078
SELECT DISTINCT - CAST( + 16 AS SIGNED ), 0 AS col2 FROM tab0
----
-16
0

skipif mysql # not compatible
query II rowsort label-3078
SELECT DISTINCT - CAST ( + 16 AS INTEGER ), 0 AS col2 FROM tab0
----
-16
0

query I rowsort
SELECT ALL + col2 + + 47 FROM tab0 WHERE 96 < NULL
----

query I rowsort
SELECT - 92 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-106
-139
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT + MIN( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( + 13 AS SIGNED ) / + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT + MIN ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( + 13 AS INTEGER ) / + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + + + col0 * 83 <> ( NULL )
----

query I rowsort
SELECT + col2 * + - 41 FROM tab1 AS cor0
----
-2419
-2788
-3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * + 49 col2 FROM tab0 AS cor0 WHERE 65 + + + 21 NOT IN ( - 35 )
----
1960

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) <= NULL
----

query I rowsort
SELECT + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - COUNT( * ) * - - 83 AS col0 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - COUNT ( * ) * - - 83 AS col0 FROM tab2
----
-249

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT col0 DIV + 96 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT col0 / + 96 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < + col2 * + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT - - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - col2 * col1 + 89 AS col1 FROM tab1 cor0
----
-1386
-150123
-18727

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT - - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( 78 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col1 ) AND col1 * col0 + 9
----

query I rowsort
SELECT 79 + - col1 AS col0 FROM tab1 AS cor0
----
32
65
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col0 + - col2 - ( 58 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + MAX( + ( 10 ) ) * + + SUM( ALL - - col0 ) FROM tab2
----
1850

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + MAX ( + ( 10 ) ) * + + SUM ( ALL - - col0 ) FROM tab2
----
1850

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 / - - 5 > ( - ( col1 ) ) )
----

query I rowsort
SELECT 66 + - + 51 - - - col0 * - 11 * - - col0 AS col1 FROM tab1
----
28626
79490
91106

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + SUM( - 35 ) + - + 91 FROM tab1
----
-196

skipif mysql # not compatible
query I rowsort label-3100
SELECT + SUM ( - 35 ) + - + 91 FROM tab1
----
-196

query I rowsort
SELECT ( - - col1 ) + + col2 + 55 AS col1 FROM tab1
----
119
165
170

query I rowsort
SELECT col2 * - - 36 * + col0 * - col2 + - col2 * - col0 + - col0 FROM tab1
----
-10646930
-15142127
-16915731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT - CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, - 32 + - col2 - + col1 + - + col0 - col0 AS col2 FROM tab0
----
15
-190
87
-237
97
-326

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT ALL - COUNT( * ), + 14 col1 FROM tab0
----
-3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3105
SELECT ALL - COUNT ( * ), + 14 col1 FROM tab0
----
-3
14

query II rowsort
SELECT DISTINCT col0 + + - ( col2 ) + + - col2, - col2 - 84 + col0 AS col2 FROM tab1 AS cor0
----
-141
-129
-33
-58
-45
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT ALL + 50 + + col2 + - col2 * + ( col0 ) * CAST( NULL AS SIGNED ) + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3108
SELECT ALL + 50 + + col2 + - col2 * + ( col0 ) * CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT col0 * col2 DIV - col0 + + 32 + + 12 FROM tab0 AS cor0
----
-3
-55
34

skipif mysql # not compatible
query I rowsort label-3109
SELECT col0 * col2 / - col0 + + 32 + + 12 FROM tab0 AS cor0
----
-3
-55
34

query II rowsort
SELECT col2, 98 * - col2 + + - col1 AS col1 FROM tab2 AS cor0
----
23
-2305
40
-3997
58
-5751

query I rowsort
SELECT 42 - + ( + - col2 ) AS col2 FROM tab1
----
101
110
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL - COUNT( * ) - + COUNT( * ) + + COUNT( * ) * + 36 AS col2 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) * + 36 AS col2 FROM tab2
----
102

query I rowsort
SELECT - 8 * - + col1 * ( + col2 ) - - col2 FROM tab2
----
24680
31146
9407

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3114
SELECT ALL - col0 * - ( CAST( NULL AS DECIMAL ) ) + + 31 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - col0 * - ( CAST ( NULL AS REAL ) ) + + 31 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + 44
----

query I rowsort
SELECT - - 87 AS col1 FROM tab0 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col0, - 87, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3118
SELECT - - CAST( NULL AS SIGNED ) / CAST( + col0 AS SIGNED ) AS col2, - col1 AS col0 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-3118
SELECT - - CAST ( NULL AS INTEGER ) / CAST ( + col0 AS INTEGER ) AS col2, - col1 AS col0 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT + MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT + MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 32 / + 22 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3121
SELECT MIN( ALL ( - col0 ) ) DIV - ( + COUNT( * ) ) + 11 FROM tab2 AS cor0 WHERE NOT ( col2 BETWEEN - - 63 AND col1 + - + 74 )
----
36

skipif mysql # not compatible
query I rowsort label-3121
SELECT MIN ( ALL ( - col0 ) ) / - ( + COUNT ( * ) ) + 11 FROM tab2 AS cor0 WHERE NOT ( col2 BETWEEN - - 63 AND col1 + - + 74 )
----
36

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT - col0 DIV + 25 AS col0 FROM tab0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT - col0 / + 25 AS col0 FROM tab0
----
-3
-3
0

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE - col1 BETWEEN ( - col0 ) AND - col2
----
-21

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + 55 NOT IN ( col0, - 58 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 / - 79 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 / - 79 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT DISTINCT 97, + COUNT( * ) AS col2 FROM tab2
----
97
3

skipif mysql # not compatible
query II rowsort label-3127
SELECT DISTINCT 97, + COUNT ( * ) AS col2 FROM tab2
----
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT 24 DIV - col1 col2 FROM tab2 WHERE NOT ( 54 * + + col2 * col1 ) IS NULL OR ( 73 * + 77 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3128
SELECT DISTINCT 24 / - col1 col2 FROM tab2 WHERE NOT ( 54 * + + col2 * col1 ) IS NULL OR ( 73 * + 77 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT CAST( NULL AS SIGNED ) + - 93 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT CAST ( NULL AS INTEGER ) + - 93 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 86 + - col2 FROM tab1 AS cor0
----
-10
18
27

query I rowsort
SELECT - col1 * + col2 * - col1 + + col1 * + ( + + col2 ) AS col1 FROM tab2 AS cor0
----
240240
264248
60996

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT DISTINCT + col2 DIV col2 * + col1 + + col2 AS col0 FROM tab1 cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + col2 / col2 * + col1 + + col2 AS col0 FROM tab1 cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT col0 DIV - col1 + + col1 + - col1 - - + 85 * + col1 + - col1 FROM tab2 cor0
----
4284
5627
6468

skipif mysql # not compatible
query I rowsort label-3135
SELECT col0 / - col1 + + col1 + - col1 - - + 85 * + col1 + - col1 FROM tab2 cor0
----
4284
5627
6468

query I rowsort
SELECT - 73 * - col0 + - col2 + 14 FROM tab2 AS cor0
----
3349
4646
5431

query I rowsort
SELECT 48 + + 9 AS col2 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 NOT BETWEEN NULL AND + 35
----

query I rowsort
SELECT DISTINCT - + col1 * 22 FROM tab1 AS cor0
----
-1034
-110
-308

query I rowsort
SELECT - - 25 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + COUNT( + col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3141
SELECT + COUNT ( + col1 ) col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE + col2 - - - col2 / + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 22 * + + col0 - - - 32 AS col2 FROM tab0
----
-1946
-2166
-362

query I rowsort
SELECT ALL col2 * - + col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col2 + - 85 * + 9 FROM tab1 cor0
----
-824
-833
-861

query I rowsort
SELECT 22 + + 39 AS col2 FROM tab2 AS cor0
----
61
61
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT DISTINCT 89, + col2 FROM tab1
----
89
59
89
68
89
96

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * col1 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + col2 - - - 61 FROM tab1 cor0
----
4835
4954
6127

query I rowsort
SELECT ( - 74 ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL AND col2 / + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT + ( - COUNT( * ) ) DIV - COUNT( * ) + 22 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + ( - COUNT ( * ) ) / - COUNT ( * ) + 22 FROM tab2 AS cor0
----
23

query II rowsort
SELECT 60 AS col1, + 63 AS col0 FROM tab2 cor0
----
60
63
60
63
60
63

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT ( NULL > + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT ( ( - + col1 ) ) / col2 AS col1 FROM tab2 WHERE NOT - col2 + - col0 * - CAST( NULL AS SIGNED ) + 61 + + - col2 + 49 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3157
SELECT ( ( - + col1 ) ) / col2 AS col1 FROM tab2 WHERE NOT - col2 + - col0 * - CAST ( NULL AS INTEGER ) + 61 + + - col2 + 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3158
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) + 90 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3158
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) + 90 IS NOT NULL )
----

query I rowsort
SELECT + col1 * - - 18 AS col0 FROM tab1
----
252
846
90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 NOT IN ( + 47 + - col0 )
----

query II rowsort
SELECT DISTINCT - + col0, col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab0 WHERE - 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 * - col1 IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 * - col1 IS NOT NULL )
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT - col2 DIV 27 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT - col2 / 27 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT + + 88 + 24 * 20 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
571

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + + 88 + 24 * 20 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
571

query I rowsort
SELECT + + col1 * - col1 FROM tab0 AS cor0 WHERE NOT + 54 * - + col1 IS NULL
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - + 23 FROM tab1 AS cor0 WHERE NOT col1 < ( + - ( + col0 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - COUNT( * ) * - COUNT( * ) * 19 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-3168
SELECT - COUNT ( * ) * - COUNT ( * ) * 19 FROM tab2
----
171

query I rowsort
SELECT - col2 * + ( + col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

query II rowsort
SELECT DISTINCT - 41 AS col0, col1 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-41
1
-41
21
-41
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT + CAST( + 13 AS SIGNED ) AS col2 FROM tab2 cor0
----
13

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + CAST ( + 13 AS INTEGER ) AS col2 FROM tab2 cor0
----
13

query I rowsort
SELECT DISTINCT + - 51 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col1 * 5 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + + 87 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3174
SELECT + + 87 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
90

query I rowsort
SELECT - 77 + col0 + - - col0 * - col1 * + 34 FROM tab1
----
-14442
-145404
-24302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT - col2 * + 23 * + col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT - col2 * + 23 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 - + 47, col1 + - - ( + + 47 ) AS col1 FROM tab0
----
-26
68
-46
48
34
128

query I rowsort
SELECT DISTINCT col0 * 11 FROM tab1
----
1001
561
935

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT - - COUNT( * ) - ( - MIN( + 88 ) ) + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT - - COUNT ( * ) - ( - MIN ( + 88 ) ) + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT 30 * - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-270

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT 30 * - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + SUM( 37 ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + SUM ( 37 ) FROM tab0
----
111

query I rowsort
SELECT + 74 + + 3 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ( - 55 ) FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3185
SELECT DISTINCT COUNT( * ) DIV + 66 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT COUNT ( * ) / + 66 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT ( SUM( + col1 ) ) AS col2, + 10 AS col0 FROM tab2 AS cor0
----
195
10

skipif mysql # not compatible
query II rowsort label-3186
SELECT ( SUM ( + col1 ) ) AS col2, + 10 AS col0 FROM tab2 AS cor0
----
195
10

query I rowsort
SELECT ALL col1 + - - 11 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, col2 + - col1 col2 FROM tab1 AS cor0
----
14
82
47
21
5
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - - SUM( ALL 83 ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3189
SELECT - - SUM ( ALL 83 ) FROM tab2 AS cor0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT DISTINCT - ( CAST( + 47 AS SIGNED ) ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - ( CAST ( + 47 AS INTEGER ) ) AS col1 FROM tab0
----
-47

query I rowsort
SELECT DISTINCT 87 * + + col1 FROM tab2
----
4437
5829
6699

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + col0 / - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL - 50 FROM tab2 WHERE NOT - - ( - + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + - 46 AS col2 FROM tab1 AS cor0
----
-32
-41
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 2 + + - col2 col1, col1 AS col0 FROM tab1
----
-57
5
-66
47
-94
14

query I rowsort
SELECT + 39 + + + 75 AS col0 FROM tab2
----
114
114
114

query I rowsort
SELECT + col2 * + - ( - - col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT - 20 * - col1 FROM tab2 AS cor0
----
1020
1340
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL CAST( + col1 AS SIGNED ) + + 7 - 38 * 95 col0 FROM tab1 AS cor0
----
-3556
-3589
-3598

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3200
SELECT ALL CAST ( + col1 AS INTEGER ) + + 7 - 38 * 95 col0 FROM tab1 AS cor0
----
-3556
-3589
-3598

query I rowsort
SELECT DISTINCT + col0 + + - 80 - col2 * 24 + + col2 FROM tab0 AS cor0
----
-1146
-223
-2260

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL + col2 - - 39 FROM tab1
----
107
135
98

query I rowsort
SELECT DISTINCT col2 + + + 81 * + - col0 FROM tab2
----
-3703
-5144
-6017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT CAST( - col0 AS SIGNED ) - + col2 + + + col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3205
SELECT CAST ( - col0 AS INTEGER ) - + col2 + + + col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 59 - - 35 AS col0 FROM tab0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col0 * col2 col0 FROM tab0 AS cor0
----
-15
-705
-87
-870
-97
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 71 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 71 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 68 * - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query II rowsort label-3210
SELECT ALL 62 + + - COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
53
9

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL 62 + + - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
53
9

query I rowsort
SELECT DISTINCT - + col0 * + col2 * + ( - + 94 ) + col2 AS col2 FROM tab0 AS cor0
----
66317
81790
902781

query II rowsort
SELECT + 40 * col0 AS col0, - 96 FROM tab0 AS cor0
----
3480
-96
3880
-96
600
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT DISTINCT + col1 DIV - 49 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + col1 / - 49 AS col2 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT + 45 + - MAX( CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + 45 + - MAX ( CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 57 * + col2 AS col2 FROM tab1
----
3363
3876
5472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT ALL + 12 DIV + + COUNT( * ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + 12 / + + COUNT ( * ) AS col0 FROM tab0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT + ( + - MAX( + 99 ) ) DIV - 32 AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3218
SELECT + ( + - MAX ( + 99 ) ) / - 32 AS col2 FROM tab0
----
3

query I rowsort
SELECT 98 * + col0 * ( - - col2 ) AS col1 FROM tab1
----
479808
491470
606424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3220
SELECT DISTINCT COUNT( ALL + ( + 52 ) ) DIV - + COUNT( * ) + + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT COUNT ( ALL + ( + 52 ) ) / - + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL COUNT( * ) + - 63 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL COUNT ( * ) + - 63 FROM tab0 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 97 + - 84 col0, 60 FROM tab0 AS cor0
----
14
60
34
60
94
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT + ( SUM( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + ( SUM ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
223

query II rowsort
SELECT 36, 75 * + col1 + + col1 AS col0 FROM tab1
----
36
1064
36
3572
36
380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3225
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3225
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT + + col2 - - col0 DIV + + ( + 97 ) - + 25 + + col2 AS col0 FROM tab1 AS cor0
----
111
167
93

skipif mysql # not compatible
query I rowsort label-3226
SELECT + + col2 - - col0 / + + ( + 97 ) - + 25 + + col2 AS col0 FROM tab1 AS cor0
----
111
167
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 72 NOT BETWEEN - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN + col1 * - col1 * + - col1 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( - col1 ) + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + col2 + + - ( - + col2 ) FROM tab2 cor0
----
157
183
97

query I rowsort
SELECT + 99 + + 43 + + - col0 FROM tab2 AS cor0
----
67
78
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 20 AND NULL
----

query I rowsort
SELECT DISTINCT + + 61 + + 36 AS col1 FROM tab1 cor0
----
97

query I rowsort
SELECT ALL - ( - col0 ) * + col0 * + col0 * 36 + + ( col2 ) FROM tab1
----
22108559
27128624
4775532

query II rowsort
SELECT DISTINCT 2 * 82 AS col2, col0 FROM tab1
----
164
51
164
85
164
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL ( - CAST( + col2 AS SIGNED ) ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL ( - CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 + - 70 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT ALL col0 FROM tab1 WHERE col0 NOT IN ( - - col2, CAST( - - col0 AS SIGNED ) + + col2 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL col0 FROM tab1 WHERE col0 NOT IN ( - - col2, CAST ( - - col0 AS INTEGER ) + + col2 )
----
51
85
91

query I rowsort
SELECT + + 37 * - col2 - 68 FROM tab2 AS cor0
----
-1548
-2214
-919

query II rowsort
SELECT DISTINCT 6 AS col1, 86 AS col2 FROM tab1 AS cor0
----
6
86

query II rowsort
SELECT + - col0, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT ALL - + ( col2 ) + - col1 + + + 7, + col2 AS col1 FROM tab2 AS cor0
----
-110
40
-118
58
-67
23

query I rowsort
SELECT 20 + col1 * + 59 FROM tab1 AS cor0
----
2793
315
846

query II rowsort
SELECT DISTINCT col0 * - 48 * 21 * - 99 AS col0, col1 AS col0 FROM tab0
----
1496880
81
8681904
21
9679824
1

query I rowsort
SELECT - 44 FROM tab2 WHERE ( NOT - col1 IS NULL )
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL - 57 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - 57 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT COUNT( * ) * + COUNT( + col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3248
SELECT COUNT ( * ) * + COUNT ( + col1 ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 78 < col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT + col1 + + - ( - col1 ) FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 58 AS col1, + 82 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
58
82
58
82
58
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL SUM( DISTINCT - 7 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL SUM ( DISTINCT - 7 ) AS col2 FROM tab0
----
-7

query I rowsort
SELECT + 14 + - - col1 FROM tab1
----
19
28
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col1 FROM tab1 WHERE + + col0 IS NOT NULL
----
-37
-44
-80

query I rowsort
SELECT - col2 * col1 * 82 * + 92 + col0 FROM tab0 AS cor0
----
-1584153
-28719993
-746759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT + + COUNT( * ) DIV - ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3257
SELECT + + COUNT ( * ) / - ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL + + MAX( DISTINCT + + col0 ) + + 90 + + AVG ( DISTINCT col1 ) AS col1 FROM tab0 WHERE - col2 BETWEEN NULL AND + 55 + - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + + MAX ( DISTINCT + + col0 ) + + 90 + + AVG ( DISTINCT col1 ) AS col1 FROM tab0 WHERE - col2 BETWEEN NULL AND + 55 + - + col2
----
NULL

query II rowsort
SELECT ALL + ( + col0 ) AS col0, col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT col1 * + 63 AS col0 FROM tab2
----
3213
4221
4851

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3261
SELECT + CAST( NULL AS SIGNED ) AS col2, - col1 * + 23 * + 68 * - + col1 col0 FROM tab1
----
NULL
306544
NULL
3454876
NULL
39100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3261
SELECT + CAST ( NULL AS INTEGER ) AS col2, - col1 * + 23 * + 68 * - + col1 col0 FROM tab1
----
NULL
306544
NULL
3454876
NULL
39100

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 * col1 AS col1 FROM tab1
----
-14
-714
-47
-4277
-5
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL SUM( + - 76 ) AS col2 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL SUM ( + - 76 ) AS col2 FROM tab2
----
-228

query I rowsort
SELECT - - 57 AS col1 FROM tab2 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - 44 * - COUNT( * ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
396

skipif mysql # not compatible
query I rowsort label-3265
SELECT - 44 * - COUNT ( * ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL + MIN( ALL + col2 ) col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3266
SELECT ALL + MIN ( ALL + col2 ) col1 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - col2 + - - ( + ( + 93 ) ) FROM tab0 AS cor0
----
-6
46
83

query I rowsort
SELECT DISTINCT - col0 + + ( col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 18 + col1 * + - col0 AS col0 FROM tab1
----
-4295
-443
-732

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT DISTINCT + 85 DIV - 43 + col0 AS col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT + 85 / - 43 + col0 AS col0 FROM tab0
----
14
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT - 29 DIV col1 + - 38 AS col0 FROM tab1
----
-38
-40
-43

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 29 / col1 + - 38 AS col0 FROM tab1
----
-38
-40
-43

query I rowsort
SELECT ALL - 42 - + 96 AS col2 FROM tab2 AS cor0
----
-138
-138
-138

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 + 96 + - - ( + col2 ) * - 49 FROM tab0
----
-4754
4354
47

query I rowsort
SELECT ALL ( col1 ) * - 8 * - + col0 - + 20 FROM tab2
----
18748
39404
40180

query II rowsort
SELECT DISTINCT + col0 * + col0, + ( - + ( col0 ) ) FROM tab0 AS cor0 WHERE NULL <= NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT - ( + MIN( ALL + 75 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - ( + MIN ( ALL + 75 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-75

query I rowsort
SELECT ALL + - 48 * 6 AS col0 FROM tab2 AS cor0 WHERE NOT + 82 * - col1 * - 4 IS NULL
----
-288
-288
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL + + col0 DIV + - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + + col0 / + - 86 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 92 * + col2 * + 29 * + 75 BETWEEN + ( - + col0 ) AND ( + col2 )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab0
----
-11
-11
-11

query II rowsort
SELECT ALL - col1 AS col0, col0 FROM tab0 WHERE NOT ( NOT 60 * - + 56 * - - 73 * - 0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ALL + 22 DIV - 36 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + 22 / - 36 FROM tab0
----
0
0
0

query III rowsort
SELECT - col0 / col0 AS col1, col0 / 28 + - 17 AS col1, + col1 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 98 * - 9 + - 19 AS col1 FROM tab1 AS cor0
----
863

query I rowsort
SELECT col0 * + 73 * - col2 FROM tab2
----
-186880
-317550
-77234

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL + + COUNT( * ) - + 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + + COUNT ( * ) - + 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col1 + + - col0 + col1 * + + col0 IS NULL
----
51
85
91

query II rowsort
SELECT ALL + + 69 AS col0, - col2 AS col0 FROM tab0 cor0
----
69
-10
69
-47
69
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL - col2 + + - col0 + CAST( NULL AS SIGNED ) * + ( + + col0 ) * + col1 + - col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - col2 + + - col0 + CAST ( NULL AS INTEGER ) * + ( + + col0 ) * + col1 + - col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT ALL - COUNT( * ) col0, COUNT( * ) * + 90 col2 FROM tab0 AS cor0
----
-3
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3290
SELECT ALL - COUNT ( * ) col0, COUNT ( * ) * + 90 col2 FROM tab0 AS cor0
----
-3
270

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND + col2 + - 39
----

query I rowsort
SELECT + ( + 9 ) + 63 * col1 FROM tab2 AS cor0
----
3222
4230
4860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 34 AS col1, 64 col2 FROM tab0 AS cor0
----
-34
64
-34
64
-34
64

query I rowsort
SELECT DISTINCT + - col2 + 70 + + col0 FROM tab1 AS cor0
----
25
93
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + ( - - MAX( - col1 ) ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3295
SELECT + ( - - MAX ( - col1 ) ) AS col1 FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT + MAX( ALL col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - ( + + 71 ) col1 FROM tab2 AS cor0
----
-117
-135
-146

query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
17

query I rowsort
SELECT DISTINCT col2 * + 94 AS col1 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT DISTINCT - - ( + 87 ) * + 68 AS col0 FROM tab0 AS cor0
----
5916

query I rowsort
SELECT - col0 * - 45 * + col2 FROM tab0 cor0
----
31725
39150
432135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + - col1 * + - col0 + - - CAST( NULL AS SIGNED ) + - col2 * 50 / - 54 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < col0 / + CAST( + 99 AS SIGNED ) + - + col1 ) OR ( + col0 / - + col0 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3303
SELECT + - col1 * + - col0 + - - CAST ( NULL AS INTEGER ) + - col2 * 50 / - 54 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < col0 / + CAST ( + 99 AS INTEGER ) + - + col1 ) OR ( + col0 / - + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT CAST( - 39 AS SIGNED ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT CAST ( - 39 AS INTEGER ) FROM tab1
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 73 * col2 AS col0 FROM tab2
----
1679
2920
4234

query I rowsort
SELECT DISTINCT 86 * + col0 * col2 AS col1 FROM tab2
----
220160
374100
90988

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT 50 DIV + col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-3308
SELECT 50 / + col1 FROM tab1
----
1
10
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT MAX( ALL - + col0 ) AS col1, - COUNT( * ) FROM tab2
----
-46
-3

skipif mysql # not compatible
query II rowsort label-3309
SELECT MAX ( ALL - + col0 ) AS col1, - COUNT ( * ) FROM tab2
----
-46
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 + - ( - + 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT col1 * + + col0 * 19 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT col1 * + + col0 * 19 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3312
SELECT * FROM tab2 AS cor0 WHERE + col2 - col0 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3312
SELECT * FROM tab2 AS cor0 WHERE + col2 - col0 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 95 FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * col0 + - + col0 + col1 * col0 AS col0, 63 col0 FROM tab0 AS cor0
----
2415
63
3567
63
97
63

query I rowsort
SELECT + - ( col0 ) * col1 + 69 * + col1 * + ( 23 ) + + - ( - 45 ) FROM tab1 AS cor0
----
21549
70357
7555

query I rowsort
SELECT DISTINCT 4 + col0 FROM tab1 AS cor0
----
55
89
95

query I rowsort
SELECT ( + - col1 ) * - col1 + col2 + + + col0 AS col1 FROM tab0
----
197
538
6623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL - CAST( - 26 AS SIGNED ) col2 FROM tab2
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3318
SELECT ALL - CAST ( - 26 AS INTEGER ) col2 FROM tab2
----
26
26
26

query I rowsort
SELECT ALL col0 - - ( - 24 ) AS col1 FROM tab2
----
22
40
51

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE 78 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - - col0 col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL col1 + ( 1 ) AS col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3323
SELECT - + CAST( - ( + - COUNT( * ) ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3323
SELECT - + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT 83 * + + col2 FROM tab1
----
4897
5644
7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT + COUNT( * ) * - 65 + - SUM( DISTINCT + - 24 ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + COUNT ( * ) * - 65 + - SUM ( DISTINCT + - 24 ) FROM tab0 AS cor0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL - ( + CAST( col2 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3328
SELECT ALL - ( + CAST ( col2 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - - CAST( NULL AS SIGNED ) / COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT - - CAST ( NULL AS INTEGER ) / COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3330
SELECT + - 34 * SUM( col0 ) DIV + 26 FROM tab2 cor0
----
-241

skipif mysql # not compatible
query I rowsort label-3330
SELECT + - 34 * SUM ( col0 ) / + 26 FROM tab2 cor0
----
-241

query I rowsort
SELECT DISTINCT col0 * - + col0 * - 59 AS col1 FROM tab2
----
124844
241664
331875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * - col2 col1 FROM tab2
----
1932
3360
4872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3333
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + ( - + 65 ) FROM tab1
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL - COUNT( * ) * 88 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - COUNT ( * ) * 88 FROM tab1
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT col2 DIV + 98 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT col2 / + 98 FROM tab0
----
0
1

query II rowsort
SELECT 26 AS col1, col1 AS col0 FROM tab1
----
26
14
26
47
26
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT col1 BETWEEN NULL AND + + 97
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3340
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + CAST ( NULL AS REAL ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 5 + col2 FROM tab0 AS cor0
----
42
5
94

query I rowsort
SELECT DISTINCT - + col2 * + col2 * + col1 + ( - 12 ) FROM tab2 AS cor0
----
-123212
-225400
-26991

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - + COUNT( * ) + - 65 col1 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3343
SELECT ALL - + COUNT ( * ) + - 65 col1 FROM tab2 AS cor0
----
-68

query II rowsort
SELECT + col1 + - col1 AS col2, col2 AS col0 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL ( + col0 ) * - - col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT ALL 90 DIV + SUM( DISTINCT - 68 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL 90 / + SUM ( DISTINCT - 68 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT ALL + + 98 + col1 AS col0 FROM tab2 AS cor0
----
149
165
175

query I rowsort
SELECT - - 53 + + col1 AS col0 FROM tab1 AS cor0
----
100
58
67

query I rowsort
SELECT 5 + 1 - + col1 / + col2 + 86 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 / + col1 IS NULL
----

query I rowsort
SELECT ALL - - 63 + col0 + 44 AS col0 FROM tab0 AS cor0
----
122
194
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + col1 * - col1 col2 FROM tab2 AS cor0
----
-2521
-4409
-5849

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - 71 * 32 / + 22 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 83 + + 70 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT + 10 + - COUNT( * ) * 65 AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT + 10 + - COUNT ( * ) * 65 AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT - 79 - + CAST( + 65 AS SIGNED ) + + - col1 * - col1 + - col0 FROM tab1
----
-204
1
1974

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - 79 - + CAST ( + 65 AS INTEGER ) + + - col1 * - col1 + - col0 FROM tab1
----
-204
1
1974

query I rowsort
SELECT 10 - + col0 AS col0 FROM tab1
----
-41
-75
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3358
SELECT ALL - 97 * + + 13 - + CAST( NULL AS DECIMAL ) AS col0, col0 + 50 FROM tab2
----
NULL
114
NULL
125
NULL
96

skipif mysql # not compatible
query II rowsort label-3358
SELECT ALL - 97 * + + 13 - + CAST ( NULL AS REAL ) AS col0, col0 + 50 FROM tab2
----
NULL
114
NULL
125
NULL
96

query I rowsort
SELECT - 89 - + 72 AS col2 FROM tab0
----
-161
-161
-161

query I rowsort
SELECT - col1 * - - col1 + - col2 AS col2 FROM tab1 cor0
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL - MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN + 1 + + col2 AND + 17 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3363
SELECT COUNT( * ), + 61 AS col2 FROM tab2
----
3
61

skipif mysql # not compatible
query II rowsort label-3363
SELECT COUNT ( * ), + 61 AS col2 FROM tab2
----
3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL + MIN( ALL - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + MIN ( ALL - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT MIN( + - 96 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3365
SELECT MIN ( + - 96 ) AS col1 FROM tab0
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 84 + + - 52 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL + COUNT( * ) * 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + COUNT ( * ) * 11 FROM tab0
----
33

query II rowsort
SELECT col2, - col2 + + - 11 + + col2 AS col2 FROM tab2
----
23
-11
40
-11
58
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT - 35 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-35
3

skipif mysql # not compatible
query II rowsort label-3369
SELECT - 35 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-35
3

query I rowsort
SELECT + 5 * + col1 AS col2 FROM tab1 cor0
----
235
25
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + COUNT( DISTINCT - col0 ) * - 94 FROM tab0 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-3371
SELECT + COUNT ( DISTINCT - col0 ) * - 94 FROM tab0 cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT COUNT( * ) * - ( - 47 ) * COUNT( * ) FROM tab0
----
423

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT COUNT ( * ) * - ( - 47 ) * COUNT ( * ) FROM tab0
----
423

query I rowsort
SELECT 2 * - 67 AS col1 FROM tab1
----
-134
-134
-134

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 58 + - + 6 FROM tab0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT - col0 + - CAST( - - 41 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
-143
-211
-223

skipif mysql # not compatible
query I rowsort label-3377
SELECT - col0 + - CAST ( - - 41 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
-143
-211
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 8 < + - ( col1 ) - + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - COUNT( * ) + - 85 AS col0 FROM tab2 AS cor0 WHERE 1 IS NOT NULL
----
-88

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - COUNT ( * ) + - 85 AS col0 FROM tab2 AS cor0 WHERE 1 IS NOT NULL
----
-88

query I rowsort
SELECT ALL + + ( - col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT 80 * 87 + + ( - 29 ) + - + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
6922

skipif mysql # not compatible
query I rowsort label-3381
SELECT 80 * 87 + + ( - 29 ) + - + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
6922

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT + 5 - - col2 FROM tab0 AS cor0
----
104
15
52

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT - col0 + + col0 + + - 29 + + col0 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
33106
8671
950668

query I rowsort
SELECT ALL + + 92 + - 53 * + 50 FROM tab1 cor0
----
-2558
-2558
-2558

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - + COUNT( - col1 ) + + COUNT( * ) + - + COUNT( - 15 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3387
SELECT - + COUNT ( - col1 ) + + COUNT ( * ) + - + COUNT ( - 15 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col2 - - - col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + 32 + col2 - + + col1 FROM tab0
----
-2
130
21

query I rowsort
SELECT - 72 + + ( col2 ) AS col2 FROM tab0
----
-25
-62
27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3391
SELECT * FROM tab1 WHERE + ( + + CAST( - 91 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3391
SELECT * FROM tab1 WHERE + ( + + CAST ( - 91 AS REAL ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT + col2 + 79 * - + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT + col2 + 79 * - + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 90 + + - COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3393
SELECT 90 + + - COUNT ( * ) FROM tab2
----
87

query III rowsort
SELECT * FROM tab1 WHERE - - 3 * col1 * + col0 + - 36 - - 68 IS NULL
----

query I rowsort
SELECT - col2 + + 48 FROM tab0
----
-51
1
38

query I rowsort
SELECT DISTINCT col2 + + 56 + - + col0 FROM tab2
----
32
33
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT ALL - col1 DIV + 35 - + col0 AS col2 FROM tab1
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - col1 / + 35 - + col0 AS col2 FROM tab1
----
-51
-85
-92

query I rowsort
SELECT ALL col0 - + + col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 18 - + 42 * col1 AS col1 FROM tab0
----
-24
-3384
-864

query I rowsort
SELECT 39 * + + 61 FROM tab0
----
2379
2379
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT - COUNT( * ) * MIN( DISTINCT - col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-3402
SELECT - COUNT ( * ) * MIN ( DISTINCT - col0 ) FROM tab2
----
225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 61 <> - - col1
----

query II rowsort
SELECT col0, - col2 * - col1 * + col2 AS col2 FROM tab0 AS cor0
----
15
178929
87
2100
97
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3405
SELECT ALL 74, + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
74
23
74
40
74
58

skipif mysql # not compatible
query II rowsort label-3405
SELECT ALL 74, + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
74
23
74
40
74
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT - + 94 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT - + 94 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3407
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + + col0 * - col0 * 22 + - col1, + 96 col0 FROM tab2 AS cor0
----
2141341
96
5767091
96
9281183
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 21 ) * - col0 * + 8 * + - col1 AS col1 FROM tab2
----
394128
827904
844200

query I rowsort
SELECT ALL ( + col0 ) * 88 + 86 AS col2 FROM tab2
----
4134
5718
6686

query I rowsort
SELECT DISTINCT col2 * - 72 * col2 + + col2 AS col2 FROM tab2
----
-115160
-242150
-38065

query I rowsort
SELECT ALL - ( - + 79 ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL ( - col0 ) * - - 19 AS col0 FROM tab1
----
-1615
-1729
-969

query II rowsort
SELECT + 35 AS col1, - col0 AS col1 FROM tab1
----
35
-51
35
-85
35
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL - col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IN ( col0, + col1 )
----

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT COUNT( * ) * 53 * + - 48 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT COUNT ( * ) * 53 * + - 48 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 <= - + 65 / + - col1 - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT COUNT( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3419
SELECT COUNT ( DISTINCT col1 ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 35 + + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-10
58
61

query II rowsort
SELECT 82, 38 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - col0
----

query II rowsort
SELECT ALL + col0 * col0 AS col0, + col2 + + 69 AS col0 FROM tab0
----
225
116
7569
79
9409
168

query I rowsort
SELECT ALL + + 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT + - ( 15 ) DIV col1 FROM tab0 AS cor0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT + - ( 15 ) / col1 FROM tab0 AS cor0
----
-15
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT ( COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT ( COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL + col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + - 14 FROM tab0
----
113
24
61

query I rowsort
SELECT DISTINCT - 26 FROM tab2, tab1 cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL CAST( 85 AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL CAST ( 85 AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT - CAST( - 56 AS SIGNED ) * + MAX( - + col1 ) FROM tab2
----
-2856

skipif mysql # not compatible
query I rowsort label-3430
SELECT - CAST ( - 56 AS INTEGER ) * + MAX ( - + col1 ) FROM tab2
----
-2856

query I rowsort
SELECT 8 * col1 FROM tab1
----
112
376
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3432
SELECT ALL + - CAST( NULL AS SIGNED ), + 16 AS col1 FROM tab2 AS cor0
----
NULL
16
NULL
16
NULL
16

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL + - CAST ( NULL AS INTEGER ), + 16 AS col1 FROM tab2 AS cor0
----
NULL
16
NULL
16
NULL
16

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE - ( - col1 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3434
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL COUNT( * ) - + 97 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL COUNT ( * ) - + 97 FROM tab1
----
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT ALL - MIN( col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - MIN ( col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL - MIN( ALL - col0 ) + - COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - MIN ( ALL - col0 ) + - COUNT ( * ) FROM tab0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 8 col0 FROM tab2
----
59
75
85

query I rowsort
SELECT + 34 + + col0 * 61 AS col1 FROM tab1
----
3145
5219
5585

query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 + + col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 < ( NULL )
----

query I rowsort
SELECT col0 + 49 AS col0 FROM tab1
----
100
134
140

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col1 BETWEEN ( + col2 / + 55 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT 2 * - 58 + COUNT( * ) FROM tab2
----
-113

skipif mysql # not compatible
query I rowsort label-3446
SELECT 2 * - 58 + COUNT ( * ) FROM tab2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT + SUM( - CAST( 33 AS SIGNED ) ) * + 7 FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + SUM ( - CAST ( 33 AS INTEGER ) ) * + 7 FROM tab2
----
-693

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col1 + col1 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT SUM( + col1 ) * - 79 col1 FROM tab1
----
-5214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3449
SELECT DISTINCT SUM ( + col1 ) * - 79 col1 FROM tab1
----
-5214

query I rowsort
SELECT - col2 * + 3 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT 27 * + COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT 27 * + COUNT ( * ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE 30 * col0 BETWEEN - col1 AND - col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT DISTINCT - CAST( 34 AS SIGNED ) AS col1 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - CAST ( 34 AS INTEGER ) AS col1 FROM tab1
----
-34

query I rowsort
SELECT col0 * col1 + - col1 * col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT - COUNT( ALL - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3456
SELECT - COUNT ( ALL - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT + col2 DIV - 11 - - col0 FROM tab0
----
11
87
88

skipif mysql # not compatible
query I rowsort label-3458
SELECT + col2 / - 11 - - col0 FROM tab0
----
11
87
88

query I rowsort
SELECT - 86 + col0 * - col1 FROM tab0 AS cor0
----
-1301
-183
-1913

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT - col0 DIV col0 + 64 FROM tab1 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-3460
SELECT - col0 / col0 + 64 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 6 + - col1 FROM tab0
----
-15
-75
5

query I rowsort
SELECT - 7 - - 6 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col2 - 81 FROM tab1
----
-13
-22
15

query I rowsort
SELECT - col2 - - 60 FROM tab0
----
-39
13
50

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 WHERE - ( + 19 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT SUM( ALL - ( - col0 ) ) - + 69 AS col0 FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-3467
SELECT SUM ( ALL - ( - col0 ) ) - + 69 AS col0 FROM tab2
----
116

query I rowsort
SELECT col2 + - 4 AS col2 FROM tab1 AS cor0 WHERE col2 + col0 * - 74 NOT IN ( - col0 + col2 )
----
55
64
92

query I rowsort
SELECT - ( col2 ) * - 92 FROM tab0 AS cor0 WHERE - 64 = + 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab1 AS cor0 WHERE - col0 IN ( 42 + - 83 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( - 27 ) NOT IN ( 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + AVG ( col1 ) / COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 13 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT + AVG ( col1 ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 13 + + col1
----
NULL

query I rowsort
SELECT DISTINCT + col0 * ( + col2 ) FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( - COUNT( * ) + MIN( 79 ) * + 9 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( - COUNT ( * ) + MIN ( 79 ) * + 9 ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / - ( - 54 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 52 AS col0 FROM tab2 AS cor0
----
110
75
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE 44 / col1 IN ( col1 * 22 )
----

query I rowsort
SELECT DISTINCT - 68 * 24 AS col0 FROM tab1 AS cor0
----
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3480
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 NOT IN ( - 69 )
----

skipif mysql # not compatible
query III rowsort label-3480
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 NOT IN ( - 69 )
----

query I rowsort
SELECT + col1 * 7 + - col0 * 6 AS col2 FROM tab0 cor0
----
-375
-575
477

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3482
SELECT DISTINCT * FROM tab2 WHERE CAST( + col1 AS SIGNED ) BETWEEN NULL AND - col1 * 0
----

skipif mysql # not compatible
query III rowsort label-3482
SELECT DISTINCT * FROM tab2 WHERE CAST ( + col1 AS INTEGER ) BETWEEN NULL AND - col1 * 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - MIN( col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - MIN ( col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT + 73 * - col0 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab2 WHERE col0 <> ( + col1 )
----
9

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE col0 <> ( + col1 )
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( col1 / col0 )
----

query I rowsort
SELECT + col0 + + ( + 37 ) * col1 AS col2 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE 89 + - col1 * - 0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT + SUM( DISTINCT 18 ) + - 99 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + SUM ( DISTINCT 18 ) + - 99 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL CAST( 54 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL CAST ( 54 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT - 57 AS col0, + MAX( - 13 ) AS col1 FROM tab1
----
-57
-13

skipif mysql # not compatible
query II rowsort label-3491
SELECT - 57 AS col0, + MAX ( - 13 ) AS col1 FROM tab1
----
-57
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - ( col0 ) - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3492
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - ( col0 ) - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 88 <> + 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 83 col0, 50 AS col1 FROM tab2 AS cor0
----
83
50
83
50
83
50

query I rowsort
SELECT DISTINCT 35 + - 93 AS col1 FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT + col0 + col1 + col1 DIV - 98 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3497
SELECT + col0 + col1 + col1 / - 98 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL 59 AS col2 FROM tab0 AS cor0 WHERE - col0 - + - col0 NOT BETWEEN - col2 + + col2 * - col0 AND - 22
----
59
59
59

query I rowsort
SELECT + 1 * col2 + - ( col1 ) FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 60 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
3599
4148
5856

query I rowsort
SELECT - - col2 * + col0 - + 89 + + col2 * 66 AS col1 FROM tab1 AS cor0
----
10587
11143
8820

query I rowsort
SELECT ALL + - col1 + col1 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 70 * - col0 FROM tab1 WHERE + col2 * + col0 IS NULL
----

query I rowsort
SELECT + 30 * + col0 AS col2 FROM tab2
----
1380
1920
2250

query III rowsort
SELECT * FROM tab0 WHERE 6 >= ( 79 + 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT ALL + 83 DIV - col0 FROM tab0 WHERE NOT ( col1 ) > 42
----
0
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 83 / - col0 FROM tab0 WHERE NOT ( col1 ) > 42
----
0
0

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT DISTINCT col1 + - - 40 * CAST( + + col2 AS SIGNED ) AS col0 FROM tab1
----
2365
2767
3854

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT col1 + - - 40 * CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1
----
2365
2767
3854

query I rowsort
SELECT 99 + col2 FROM tab0 WHERE - col2 <= - - ( 6 )
----
109
146
198

query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab0 WHERE + 46 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - ( col1 ) AS col0 FROM tab2 WHERE col0 <> col0 * - 14
----
-51
-67
-77

query I rowsort
SELECT + 96 * + 93 + + col0 AS col1 FROM tab2 WHERE + col2 - col0 < NULL
----

query I rowsort
SELECT ALL - 62 AS col1 FROM tab1 WHERE NOT ( NULL ) = col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT DISTINCT - - MIN( DISTINCT ( col0 ) ) - COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - - MIN ( DISTINCT ( col0 ) ) - COUNT ( * ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT ( + + 39 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
39
39
39

query I rowsort
SELECT ALL col2 - - + 75 AS col0 FROM tab2
----
115
133
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + col2 / col2 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3519
SELECT col1 * + col2 * 46 AS col2, - CAST( + CAST( + ( col1 ) AS DECIMAL ) AS SIGNED ) + col2 col0 FROM tab0 cor0
----
175122
-34
4554
98
9660
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3519
SELECT col1 * + col2 * 46 AS col2, - CAST ( + CAST ( + ( col1 ) AS REAL ) AS INTEGER ) + col2 col0 FROM tab0 cor0
----
175122
-34
4554
98
9660
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT - 86 * + col1 + 15 NOT BETWEEN - 39 * - col0 AND col2 / - ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT - 86 * + col1 + 15 NOT BETWEEN - 39 * - col0 AND col2 / - ( col1 )
----
0

query II rowsort
SELECT 99 AS col0, + col1 * - - col2 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT - MIN( DISTINCT + 20 ) col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3522
SELECT DISTINCT - MIN ( DISTINCT + 20 ) col1 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + + 97 AS col1 FROM tab1 cor0
----
97

query I rowsort
SELECT - + 28 * - 1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + - - 65 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 - + - col0 + - 1 AND + col2 * + 31
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3526
SELECT - COUNT( ALL + col0 ) DIV + - COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3526
SELECT - COUNT ( ALL + col0 ) / + - COUNT ( * ) FROM tab0 cor0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - 90 * - 28 * + - 93 * + col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL 88 * - 13 FROM tab1
----
-1144
-1144
-1144

query I rowsort
SELECT DISTINCT - 53 * - col2 FROM tab1
----
3127
3604
5088

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 + + 88 NOT IN ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 - col0 / - - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + ( MIN( + 13 ) ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3533
SELECT + ( MIN ( + 13 ) ) AS col2 FROM tab2 AS cor0
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + col0 ) ) <> ( NULL ) OR - col0 + - 4 NOT IN ( col2 / - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 21 - col1 <> - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <= - + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) BETWEEN NULL AND - + 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3538
SELECT ALL - CAST( NULL AS DECIMAL ) / - + 23 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - CAST ( NULL AS REAL ) / - + 23 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 82 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0 / - + col0, - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 3 col1 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2 AS cor0 WHERE col2 = 77
----

query II rowsort
SELECT DISTINCT + col0 + + col0 + col0 + - ( - col1 ) AS col0, - 89 FROM tab1 AS cor0
----
167
-89
260
-89
320
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + 28 + - 7 + + col1 col2 FROM tab1 AS cor0
----
1435
2378
2588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL CAST( NULL AS SIGNED ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3545
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 + + - 19 AS col1 FROM tab2
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * 79 * + 22 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
24332

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3548
SELECT + col0 + - CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT + col0 + - CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 33 + - col1 col2 FROM tab0
----
33
33
33

query I rowsort
SELECT ALL col0 + - + col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT col0 + col1 - CAST( - col0 AS SIGNED ) FROM tab2
----
143
205
217

skipif mysql # not compatible
query I rowsort label-3551
SELECT col0 + col1 - CAST ( - col0 AS INTEGER ) FROM tab2
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT SUM( DISTINCT 70 ) + 51 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3552
SELECT SUM ( DISTINCT 70 ) + 51 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT col0 + + 27 + col1 + CAST( + + col1 AS SIGNED ) FROM tab0
----
126
156
204

skipif mysql # not compatible
query I rowsort label-3553
SELECT col0 + + 27 + col1 + CAST ( + + col1 AS INTEGER ) FROM tab0
----
126
156
204

query I rowsort
SELECT - 94 + - col2 AS col1 FROM tab1
----
-153
-162
-190

query II rowsort
SELECT - col1 AS col2, 17 FROM tab0
----
-1
17
-21
17
-81
17

query I rowsort
SELECT ALL 92 AS col1 FROM tab0 AS cor0 WHERE col1 * + col1 IN ( 17 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3557
SELECT - 13 FROM tab0 cor0 WHERE CAST( + - 72 AS DECIMAL ) IS NOT NULL
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3557
SELECT - 13 FROM tab0 cor0 WHERE CAST ( + - 72 AS REAL ) IS NOT NULL
----
-13
-13
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3558
SELECT 44 / ( - CAST( NULL AS DECIMAL ) ) AS col0, 1 FROM tab0 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-3558
SELECT 44 / ( - CAST ( NULL AS REAL ) ) AS col0, 1 FROM tab0 AS cor0
----
NULL
1
NULL
1
NULL
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + 59 / + col1 * - col1 + col0 * - col0 / - + col1 ) IS NULL )
----

query I rowsort
SELECT 13 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query II rowsort
SELECT DISTINCT - + 25 - + 83, 29 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-108
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + SUM( - col2 ) FROM tab1 WHERE NOT col0 IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + SUM ( - col2 ) FROM tab1 WHERE NOT col0 IS NULL
----
-223

query I rowsort
SELECT + 75 * 8 + - ( 89 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 33e7695c4ff64b4ae2a9a61a9e9d3f46

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE ( - - col1 ) IS NULL
----

query I rowsort
SELECT ALL + 90 - - - 89 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT + - col2 DIV + col0 + + + 24 FROM tab0 AS cor0
----
21
23
24

skipif mysql # not compatible
query I rowsort label-3566
SELECT + - col2 / + col0 + + + 24 FROM tab0 AS cor0
----
21
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT SUM( + 20 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3567
SELECT SUM ( + 20 ) AS col2 FROM tab2
----
60

query II rowsort
SELECT col1, - col1 * ( - 8 ) * - + col0 + - col0 FROM tab1
----
14
-5763
47
-34307
5
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT 13 * COUNT( * ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3569
SELECT 13 * COUNT ( * ) AS col1 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3570
SELECT * FROM tab1 WHERE - 91 * + col0 * - col0 NOT BETWEEN + CAST( + 5 AS SIGNED ) AND col2 AND NOT col0 * - col0 * + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3570
SELECT * FROM tab1 WHERE - 91 * + col0 * - col0 NOT BETWEEN + CAST ( + 5 AS INTEGER ) AND col2 AND NOT col0 * - col0 * + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * 42 AS col1 FROM tab0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + + SUM( + - 56 ) AS col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3572
SELECT + + SUM ( + - 56 ) AS col2 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT COUNT( * ) * - + SUM( col1 ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT COUNT ( * ) * - + SUM ( col1 ) FROM tab1 AS cor0
----
-198

query I rowsort
SELECT ( + col2 ) + - 20 FROM tab0 AS cor0 WHERE 82 IS NOT NULL
----
-10
27
79

query I rowsort
SELECT - col0 + - + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT col2 + + col2 + - col1 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1 cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT DISTINCT + col0 + col1 DIV + + 51 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + col0 + col1 / + + 51 FROM tab2 AS cor0
----
47
65
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT COUNT( * ) * - + SUM( - 70 ) AS col0 FROM tab1 AS cor0
----
630

skipif mysql # not compatible
query I rowsort label-3580
SELECT COUNT ( * ) * - + SUM ( - 70 ) AS col0 FROM tab1 AS cor0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3581
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT col2 + + + 4 + - ( - col1 ) + - col2 FROM tab0 WHERE col1 IS NOT NULL
----
25
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL MIN( 6 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL MIN ( 6 ) AS col0 FROM tab1
----
6

query I rowsort
SELECT DISTINCT + - col1 * - + 96 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 74 / 27 * + col1 FROM tab0 WHERE + 84 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT - 17 + - + COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3587
SELECT - 17 + - + COUNT ( * ) FROM tab0 AS cor0
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3588
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 BETWEEN - - col0 AND - CAST( NULL AS DECIMAL ) * - - 61
----

skipif mysql # not compatible
query III rowsort label-3588
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 BETWEEN - - col0 AND - CAST ( NULL AS REAL ) * - - 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + - 45, - 51 + - col1 col1 FROM tab0 cor0
----
3915
-72
4365
-52
675
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT ALL - + 42 DIV col1 - col2 + + 52 AS col0 FROM tab2 AS cor0
----
-6
12
29

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL - + 42 / col1 - col2 + + 52 AS col0 FROM tab2 AS cor0
----
-6
12
29

query II rowsort
SELECT DISTINCT - 47 AS col1, - ( + col0 ) FROM tab0
----
-47
-15
-47
-87
-47
-97

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + - col2 <= ( + + col0 + col0 )
----

query I rowsort
SELECT DISTINCT + col2 * 53 FROM tab0 AS cor0
----
2491
5247
530

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT - MIN( - 43 ) AS col2 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT - MIN ( - 43 ) AS col2 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 * - - col0 * + col1 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 * - - col0 * + col1 + + col0 IS NULL
----
3

query II rowsort
SELECT - col0, + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT ( - 36 ) AS col0 FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT ALL + - COUNT( * ) AS col0, 36 FROM tab1 cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL + - COUNT ( * ) AS col0, 36 FROM tab1 cor0
----
-3
36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) - col1 + col1 IS NOT NULL )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + - 29 * - 27 - 57 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT 47 < NULL
----

query I rowsort
SELECT - ( + + col1 ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT 82 * + col2 AS col0 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT COUNT( ALL 89 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3605
SELECT COUNT ( ALL 89 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT COUNT( * ) * MAX( + col1 ) + + 75 * - COUNT( + col0 ) AS col1 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT COUNT ( * ) * MAX ( + col1 ) + + 75 * - COUNT ( + col0 ) AS col1 FROM tab0 cor0
----
18

query I rowsort
SELECT DISTINCT - - 35 * col0 FROM tab2 AS cor0 WHERE col1 * + - 11 IS NOT NULL
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT MIN( col1 ) col0 FROM tab2 AS cor0 WHERE + col2 * + 47 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT MIN ( col1 ) col0 FROM tab2 AS cor0 WHERE + col2 * + 47 IS NULL
----
NULL

query I rowsort
SELECT 90 + + - 68 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( ( - col2 ) NOT BETWEEN 39 AND NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - + 79 AS col0 FROM tab0
----
-64
18
8

query I rowsort
SELECT 20 * 81 AS col1 FROM tab0
----
1620
1620
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT DISTINCT + - 14 + + + col2 DIV 90 FROM tab1 AS cor0
----
-13
-14

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT + - 14 + + + col2 / 90 FROM tab1 AS cor0
----
-13
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col1 + col0 + col2 AS col1 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + - col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3619
SELECT DISTINCT col2 - 8 + + + CAST( NULL AS DECIMAL ) * + - col1 * + + ( + col0 ) * - col0 / - - col2 * col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT col2 - 8 + + + CAST ( NULL AS REAL ) * + - col1 * + + ( + col0 ) * - col0 / - - col2 * col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 + - - 77 AS col0 FROM tab1
----
124
82
91

query I rowsort
SELECT ALL col1 - + + 71 + col1 * col2 * - + col1 * + col0 + + col2 + + 77 FROM tab0
----
-383633
-4625371
-9497

query II rowsort
SELECT ALL + col2 AS col2, 98 FROM tab2
----
23
98
40
98
58
98

query II rowsort
SELECT ALL - col0 + + col1 AS col1, + col1 AS col2 FROM tab0
----
-66
21
-96
1
66
81

query I rowsort
SELECT DISTINCT - col2 - - + col0 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL ( - + col2 ) + - + col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT DISTINCT col2 DIV 11 * + ( - + 13 ) * + 68 - + col1 DIV - col0 AS col0 FROM tab1 cor0
----
-4420
-5304
-7072

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT col2 / 11 * + ( - + 13 ) * + 68 - + col1 / - col0 AS col0 FROM tab1 cor0
----
-4420
-5304
-7072

query I rowsort
SELECT ALL + 15 AS col1 FROM tab0 cor0 WHERE NULL < col2 + - col2 + + 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT DISTINCT + + col2 DIV - + 88 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + + col2 / - + 88 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + 6 AS col2, + col2 col0 FROM tab2
----
276
23
384
40
450
58

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + + col2 > NULL
----

query I rowsort
SELECT ALL - col0 * - + ( + + col1 ) FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - col1 * + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT + + 74 * 35 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + + 74 * 35 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT CAST( CAST( - 87 AS SIGNED ) AS SIGNED ) * CAST( 5 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-435
-435
-435

skipif mysql # not compatible
query I rowsort label-3636
SELECT CAST ( CAST ( - 87 AS INTEGER ) AS INTEGER ) * CAST ( 5 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-435
-435
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL - + MAX( DISTINCT - + 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - + MAX ( DISTINCT - + 71 ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT - col2 * + - 78 FROM tab1
----
4602
5304
7488

query I rowsort
SELECT DISTINCT 91 + - col2 * + col0 FROM tab0
----
-614
-779
-9512

query I rowsort
SELECT 89 + col2 + + col0 + - + 59 + col1 FROM tab0
----
148
173
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT - 69 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - 69 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + - MAX( + ( + + col1 ) ) * 28 AS col0 FROM tab0 AS cor0
----
-2268

skipif mysql # not compatible
query I rowsort label-3642
SELECT + - MAX ( + ( + + col1 ) ) * 28 AS col0 FROM tab0 AS cor0
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL SUM( + 18 ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL SUM ( + 18 ) AS col1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT - col1 * - col2 - + 26 * 42 FROM tab2 AS cor0
----
1988
2794
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * 83 * 91 ) >= + ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( + - 95 ) AS col0, - col2 FROM tab2 AS cor0
----
-95
-23
-95
-40
-95
-58

query I rowsort
SELECT ALL + - col0 + 23 FROM tab0 AS cor0
----
-64
-74
8

query I rowsort
SELECT DISTINCT col0 - - - col2 * - col0 * 54 FROM tab2
----
138304
234975
57178

query I rowsort
SELECT DISTINCT ( - col2 ) + - - col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT + col1 - + - CAST( NULL AS SIGNED ) + + 25 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT + col1 - + - CAST ( NULL AS INTEGER ) + + 25 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - 49 FROM tab1
----
2
35
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT MIN( DISTINCT - col0 ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT MIN ( DISTINCT - col0 ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
291

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) * - 10 = - col0 + - - 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT SUM( ALL 29 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT SUM ( ALL 29 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3655
SELECT - 50 AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-50
NULL
-50
NULL
-50
NULL

skipif mysql # not compatible
query II rowsort label-3655
SELECT - 50 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-50
NULL
-50
NULL
-50
NULL

query II rowsort
SELECT col2, 96 FROM tab0
----
10
96
47
96
99
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT DISTINCT + + 99 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT + + 99 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT 29 * col0 AS col2 FROM tab1 AS cor0
----
1479
2465
2639

query II rowsort
SELECT DISTINCT + col0 AS col2, 1 - 59 + - + 56 + col0 * + 84 * - col1 + col0 FROM tab1 AS cor0
----
51
-60039
85
-35729
91
-359291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - - 37 col1, - col0 + ( + + col0 ) - + col0 * 13 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + 36 * - + col2 AS col2 FROM tab0
----
-1692
-3564
-360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3663
SELECT + col1 + - - 47, col2 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
114
NULL
124
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-3663
SELECT + col1 + - - 47, col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
114
NULL
124
NULL
98
NULL

query I rowsort
SELECT col1 + + + 49 - - col2 * col1 FROM tab1
----
1407
3292
349

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT 1 * - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT 1 * - COUNT ( * ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT - - 53 + MIN( col2 ) * + + 7 AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT - - 53 + MIN ( col2 ) * + + 7 AS col2 FROM tab0 AS cor0
----
123

query I rowsort
SELECT ALL + col1 * + 21 + - col2 AS col2 FROM tab2 AS cor0
----
1048
1349
1577

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT - SUM( ALL 77 ) + - - 38 FROM tab1 cor0
----
-193

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - SUM ( ALL 77 ) + - - 38 FROM tab1 cor0
----
-193

query I rowsort
SELECT ALL + - 75 + + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-134
-143
-171

query I rowsort
SELECT DISTINCT + - 3 * col0 * + + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-2115
-2610
-28809

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT SUM( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3671
SELECT SUM ( DISTINCT - + col0 ) AS col1 FROM tab0
----
-199

query II rowsort
SELECT DISTINCT + col0 - - + 4 + + col0 AS col2, col2 FROM tab1
----
106
96
174
59
186
68

query I rowsort
SELECT ALL + + col1 + - 26 AS col0 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT 32 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 78 * - col0 >= - + col2 * - 22 * + col0 * ( + 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + + MAX( col1 ) + + 57 AS col1 FROM tab1 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-3676
SELECT + + MAX ( col1 ) + + 57 AS col1 FROM tab1 AS cor0
----
104

query I rowsort
SELECT DISTINCT - 75 + - + col0 * col1 AS col1 FROM tab1
----
-4352
-500
-789

query I rowsort
SELECT - col1 * - col1 + - ( + + 99 ) AS col1 FROM tab2
----
2502
4390
5830

query I rowsort
SELECT DISTINCT 94 * - col0 AS col1 FROM tab2
----
-4324
-6016
-7050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - + 6 col0, col2 FROM tab1
----
282
68
30
59
84
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3681
SELECT - + 21 + + 45 - COUNT( * ) AS col2, - COUNT( * ) col1 FROM tab0 WHERE NOT - + col0 BETWEEN col0 AND 92 + + 28
----
21
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3681
SELECT - + 21 + + 45 - COUNT ( * ) AS col2, - COUNT ( * ) col1 FROM tab0 WHERE NOT - + col0 BETWEEN col0 AND 92 + + 28
----
21
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT + 15 * 31 * 13 * SUM( 7 ) AS col0 FROM tab2
----
126945

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT + 15 * 31 * 13 * SUM ( 7 ) AS col0 FROM tab2
----
126945

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col0 + - + ( - + col2 )
----

query I rowsort
SELECT - 9 * + - col0 AS col2 FROM tab0
----
135
783
873

query I rowsort
SELECT + 43 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 87, + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3688
SELECT + COUNT( * ) DIV + - 44 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT + COUNT ( * ) / + - 44 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 88 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 55 + - 55 FROM tab2 cor0
----
-110
-110
-110

query I rowsort
SELECT DISTINCT - ( - col1 ) + - + 90 - col2 + - col0 FROM tab2 AS cor0
----
-108
-117
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT + + 84 * - COUNT( * ) FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + + 84 * - COUNT ( * ) FROM tab1 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + COUNT( * ) * 83 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-3693
SELECT + COUNT ( * ) * 83 FROM tab0 AS cor0
----
249

query I rowsort
SELECT DISTINCT 98 + - ( + + 4 ) + ( col0 ) + - + col1 * - col2 FROM tab1 AS cor0
----
1489
3381
474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT MAX( + - 46 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT MAX ( + - 46 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 9 * + col2 AS col0 FROM tab2
----
-207
-360
-522

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3697
SELECT * FROM tab0 WHERE 68 < - + CAST( + + ( + col2 ) AS SIGNED ) * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3697
SELECT * FROM tab0 WHERE 68 < - + CAST ( + + ( + col2 ) AS INTEGER ) * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - 6 AS col0 FROM tab1
----
-306
-510
-546

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL col2 DIV + 16 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL col2 / + 16 FROM tab2
----
1
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT + 46 / - MIN( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 46 / - MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 41 * + + col0 AS col0 FROM tab1
----
2091
3485
3731

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 87 + + 72 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 47 * + col1 AS col0 FROM tab0
----
-3807
-47
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 42 col1 FROM tab2
----
22
33
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT ALL - 14 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - 14 / + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 19 * + 52 * col1 FROM tab1
----
13832
46436
4940

query I rowsort
SELECT col0 + + - col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3708
SELECT ALL - col1 + + - col2, 44 - - CAST( - col0 AS SIGNED ) / col1 AS col2 FROM tab1 WHERE NULL NOT IN ( + col0, - col0, - 5 )
----

skipif mysql # not compatible
query II rowsort label-3708
SELECT ALL - col1 + + - col2, 44 - - CAST ( - col0 AS INTEGER ) / col1 AS col2 FROM tab1 WHERE NULL NOT IN ( + col0, - col0, - 5 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 - + + 43 * + - col1 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - 86 * + - 77 + 26 col0 FROM tab2
----
6694
6712
6723

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL MIN( - + 91 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL MIN ( - + 91 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-91

query I rowsort
SELECT + 67 * + col2 FROM tab2 cor0
----
1541
2680
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + - MAX( - col2 ) * + COUNT( * ) * + + 33 * - MIN( + col0 ) * + COUNT( * ) + 27 FROM tab1 AS cor0
----
-893646

skipif mysql # not compatible
query I rowsort label-3713
SELECT + - MAX ( - col2 ) * + COUNT ( * ) * + + 33 * - MIN ( + col0 ) * + COUNT ( * ) + 27 FROM tab1 AS cor0
----
-893646

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT DISTINCT col1 DIV col2 + + ( - 18 ) AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT col1 / col2 + + ( - 18 ) AS col0 FROM tab1 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT + col0 - + col0 DIV - + 34 AS col1 FROM tab1 AS cor0
----
52
87
93

skipif mysql # not compatible
query I rowsort label-3715
SELECT + col0 - + col0 / - + 34 AS col1 FROM tab1 AS cor0
----
52
87
93

query I rowsort
SELECT + - col1 * 25 AS col2 FROM tab2 AS cor0
----
-1275
-1675
-1925

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab0 WHERE - ( - col1 ) * - + col2 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 4 col1, - col2 * - + 12 * col0 AS col2 FROM tab1
----
4
58752
4
60180
4
74256

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT + col2 AS col1, - col2 DIV + - col0 * col0 + + - col0 * col2 * - - 4 FROM tab2
----
23
-4232
40
-10240
58
-17400

skipif mysql # not compatible
query II rowsort label-3720
SELECT + col2 AS col1, - col2 / + - col0 * col0 + + - col0 * col2 * - - 4 FROM tab2
----
23
-4232
40
-10240
58
-17400

query II rowsort
SELECT + 94, col0 AS col2 FROM tab0
----
94
15
94
87
94
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 9 * col0 FROM tab2
----
414
576
675

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL ( + + SUM( ALL col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL ( + + SUM ( ALL col1 ) ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - + MAX( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3726
SELECT - + MAX ( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL COUNT( * ) * - + 22 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL COUNT ( * ) * - + 22 AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - - 13 + + + col2 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT DISTINCT - col1 * + ( + 5 ) + - col0 AS col1 FROM tab1 AS cor0
----
-110
-121
-326

query I rowsort
SELECT - + col2 + - 35 AS col0 FROM tab0 AS cor0
----
-134
-45
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT DISTINCT CAST( CAST( - 44 AS SIGNED ) AS SIGNED ) + + - col1 + 75 FROM tab1 AS cor0
----
-16
17
26

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT CAST ( CAST ( - 44 AS INTEGER ) AS INTEGER ) + + - col1 + 75 FROM tab1 AS cor0
----
-16
17
26

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE 37 BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT + MAX( ALL + + 50 ) AS col0 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT + MAX ( ALL + + 50 ) AS col0 FROM tab2
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 12 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT 86 * + ( 97 ) + - + MAX( DISTINCT + 92 ) col2 FROM tab0
----
8250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3736
SELECT 86 * + ( 97 ) + - + MAX ( DISTINCT + 92 ) col2 FROM tab0
----
8250

query I rowsort
SELECT + col1 * - + col0 * - + col1 FROM tab1 AS cor0
----
201019
2125
9996

query II rowsort
SELECT 9 - - col2, col1 AS col2 FROM tab2
----
32
51
49
77
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3739
SELECT + col1 - + + col0 * - CAST( NULL AS SIGNED ) + - 67 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT + col1 - + + col0 * - CAST ( NULL AS INTEGER ) + - 67 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col1 ) - + col0 + + col0 * - 64 * 41 * - col2 FROM tab0
----
1849986
2282814
25198176

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT MAX( 85 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT MAX ( 85 ) FROM tab2
----
85

query II rowsort
SELECT - col2 + + - col0, 87 AS col1 FROM tab2
----
-104
87
-133
87
-69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL + COUNT( * ) + + 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + COUNT ( * ) + + 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 + - - 2 + - col2 FROM tab0 AS cor0
----
0
1170
1819

query I rowsort
SELECT + 54 * - - 91 - + col0 FROM tab0 AS cor0
----
4817
4827
4899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT - CAST( + 7 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - CAST ( + 7 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 * + col2 <= + 29 + - + col0 + - ( - - col0 ) / + - ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT DISTINCT col2 * 27 AS col2 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT ALL + 80 DIV - MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + 80 / - MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3752
SELECT DISTINCT - 47 DIV MAX( - col1 ) * - 36 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - 47 / MAX ( - col1 ) * - 36 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT - col0 DIV - col1 col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT - col0 / - col1 col1 FROM tab1
----
1
17
3

query I rowsort
SELECT + 34 * - + col2 * col0 AS col0 FROM tab2
----
-147900
-35972
-87040

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 72 + - 36 / - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT - - ( - COUNT( * ) ) DIV 38 AS col1 FROM tab0 AS cor0 WHERE NOT 19 <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT - - ( - COUNT ( * ) ) / 38 AS col1 FROM tab0 AS cor0 WHERE NOT 19 <= - col2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / ( col1 ) + + + col1
----

query I rowsort
SELECT + 84 * + col0 FROM tab1 AS cor0
----
4284
7140
7644

query I rowsort
SELECT - 0 * + col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( col2 ) * + - col1 AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - col1 + + 69 - + 46
----

query II rowsort
SELECT ALL - 42 AS col2, + col0 * + col2 FROM tab0 AS cor0
----
-42
705
-42
870
-42
9603

query II rowsort
SELECT DISTINCT - - col0 + + - col2 - - col2 AS col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + - col2 = NULL
----

query I rowsort
SELECT DISTINCT - - col1 + 88 AS col2 FROM tab0 AS cor0
----
109
169
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col2, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT ( + - CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3767
SELECT ( + - CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT - + CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3768
SELECT - + CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL - 14 + - - COUNT( DISTINCT - col2 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - 14 + - - COUNT ( DISTINCT - col2 ) FROM tab2
----
-11

query I rowsort
SELECT ALL - col1 + + - col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-100
-128
-31

query III rowsort
SELECT * FROM tab2 WHERE 50 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT - + col1 + + col2 + - 82 DIV - - col0 col0 FROM tab2 AS cor0
----
-10
-29
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3773
SELECT - + col1 + + col2 + - 82 / - - col0 col0 FROM tab2 AS cor0
----
-10
-29
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT DISTINCT - COUNT( * ) + + COUNT( * ), + MAX( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
0
75

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ), + MAX ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT COUNT( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT COUNT( * ) + - 39 col1 FROM tab2
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT DISTINCT COUNT ( * ) + - 39 col1 FROM tab2
----
-36

query I rowsort
SELECT ALL - - 79 * 81 FROM tab2 AS cor0
----
6399
6399
6399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT - CAST( - - 80 AS SIGNED ) col0 FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3778
SELECT - CAST ( - - 80 AS INTEGER ) col0 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL col1 DIV 31 + col0 col1 FROM tab1 AS cor0
----
51
85
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3779
SELECT ALL col1 / 31 + col0 col1 FROM tab1 AS cor0
----
51
85
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT col2 * 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + ( 6 ) * COUNT( DISTINCT + - col1 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3783
SELECT + ( 6 ) * COUNT ( DISTINCT + - col1 ) FROM tab0 cor0
----
18

query II rowsort
SELECT DISTINCT - 75 AS col0, - ( ( 38 ) ) FROM tab1
----
-75
-38

query III rowsort
SELECT DISTINCT col2 AS col0, + 91, ( + col2 ) FROM tab0
----
9 values hashing to df4e05645c332d7413400ec4edf834ca

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3786
SELECT - 98 AS col0, ( + col1 ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-98
NULL
-98
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-3786
SELECT - 98 AS col0, ( + col1 ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-98
NULL
-98
NULL
-98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT + - CAST( + - col1 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col1 <= col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3787
SELECT + - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col1 <= col2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 93 <= col2 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL MIN( ALL - col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT ALL MIN ( ALL - col0 ) col2 FROM tab1
----
-91

query II rowsort
SELECT DISTINCT + col2, 13 FROM tab2
----
23
13
40
13
58
13

query II rowsort
SELECT DISTINCT - 13 AS col0, + col1 * + col1 FROM tab0
----
-13
1
-13
441
-13
6561

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 85 * 93 FROM tab1
----
-7905

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + MAX( DISTINCT - + col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3794
SELECT + MAX ( DISTINCT - + col2 ) AS col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT - + col1 * + ( - + col1 ) + - - col0 * - - ( + + 48 ) + - col0 * 72 + - + 97 * + 47 AS col0 FROM tab0 AS cor0
----
-6206
-6886
1642

query I rowsort
SELECT + col2 + - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + - 51 + - + col2 FROM tab1 AS cor0
----
-110
-119
-147

query I rowsort
SELECT ALL + - col1 + - col1 AS col2 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT - ( col1 ) * - + col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + COUNT( * ) * + 13 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3800
SELECT + COUNT ( * ) * + 13 FROM tab0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3801
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) AS col1, - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-3801
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) AS col1, - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT ALL - - col1 + - ( + 12 ) + - + 87 FROM tab1 AS cor0
----
-52
-85
-94

query I rowsort
SELECT DISTINCT - col2 + - 69 FROM tab0 AS cor0
----
-116
-168
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / + - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL + COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT col2 / - ( + CAST( NULL AS SIGNED ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT col2 / - ( + CAST ( NULL AS INTEGER ) ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT - col0 + - - 9 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3807
SELECT - col0 + - - 9 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NULL = + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - 1 / col1 * + - col2
----

query I rowsort
SELECT ALL - col2 * - 77 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT ALL ( - 63 ) AS col0 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT 1 * 1 AS col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL col2 AS col1, - ( - col1 ) FROM tab1 AS cor0 WHERE NOT col1 - - col1 + col0 * + 5 * - col2 * + 85 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 85 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-85

query I rowsort
SELECT - 95 * col0 AS col1 FROM tab0 AS cor0
----
-1425
-8265
-9215

query I rowsort
SELECT 61 * col0 AS col1 FROM tab0 AS cor0
----
5307
5917
915

query I rowsort
SELECT ALL 80 FROM tab2 AS cor0 WHERE NOT - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT DISTINCT 56 AS col1, MAX( 18 ) AS col2 FROM tab2
----
56
18

skipif mysql # not compatible
query II rowsort label-3818
SELECT DISTINCT 56 AS col1, MAX ( 18 ) AS col2 FROM tab2
----
56
18

query I rowsort
SELECT 85 * + col2 * - 44 AS col0 FROM tab2
----
-149600
-216920
-86020

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT ALL - col2 DIV col2 * + - col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - col2 / col2 * + - col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + 75 * + col1 FROM tab2
----
3825
5025
5775

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3822
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + ( + CAST( - 99 AS SIGNED ) ), 90, + col1 )
----

skipif mysql # not compatible
query III rowsort label-3822
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + ( + CAST ( - 99 AS INTEGER ) ), 90, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3823
SELECT + CAST( NULL AS SIGNED ), 29 * - COUNT( DISTINCT + + 92 ) col1 FROM tab0 AS cor0
----
NULL
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3823
SELECT + CAST ( NULL AS INTEGER ), 29 * - COUNT ( DISTINCT + + 92 ) col1 FROM tab0 AS cor0
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT + COUNT( * ) + 30 AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + COUNT ( * ) + 30 AS col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT col1 * + + col0 + 13 * - - ( col0 ) * + + col0 AS col1 FROM tab1
----
111930
34527
94350

query I rowsort
SELECT col0 * 66 + - 56 FROM tab1
----
3310
5554
5950

query II rowsort
SELECT ALL + ( col0 ) + - col1 - + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-24
68
-59
96
21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - SUM( + col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3828
SELECT - SUM ( + col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3829
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + 87 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + 87 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT ALL - col2 * + 23 * - col1 DIV col1 + - col1 AS col2 FROM tab0 AS cor0
----
1000
209
2276

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - col2 * + 23 * - col1 / col1 + - col1 AS col2 FROM tab0 AS cor0
----
1000
209
2276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT + col0 - col1 / - col0 * 49 + + ( + 8 ) + CAST( NULL AS SIGNED ) + - col0 / + + 52 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT + col0 - col1 / - col0 * 49 + + ( + 8 ) + CAST ( NULL AS INTEGER ) + - col0 / + + 52 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3832
SELECT ALL CAST( col0 AS DECIMAL ) * - - 91 + 70 * - col2 + - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 31 * + + col0 * + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3832
SELECT ALL CAST ( col0 AS REAL ) * - - 91 + 70 * - col2 + - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 31 * + + col0 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * - - col1 / col2 * + ( ( + ( + - col2 ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + 6 FROM tab1
----
-53
-62
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL + COUNT( * ) - + COUNT( * ) + + 25 AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + COUNT ( * ) - + COUNT ( * ) + + 25 AS col1 FROM tab0
----
25

query I rowsort
SELECT DISTINCT 66 - - col0 - - col0 AS col2 FROM tab0
----
240
260
96

query I rowsort
SELECT - col2 - + - 96 * + col2 FROM tab0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - SUM( + - 28 ) - COUNT( ALL + ( col1 ) ) AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-3838
SELECT - SUM ( + - 28 ) - COUNT ( ALL + ( col1 ) ) AS col1 FROM tab2
----
81

query II rowsort
SELECT - col2 + + 97 AS col2, - col0 AS col0 FROM tab1
----
1
-51
29
-91
38
-85

query II rowsort
SELECT 93 + col1 AS col2, 1 FROM tab0 AS cor0
----
114
1
174
1
94
1

query I rowsort
SELECT + - 92 * col1 * - - col1 FROM tab2 AS cor0
----
-239292
-412988
-545468

query I rowsort
SELECT DISTINCT - AVG ( - 24 ) * + - 17 FROM tab1 WHERE + col0 * col2 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + 88, 65 AS col0 FROM tab2
----
88
65

query II rowsort
SELECT ALL col0, col2 * - - col0 * - col1 FROM tab2 AS cor0
----
46
-53958
64
-197120
75
-291450

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + ( + - 56 ) * COUNT( * ) col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3845
SELECT + ( + - 56 ) * COUNT ( * ) col1 FROM tab1 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 56 * - 26 * CAST( col2 AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 56 * - 26 * CAST ( col2 AS INTEGER ) * + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + - - col2 ) < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - 57 ) AS col1 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT + col1 * - - 73 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT ALL 19 * + 42 * + 92 AS col0 FROM tab2
----
73416
73416
73416

onlyif mysql # DIV for integer division: 
query II rowsort label-3851
SELECT - col2 * col2 DIV - col0 + col1 AS col2, - col1 + - - ( - col0 ) + + + col2 AS col2 FROM tab2
----
102
-101
111
-84
62
-74

skipif mysql # not compatible
query II rowsort label-3851
SELECT - col2 * col2 / - col0 + col1 AS col2, - col1 + - - ( - col0 ) + + + col2 AS col2 FROM tab2
----
102
-101
111
-84
62
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + MIN( + 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + MIN ( + 48 ) FROM tab0
----
48

query I rowsort
SELECT col2 + - 28 FROM tab0
----
-18
19
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3854
SELECT DISTINCT + CAST( - COUNT( col1 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + CAST ( - COUNT ( col1 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL + col1 + col0 * + CAST( NULL AS SIGNED ) + 7 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL + col1 + col0 * + CAST ( NULL AS INTEGER ) + 7 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 + + + col0 FROM tab2 AS cor0
----
-11
-29
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3857
SELECT - + COUNT( ALL - CAST( + - col2 AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3857
SELECT - + COUNT ( ALL - CAST ( + - col2 AS REAL ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3858
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3858
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT 92 * + - COUNT( - 65 ) AS col0 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-3859
SELECT 92 * + - COUNT ( - 65 ) AS col0 FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL + COUNT( * ) + - 8 * + 98 * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63513

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + COUNT ( * ) + - 8 * + 98 * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63513

query I rowsort
SELECT DISTINCT - 88 FROM tab0 AS cor0 WHERE NOT - col2 * + col0 NOT BETWEEN - + 50 AND - 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3862
SELECT 30 + + MIN( DISTINCT + - 75 ) + - MAX( + - CAST( + + col0 AS SIGNED ) ) DIV + 10 + + MAX( ( 9 ) ) * - 75 * - 26 AS col1 FROM tab1
----
17510

skipif mysql # not compatible
query I rowsort label-3862
SELECT 30 + + MIN ( DISTINCT + - 75 ) + - MAX ( + - CAST ( + + col0 AS INTEGER ) ) / + 10 + + MAX ( ( 9 ) ) * - 75 * - 26 AS col1 FROM tab1
----
17510

query I rowsort
SELECT DISTINCT - 3 - col0 AS col0 FROM tab1
----
-54
-88
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT COUNT( * ) AS col2, 27 FROM tab0
----
3
27

skipif mysql # not compatible
query II rowsort label-3864
SELECT COUNT ( * ) AS col2, 27 FROM tab0
----
3
27

query III rowsort
SELECT * FROM tab2 WHERE + 55 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 10 - - col1 * col2 * col0 FROM tab1
----
25085
290846
68554

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT - MIN( DISTINCT + - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) FROM tab2
----
75

query II rowsort
SELECT DISTINCT col2 AS col0, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT ALL * FROM tab2 WHERE + 89 - - + 7 IS NULL
----

query I rowsort
SELECT + + 92 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
92
92
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT ALL - 10 DIV col1 * - 60 * - + col2 * - 77 + - col0 + - col1 DIV + + col1 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - 10 / col1 * - 60 * - + col2 * - 77 + - col0 + - col1 / + + col1 FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3873
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + 61 * + - CAST( 9 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3873
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + 61 * + - CAST ( 9 AS INTEGER )
----

query II rowsort
SELECT ALL ( - col0 ) AS col1, - 53 FROM tab0 AS cor0
----
-15
-53
-87
-53
-97
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT - COUNT( 4 ) DIV - 13 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3875
SELECT - COUNT ( 4 ) / - 13 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col2 * + col1, col2 AS col2 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab0 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3878
SELECT - + CAST( NULL AS DECIMAL ) * + col0 - - 87 / - 27 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT - + CAST ( NULL AS REAL ) * + col0 - - 87 / - 27 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( col2 ), col1 + + - 14 FROM tab1 cor0
----
59
-9
68
33
96
0

query I rowsort
SELECT DISTINCT - + 87 * - + 28 + - + col1 FROM tab0 AS cor0
----
2355
2415
2435

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT - COUNT( * ) * 69 AS col2 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - COUNT ( * ) * 69 AS col2 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT - + 3 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
-188
-396
-40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 56 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT + col0 * + ( - + col0 ) DIV + col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3884
SELECT + col0 * + ( - + col0 ) / + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - MAX( DISTINCT + + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3885
SELECT - MAX ( DISTINCT + + col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL - col2 + - - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT - + 4 > - + 25
----

query I rowsort
SELECT ALL 75 * - + 72 * + 56 FROM tab1, tab2 AS cor0
----
9 values hashing to c3ced7923f3cf138fcb18159bfa523da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT - CAST( - 70 AS SIGNED ) col2 FROM tab0 cor0
----
70
70
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3889
SELECT - CAST ( - 70 AS INTEGER ) col2 FROM tab0 cor0
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT COUNT( ALL - col2 ) DIV + COUNT( DISTINCT + - 42 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3890
SELECT COUNT ( ALL - col2 ) / + COUNT ( DISTINCT + - 42 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 29 * - 45 AS col1 FROM tab1 AS cor0 WHERE col1 * + col1 + - - 2 IS NOT NULL
----
-1305

query I rowsort
SELECT ALL 84 * + - col2 * + + 13 + - col1 AS col2 FROM tab0 AS cor0
----
-108109
-10941
-51405

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT ( MAX( col0 ) ) * COUNT( * ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT ( MAX ( col0 ) ) * COUNT ( * ) AS col1 FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ( 62 ) * CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
3658
4216
5952

skipif mysql # not compatible
query I rowsort label-3894
SELECT ( 62 ) * CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT ALL - 80 * + 73 + + col0 * col1 FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) - - 6 AND - col1 + 22 / col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IN ( col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT DISTINCT 42 DIV col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT 42 / col0 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT - col1 + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT - col1 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * 64 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE 10 * 51 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * col0 ) = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * + col2 col2 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3903
SELECT ALL * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) * + 21 + col1 / col1 ) NOT BETWEEN NULL AND 58
----

skipif mysql # not compatible
query III rowsort label-3903
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) * + 21 + col1 / col1 ) NOT BETWEEN NULL AND 58
----

query I rowsort
SELECT + 14 FROM tab1 WHERE NOT + 29 + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 69 / 7 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 * - ( col2 / 9 + col1 * 40 ) AS col0 FROM tab2 WHERE NULL = + col1 * 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT + col0 / - col2 + CAST( - ( + col2 ) + - col0 AS SIGNED ) FROM tab1 WHERE ( NULL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3908
SELECT + col0 / - col2 + CAST ( - ( + col2 ) + - col0 AS INTEGER ) FROM tab1 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab1 WHERE 20 IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab1 WHERE 20 IN ( - col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 * - col2 <> - col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col0 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT CAST( NULL AS SIGNED ) + ( 18 ) * col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3912
SELECT CAST ( NULL AS INTEGER ) + ( 18 ) * col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3913
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3913
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - 97 - + 10 ) IN ( 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col2 * + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 76 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( 28 ) * col0 AS col1 FROM tab0 cor0
----
2436
2716
420

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 + - 11 * - 77 <> NULL
----

query I rowsort
SELECT DISTINCT 20 * col2 AS col2 FROM tab1 AS cor0
----
1180
1360
1920

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 58 / col1 > ( 24 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT + 70 * COUNT( * ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + 70 * COUNT ( * ) FROM tab1 AS cor0
----
210

query III rowsort
SELECT * FROM tab2 WHERE NOT - 25 * - col1 NOT IN ( 30 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( - col2 ) / - 71 + col1 ) = ( - 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT - 59 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT - 59 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + SUM( ALL + 89 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3925
SELECT + SUM ( ALL + 89 ) FROM tab2
----
267

query I rowsort
SELECT DISTINCT col0 / 79 FROM tab1 WHERE NULL NOT BETWEEN + col1 AND ( - col2 / - col0 )
----

query I rowsort
SELECT ALL col2 + 7 AS col0 FROM tab2 AS cor0
----
30
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT - + COUNT( * ) * + MAX( + 11 ) AS col0 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - + COUNT ( * ) * + MAX ( + 11 ) AS col0 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT + col0 + 19 * 99 FROM tab2 AS cor0
----
1927
1945
1956

query I rowsort
SELECT DISTINCT + 36 + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 91 + 94 )
----

query I rowsort
SELECT ALL - ( - 91 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL col2 * 97 FROM tab1 AS cor0 WHERE + col0 + 0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / col2 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3934
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3934
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL > col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT COUNT( + col1 ) + - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT COUNT ( + col1 ) + - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT COUNT( * ) + COUNT( ALL + 88 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3937
SELECT COUNT ( * ) + COUNT ( ALL + 88 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL SUM( DISTINCT - col2 ) col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3938
SELECT ALL SUM ( DISTINCT - col2 ) col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----
NULL

query I rowsort
SELECT + col1 * + 96 + 58 FROM tab0
----
154
2074
7834

query I rowsort
SELECT col2 * + ( col1 ) + + col0 AS col1 FROM tab2
----
1219
3144
3961

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT col2 + + - col0 + col2 DIV 40 FROM tab0
----
-77
33
4

skipif mysql # not compatible
query I rowsort label-3941
SELECT col2 + + - col0 + col2 / 40 FROM tab0
----
-77
33
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT DISTINCT + 71 + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + 71 + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT + COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3943
SELECT + COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 1 * CAST( NULL AS DECIMAL ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 1 * CAST ( NULL AS REAL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 - 20 * - 53 FROM tab0
----
1039
1059
979

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 5 = ( - 68 )
----

query I rowsort
SELECT ALL 28 + - 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT COUNT( * ) col2 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3948
SELECT DISTINCT COUNT ( * ) col2 FROM tab2, tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3949
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < ( + col1 + col1 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-3949
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < ( + col1 + col1 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT col1 FROM tab2 AS cor0 WHERE + col1 - CAST( - 6 AS SIGNED ) * + col0 IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3950
SELECT col1 FROM tab2 AS cor0 WHERE + col1 - CAST ( - 6 AS INTEGER ) * + col0 IN ( + col2 )
----

query I rowsort
SELECT - col0 * - - col1 * - col0 + col0 AS col0 FROM tab1 cor0
----
36210
36465
389298

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT ( - 88 ) + + ( - MAX( DISTINCT col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT ( - 88 ) + + ( - MAX ( DISTINCT col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT ALL - 76 * - ( - + col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - 76 * - ( - + col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - MAX( ALL + col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3954
SELECT - MAX ( ALL + col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
243

query I rowsort
SELECT ( - + col2 ) * 92 AS col1 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query II rowsort label-3956
SELECT - SUM( DISTINCT - 75 ) col2, + ( + 9 ) AS col2 FROM tab1
----
75
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3956
SELECT - SUM ( DISTINCT - 75 ) col2, + ( + 9 ) AS col2 FROM tab1
----
75
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( col2 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - ( - col2 ) / + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 67 ) > + col2 + col1
----
15
81
47
97
1
99

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT ( col1 ) >= col2
----
-97

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL > ( - 75 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT ALL + ( + col2 ) DIV col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL + ( + col2 ) / col2 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - 77 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 56 * + col1 FROM tab0
----
1176
4536
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + MIN( ALL 61 ) + 96 AS col1 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-3965
SELECT + MIN ( ALL 61 ) + 96 AS col1 FROM tab1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 FROM tab2 AS cor0 WHERE NOT col0 >= col2 * + col1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT CAST( NULL AS SIGNED ) + - 89 - - - CAST( NULL AS SIGNED ) + + + 73 + - col2 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-3968
SELECT CAST ( NULL AS INTEGER ) + - 89 - - - CAST ( NULL AS INTEGER ) + + + 73 + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT - - CAST( + - col0 AS SIGNED ) + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

skipif mysql # not compatible
query I rowsort label-3969
SELECT - - CAST ( + - col0 AS INTEGER ) + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 40 * - - col1 * + + col0 NOT BETWEEN col2 - + col2 AND 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * - 19 + 65 FROM tab1 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * - 19 + 65 FROM tab1 AS cor0
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT ALL + col1 DIV + col0 + - col0 + + + col1 AS col2 FROM tab0 AS cor0
----
-66
-96
71

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + col1 / + col0 + - col0 + + + col1 AS col2 FROM tab0 AS cor0
----
-66
-96
71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - col2 * - col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT - CAST( NULL AS SIGNED ) * - 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT - CAST ( NULL AS INTEGER ) * - 2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 94 * + 87 + 47 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL MIN( - - col0 ) - - SUM( ALL + + col1 ) + MIN( ALL col2 ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL MIN ( - - col0 ) - - SUM ( ALL + + col1 ) + MIN ( ALL col2 ) AS col1 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT MIN( DISTINCT - col0 ) - + - 51 col0 FROM tab1
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3979
SELECT MIN ( DISTINCT - col0 ) - + - 51 col0 FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 98 - col2 + - 32 col1 FROM tab2 cor0
----
4453
6200
7260

query II rowsort
SELECT ALL col2 - - col2 AS col1, col0 + + col1 AS col1 FROM tab1
----
118
90
136
138
192
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT COUNT( * ) * + 24 AS col2 FROM tab0 WHERE 3 / - 63 * - 87 * - 41 * + col2 IN ( + col1 / col1 - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT COUNT ( * ) * + 24 AS col2 FROM tab0 WHERE 3 / - 63 * - 87 * - 41 * + col2 IN ( + col1 / col1 - col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + - col2 + + col1 ) <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3984
SELECT DISTINCT ( + 50 ) * - ( - - col0 ) * + 26 AS col0, - CAST( - - col1 AS SIGNED ) FROM tab2
----
-59800
-51
-83200
-77
-97500
-67

skipif mysql # not compatible
query II rowsort label-3984
SELECT DISTINCT ( + 50 ) * - ( - - col0 ) * + 26 AS col0, - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-59800
-51
-83200
-77
-97500
-67

query I rowsort
SELECT ALL col2 * + - 4 - col2 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT ALL 7 * - col0 AS col2 FROM tab1
----
-357
-595
-637

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT - col0 DIV 56 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT - col0 / 56 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT 86 * - + col1 FROM tab1 cor0
----
-1204
-4042
-430

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT ( + col2 ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - ( + + COUNT( + col1 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3990
SELECT - ( + + COUNT ( + col1 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 ) IN ( 34 - col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * col0 * + col2, - col1 )
----

query II rowsort
SELECT DISTINCT - ( - 91 ), + col0 + 50 + col2 * - 5 AS col1 FROM tab1 AS cor0
----
91
-160
91
-199
91
-379

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3994
SELECT CAST( NULL AS SIGNED ) AS col0, 2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-3994
SELECT CAST ( NULL AS INTEGER ) AS col0, 2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
2
NULL
2
NULL
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 60 - col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 83 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT 92 * 34 FROM tab1 WHERE NOT - col1 * + - ( - - col2 ) NOT BETWEEN + col2 / + col1 * CAST( NULL AS SIGNED ) AND + 44 - col0
----

skipif mysql # not compatible
query I rowsort label-3997
SELECT 92 * 34 FROM tab1 WHERE NOT - col1 * + - ( - - col2 ) NOT BETWEEN + col2 / + col1 * CAST ( NULL AS INTEGER ) AND + 44 - col0
----

query I rowsort
SELECT DISTINCT 80 * col1 AS col2 FROM tab1
----
1120
3760
400

query I rowsort
SELECT ALL + 11 * + 55 * ( - + col2 ) FROM tab2
----
-13915
-24200
-35090

query II rowsort
SELECT col2, + 49 FROM tab1
----
59
49
68
49
96
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT COUNT( ALL + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4001
SELECT COUNT ( ALL + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL + COUNT( * ) FROM tab2 WHERE col1 + + + col2 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col1 + + + col2 BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT DISTINCT col2 * ( - + col1 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT + col1 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + col1 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT + COUNT( * ), - COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4005
SELECT + COUNT ( * ), - COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3
-3

query II rowsort
SELECT DISTINCT col0, ( - 59 ) + + ( col2 ) FROM tab2 AS cor0
----
46
-36
64
-19
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - + MIN( + + 1 ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - + MIN ( + + 1 ) AS col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT + - 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT ALL - col0 DIV + ( + - col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - col0 / + ( + - col0 ) FROM tab1
----
1
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= 0 + - + 52 * + + 22
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( + + col1 ) + + 43 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + col1 + + col2 NOT IN ( - - col1, - ( - 47 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col2 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL + 65 + + SUM( col0 ) col2 FROM tab0 cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4014
SELECT ALL + 65 + + SUM ( col0 ) col2 FROM tab0 cor0
----
264

query I rowsort
SELECT DISTINCT - - col1 * 58 + + - 59 AS col2 FROM tab2 AS cor0
----
2899
3827
4407

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + COUNT( DISTINCT - col2 ) + + 42 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4016
SELECT + COUNT ( DISTINCT - col2 ) + + 42 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT col0 + col0 + col2 DIV + 14 FROM tab1
----
108
174
186

skipif mysql # not compatible
query I rowsort label-4017
SELECT col0 + col0 + col2 / + 14 FROM tab1
----
108
174
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT MAX( 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT MAX ( 83 ) FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 - + col1 col2 FROM tab0 cor0
----
-100
-20
-40

query I rowsort
SELECT DISTINCT col0 * 59 + col1 FROM tab2
----
2765
3853
4492

query II rowsort
SELECT col0 AS col2, + 78 AS col1 FROM tab1
----
51
78
85
78
91
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - - COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - - COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query II rowsort
SELECT DISTINCT 35 AS col0, + col2 FROM tab0
----
35
10
35
47
35
99

query I rowsort
SELECT ALL + 86 FROM tab2 WHERE NULL IS NULL
----
86
86
86

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT ALL - - COUNT( * ) AS col1, 41 * - - COUNT( * ) FROM tab1 AS cor0
----
3
123

skipif mysql # not compatible
query II rowsort label-4026
SELECT ALL - - COUNT ( * ) AS col1, 41 * - - COUNT ( * ) FROM tab1 AS cor0
----
3
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + + MIN( col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4027
SELECT + + MIN ( col2 ) col2 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT - col1 DIV + ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4028
SELECT - col1 / + ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col2 * ( 11 ) AS col2 FROM tab0 AS cor0
----
1089
110
517

query II rowsort
SELECT - 56, col0 FROM tab1 AS cor0
----
-56
51
-56
85
-56
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 <> + col2
----

query I rowsort
SELECT - col0 * - ( - + 96 ) FROM tab0
----
-1440
-8352
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT + - 16 BETWEEN + - col0 AND NULL
----
15

query II rowsort
SELECT ALL 9 * - - 11 AS col1, col2 AS col2 FROM tab2
----
99
23
99
40
99
58

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + + MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4038
SELECT + + MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT - + SUM( + - col1 ) AS col1, SUM( ALL - - col1 ) FROM tab2 AS cor0
----
195
195

skipif mysql # not compatible
query II rowsort label-4039
SELECT - + SUM ( + - col1 ) AS col1, SUM ( ALL - - col1 ) FROM tab2 AS cor0
----
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT + MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4040
SELECT + MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT - 65, + col0 AS col1 FROM tab2
----
-65
46
-65
64
-65
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * col1 + - col2 * - 58 AS col2, + col0 col1 FROM tab0 AS cor0
----
1021
87
5743
97
9287
15

query I rowsort
SELECT + ( - 44 ) FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ( 73 ) FROM tab1 AS cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query II rowsort label-4045
SELECT - 5 AS col2, col2 DIV 41 FROM tab1 AS cor0
----
-5
1
-5
1
-5
2

skipif mysql # not compatible
query II rowsort label-4045
SELECT - 5 AS col2, col2 / 41 FROM tab1 AS cor0
----
-5
1
-5
1
-5
2

query II rowsort
SELECT DISTINCT ( + ( + col1 ) ) + + 83 - + - col0 * 78 + - - 32 + - col0, + col1 AS col1 FROM tab1 AS cor0
----
4056
14
6665
5
7169
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT SUM( + 44 ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4047
SELECT SUM ( + 44 ) FROM tab0 AS cor0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4048
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - COUNT( * ) * - 1 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4049
SELECT - COUNT ( * ) * - 1 AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + MIN( - - ( col0 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT + MIN ( - - ( col0 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT ALL - col1 DIV - + 46 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - col1 / - + 46 AS col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 41 ) col2 FROM tab1
----
41

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col2 BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + ( 2 ) FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT col2 + - col2 / - - col2 * + col1 + 9 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT col2 + - col2 / - - col2 * + col1 + 9 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - ( ( 69 ) ) AS col2 FROM tab1 AS cor0
----
-18
16
22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - 35 ) * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 58 * - + col2 / - + 86 - + ( - col2 ) + + col2 - + 67
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 58 * - + col2 / - + 86 - + ( - col2 ) + + col2 - + 67
----
0

query I rowsort
SELECT + + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - ( - - 50 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT ALL - - 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + SUM( - - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4062
SELECT + SUM ( - - col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 + + 66 BETWEEN ( + CAST( NULL AS SIGNED ) + + 58 * - col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4063
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 + + 66 BETWEEN ( + CAST ( NULL AS INTEGER ) + + 58 * - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + ( MAX( ( col1 ) ) ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4064
SELECT + ( MAX ( ( col1 ) ) ) col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL - MIN( + - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - MIN ( + - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + + SUM( + col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4066
SELECT + + SUM ( + col0 ) col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + - SUM( + col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + - SUM ( + col0 ) FROM tab0 cor0
----
-199

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 71 IN ( + + 24 + col2, 62 * - col2, + 0 * - col2, - col0, + 11 + + col1 / - col2 )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT col1 * - CAST( NULL AS SIGNED ) * 13 / + col2 * 23 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4069
SELECT col1 * - CAST ( NULL AS INTEGER ) * 13 / + col2 * 23 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT + MIN( ALL 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + MIN ( ALL 39 ) FROM tab1
----
39

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + col2 * - 99 * - - col0 AS col2 FROM tab0
----
-69795
-86130
-950697

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT - 27 AS col1, COUNT( * ) FROM tab2
----
-27
3

skipif mysql # not compatible
query II rowsort label-4073
SELECT - 27 AS col1, COUNT ( * ) FROM tab2
----
-27
3

query I rowsort
SELECT ALL + 59 + - col0 AS col2 FROM tab0 AS cor0
----
-28
-38
44

query II rowsort
SELECT DISTINCT - + col1, + 5 AS col0 FROM tab1 cor0
----
-14
5
-47
5
-5
5

onlyif mysql # DIV for integer division: 
query II rowsort label-4076
SELECT 83 DIV + - col1 col2, col1 AS col1 FROM tab1
----
-1
47
-16
5
-5
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4076
SELECT 83 / + - col1 col2, col1 AS col1 FROM tab1
----
-1
47
-16
5
-5
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - MIN( ALL - 63 ) * 42 * COUNT( * ) FROM tab1 WHERE col1 * - col1 IS NOT NULL
----
7938

skipif mysql # not compatible
query I rowsort label-4077
SELECT - MIN ( ALL - 63 ) * 42 * COUNT ( * ) FROM tab1 WHERE col1 * - col1 IS NOT NULL
----
7938

query I rowsort
SELECT - col0 * + + 47 AS col1 FROM tab0
----
-4089
-4559
-705

query I rowsort
SELECT DISTINCT col2 * - + col2 + col1 + + 39 + - - 34 AS col2 FROM tab0 AS cor0
----
-2055
-6
-9727

query I rowsort
SELECT DISTINCT col1 * + 11 FROM tab1 AS cor0
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4081
SELECT DISTINCT 92 * + - col1 * - 98 + col2 + - col2 * CAST( col0 AS SIGNED ), col0 AS col0 FROM tab0 AS cor0
----
-488
97
188476
87
729638
15

skipif mysql # not compatible
query II rowsort label-4081
SELECT DISTINCT 92 * + - col1 * - 98 + col2 + - col2 * CAST ( col0 AS INTEGER ), col0 AS col0 FROM tab0 AS cor0
----
-488
97
188476
87
729638
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( + + 85 / - col0, + 18 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 93 AS col2 FROM tab1 WHERE col2 = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + ( - + MAX( DISTINCT - - ( + col0 ) ) ) FROM tab1 WHERE ( + - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT + ( - + MAX ( DISTINCT - - ( + col0 ) ) ) FROM tab1 WHERE ( + - col0 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 * + - 66 + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 3 col1, - col0 + - col2 + + + ( + + col2 ) AS col1 FROM tab1
----
3
-51
3
-85
3
-91

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + + ( - col2 ) / - 40
----

query I rowsort
SELECT + col1 - - 42 * col2 FROM tab1 AS cor0
----
2483
2903
4046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT - MAX( DISTINCT + ( + - 24 ) ) AS col0 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4090
SELECT - MAX ( DISTINCT + ( + - 24 ) ) AS col0 FROM tab1 cor0
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-4091
SELECT + ( col1 ) DIV - + 89 AS col1, col1 FROM tab1 cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-4091
SELECT + ( col1 ) / - + 89 AS col1, col1 FROM tab1 cor0
----
0
14
0
47
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4092
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE - ( - CAST( NULL AS SIGNED ) ) >= + 40
----

skipif mysql # not compatible
query IIIIII rowsort label-4092
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE - ( - CAST ( NULL AS INTEGER ) ) >= + 40
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > + 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT + CAST( + 0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT + CAST ( + 0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ( ( ( + COUNT( * ) ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4095
SELECT ( ( ( + COUNT ( * ) ) ) ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 * - col0 AND + 40
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 90 - ( - 5 ) < + 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4098
SELECT - col2 DIV - - col0 - + col2 FROM tab1 AS cor0 WHERE NOT CAST( + ( - 83 ) AS SIGNED ) IN ( + col1, col1 * 56 )
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-4098
SELECT - col2 / - - col0 - + col2 FROM tab1 AS cor0 WHERE NOT CAST ( + ( - 83 ) AS INTEGER ) IN ( + col1, col1 * 56 )
----
-59
-68
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT SUM( ALL - - 51 ) AS col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4099
SELECT SUM ( ALL - - 51 ) AS col2 FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL SUM( DISTINCT - + 30 ) col2 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4100
SELECT ALL SUM ( DISTINCT - + 30 ) col2 FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + ( COUNT( - col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4101
SELECT + ( COUNT ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL ( - + 35 ) FROM tab1
----
-35
-35
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 43 <> + 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 * - - col1 + + col1 AS col1, 53 * + col2 + + 98 FROM tab0 AS cor0
----
-189
628
-3726
2589
-98
5345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + 39 col0 FROM tab2 AS cor0
----
-25
-36
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query II rowsort
SELECT ALL - ( + col1 ) AS col2, col2 * + col1 AS col2 FROM tab0
----
-1
99
-21
210
-81
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4108
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL + col0, + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 WHERE ( - 0 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4111
SELECT * FROM tab0 AS cor0 WHERE col1 / + 99 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4111
SELECT * FROM tab0 AS cor0 WHERE col1 / + 99 = - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 13 * col2 * + + 92 * - 54 FROM tab1 AS cor0
----
3810456
4391712
6200064

query I rowsort
SELECT ALL - - col0 * 86 + - col0 AS col1 FROM tab0 AS cor0
----
1275
7395
8245

query I rowsort
SELECT DISTINCT col2 + - - ( col1 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT + ( - + 58 ) * 27 * - + MAX( col0 ) AS col2 FROM tab0 AS cor0
----
151902

skipif mysql # not compatible
query I rowsort label-4115
SELECT + ( - + 58 ) * 27 * - + MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
151902

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT - - 73 DIV - 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4116
SELECT - - 73 / - 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col1 + col0 / col1
----

query II rowsort
SELECT - - 29 AS col2, col0 FROM tab1 cor0
----
29
51
29
85
29
91

query I rowsort
SELECT + + col2 * - - 68 FROM tab2 AS cor0
----
1564
2720
3944

query I rowsort
SELECT + 12 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT 46 - COUNT( * ) + - MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4121
SELECT 46 - COUNT ( * ) + - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL AND 94 / + + col2 * + - col1 IS NULL
----

query I rowsort
SELECT ALL + 66 * + 24 * - col0 FROM tab1
----
-134640
-144144
-80784

query II rowsort
SELECT ALL - ( - - 27 ), col2 FROM tab1 cor0
----
-27
59
-27
68
-27
96

query II rowsort
SELECT + - col0 * + col1, col0 FROM tab2 cor0
----
-2346
46
-4928
64
-5025
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL - MIN( ALL - + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - MIN ( ALL - + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT - MAX( + col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4127
SELECT - MAX ( + col0 ) col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT ( col0 ) NOT IN ( col1 )
----

query I rowsort
SELECT + col0 * 12 * - - 21 FROM tab1 AS cor0
----
12852
21420
22932

query I rowsort
SELECT DISTINCT + 45 + 55 + col2 AS col0 FROM tab0 AS cor0
----
110
147
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT + MIN( - + 30 ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + MIN ( - + 30 ) AS col1 FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4133
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - col1 ) + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4133
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - col1 ) + - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 1 / + - col0 * + 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + - 42 ) AS col1 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col0 * - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL <> col2 + ( - 24 ) )
----

query I rowsort
SELECT - + ( col2 ) + - - col2 FROM tab1 WHERE ( NOT col0 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL COUNT( - 10 ) * + 99 * - 81 AS col1 FROM tab2
----
-24057

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL COUNT ( - 10 ) * + 99 * - 81 AS col1 FROM tab2
----
-24057

query II rowsort
SELECT ALL + 38 * col2 AS col0, - col1 AS col1 FROM tab2
----
1520
-77
2204
-67
874
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT - ( + col1 ) + - + col0 + + 27 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT - ( + col1 ) + - + col0 + + 27 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE + col0 / - + 32 + - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE + col0 / - + 32 + - - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4143
SELECT - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4144
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + 27 IS NOT NULL
----
3

query I rowsort
SELECT + 65 - + col0 + - - col0 FROM tab0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT COUNT( * ) + 27 AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT COUNT ( * ) + 27 AS col0 FROM tab0 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab1 cor0
----
38
38
38

query II rowsort
SELECT + 10, + col1 * + - 0 - + + ( - col0 ) + - - col0 AS col2 FROM tab1
----
10
102
10
170
10
182

query I rowsort
SELECT DISTINCT - ( + + 7 ) AS col0 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MIN( ALL - + 5 ) AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-4150
SELECT MIN ( ALL - + 5 ) AS col0 FROM tab2
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT col0 AS col1 FROM tab1 WHERE NOT - 58 + + 19 + + - 45 * - 13 * - 77 IN ( + ( col0 ) + col2 + - - 95 / + col0 * + col0 + - col1, CAST( + - col1 AS SIGNED ), + - 96 * + col0 + - - ( - col0 ) )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4152
SELECT col0 AS col1 FROM tab1 WHERE NOT - 58 + + 19 + + - 45 * - 13 * - 77 IN ( + ( col0 ) + col2 + - - 95 / + col0 * + col0 + - col1, CAST ( + - col1 AS INTEGER ), + - 96 * + col0 + - - ( - col0 ) )
----
51
85
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 > - + 98 + 30
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL + ( - 78 ) FROM tab2 cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT - - MAX( + col0 ) AS col0, - 19 AS col2 FROM tab2 AS cor0
----
75
-19

skipif mysql # not compatible
query II rowsort label-4156
SELECT - - MAX ( + col0 ) AS col0, - 19 AS col2 FROM tab2 AS cor0
----
75
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + + MAX( ALL - - 60 ) col0 FROM tab1 cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4157
SELECT + + MAX ( ALL - - 60 ) col0 FROM tab1 cor0
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4158
SELECT + COUNT( ALL + col2 ) AS col2, 38 / CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4158
SELECT + COUNT ( ALL + col2 ) AS col2, 38 / CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
3
NULL

query II rowsort
SELECT ALL + + col1 + 21 AS col1, col0 FROM tab1 AS cor0
----
26
85
35
51
68
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND + + col1 / - col0
----

query I rowsort
SELECT ALL col0 + + 33 FROM tab0
----
120
130
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4162
SELECT + ( + 98 ) * 99, col0 col2 FROM tab0 WHERE - 28 + CAST( NULL AS SIGNED ) BETWEEN NULL AND + - ( + 9 ) * - col2 / - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4162
SELECT + ( + 98 ) * 99, col0 col2 FROM tab0 WHERE - 28 + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - ( + 9 ) * - col2 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - 99 * COUNT( * ) AS col1 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - 99 * COUNT ( * ) AS col1 FROM tab1
----
-297

query II rowsort
SELECT DISTINCT col0 * - col1 * - 80, col1 AS col1 FROM tab1
----
34000
5
342160
47
57120
14

query I rowsort
SELECT ALL - 5 * 57 AS col2 FROM tab0
----
-285
-285
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT COUNT( * ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4166
SELECT COUNT ( * ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + col0 IS NULL
----
3

query I rowsort
SELECT 42 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 5 AS col1, 59 FROM tab1 AS cor0
----
5
59
5
59
5
59

query I rowsort
SELECT ALL + col1 + - + 36 FROM tab1 AS cor0
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - SUM( + - 56 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
504

skipif mysql # not compatible
query I rowsort label-4170
SELECT - SUM ( + - 56 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
504

query II rowsort
SELECT col1 * - 93 * + col0 * - 20, col2 AS col1 FROM tab2
----
4363560
23
9166080
40
9346500
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
84
84
84

query I rowsort
SELECT + 48 - + col2 AS col1 FROM tab0 AS cor0
----
-51
1
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT - + COUNT( ALL col0 ), - COUNT( * ) FROM tab2 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4174
SELECT - + COUNT ( ALL col0 ), - COUNT ( * ) FROM tab2 cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT COUNT( * ) * - 80 col2, + 3 AS col1 FROM tab2 AS cor0
----
-240
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4175
SELECT COUNT ( * ) * - 80 col2, + 3 AS col1 FROM tab2 AS cor0
----
-240
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 29 IS NULL
----

query I rowsort
SELECT + - ( + - 79 ) FROM tab2 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT ALL - CAST( - ( + 75 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - CAST ( - ( + 75 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - - MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4179
SELECT - - MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - - ( + 8 ) AS col1 FROM tab2 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT SUM( ALL + - col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4181
SELECT SUM ( ALL + - col2 ) FROM tab1 cor0
----
-223

query I rowsort
SELECT + 78 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + 41 + col1 FROM tab0 AS cor0
----
122
42
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col1 ) * - 45 NOT BETWEEN + + col0 AND + 84 * 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 38 + - 51 + + - col0 + - col2 FROM tab1 AS cor0
----
-233
-236
-248

query I rowsort
SELECT DISTINCT col1 * - 31 AS col1 FROM tab0 AS cor0
----
-2511
-31
-651

query II rowsort
SELECT ALL + 38 + 57, + 34 * - + col1 AS col0 FROM tab1
----
95
-1598
95
-170
95
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT COUNT( * ) + - + 36 * + 67 AS col0 FROM tab2
----
-2409

skipif mysql # not compatible
query I rowsort label-4188
SELECT COUNT ( * ) + - + 36 * + 67 AS col0 FROM tab2
----
-2409

query III rowsort
SELECT * FROM tab1 WHERE - ( - - 33 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + + 92 + - col2 * - col1 AS col0 FROM tab1
----
10176
5723
9452

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT ALL 87 * + col2 DIV col2 * col0 FROM tab2
----
4002
5568
6525

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL 87 * + col2 / col2 * col0 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT + ( col2 ) + + 93 + - col1 FROM tab1
----
114
147
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT MAX( + + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT MAX ( + + col2 ) AS col0 FROM tab2
----
58

query II rowsort
SELECT ALL + 11 + - col1 AS col2, - 57 FROM tab2
----
-40
-57
-56
-57
-66
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT col2 DIV - + 8 FROM tab1
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT col2 / - + 8 FROM tab1
----
-12
-7
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL CAST( - 10 AS SIGNED ) AS col1 FROM tab0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL CAST ( - 10 AS INTEGER ) AS col1 FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT + 52 * 8 DIV - MAX( col2 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 52 * 8 / - MAX ( col2 ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT - 18 * - - COUNT( DISTINCT + 79 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 18 * - - COUNT ( DISTINCT + 79 ) FROM tab0 AS cor0
----
-18

query II rowsort
SELECT DISTINCT + col2 + - - 93 AS col1, - col2 FROM tab0 AS cor0
----
103
-10
140
-47
192
-99

query II rowsort
SELECT ALL col2 AS col1, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT - - col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1
----

skipif mysql # not compatible
query I rowsort label-4203
SELECT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + 25 * + col0 FROM tab0
----
2175
2425
375

query I rowsort
SELECT + col0 + ( - col1 ) + - + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
23
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT MAX( DISTINCT - ( col0 ) ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4208
SELECT MAX ( DISTINCT - ( col0 ) ) AS col1 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4209
SELECT CAST( NULL AS SIGNED ) * col0 AS col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4209
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + 85 * + - col2 FROM tab0 AS cor0
----
-3995
-8415
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 * col1 * + + col0 col1, col0 FROM tab0
----
1649
97
20655
15
31059
87

query III rowsort
SELECT * FROM tab2 WHERE NOT - 85 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 67 + + - ( + col1 ) + - col0 FROM tab2
----
-30
-74
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT DISTINCT - COUNT( * ), 76 AS col0 FROM tab2 AS cor0
----
-3
76

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT - COUNT ( * ), 76 AS col0 FROM tab2 AS cor0
----
-3
76

query I rowsort
SELECT + ( - 75 ) + - 35 + - col0 AS col0 FROM tab2 AS cor0
----
-156
-174
-185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - col1 = - col0 * 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4217
SELECT ALL CAST( NULL AS SIGNED ) + + col1 * + ( + 87 ) * - col1, + col0 + + + col2 AS col0 FROM tab1 cor0
----
NULL
144
NULL
147
NULL
159

skipif mysql # not compatible
query II rowsort label-4217
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 * + ( + 87 ) * - col1, + col0 + + + col2 AS col0 FROM tab1 cor0
----
NULL
144
NULL
147
NULL
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + 19 + + COUNT( * ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + 19 + + COUNT ( * ) FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT DISTINCT - CAST( - - AVG ( ALL - - ( - - 96 ) ) AS SIGNED ) + + 57 * + 64 AS col2 FROM tab0 AS cor0
----
3552

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - CAST ( - - AVG ( ALL - - ( - - 96 ) ) AS INTEGER ) + + 57 * + 64 AS col2 FROM tab0 AS cor0
----
3552

query I rowsort
SELECT DISTINCT col0 + 86 FROM tab2
----
132
150
161

query I rowsort
SELECT DISTINCT - + col1 * - col0 * + 94 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL - COUNT( * ) * - MAX( + 68 ) FROM tab2, tab2 AS cor0
----
612

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - COUNT ( * ) * - MAX ( + 68 ) FROM tab2, tab2 AS cor0
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 84 FROM tab1
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 84 FROM tab1
----
NULL
84
NULL
84
NULL
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - + 64 + + + 23 AS col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - 51 + + - col1 FROM tab0 AS cor0
----
-132
-52
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 + ( - col2 ) * - - col0 col1 FROM tab0 cor0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT - 39, 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-39
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL + - CAST( + 96 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + - CAST ( + 96 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT ALL + col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT - 65 * - COUNT( * ) - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - 65 * - COUNT ( * ) - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
192

query I rowsort
SELECT - - ( + + col0 ) * - 22 AS col2 FROM tab0 AS cor0
----
-1914
-2134
-330

query I rowsort
SELECT ALL ( + ( - col1 ) ) * + col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN 24 AND + 79 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT - col0 DIV + 91 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT - col0 / + 91 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + - 45 * COUNT( * ) + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4236
SELECT + - 45 * COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT DISTINCT + col1 DIV col0 + - col2 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-4237
SELECT DISTINCT + col1 / col0 + - col2 col1 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT ALL + 90, 72 AS col0 FROM tab0
----
90
72
90
72
90
72

query III rowsort
SELECT ALL * FROM tab1 WHERE + 81 * col2 < + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - 70 AS col0 FROM tab2
----
23
-70
40
-70
58
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT col1 DIV - col2 * 61 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT col1 / - col2 * 61 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4242
SELECT ALL - col2 AS col2, col2 col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4242
SELECT ALL - col2 AS col2, col2 col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 7 <> ( + + col1 * col2 * col2 )
----

query I rowsort
SELECT - 74 * - col1 AS col1 FROM tab1
----
1036
3478
370

onlyif mysql # DIV for integer division: 
query II rowsort label-4245
SELECT 9 DIV - 30 AS col1, col0 * - - col1 - - col2 FROM tab0
----
0
1262
0
1837
0
196

skipif mysql # not compatible
query II rowsort label-4245
SELECT 9 / - 30 AS col1, col0 * - - col1 - - col2 FROM tab0
----
0
1262
0
1837
0
196

query II rowsort
SELECT + col0 * + col1, col0 AS col2 FROM tab2
----
2346
46
4928
64
5025
75

query I rowsort
SELECT + - col0 + + col2 + col1 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT - - col1 + - col0 + + col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 + + + ( - col1 ) AS col0 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - + 77 + + col1 FROM tab2 AS cor0
----
-10
-26
0

query I rowsort
SELECT DISTINCT 48 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT DISTINCT MAX( ALL col0 ) + MAX( - 78 ), 47 AS col1 FROM tab1 AS cor0 WHERE col0 * + 54 + col1 NOT BETWEEN NULL AND - ( - + col2 )
----
13
47

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT MAX ( ALL col0 ) + MAX ( - 78 ), 47 AS col1 FROM tab1 AS cor0 WHERE col0 * + 54 + col1 NOT BETWEEN NULL AND - ( - + col2 )
----
13
47

query I rowsort
SELECT + 31 FROM tab1 cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col2 + + + col2 col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + + 80 col2 FROM tab2
----
-22
-40
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT - 5 col2, - COUNT( * ) AS col0 FROM tab1
----
-5
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4256
SELECT - 5 col2, - COUNT ( * ) AS col0 FROM tab1
----
-5
-3

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 WHERE NOT NULL < + - 49
----

query I rowsort
SELECT 4 * col1 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - 28 * - 54 * + COUNT( * ) FROM tab2
----
4536

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - 28 * - 54 * + COUNT ( * ) FROM tab2
----
4536

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 WHERE NOT - col2 < 93
----

query II rowsort
SELECT col0 * - 60 * + 66 AS col0, col0 AS col2 FROM tab0
----
-344520
87
-384120
97
-59400
15

query I rowsort
SELECT + 22 * - col1 * - col0 FROM tab2 AS cor0
----
108416
110550
51612

query I rowsort
SELECT + col1 * - 28 * - 38 FROM tab0
----
1064
22344
86184

query II rowsort
SELECT col1, 24 AS col2 FROM tab1
----
14
24
47
24
5
24

query I rowsort
SELECT DISTINCT 67 * - + ( - + col0 ) FROM tab1
----
3417
5695
6097

query I rowsort
SELECT DISTINCT - - ( - col0 ) * - col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT + ( + - ( - ( - CAST( NULL AS SIGNED ) ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4267
SELECT + ( + - ( - ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - + COUNT( * ) * + + COUNT( * ) * 25 AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) * 25 AS col1 FROM tab2 AS cor0
----
-225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + 73 * - col1
----

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 FROM tab2 cor0
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT + - COUNT( * ) AS col2, - 98 + - + 18 FROM tab0 AS cor0
----
-3
-116

skipif mysql # not compatible
query II rowsort label-4271
SELECT + - COUNT ( * ) AS col2, - 98 + - + 18 FROM tab0 AS cor0
----
-3
-116

query I rowsort
SELECT DISTINCT + 19 * + col1 AS col1 FROM tab2 AS cor0
----
1273
1463
969

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - COUNT( - - 77 ) * + - COUNT( * ) * - 42 FROM tab2
----
-378

skipif mysql # not compatible
query I rowsort label-4273
SELECT - COUNT ( - - 77 ) * + - COUNT ( * ) * - 42 FROM tab2
----
-378

query I rowsort
SELECT 87 * + col1 AS col1 FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + MAX( + + ( + 20 ) ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-4275
SELECT + MAX ( + + ( + 20 ) ) FROM tab2
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4276
SELECT DISTINCT 98 * - ( - - ( 22 ) ) / + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT 98 * - ( - - ( 22 ) ) / + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 77 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> 53 + - 7
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 28 NOT IN ( 81 + - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4281
SELECT ALL + COUNT( ALL - col0 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4281
SELECT ALL + COUNT ( ALL - col0 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT DISTINCT - AVG ( DISTINCT - - CAST( - 29 AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - AVG ( DISTINCT - - CAST ( - 29 AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----
NULL

query II rowsort
SELECT - col2 + ( - - col1 ) AS col0, + 30 FROM tab0 cor0
----
-98
30
11
30
34
30

query I rowsort
SELECT - 8 * + + 90 + - col0 FROM tab0 cor0
----
-735
-807
-817

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT - 11 DIV + 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4285
SELECT - 11 / + 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4286
SELECT * FROM tab0 WHERE col1 * - col0 + + 93 - - col1 * + col2 + + - col0 + col0 BETWEEN col2 - - + ( + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4286
SELECT * FROM tab0 WHERE col1 * - col0 + + 93 - - col1 * + col2 + + - col0 + col0 BETWEEN col2 - - + ( + CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-4287
SELECT - MIN( DISTINCT ( + + col2 ) ), + 61 col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-10
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4287
SELECT - MIN ( DISTINCT ( + + col2 ) ), + 61 col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-10
61
3

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN - 32 * col1 AND NULL
----

query I rowsort
SELECT ALL + col1 + - 52 AS col0 FROM tab0 AS cor0
----
-31
-51
29

query I rowsort
SELECT - ( + + col0 ) - col2 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - + col0 ) - 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 68 - col1 AS col1 FROM tab0
----
-13
47
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4293
SELECT ALL + col0 + CAST( NULL AS SIGNED ) col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4293
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * - col2 - - 2 col2 FROM tab1
----
-4364
-5030
-7102

query I rowsort
SELECT DISTINCT ( + - ( - + col0 ) ) * - 72 - + - ( + 56 ) AS col0 FROM tab2
----
-3256
-4552
-5344

query I rowsort
SELECT DISTINCT col0 + + ( + 79 ) FROM tab0
----
166
176
94

query III rowsort
SELECT * FROM tab0 WHERE + + col2 = NULL
----

query I rowsort
SELECT ALL + col1 - - + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT - col0 - + col2 * col1 AS col2 FROM tab1
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - ( + + COUNT( * ) ) + - 52 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-4300
SELECT - ( + + COUNT ( * ) ) + - 52 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-61

query II rowsort
SELECT - col2 AS col2, + col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL - + 49 * - 96 * col2 * ( + + col0 ) AS col0 FROM tab1 AS cor0
----
23030784
23590560
29108352

query I rowsort
SELECT - 77 * + - 66 AS col2 FROM tab1 AS cor0
----
5082
5082
5082

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT DISTINCT - + COUNT( - 93 ) * MAX( DISTINCT - + ( - - col1 ) ) + - 26 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - + COUNT ( - 93 ) * MAX ( DISTINCT - + ( - - col1 ) ) + - 26 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4306
SELECT DISTINCT + 74, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
74
-3

skipif mysql # not compatible
query II rowsort label-4306
SELECT DISTINCT + 74, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
74
-3

query I rowsort
SELECT DISTINCT + col2 * - 42 FROM tab0 cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT 62 * + COUNT( + col2 ) AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT 62 * + COUNT ( + col2 ) AS col2 FROM tab2
----
186

query I rowsort
SELECT - col0 + - 35 FROM tab2
----
-110
-81
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col2 + - ( - + col0 ) col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT DISTINCT col2 * - 73 FROM tab1
----
-4307
-4964
-7008

query II rowsort
SELECT DISTINCT - col1 AS col0, + col2 * - col2 FROM tab0
----
-1
-9801
-21
-100
-81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + 61 + + COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-4313
SELECT + 61 + + COUNT ( * ) FROM tab0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT - col2 DIV + 84 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT - col2 / + 84 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT - CAST( NULL AS SIGNED ) + + + 54 * 82 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4315
SELECT - CAST ( NULL AS INTEGER ) + + + 54 * 82 col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 / 16 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + MAX( ALL + + 2 ) + + + 80 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4317
SELECT + MAX ( ALL + + 2 ) + + + 80 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - - COUNT( + + 16 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4318
SELECT - - COUNT ( + + 16 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col0, col2 - + col0 AS col1 FROM tab1 AS cor0
----
51
45
85
-26
91
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT - MIN( - 53 ) + + COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - MIN ( - 53 ) + + COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
56

query I rowsort
SELECT + ( col1 ) * + col0 + + col0 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT - MAX( - + 74 ) + - 47 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - MAX ( - + 74 ) + - 47 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4323
SELECT * FROM tab2 AS cor0 WHERE 28 BETWEEN - ( CAST( NULL AS SIGNED ) ) / + col0 * 20 - - + col2 * - 33 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-4323
SELECT * FROM tab2 AS cor0 WHERE 28 BETWEEN - ( CAST ( NULL AS INTEGER ) ) / + col0 * 20 - - + col2 * - 33 AND + - col1
----

query I rowsort
SELECT ALL + 38 + + col2 AS col2 FROM tab0 AS cor0
----
137
48
85

query II rowsort
SELECT DISTINCT - 23 - ( + + col0 ) AS col2, - 81 AS col2 FROM tab2 AS cor0
----
-69
-81
-87
-81
-98
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 47 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT 47 / - + col2 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE + 36 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 * + 34 * + - ( - 29 ) col2 FROM tab2
----
51
22678
67
57188
77
39440

query II rowsort
SELECT 27 AS col0, - col2 FROM tab2
----
27
-23
27
-40
27
-58

query I rowsort
SELECT ALL 68 + 12 FROM tab1
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4331
SELECT DISTINCT + CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4331
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT ALL - col0 AS col2, 27 + col1 AS col1 FROM tab0
----
-15
108
-87
48
-97
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + 66 * - - MAX( DISTINCT + + col1 ) AS col0 FROM tab1
----
3102

skipif mysql # not compatible
query I rowsort label-4333
SELECT + 66 * - - MAX ( DISTINCT + + col1 ) AS col0 FROM tab1
----
3102

query I rowsort
SELECT - 14 * col0 * - col2 FROM tab2
----
14812
35840
60900

query I rowsort
SELECT 61 + 87 AS col2 FROM tab1
----
148
148
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - MAX( 53 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-4336
SELECT - MAX ( 53 ) FROM tab1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( 80 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - 8 + - COUNT( * ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 8 + - COUNT ( * ) AS col2 FROM tab2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT + CAST( col0 AS SIGNED ) + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4340
SELECT + CAST ( col0 AS INTEGER ) + col1 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + + col0 * 9 col1 FROM tab2
----
511
673
772

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * + 10 col1 FROM tab1 WHERE NOT col0 * + 2 IS NULL
----
-379
-89
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4344
SELECT 89 - col1 * + col0 AS col0 FROM tab0 WHERE ( - col2 ) NOT BETWEEN ( col1 * 85 ) AND + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL )
----
-1126
-1738
-8

skipif mysql # not compatible
query I rowsort label-4344
SELECT 89 - col1 * + col0 AS col0 FROM tab0 WHERE ( - col2 ) NOT BETWEEN ( col1 * 85 ) AND + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL )
----
-1126
-1738
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE 67 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 52 FROM tab0
----
1092
4212
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + MAX( - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + MAX ( - col2 ) FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE 10 NOT IN ( - ( - col1 ) + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT 78 * COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT 78 * COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
0

query I rowsort
SELECT 73 * + 89 FROM tab0 WHERE NOT - ( - col1 ) IS NULL
----
6497
6497
6497

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col2 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT - 92 DIV + col0 + - ( 39 ) * 9 FROM tab2
----
-352
-352
-353

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 92 / + col0 + - ( 39 ) * 9 FROM tab2
----
-352
-352
-353

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 21 + + ( - 85 + - col0 * + 64 ) NOT BETWEEN ( col2 ) AND col1 / 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4354
SELECT * FROM tab0 WHERE NOT ( 16 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4354
SELECT * FROM tab0 WHERE NOT ( 16 ) < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 26 + ( col2 + + col1 ) AS col1 FROM tab2 AS cor0
----
100
143
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL SUM( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col2 + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4358
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST( + 32 AS SIGNED ) AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-4358
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - CAST ( + 32 AS INTEGER ) AND ( - col0 )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + 29 * COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + 29 * COUNT ( * ) FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT DISTINCT + + ( + col0 ) + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + + ( + col0 ) + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 65 ) - - 35 col1 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT ALL - 6 + 51 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE ( + col2 ) < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4365
SELECT DISTINCT - col2 DIV - 63 + - col0 AS col1 FROM tab1 AS cor0
----
-50
-85
-90

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT - col2 / - 63 + - col0 AS col1 FROM tab1 AS cor0
----
-50
-85
-90

query I rowsort
SELECT - 3 - col1 FROM tab0 AS cor0
----
-24
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL MAX( 21 ) * 75 FROM tab1 AS cor0
----
1575

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL MAX ( 21 ) * 75 FROM tab1 AS cor0
----
1575

query I rowsort
SELECT ALL col1 - col0 AS col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE col1 / + col2 IS NULL
----

query I rowsort
SELECT col0 * - col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + 35 * + 84 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 97 * + - col0 AS col2 FROM tab2
----
4462
6208
7275

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col2 * 15 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL + 5 * + COUNT( DISTINCT + 26 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + 5 * + COUNT ( DISTINCT + 26 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT + - ( - ( CAST( ( col0 ) AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4376
SELECT + - ( - ( CAST ( ( col0 ) AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT ALL 3, + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4377
SELECT ALL 3, + COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT ALL 27 + 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query II rowsort
SELECT ALL - 11 AS col0, + col1 FROM tab2
----
-11
51
-11
67
-11
77

query I rowsort
SELECT DISTINCT + + 73 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4381
SELECT DISTINCT * FROM tab0 WHERE 95 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4381
SELECT DISTINCT * FROM tab0 WHERE 95 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 54 ) col1 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL + + MAX( col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4383
SELECT ALL + + MAX ( col1 ) col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT col0 + 96 FROM tab1 AS cor0 WHERE NOT + + ( col0 ) IS NULL OR NOT NULL IS NULL
----
147
181
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT - - ( - CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4385
SELECT - - ( - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 37 + - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( - col2 / col0 )
----

query I rowsort
SELECT - col1 - col0 * ( + 5 ) FROM tab2 AS cor0 WHERE NOT col1 >= + col1 + col1
----
-281
-397
-442

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 32 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - ( + col1 ) ) - + col2 * + col2 NOT BETWEEN NULL AND ( - 1 )
----

query I rowsort
SELECT col1 + col2 * col0 FROM tab1 WHERE NULL NOT IN ( - ( + 58 ) )
----

query I rowsort
SELECT - col2 + - 52 * + col2 FROM tab0
----
-2491
-5247
-530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4392
SELECT + COUNT( * ) + 79 AS col2, CAST( - SUM( DISTINCT col2 ) AS SIGNED ) - - 9 AS col2 FROM tab1
----
82
-214

skipif mysql # not compatible
query II rowsort label-4392
SELECT + COUNT ( * ) + 79 AS col2, CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) - - 9 AS col2 FROM tab1
----
82
-214

query I rowsort
SELECT DISTINCT col2 + col2 - col0 AS col2 FROM tab1
----
141
33
45

query I rowsort
SELECT + + col2 * - col2 + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT - 88 + + COUNT( - 91 ) AS col1 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 88 + + COUNT ( - 91 ) AS col1 FROM tab1
----
-85

query I rowsort
SELECT - 1 + - 61 AS col0 FROM tab0
----
-62
-62
-62

query I rowsort
SELECT 56 + - col2 - + col1 AS col0 FROM tab1
----
-54
-59
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT + 68 DIV - COUNT( * ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-4398
SELECT + 68 / - COUNT ( * ) AS col0 FROM tab1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT - col0 DIV col2 col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4399
SELECT - col0 / col2 col1 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4400
SELECT * FROM tab2 cor0 WHERE + col1 NOT BETWEEN + CAST( 66 AS SIGNED ) + + col0 AND 29 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4400
SELECT * FROM tab2 cor0 WHERE + col1 NOT BETWEEN + CAST ( 66 AS INTEGER ) + + col0 AND 29 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 - + - col2 AS col0 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 - + col1 / + col2 / 21 + - ( col2 ) ) NOT IN ( + col0 + 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL COUNT( * ) - + + SUM( - ( col0 ) ) AS col1 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL COUNT ( * ) - + + SUM ( - ( col0 ) ) AS col1 FROM tab2
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT - 75 - CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4404
SELECT - 75 - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-72

query I rowsort
SELECT DISTINCT - col0 - 88 FROM tab1
----
-139
-173
-179

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4406
SELECT - col0 - - 46 * + col2 AS col0, 26 * + CAST( NULL AS DECIMAL ) FROM tab2
----
1012
NULL
1776
NULL
2593
NULL

skipif mysql # not compatible
query II rowsort label-4406
SELECT - col0 - - 46 * + col2 AS col0, 26 * + CAST ( NULL AS REAL ) FROM tab2
----
1012
NULL
1776
NULL
2593
NULL

query I rowsort
SELECT ALL + ( + + 56 ) * - col2 FROM tab0
----
-2632
-5544
-560

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 94 + + ( - col2 ) NOT IN ( col1 + col1 )
----

query I rowsort
SELECT DISTINCT col1 * - 45 AS col0 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL + COUNT( - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + COUNT ( - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + - col0 ) IN ( ( 58 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 38, - col2 + + + col1 * col2 AS col2 FROM tab2 AS cor0
----
38
1150
38
3040
38
3828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT DISTINCT - + COUNT( * ) DIV + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - + COUNT ( * ) / + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT + - col0, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT + col2 * - col1 * + - 40 AS col1 FROM tab0
----
152280
3960
8400

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - SUM( ( + - 61 ) ) AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-4416
SELECT - SUM ( ( + - 61 ) ) AS col0 FROM tab0
----
183

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL BETWEEN - col2 AND + 99
----

query II rowsort
SELECT + 39, col0 AS col1 FROM tab2
----
39
46
39
64
39
75

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 35 * - + col1 <= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <> + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - 75 BETWEEN col2 AND - 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - 74, col1 col0 FROM tab0 AS cor0
----
-3478
81
-7326
1
-740
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT ALL col1 * - 41 FROM tab0 AS cor0
----
-3321
-41
-861

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4425
SELECT DISTINCT + CAST( NULL AS SIGNED ), 87 AS col2 FROM tab1 AS cor0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4425
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 87 AS col2 FROM tab1 AS cor0
----
NULL
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4426
SELECT DISTINCT - - col2, col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

skipif mysql # not compatible
query II rowsort label-4426
SELECT DISTINCT - - col2, col2 / - col0 AS col1 FROM tab0 AS cor0
----
10
0
47
-3
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT - + col2 DIV + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4427
SELECT - + col2 / + - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT ALL + - col2 + - - col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - + 79 * + col2 + 77 FROM tab0 cor0
----
-3636
-713
-7744

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 27 NOT IN ( col2 * + - ( + + col1 ) * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE + ( + - 56 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE + ( + - 56 ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT ALL col2 DIV + - 20 + - col0 + + 7 + - col1 * - 3 * + - 72 + col0 AS col0 FROM tab1 AS cor0
----
-10148
-1075
-3021

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL col2 / + - 20 + - col0 + + 7 + - col1 * - 3 * + - 72 + col0 AS col0 FROM tab1 AS cor0
----
-10148
-1075
-3021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 72 col2 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) * - 32 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 32 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - 43
----

query I rowsort
SELECT ALL 52 + - col2 FROM tab2
----
-6
12
29

query I rowsort
SELECT + col0 FROM tab0 WHERE + col0 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < 40 * col2 + 33
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 + + col2 * + col1 < ( col1 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4440
SELECT + MIN( ALL + ( + col0 ) ) * + 2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT + MIN ( ALL + ( + col0 ) ) * + 2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT + COUNT( * ) + + 64 * - 28 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1786

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + COUNT ( * ) + + 64 * - 28 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1786

query I rowsort
SELECT ALL + + 52 - + col0 FROM tab1 AS cor0
----
-33
-39
1

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 < ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - COUNT( + - 63 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4445
SELECT - COUNT ( + - 63 ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - 50 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + 74 * + 28 - - COUNT( * ) FROM tab2 AS cor0
----
2075

skipif mysql # not compatible
query I rowsort label-4447
SELECT + 74 * + 28 - - COUNT ( * ) FROM tab2 AS cor0
----
2075

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT MIN( ALL + col0 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4448
SELECT MIN ( ALL + col0 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + - MIN( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4449
SELECT + - MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT DISTINCT - col0 * + col0 + + col2 DIV - 13 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-2117
-4099
-5629

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - col0 * + col0 + + col2 / - 13 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-2117
-4099
-5629

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4452
SELECT - CAST( NULL AS SIGNED ) DIV + + col2 * + 71 AS col2, - col1 DIV 34 FROM tab0
----
NULL
-2
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-4452
SELECT - CAST ( NULL AS INTEGER ) / + + col2 * + 71 AS col2, - col1 / 34 FROM tab0
----
NULL
-2
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 51 < - col2 + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4454
SELECT CAST( NULL AS DECIMAL ) AS col2, col0 - - 61 FROM tab2
----
NULL
107
NULL
125
NULL
136

skipif mysql # not compatible
query II rowsort label-4454
SELECT CAST ( NULL AS REAL ) AS col2, col0 - - 61 FROM tab2
----
NULL
107
NULL
125
NULL
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL - COUNT( * ) * 98 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - COUNT ( * ) * 98 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT COUNT( * ) * + 11 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4456
SELECT COUNT ( * ) * + 11 FROM tab0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4457
SELECT + CAST( + col2 AS DECIMAL ) + + col2 FROM tab0 WHERE NOT col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4457
SELECT + CAST ( + col2 AS REAL ) + + col2 FROM tab0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 / 56 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4459
SELECT DISTINCT - 11 DIV + 65 - - col1, + 12 AS col0 FROM tab1 AS cor0
----
14
12
47
12
5
12

skipif mysql # not compatible
query II rowsort label-4459
SELECT DISTINCT - 11 / + 65 - - col1, + 12 AS col0 FROM tab1 AS cor0
----
14
12
47
12
5
12

query I rowsort
SELECT DISTINCT - - col0 * + 55 AS col1 FROM tab0 AS cor0
----
4785
5335
825

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4461
SELECT DISTINCT 69 DIV + CAST( + - 54 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT 69 / + CAST ( + - 54 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE + 36 * + + col2 + - col2 IN ( - 82, 70 )
----

query I rowsort
SELECT ALL + ( 48 ) FROM tab1 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4464
SELECT - 10 DIV + + COUNT( * ) + - 66 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4464
SELECT - 10 / + + COUNT ( * ) + - 66 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + 38 + + - col1 FROM tab2 AS cor0
----
-13
-29
-39

query I rowsort
SELECT ALL + + 89 * + + col0 + - - col0 FROM tab0 cor0
----
1350
7830
8730

query I rowsort
SELECT DISTINCT 76 * + ( + 21 ) * + col0 AS col1 FROM tab0
----
138852
154812
23940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT ALL + 41 / col0 * col2 * + - col1 FROM tab1 WHERE ( - CAST( + 15 AS SIGNED ) ) NOT BETWEEN NULL AND 90
----

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + 41 / col0 * col2 * + - col1 FROM tab1 WHERE ( - CAST ( + 15 AS INTEGER ) ) NOT BETWEEN NULL AND 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT DISTINCT + col0 * - CAST( + col0 AS SIGNED ) col1 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT + col0 * - CAST ( + col0 AS INTEGER ) col1 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 WHERE + 90 * + 51 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4471
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE col2 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col1 IN ( - 12 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 37 + + col2 - - col0 FROM tab2 AS cor0
----
32
67
96

query I rowsort
SELECT ALL - col0 + col2 * - 49 FROM tab1 AS cor0
----
-2976
-3423
-4755

query I rowsort
SELECT DISTINCT - - col2 + 93 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT - 77 DIV col1 - + 81 + - col0 + 38 FROM tab2 cor0
----
-108
-119
-90

skipif mysql # not compatible
query I rowsort label-4476
SELECT - 77 / col1 - + 81 + - col0 + 38 FROM tab2 cor0
----
-108
-119
-90

query I rowsort
SELECT ALL + 42 * - col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab1 cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4479
SELECT - col2 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-4479
SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT DISTINCT COUNT( * ) AS col2, 33 col2 FROM tab2 AS cor0
----
3
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4480
SELECT DISTINCT COUNT ( * ) AS col2, 33 col2 FROM tab2 AS cor0
----
3
33

query II rowsort
SELECT ALL - col0, + col1 + ( + 23 ) AS col0 FROM tab2 AS cor0
----
-46
74
-64
100
-75
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT ( + 81 ) DIV col1 DIV 90 + - col2 + + - col2 FROM tab1 cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-4482
SELECT ( + 81 ) / col1 / 90 + - col2 + + - col2 FROM tab1 cor0
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT col0 DIV + + 63 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4483
SELECT col0 / + + 63 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( 55 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT ALL - SUM( + col0 ) AS col0, + COUNT( * ) FROM tab0
----
-199
3

skipif mysql # not compatible
query II rowsort label-4485
SELECT ALL - SUM ( + col0 ) AS col0, + COUNT ( * ) FROM tab0
----
-199
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + 57 ) IS NOT NULL
----

query I rowsort
SELECT 85 * - col2 * col0 FROM tab0
----
-59925
-73950
-816255

query I rowsort
SELECT ALL - col2 * - col1 * 27 AS col1 FROM tab1
----
36288
7965
86292

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL SUM( + - 61 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL SUM ( + - 61 ) FROM tab0
----
-183

query I rowsort
SELECT ALL - col0 * + 76 * - 97 FROM tab0
----
110580
641364
715084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 92 col0 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4492
SELECT ALL CAST( NULL AS SIGNED ) + + 28, 36 AS col1 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL CAST ( NULL AS INTEGER ) + + 28, 36 AS col1 FROM tab0 AS cor0
----
NULL
36
NULL
36
NULL
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4493
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * - col1 + ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4493
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * - col1 + ( CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + + col2 ) col1 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - 41 * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-4495
SELECT - 41 * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT ALL COUNT( * ) AS col0, + 63 FROM tab0 cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-4496
SELECT ALL COUNT ( * ) AS col0, + 63 FROM tab0 cor0
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT + COUNT( * ) + - 90 AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + COUNT ( * ) + - 90 AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL - - 40 * - COUNT( * ) + + COUNT( ALL - 55 ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - - 40 * - COUNT ( * ) + + COUNT ( ALL - 55 ) FROM tab2 AS cor0
----
-117

query I rowsort
SELECT ALL + 6 + - + 79 * - + col1 FROM tab1 AS cor0
----
1112
3719
401

query I rowsort
SELECT + + col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * - col1 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT ALL - ( 20 ) DIV - 91 + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - ( 20 ) / - 91 + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 2 < - col2 + + col0 * - ( - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0, col0 FROM tab0 AS cor0 WHERE 29 + + - 16 * - - col0 IS NOT NULL
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT + col0 + + + col1 DIV - 16 - + col2 FROM tab0 AS cor0
----
-2
-37
76

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + col0 + + + col1 / - 16 - + col2 FROM tab0 AS cor0
----
-2
-37
76

query II rowsort
SELECT DISTINCT + - col2 - - ( - 34 ) AS col2, 64 AS col1 FROM tab2 AS cor0
----
-57
64
-74
64
-92
64

query I rowsort
SELECT 59 - + col2 * + + ( + + col1 ) - + col0 * + + col2 AS col2 FROM tab2
----
-2172
-5581
-8177

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4508
SELECT ALL + col1 DIV - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + col1 / - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - + col2 FROM tab1 WHERE - + 12 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT 80 * 90 + 49 * + col1 + + col0 FROM tab0
----
11184
7346
8316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 58, + col2 col1 FROM tab2
----
-58
23
-58
40
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT + col1 DIV + col1 + col2 FROM tab0 cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4512
SELECT + col1 / + col1 + col2 FROM tab0 cor0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT + + COUNT( * ) FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT MIN( - - 3 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4514
SELECT DISTINCT MIN ( - - 3 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT ALL + - COUNT( * ) AS col0, 45 * - COUNT( * ) FROM tab1 AS cor0
----
-3
-135

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL + - COUNT ( * ) AS col0, 45 * - COUNT ( * ) FROM tab1 AS cor0
----
-3
-135

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = + - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + + COUNT( * ) * - MAX( DISTINCT - 94 ) FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-4517
SELECT + + COUNT ( * ) * - MAX ( DISTINCT - 94 ) FROM tab2 AS cor0
----
282

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + ( + - 48 ) + - 18 - - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT ALL - 41 * - - 86 * + 43, COUNT( * ) AS col0 FROM tab1
----
-151618
3

skipif mysql # not compatible
query II rowsort label-4519
SELECT ALL - 41 * - - 86 * + 43, COUNT ( * ) AS col0 FROM tab1
----
-151618
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - + col0 ) * 18 AS col2, ( 16 ) * col0 col2 FROM tab0
----
1566
1392
1746
1552
270
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT ALL - col2 / - CAST( NULL AS SIGNED ) * - + col0 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - col2 / - CAST ( NULL AS INTEGER ) * - + col0 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT ALL + SUM( ALL + col2 ) DIV - 22 AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + SUM ( ALL + col2 ) / - 22 AS col0 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - COUNT( * ) * + 28 - + 60 AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-4524
SELECT - COUNT ( * ) * + 28 - + 60 AS col0 FROM tab1
----
-144

query I rowsort
SELECT 49 + + col0 + - + col1 + col1 AS col2 FROM tab0 AS cor0
----
136
146
64

query II rowsort
SELECT DISTINCT - col2 * - col0 AS col0, - ( col2 ) FROM tab1 cor0
----
4896
-96
5015
-59
6188
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + + SUM( ALL + - col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + col2 IN ( col2, + ( + col0 ) + - + 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT + + SUM ( ALL + - col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + col2 IN ( col2, + ( + col0 ) + - + 77 ) )
----
NULL

query I rowsort
SELECT col1 + col0 * col1 * - 38 AS col0 FROM tab2 AS cor0
----
-187187
-190883
-89097

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - MIN( ALL + col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - MIN ( ALL + col2 ) AS col0 FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4530
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ), - CAST( - - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4530
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ), - CAST ( - - col1 AS INTEGER ) )
----

query I rowsort
SELECT - + 96 FROM tab1 WHERE NULL IS NULL
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + col1 + - + 1 FROM tab1
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL COUNT( * ) + - 93 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL COUNT ( * ) + - 93 FROM tab0
----
-90

query I rowsort
SELECT ALL 14 * 65 FROM tab2 WHERE NOT ( + - 67 ) IS NULL
----
910
910
910

query I rowsort
SELECT 89 * + - ( 94 ) FROM tab2
----
-8366
-8366
-8366

query I rowsort
SELECT ALL - - 72 * - col2 AS col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col1 - 76 AS col0 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT ALL - col0 - + - 77 - + - col2 + - - 90 FROM tab1
----
141
144
212

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT - + 12 * col2 * + + col2 DIV + col2 FROM tab2 AS cor0
----
-276
-480
-696

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - + 12 * col2 * + + col2 / + col2 FROM tab2 AS cor0
----
-276
-480
-696

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 72
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND 4 + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4542
SELECT + col1 AS col0, 22 DIV 35 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-4542
SELECT + col1 AS col0, 22 / 35 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL - COUNT( * ) * + COUNT( * ) * + - 51 AS col0 FROM tab2
----
459

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * + - 51 AS col0 FROM tab2
----
459

query III rowsort
SELECT * FROM tab1 WHERE NOT - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4546
SELECT ALL - 94 / - - CAST( NULL AS DECIMAL ) + - 23 * MAX( + 2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - 94 / - - CAST ( NULL AS REAL ) + - 23 * MAX ( + 2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + 1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + AVG ( ALL - + ( + 72 ) ) + + ( SUM( + 36 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT + AVG ( ALL - + ( + 72 ) ) + + ( SUM ( + 36 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT + col1 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - 21 * + 20 FROM tab1
----
-420
-420
-420

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 74 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 55 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
55
55
55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4553
SELECT ALL + ( col0 ) col2, 72 * CAST( NULL AS DECIMAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4553
SELECT ALL + ( col0 ) col2, 72 * CAST ( NULL AS REAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT ALL ( - + ( + MIN( ALL CAST( - + col1 AS SIGNED ) ) ) ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4554
SELECT ALL ( - + ( + MIN ( ALL CAST ( - + col1 AS INTEGER ) ) ) ) col2 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE - col2 + - 47 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4556
SELECT MAX( - col1 ), + CAST( + + 72 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
72

skipif mysql # not compatible
query II rowsort label-4556
SELECT MAX ( - col1 ), + CAST ( + + 72 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT - COUNT( * ) + + + 42 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND CAST( NULL AS SIGNED ) - + + CAST( NULL AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4557
SELECT - COUNT ( * ) + + + 42 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND CAST ( NULL AS INTEGER ) - + + CAST ( NULL AS INTEGER )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + 3 * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 3 * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT - CAST( NULL AS SIGNED ) * - col2 / - 88 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4559
SELECT - CAST ( NULL AS INTEGER ) * - col2 / - 88 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 57 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4561
SELECT - - 21 * + COUNT( * ) + + 12 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT - - 21 * + COUNT ( * ) + + 12 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col1, - 94 FROM tab1 AS cor0
----
51
-94
85
-94
91
-94

query I rowsort
SELECT DISTINCT + + col1 * + + 6 AS col0 FROM tab1 AS cor0
----
282
30
84

query I rowsort
SELECT ALL 97 + col0 AS col1 FROM tab2 AS cor0
----
143
161
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT + CAST( - - col0 AS SIGNED ) - - + col2 col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4565
SELECT + CAST ( - - col0 AS INTEGER ) - - + col2 col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL 13 - col1 FROM tab1
----
-1
-34
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT col0 * + col1 + - + col0 + + - col0 * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT col0 * + col1 + - + col0 + + - col0 * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT DISTINCT - 91 * col1 AS col0 FROM tab1
----
-1274
-4277
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 91 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 91 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4571
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 95 - - col1 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4571
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 95 - - col1 < + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( - - 18 ) FROM tab0 cor0
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT + 71 DIV col0 + - 70 AS col2 FROM tab2 AS cor0
----
-69
-70

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + 71 / col0 + - 70 AS col2 FROM tab2 AS cor0
----
-69
-70

query I rowsort
SELECT col2 * - 67 + col1 FROM tab0 cor0
----
-3068
-649
-6632

query I rowsort
SELECT col1 * + - col0 * - col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL + ( 99 ) AS col1 FROM tab0 cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4577
SELECT ALL col2 * col0 * 55, col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
269280
NULL
275825
NULL
340340
NULL

skipif mysql # not compatible
query II rowsort label-4577
SELECT ALL col2 * col0 * 55, col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
269280
NULL
275825
NULL
340340
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT MIN( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4578
SELECT MIN ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT + + MIN( ALL - col1 ) * - 86 + - 50 AS col1 FROM tab1 AS cor0
----
3992

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT + + MIN ( ALL - col1 ) * - 86 + - 50 AS col1 FROM tab1 AS cor0
----
3992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4580
SELECT COUNT( * ) AS col2, + COUNT( * ) / - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4580
SELECT COUNT ( * ) AS col2, + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4581
SELECT DISTINCT + + 90 + - col0 DIV - 99 + + col1 DIV - - col2 col1, - col0 DIV col0 FROM tab0 AS cor0
----
90
-1
91
-1
92
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4581
SELECT DISTINCT + + 90 + - col0 / - 99 + + col1 / - - col2 col1, - col0 / col0 FROM tab0 AS cor0
----
90
-1
91
-1
92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT 40 + - COUNT( * ) col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4582
SELECT DISTINCT 40 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col0 FROM tab0 WHERE NOT - 72 BETWEEN 81 AND NULL
----
-70
-70
-70

query II rowsort
SELECT ALL 49, col0 AS col2 FROM tab2
----
49
46
49
64
49
75

query I rowsort
SELECT col0 + - + col0 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL 83 AS col2, 50 + col2 AS col2 FROM tab1
----
83
109
83
118
83
146

query II rowsort
SELECT DISTINCT + col1, 11 AS col0 FROM tab0
----
1
11
21
11
81
11

query I rowsort
SELECT ( + 75 ) FROM tab2 cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL - - col2 + - 13 + - col0 * - + col1 + - CAST( ( 89 ) AS SIGNED ) + col1 FROM tab1 AS cor0
----
387
4290
722

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL - - col2 + - 13 + - col0 * - + col1 + - CAST ( ( 89 ) AS INTEGER ) + col1 FROM tab1 AS cor0
----
387
4290
722

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL + SUM( DISTINCT - - col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + SUM ( DISTINCT - - col2 ) AS col2 FROM tab2 cor0
----
121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL 20 + + CAST( - - 63 AS SIGNED ) + + col2 * + col2 AS col1 FROM tab0 cor0
----
183
2292
9884

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 20 + + CAST ( - - 63 AS INTEGER ) + + col2 * + col2 AS col1 FROM tab0 cor0
----
183
2292
9884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - + col2 * + col1 - - + col2 col1 FROM tab2 AS cor0
----
1219
3160
4002

query III rowsort
SELECT * FROM tab1 WHERE - 79 + - ( 48 ) <> NULL
----

query I rowsort
SELECT 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT CAST( NULL AS SIGNED ) * + + 92 * + COUNT( * ) * - 37 * + 82 + - - 6 col1 FROM tab0 AS cor0 WHERE col2 + + - col2 / - - col1 IN ( + + col1, + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4597
SELECT CAST ( NULL AS INTEGER ) * + + 92 * + COUNT ( * ) * - 37 * + 82 + - - 6 col1 FROM tab0 AS cor0 WHERE col2 + + - col2 / - - col1 IN ( + + col1, + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - - ( - col0 ) + 42 AS col2 FROM tab1 AS cor0
----
-43
-49
-9

query I rowsort
SELECT + col0 * + ( 50 ) AS col2 FROM tab0 AS cor0
----
4350
4850
750

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4601
SELECT ALL 87 AS col2, - MIN( + col2 ) DIV + ( + 7 ) FROM tab0
----
87
-1

skipif mysql # not compatible
query II rowsort label-4601
SELECT ALL 87 AS col2, - MIN ( + col2 ) / + ( + 7 ) FROM tab0
----
87
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + SUM( 69 ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-4602
SELECT + SUM ( 69 ) FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-4603
SELECT ALL - 30 * - COUNT( * ) * - - 30, MIN( col2 ) AS col0 FROM tab0
----
2700
10

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL - 30 * - COUNT ( * ) * - - 30, MIN ( col2 ) AS col0 FROM tab0
----
2700
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 53 + - - col1 + + - col1 * col0 NOT BETWEEN NULL AND - col0 - - + col0
----

query II rowsort
SELECT col2, 7 FROM tab2
----
23
7
40
7
58
7

query I rowsort
SELECT 21 * - - col2 AS col2 FROM tab0 WHERE NOT - 71 IS NULL
----
2079
210
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL 96 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL 96 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL < 58
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL < 58
----
0

query I rowsort
SELECT ALL - ( - 64 ) AS col1 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT COUNT( * ) * + 5 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4610
SELECT COUNT ( * ) * + 5 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT MIN( 97 ) FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4611
SELECT MIN ( 97 ) FROM tab2 cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + - 19 DIV 70 * - 50 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + - 19 / 70 * - 50 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT DISTINCT col0 DIV col2 + col2 col1 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4613
SELECT DISTINCT col0 / col2 + col2 col1 FROM tab1 AS cor0
----
60
69
96

query I rowsort
SELECT DISTINCT + col2 * + 9 * - col0 * - col2 + + + col1 * - - col1 FROM tab1 AS cor0
----
2662990
3789265
4230340

query I rowsort
SELECT - - 77 FROM tab2 cor0
----
77
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT ( - - SUM( + col2 ) ) * CAST( NULL AS SIGNED ) + + COUNT( - col2 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ( - - SUM ( + col2 ) ) * CAST ( NULL AS INTEGER ) + + COUNT ( - col2 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT ALL col2 + + - col1 * + col0 + - col0 - col0 + col2 + - + 64 DIV col0 AS col2 FROM tab2 AS cor0
----
-2393
-4977
-5059

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL col2 + + - col1 * + col0 + - col0 - col0 + col2 + - + 64 / col0 AS col2 FROM tab2 AS cor0
----
-2393
-4977
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - COUNT( * ) * COUNT( - 55 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4618
SELECT - COUNT ( * ) * COUNT ( - 55 ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT + COUNT( * ) * + ( 77 ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + COUNT ( * ) * + ( 77 ) AS col0 FROM tab2 AS cor0
----
231

query I rowsort
SELECT ALL + 24 * - col0 AS col0 FROM tab1
----
-1224
-2040
-2184

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT DISTINCT 66 DIV + - col2 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT 66 / + - col2 AS col2 FROM tab0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 55 FROM tab0
----
1
55
21
55
81
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 66 + + col1 col0 FROM tab0 AS cor0
----
1407
5427
67

query I rowsort
SELECT DISTINCT col2 * - col2 + - 26 AS col0 FROM tab2 AS cor0
----
-1626
-3390
-555

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 51 AS col1, - 75 + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
51
-4352
51
-500
51
-789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT + + 81 - + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT + + 81 - + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE + col1 * - col0 = + - col2 / - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + 62, - col2, + + 34, - col2 - 52 )
----

query II rowsort
SELECT DISTINCT - + col0 AS col0, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT 10 AS col0, - 41 AS col2 FROM tab1 AS cor0
----
10
-41
10
-41
10
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT DISTINCT + COUNT( * ) + + - 96 FROM tab0 WHERE + col1 * + + col0 > - + 30
----
-93

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT + COUNT ( * ) + + - 96 FROM tab0 WHERE + col1 * + + col0 > - + 30
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT MAX( col1 ) * COUNT( * ) * - 88 AS col2 FROM tab2
----
-20328

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT MAX ( col1 ) * COUNT ( * ) * - 88 AS col2 FROM tab2
----
-20328

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col2 * + col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

query I rowsort
SELECT DISTINCT - + ( + + 7 ) * + ( - + col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
322
448
525

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4639
SELECT - 90 DIV CAST( - 1 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif mysql # not compatible
query I rowsort label-4639
SELECT - 90 / CAST ( - 1 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query II rowsort
SELECT DISTINCT col1 + + 38 + + - ( + col2 ) AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-60
-99
49
-10
72
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + + 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 42 + - - 69 + + 26 AS col2 FROM tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT + 51 * + col0 + + + 16 FROM tab2 AS cor0
----
2362
3280
3841

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT ALL - + COUNT( * ) col1, + 82 * - - 72 FROM tab0 AS cor0 WHERE ( NOT 61 IS NOT NULL ) OR NOT ( 95 IS NOT NULL )
----
0
5904

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4644
SELECT ALL - + COUNT ( * ) col1, + 82 * - - 72 FROM tab0 AS cor0 WHERE ( NOT 61 IS NOT NULL ) OR NOT ( 95 IS NOT NULL )
----
0
5904

query I rowsort
SELECT col0 + - + col2 * 99 FROM tab0
----
-4638
-903
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL - MAX( ALL + 95 ) + - 87 AS col2 FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - MAX ( ALL + 95 ) + - 87 AS col2 FROM tab0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL + MAX( ALL - - col2 ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + MAX ( ALL - - col2 ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col2 )
----
NULL

query I rowsort
SELECT DISTINCT 76 * - col1 - - - col1 AS col2 FROM tab2
----
-3927
-5159
-5929

query I rowsort
SELECT col0 * 94 + col2 FROM tab2
----
4347
6056
7108

query I rowsort
SELECT col2 + + 6 FROM tab0 WHERE - 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT ( + + CAST( NULL AS SIGNED ) ) + - - col1 + - col2 / CAST( NULL AS SIGNED ) * - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ( + + CAST ( NULL AS INTEGER ) ) + - - col1 + - col2 / CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT - ( + - ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4652
SELECT - ( + - ( + COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4653
SELECT ALL * FROM tab0 WHERE NOT + 50 / - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4653
SELECT ALL * FROM tab0 WHERE NOT + 50 / - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * + 1 * - + 91 AS col2 FROM tab0
----
4277
9009
910

query I rowsort
SELECT col0 * - ( + 44 ) AS col0 FROM tab0
----
-3828
-4268
-660

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4657
SELECT ALL * FROM tab0 WHERE - - CAST( + - col1 AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4657
SELECT ALL * FROM tab0 WHERE - - CAST ( + - col1 AS INTEGER ) + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + 62 + - 92 + + col1 FROM tab1
----
-16
-25
17

query I rowsort
SELECT - - ( col2 ) AS col2 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT MAX( 9 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT MAX ( 9 ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 / - col1 * - + ( - 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab0 cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 48 / - col1 / - col1 + - + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 81 * 4 + + + col2 FROM tab0 AS cor0
----
334
371
423

query II rowsort
SELECT 70, 40 * 16 AS col0 FROM tab2
----
70
640
70
640
70
640

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT ALL COUNT( * ) AS col1, 14 + 9 AS col2 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-4667
SELECT ALL COUNT ( * ) AS col1, 14 + 9 AS col2 FROM tab2
----
3
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4668
SELECT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) / + 72 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4668
SELECT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) / + 72 IS NULL )
----

query I rowsort
SELECT 12 * ( ( + - col2 ) ) FROM tab2
----
-276
-480
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT - + col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT - + col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT + 62, + 71 AS col0 FROM tab2
----
62
71
62
71
62
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT + - col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4672
SELECT + - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, - col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( - - 92 * + col0 + - + ( col1 ) + 86 * - col2 * + + col1, - col2 + col0 )
----
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - COUNT( DISTINCT - 38 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4674
SELECT - COUNT ( DISTINCT - 38 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 15 + + - col0 * + 13 * + + col0 FROM tab0
----
-122302
-2910
-98382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT + ( CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * 23 IS NOT NULL )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4676
SELECT + ( CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE ( col2 * 23 IS NOT NULL )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4677
SELECT * FROM tab0 AS cor0 WHERE ( NOT 62 / + - col2 + + 56 BETWEEN NULL AND CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4677
SELECT * FROM tab0 AS cor0 WHERE ( NOT 62 / + - col2 + + 56 BETWEEN NULL AND CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col2 ) col1, + col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE 15 * - 67 IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 + + 46 col1 FROM tab2 AS cor0
----
-2555
-4443
-5883

query I rowsort
SELECT ALL - ( - - 87 ) + + + 86 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT DISTINCT col0 + 80 + - 94 DIV 60 AS col1 FROM tab2 AS cor0
----
125
143
154

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT col0 + 80 + - 94 / 60 AS col1 FROM tab2 AS cor0
----
125
143
154

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 89 NOT IN ( - + col0, 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT COUNT( * ) - + 72 AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT COUNT ( * ) - + 72 AS col0 FROM tab1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT DISTINCT - 71 * + col2 + + - 40 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - 71 * + col2 + + - 40 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT ALL - CAST( + 61 AS SIGNED ) * - + 87 - - col2 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-4197
4447
4649

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - CAST ( + 61 AS INTEGER ) * - + 87 - - col2 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-4197
4447
4649

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4687
SELECT + COUNT( * ) AS col1, + CAST( NULL AS DECIMAL ) * 30 AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4687
SELECT + COUNT ( * ) AS col1, + CAST ( NULL AS REAL ) * 30 AS col0 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4689
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab2 WHERE NOT NULL <= - + ( - col1 ) * + 94 + + col2 + col1
----

query I rowsort
SELECT - ( 11 ) AS col2 FROM tab2
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 10 * COUNT( + col2 ) col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4694
SELECT 10 * COUNT ( + col2 ) col1 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * + col1 col1 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT DISTINCT col0 * 91 FROM tab0 AS cor0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 94 ) BETWEEN 50 AND - + col1 * + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 94 ) BETWEEN 50 AND - + col1 * + + col0
----
-3

query I rowsort
SELECT col0 * + - col2 + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT DISTINCT + 8 DIV + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + 8 / + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 61 * - 88 + - col0 FROM tab0 AS cor0
----
-5383
-5455
-5465

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL + - MIN( ALL - 92 ) col1 FROM tab2 cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT ALL + - MIN ( ALL - 92 ) col1 FROM tab2 cor0
----
92

query I rowsort
SELECT 96 * - - col2 AS col2 FROM tab0 cor0
----
4512
9504
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4703
SELECT - + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT + 46 * + + COUNT( * ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + 46 * + + COUNT ( * ) FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT MAX( ALL + + 75 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT MAX ( ALL + + 75 ) FROM tab2
----
75

query I rowsort
SELECT - - ( - 57 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-57
-57
-57

query I rowsort
SELECT DISTINCT col2 * col1 / + - col1 + - - col2 FROM tab1 WHERE - 90 + + 55 + col0 * col2 * - + 34 * - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT + 13 DIV + 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT + 13 / + 67 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 + col2 * + - 30 * col2 - + 73 FROM tab0
----
-294200
-3160
-66358

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT MIN( ALL - - col0 ) + + + MIN( - col2 ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4711
SELECT MIN ( ALL - - col0 ) + + + MIN ( - col2 ) AS col2 FROM tab0
----
-84

query I rowsort
SELECT 81 + - col0 * col1 AS col1 FROM tab1
----
-344
-4196
-633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4713
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 92 * + 44 * + COUNT( * ) AS col1 FROM tab0
----
NULL
-12144

skipif mysql # not compatible
query II rowsort label-4713
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 92 * + 44 * + COUNT ( * ) AS col1 FROM tab0
----
NULL
-12144

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 94 >= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 49 + - 68 + + 20 AS col2, + 16 FROM tab2 cor0
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - COUNT( * ) + 71 AS col1 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-4716
SELECT - COUNT ( * ) + 71 AS col1 FROM tab2 cor0
----
68

query I rowsort
SELECT ALL + col0 + - 12 FROM tab1 AS cor0
----
39
73
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 NOT BETWEEN NULL AND - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT - col1 * - CAST( NULL AS SIGNED ) + 95 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT - col1 * - CAST ( NULL AS INTEGER ) + 95 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - ( COUNT( * ) ) + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - ( COUNT ( * ) ) + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - + 59 - 83 AS col1 FROM tab2 AS cor0
----
-142
-142
-142

query III rowsort
SELECT * FROM tab1 WHERE + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 + + col1 * + col0 * - + col0 col1 FROM tab2
----
-107985
-315496
-377008

query III rowsort
SELECT * FROM tab0 WHERE 48 > 33 + - 77 * - + 88
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT + 50 * - COUNT( * ) * + + 30 DIV ( + COUNT( * ) ) AS col0 FROM tab0
----
-1500

skipif mysql # not compatible
query I rowsort label-4725
SELECT + 50 * - COUNT ( * ) * + + 30 / ( + COUNT ( * ) ) AS col0 FROM tab0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + + COUNT( + 9 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4726
SELECT + + COUNT ( + 9 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - MAX( ALL + + 33 ) + + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - MAX ( ALL + + 33 ) + + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + col0 * - - 92 AS col1 FROM tab2 cor0
----
4232
5888
6900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 97 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * - + col0 + + col2 col0 FROM tab2 cor0
----
-2645
-3672
-4292

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT - 92, - COUNT( * ) col1 FROM tab2 AS cor0
----
-92
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4732
SELECT - 92, - COUNT ( * ) col1 FROM tab2 AS cor0
----
-92
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT + + col2 * + - 24 FROM tab1 AS cor0
----
-1416
-1632
-2304

query I rowsort
SELECT col1 * - 35 * - col1 AS col0 FROM tab0
----
15435
229635
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + + MAX( + - col1 ) col0 FROM tab2 WHERE NOT + col2 / + col2 + - col1 - - 3 * 79 * - 88 + 79 / + col0 BETWEEN NULL AND - + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT ALL + + MAX ( + - col1 ) col0 FROM tab2 WHERE NOT + col2 / + col2 + - col1 - - 3 * 79 * - 88 + 79 / + col0 BETWEEN NULL AND - + col0
----
NULL

query II rowsort
SELECT ALL + ( col1 ), col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT + col2 DIV + + col0 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT + col2 / + + col0 col1 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 * + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT BETWEEN + + 29 AND col1 + + + col1 - - col1 / col1
----

query I rowsort
SELECT ALL + col1 + 67 * + - 41 FROM tab0 AS cor0
----
-2666
-2726
-2746

query I rowsort
SELECT ALL col2 * + 25 FROM tab0 AS cor0
----
1175
2475
250

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT - + 73 DIV + 85 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT - + 73 / + 85 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 53 > NULL
----

query I rowsort
SELECT - col2 - + col2 + 50 AS col2 FROM tab2 AS cor0
----
-30
-66
4

query I rowsort
SELECT ALL 43 + ( 99 ) - + col0 AS col0 FROM tab1 AS cor0
----
51
57
91

query I rowsort
SELECT ALL - 52 - col1 FROM tab0
----
-133
-53
-73

query I rowsort
SELECT ALL + col2 - - 49 FROM tab0
----
148
59
96

query I rowsort
SELECT ALL - col1 - - 59 FROM tab1
----
12
45
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT DISTINCT + 95 * - 1 - - + CAST( - 99 AS SIGNED ) * - 1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT + 95 * - 1 - - + CAST ( - 99 AS INTEGER ) * - 1 FROM tab0
----
4

query II rowsort
SELECT 71, 50 AS col1 FROM tab1
----
71
50
71
50
71
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ( - + ( + col0 ) ) DIV - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT ( - + ( + col0 ) ) / - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL ( + 41 ) AS col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - - MIN( DISTINCT - + 54 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - MIN ( DISTINCT - + 54 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT + 87 * COUNT( + col2 ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT + 87 * COUNT ( + col2 ) FROM tab0
----
261

query I rowsort
SELECT DISTINCT + 90 FROM tab2 WHERE NULL < - col1
----

query I rowsort
SELECT DISTINCT + - 63 + - col0 FROM tab1 AS cor0 WHERE + 33 + 40 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL + - COUNT( * ) * - 76 AS col2 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL + - COUNT ( * ) * - 76 AS col2 FROM tab0 AS cor0
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT - MAX( + - col0 ) DIV COUNT( - + col1 ) * - - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT - MAX ( + - col0 ) / COUNT ( - + col1 ) * - - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4761
SELECT + col0 * + 14 * 49 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
31556
NULL
43904
NULL
51450
NULL

skipif mysql # not compatible
query II rowsort label-4761
SELECT + col0 * + 14 * 49 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
31556
NULL
43904
NULL
51450
NULL

query I rowsort
SELECT - col1 + + - col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - + COUNT( - col2 ) AS col1 FROM tab1 WHERE NOT - 91 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - + COUNT ( - col2 ) AS col1 FROM tab1 WHERE NOT - 91 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL COUNT( * ) * + 28 * - COUNT( * ), + 80 AS col2 FROM tab1
----
-252
80

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL COUNT ( * ) * + 28 * - COUNT ( * ), + 80 AS col2 FROM tab1
----
-252
80

query I rowsort
SELECT col2 + + 75 + col0 AS col2 FROM tab2
----
144
179
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + + 52 col0 FROM tab0 AS cor0
----
151
62
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + ( - 71 ) + + CAST( NULL AS SIGNED ) + + 11 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + ( - 71 ) + + CAST ( NULL AS INTEGER ) + + 11 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT SUM( - col0 ) AS col1 FROM tab1 WHERE ( 61 ) NOT BETWEEN + 58 + 34 * col2 AND col2
----
-227

skipif mysql # not compatible
query I rowsort label-4768
SELECT SUM ( - col0 ) AS col1 FROM tab1 WHERE ( 61 ) NOT BETWEEN + 58 + 34 * col2 AND col2
----
-227

query I rowsort
SELECT - col1 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT ALL 25 DIV col0 col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT ALL 25 / col0 col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT DISTINCT - 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-4771
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + col0 BETWEEN col0 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + col0 BETWEEN col0 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ( 77 ) + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4773
SELECT ( 77 ) + COUNT ( * ) FROM tab2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT 46 DIV - col1 AS col2 FROM tab0
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT 46 / - col1 AS col2 FROM tab0
----
-2
-46
0

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - 19 NOT IN ( + 80 * 83 )
----
59
68
96

query I rowsort
SELECT col1 * - ( - col0 ) AS col2 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 / 37 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= ( col1 + col2 )
----

query I rowsort
SELECT col2 * 68 + col1 FROM tab1
----
4017
4671
6542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) * 88 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) * 88 FROM tab1
----
NULL

query I rowsort
SELECT + 84 * - col0 AS col2 FROM tab2
----
-3864
-5376
-6300

query III rowsort
SELECT * FROM tab1 WHERE 87 / 96 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4783
SELECT DISTINCT * FROM tab1 WHERE CAST( - ( + 42 ) AS SIGNED ) + - 99 BETWEEN NULL AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-4783
SELECT DISTINCT * FROM tab1 WHERE CAST ( - ( + 42 ) AS INTEGER ) + - 99 BETWEEN NULL AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL + COUNT( * ) * + 99 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + COUNT ( * ) * + 99 FROM tab1
----
297

query I rowsort
SELECT DISTINCT + ( 42 ) + + ( ( - col2 ) ) * - 32 FROM tab2
----
1322
1898
778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT - CAST( 52 AS SIGNED ) * + 87 AS col1 FROM tab0
----
-4524

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - CAST ( 52 AS INTEGER ) * + 87 AS col1 FROM tab0
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT MAX( ALL col1 ) + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4787
SELECT MAX ( ALL col1 ) + COUNT ( * ) FROM tab2
----
80

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + col2 + + col1 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4789
SELECT ALL * FROM tab2 WHERE NOT - 27 - + CAST( ( col0 ) + + col1 * col2 AS DECIMAL ) < ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4789
SELECT ALL * FROM tab2 WHERE NOT - 27 - + CAST ( ( col0 ) + + col1 * col2 AS REAL ) < ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) BETWEEN NULL AND 96
----

query III rowsort
SELECT * FROM tab0 WHERE + 31 / col2 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN col1 AND 82
----

query III rowsort
SELECT * FROM tab2 WHERE 92 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT 62 * COUNT( * ) - 51 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-4794
SELECT 62 * COUNT ( * ) - 51 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL - 51 + COUNT( * ) AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - 51 + COUNT ( * ) AS col1 FROM tab0
----
-48

query III rowsort
SELECT * FROM tab2 WHERE ( - ( col0 ) * ( - 65 + + 28 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT 73 + + 39 DIV + 84 AS col1 FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4798
SELECT 73 + + 39 / + 84 AS col1 FROM tab2
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - 49 AS col2 FROM tab0 cor0
----
-4263
-4753
-735

query I rowsort
SELECT ALL + 19 FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4802
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 * - ( col1 ) AND CAST( - 96 AS SIGNED ) * + 46
----

skipif mysql # not compatible
query III rowsort label-4802
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 * - ( col1 ) AND CAST ( - 96 AS INTEGER ) * + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT 0 * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT 0 * COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT + col2 DIV ( - 13 ) AS col0 FROM tab0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT + col2 / ( - 13 ) AS col0 FROM tab0
----
-3
-7
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 78 * - col1 FROM tab0
----
-1638
-6318
-78

query I rowsort
SELECT 23 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND ( - col1 + - 30 * 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL SUM( ALL - 39 ) * - 43 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
5034

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL SUM ( ALL - 39 ) * - 43 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5034

query I rowsort
SELECT - col2 * - col2 FROM tab2 AS cor0 WHERE NOT NULL <= 72
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT - + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT col2 * - col2 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - - ( col1 + 48 ) FROM tab0 WHERE NOT - 91 BETWEEN + col0 AND + col0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 27 ) * col0 col2 FROM tab2
----
-1242
-1728
-2025

query III rowsort
SELECT * FROM tab2 WHERE - 64 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL OR ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + MIN( col2 ) col1 FROM tab0 WHERE ( NULL ) NOT IN ( - col2 - col1 / col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4818
SELECT + MIN ( col2 ) col1 FROM tab0 WHERE ( NULL ) NOT IN ( - col2 - col1 / col1 )
----
NULL

query I rowsort
SELECT + col2 * - col2 AS col2 FROM tab0 WHERE col1 * - col2 + 43 * + 25 IS NOT NULL
----
-100
-2209
-9801

query I rowsort
SELECT ALL col2 * - + col1 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT - col0 * - col2 FROM tab0 WHERE ( NULL ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4822
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4822
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL CAST( NULL AS SIGNED ) + 43 AS col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL CAST ( NULL AS INTEGER ) + 43 AS col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + - COUNT( * ) + - - 41 AS col0 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4824
SELECT + - COUNT ( * ) + - - 41 AS col0 FROM tab2 AS cor0
----
38

query I rowsort
SELECT - 40 + col2 * + ( col0 ) FROM tab1 AS cor0
----
4856
4975
6148

query I rowsort
SELECT DISTINCT - 48 FROM tab2 cor0 WHERE ( + 27 + 63 / + col1 ) > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT DISTINCT - 96 * - CAST( - COUNT( + 46 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - 96 * - CAST ( - COUNT ( + 46 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

query III rowsort
SELECT * FROM tab0 WHERE ( 57 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + MIN( ( 72 ) ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4829
SELECT + MIN ( ( 72 ) ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL + SUM( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + SUM ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - - 87 - - COUNT( * ) FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-4832
SELECT - - 87 - - COUNT ( * ) FROM tab2 cor0
----
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> - 70 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - + - col0 FROM tab1 AS cor0
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 - + - col2 * + 90 col0 FROM tab1 AS cor0
----
5328
6138
8658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + + + col2 AS col2 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + + + col2 AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT + 29 * - col0 FROM tab1 AS cor0
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ( + - MAX( DISTINCT + col1 ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4838
SELECT ( + - MAX ( DISTINCT + col1 ) ) FROM tab2 cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - + col2 NOT BETWEEN NULL AND NULL OR col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL - MIN( DISTINCT + 71 ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - MIN ( DISTINCT + 71 ) AS col1 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 92 + + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 68 / - col0 * + col1 - col0 NOT IN ( col0 + + 93 )
----

query I rowsort
SELECT + - 30 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-30
-30
-30

query I rowsort
SELECT + col1 * + 96 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 19 + - 39 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 41 + + col1 IN ( 98 )
----

query I rowsort
SELECT col1 * 63 AS col1 FROM tab2 AS cor0
----
3213
4221
4851

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 48 + + col2 * - 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + COUNT( * ) * + 9 AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + COUNT ( * ) * + 9 AS col0 FROM tab1 AS cor0
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + - col1 + - - col1 + - 72 * 42 AND + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + - SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 73 IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-4851
SELECT + - SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 73 IS NULL
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - col1 + - + col2 AS col0 FROM tab0 WHERE ( + 26 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col0 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - MAX( - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - MAX ( - + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + + MIN( - ( + + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + + MIN ( - ( + + col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL + + COUNT( * ) + + - 86 AS col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL + + COUNT ( * ) + + - 86 AS col2 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( 32 ) NOT BETWEEN - 80 + + col0 + - 75 AND - 97
----
3

skipif mysql # not compatible
query I rowsort label-4859
SELECT + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( 32 ) NOT BETWEEN - 80 + + col0 + - 75 AND - 97
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 + - col2 col1 FROM tab0 AS cor0
----
0
52
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 >= NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT COUNT( * ) + 15 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT COUNT ( * ) + 15 FROM tab0 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col1 ) col0 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT 63 + + - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-4864
SELECT 63 + + - COUNT ( * ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ( MIN( DISTINCT - col1 ) ) + 79 * - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( + + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT ( MIN ( DISTINCT - col1 ) ) + 79 * - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( + + 53 )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 9 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT DISTINCT 99 AS col2, - 76 * + MIN( DISTINCT col2 ) AS col0 FROM tab2
----
99
-1748

skipif mysql # not compatible
query II rowsort label-4867
SELECT DISTINCT 99 AS col2, - 76 * + MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
99
-1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, - 20 col0 FROM tab0
----
-15
-20
-87
-20
-97
-20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * - col2 * 1 ) NOT IN ( + ( - 37 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4870
SELECT + 59 DIV + - COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4870
SELECT + 59 / + - COUNT ( * ) FROM tab2
----
-19

query I rowsort
SELECT 55 * - col1 FROM tab2
----
-2805
-3685
-4235

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 68 BETWEEN ( + col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + 56
----

query II rowsort
SELECT ALL - 39 AS col0, + 99 - col1 FROM tab0 AS cor0 WHERE - col1 + col1 IS NULL
----

query I rowsort
SELECT - - col2 * 39 * - col0 + col2 AS col0 FROM tab1 WHERE NULL NOT IN ( - col0, col1 )
----

query I rowsort
SELECT ALL - ( - + col1 ) * + + col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL col1 * + 33 * + + col0 AS col0 FROM tab0 cor0
----
3201
40095
60291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4878
SELECT - CAST( NULL AS SIGNED ), + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4878
SELECT - CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
0

query I rowsort
SELECT DISTINCT + + 67 FROM tab1 cor0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4880
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL 24 AS col0 FROM tab0 AS cor0 WHERE ( + 16 * col1 + - col1 ) IN ( - 89 + CAST( + + 66 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL 24 AS col0 FROM tab0 AS cor0 WHERE ( + 16 * col1 + - col1 ) IN ( - 89 + CAST ( + + 66 AS INTEGER ) )
----

query I rowsort
SELECT + 65 * + col2 * + col2 * col2 FROM tab1
----
13349635
20438080
57507840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT + MIN( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT + MIN ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - SUM( ALL + 94 ) FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-4884
SELECT - SUM ( ALL + 94 ) FROM tab2
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + COUNT( - 44 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4885
SELECT + COUNT ( - 44 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT DISTINCT COUNT( * ) * - + 24 DIV - COUNT( * ) col0 FROM tab1
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4886
SELECT DISTINCT COUNT ( * ) * - + 24 / - COUNT ( * ) col0 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL - 53 * + + ( - COUNT( * ) ) * SUM( DISTINCT + - 24 ) FROM tab1
----
-3816

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL - 53 * + + ( - COUNT ( * ) ) * SUM ( DISTINCT + - 24 ) FROM tab1
----
-3816

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4888
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * col2 / + col2 NOT BETWEEN - col2 + - - col0 AND + col0 + CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4888
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * col2 / + col2 NOT BETWEEN - col2 + - - col0 AND + col0 + CAST ( col1 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - ( 27 ) + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 22 IN ( + col0 + col1, col2 )
----

query II rowsort
SELECT ALL - col0, + col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + + MIN( DISTINCT + 97 ) AS col0 FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + + MIN ( DISTINCT + 97 ) AS col0 FROM tab2 cor0
----
97

query I rowsort
SELECT + - 99 * - 16 + + - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / + + col2 AND + 50
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 6 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + 50 * + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4895
SELECT + 50 * + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
150

query I rowsort
SELECT ALL - + 56 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL + 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT + MIN( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + MIN ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - - 60 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4836
-4955
-6128

query I rowsort
SELECT - ( + 70 ) AS col1 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT 83 * - + 43 FROM tab1
----
-3569
-3569
-3569

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT ( NOT ( ( ( NULL ) IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col1 * + 98 + - - 13 + - col1 / ( - col0 ) NOT BETWEEN ( - 24 ) AND ( NULL )
----

query II rowsort
SELECT ALL + col1 AS col1, ( - col0 ) * + col1 + col0 + - col1 * + 29 AS col0 FROM tab2
----
51
-3779
67
-6893
77
-7097

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 25 * + col1 > NULL
----

query I rowsort
SELECT + 24 + + - ( - col2 ) + 35 * + col0 - - col2 - 88 AS col1 FROM tab0 AS cor0
----
3001
3529
555

query I rowsort
SELECT + 51 / + 41 * - col1 + + - col2 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4908
SELECT ALL + col0 DIV + col0 + + col1, + col0 AS col2 FROM tab1 AS cor0
----
15
51
48
91
6
85

skipif mysql # not compatible
query II rowsort label-4908
SELECT ALL + col0 / + col0 + + col1, + col0 AS col2 FROM tab1 AS cor0
----
15
51
48
91
6
85

query I rowsort
SELECT col1 + col2 + col2 + col1 * + - 59 + - col0 FROM tab2 cor0
----
-2958
-3845
-4450

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4911
SELECT DISTINCT - col1 DIV + CAST( - + col2 AS SIGNED ) - col0 DIV col0 * + col0 + - ( + 95 ) AS col1, 31 AS col0 FROM tab0 AS cor0
----
-109
31
-180
31
-192
31

skipif mysql # not compatible
query II rowsort label-4911
SELECT DISTINCT - col1 / + CAST ( - + col2 AS INTEGER ) - col0 / col0 * + col0 + - ( + 95 ) AS col1, 31 AS col0 FROM tab0 AS cor0
----
-109
31
-180
31
-192
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) * - + COUNT( * ) + + AVG ( 13 ) * 89 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) * - + COUNT ( * ) + + AVG ( 13 ) * 89 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - col0 * + 62 FROM tab1
----
-3066
-5211
-5574

query II rowsort
SELECT ALL - col0 - - + col2 AS col1, col2 * 88 + 0 + + col2 + + + col1 FROM tab2
----
-17
5229
-23
2098
-24
3637

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * + ( - 85 ) * + 53 + - - col2 ) NOT BETWEEN NULL AND - ( - col2 ) * - - col2
----

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4917
SELECT DISTINCT col2, col0 * + + CAST( NULL AS SIGNED ) col1 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-4917
SELECT DISTINCT col2, col0 * + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + 46 * - 83 * - col1 FROM tab1 AS cor0
----
179446
19090
53452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT ALL + col1 * 17 + - - col1 - - col0 * + CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + col1 * 17 + - - col1 - - col0 * + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4920
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 61, - col2 AS col0 FROM tab2 AS cor0
----
-61
-23
-61
-40
-61
-58

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query II rowsort
SELECT - 85 AS col0, - col2 * + - col2 * col2 - - + col1 FROM tab1 AS cor0
----
-85
205384
-85
314479
-85
884750

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 37 ) NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT + 18 * + - col2 AS col1 FROM tab2 WHERE NOT + col1 * - 4 <= NULL
----

query II rowsort
SELECT 43 AS col0, + 33 FROM tab1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT - col2 DIV - CAST( - 10 AS SIGNED ) AS col0 FROM tab2
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - col2 / - CAST ( - 10 AS INTEGER ) AS col0 FROM tab2
----
-2
-4
-5

query I rowsort
SELECT ALL ( - col1 ) * - 56 FROM tab2
----
2856
3752
4312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4931
SELECT - CAST( NULL AS DECIMAL ) + ( - - col1 ) / - 69 FROM tab2 WHERE NOT 68 <= + col0 + + col1
----

skipif mysql # not compatible
query I rowsort label-4931
SELECT - CAST ( NULL AS REAL ) + ( - - col1 ) / - 69 FROM tab2 WHERE NOT 68 <= + col0 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col1 AS col2, 89 col0 FROM tab0
----
1215
89
1827
89
97
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + SUM( - + 21 ) AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4933
SELECT + SUM ( - + 21 ) AS col1 FROM tab0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * - col1 + - 78 col2 FROM tab0 AS cor0
----
10
1770
7050

query I rowsort
SELECT ALL col2 * + ( col2 ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT DISTINCT 1 / + + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT 1 / + + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4937
SELECT ALL + 35 AS col1, + col2 + + + col1 DIV 85 * - - col0 * + - 19 FROM tab2 AS cor0
----
35
23
35
40
35
58

skipif mysql # not compatible
query II rowsort label-4937
SELECT ALL + 35 AS col1, + col2 + + + col1 / 85 * - - col0 * + - 19 FROM tab2 AS cor0
----
35
23
35
40
35
58

query I rowsort
SELECT ALL - - 71 + col0 FROM tab0 cor0
----
158
168
86

query I rowsort
SELECT col2 * - 18 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col1 + - col1 * - col1 * + 62 - - - col1 FROM tab1 cor0
----
12124
136864
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT + SUM( - col1 ) + - COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + SUM ( - col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL col2 + + col0 * ( + + col0 ) FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT + 54 + - 32 DIV + + ( col1 ) FROM tab1 AS cor0
----
48
52
54

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 54 + - 32 / + + ( col1 ) FROM tab1 AS cor0
----
48
52
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT - COUNT( ALL + 58 ) + 30 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - COUNT ( ALL + 58 ) + 30 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL - + 36 - col2 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT DISTINCT 35 + + 22 FROM tab2 cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 81, + ( 14 ) * + col0 * + - col0 + + - col1 * + + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - + ( - col2 ) + + col2 <= NULL
----

query II rowsort
SELECT DISTINCT - ( col0 ), + 6 AS col0 FROM tab2
----
-46
6
-64
6
-75
6

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab1 WHERE NOT + 79 IS NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( + + 69 ) * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT SUM( + + ( + col0 ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4952
SELECT SUM ( + + ( + col0 ) ) AS col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 - - - col0 col2 FROM tab1
----
-19
-25
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * col0 = - + ( - + 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT - COUNT( - col0 ) * - 95 - + + 51 AS col1, 68 AS col0 FROM tab0 AS cor0
----
234
68

skipif mysql # not compatible
query II rowsort label-4955
SELECT - COUNT ( - col0 ) * - 95 - + + 51 AS col1, 68 AS col0 FROM tab0 AS cor0
----
234
68

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 IN ( + ( - 98 ) * + col1 + + + col1 )
----
51
67
77

query I rowsort
SELECT ALL - 96 * col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - - SUM( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT - 27 DIV COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 27 / COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4961
SELECT + - 87 DIV CAST( 32 AS SIGNED ) AS col2 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4961
SELECT + - 87 / CAST ( 32 AS INTEGER ) AS col2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT DISTINCT + 42 * + col2 + + col0 AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1 * - 54 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + 42 * + col2 + + col0 AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1 * - 54 * - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT + - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4963
SELECT + - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 4 * 96 AS col0 FROM tab2
----
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT DISTINCT 92 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT 92 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ( - 37 ) * + + col1 FROM tab1
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + MAX( ALL + - 62 ) FROM tab0 WHERE NOT + + 37 IN ( col2, 39, - 68 )
----
-62

skipif mysql # not compatible
query I rowsort label-4967
SELECT + MAX ( ALL + - 62 ) FROM tab0 WHERE NOT + + 37 IN ( col2, 39, - 68 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - MAX( - col2 ) * - 14 FROM tab1
----
-826

skipif mysql # not compatible
query I rowsort label-4968
SELECT - MAX ( - col2 ) * - 14 FROM tab1
----
-826

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT DISTINCT + 77 DIV + + col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + 77 / + + col2 FROM tab0
----
0
1
7

query I rowsort
SELECT - col0 * - - 35 AS col1 FROM tab2 AS cor0
----
-1610
-2240
-2625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT - MAX( - CAST( - - col0 AS SIGNED ) ) + + - CAST( - - COUNT( + CAST( + col0 AS SIGNED ) ) AS SIGNED ) * + 10 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4971
SELECT - MAX ( - CAST ( - - col0 AS INTEGER ) ) + + - CAST ( - - COUNT ( + CAST ( + col0 AS INTEGER ) ) AS INTEGER ) * + 10 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT + 86 + + col2 FROM tab0
----
133
185
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT - CAST( + + CAST( + - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4973
SELECT - CAST ( + + CAST ( + - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL 4 AS col2 FROM tab2 AS cor0 WHERE + col1 + + col0 / + ( col0 ) + + ( - 36 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL col1 + 10 * - + 74 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL col1 + 10 * - + 74 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 90 * + 38 * + - col1 * + - ( - + ( - col1 ) ) - - - col1 FROM tab1 AS cor0
----
670306
7554733
85495

query I rowsort
SELECT ALL 83 - + 21 AS col1 FROM tab2
----
62
62
62

query I rowsort
SELECT ( - col2 ) * + - 93 AS col0 FROM tab1 WHERE ( ( + col0 ) ) / - + 77 * - + 25 + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + ( + col0 ) * - col0 + - 26 * col1 + - + 17 * - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 + 69 AS col1 FROM tab1 AS cor0
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 88 col2 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT CAST( SUM( DISTINCT + 7 ) AS SIGNED ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( SUM ( DISTINCT + 7 ) AS INTEGER ) FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - 37 + - COUNT( * ) FROM tab0 cor0 WHERE NOT col2 + - col2 NOT BETWEEN - + 93 AND NULL
----
-37

skipif mysql # not compatible
query I rowsort label-4983
SELECT - 37 + - COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 + - col2 NOT BETWEEN - + 93 AND NULL
----
-37

query I rowsort
SELECT DISTINCT + AVG ( - col0 ) AS col2 FROM tab2 cor0 WHERE - 61 + - col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4985
SELECT - ( + col0 ) col0, - col0 DIV col1 - - col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4985
SELECT - ( + col0 ) col0, - col0 / col1 - - col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL - - 30 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - - 30 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 99 * ( + col1 ) FROM tab1
----
-1386
-4653
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT COUNT( * ) * 24 + - 29 DIV - COUNT( * ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4988
SELECT COUNT ( * ) * 24 + - 29 / - COUNT ( * ) AS col1 FROM tab1
----
81

query I rowsort
SELECT col1 * - + 35 + - - ( + + col2 ) FROM tab1
----
-116
-1577
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL + MIN( DISTINCT col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL + MIN ( DISTINCT col0 ) AS col0 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-4991
SELECT + col2 AS col1, 21 + + 14 DIV - col2 AS col0 FROM tab1
----
59
21
68
21
96
21

skipif mysql # not compatible
query II rowsort label-4991
SELECT + col2 AS col1, 21 + + 14 / - col2 AS col0 FROM tab1
----
59
21
68
21
96
21

query I rowsort
SELECT + - ( - + 63 ) FROM tab2 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT + COUNT( * ) + + 76 AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + COUNT ( * ) + + 76 AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT + - col2 * 86 FROM tab2 cor0
----
-1978
-3440
-4988

query II rowsort
SELECT DISTINCT + col1 AS col2, 36 * - - col0 FROM tab1
----
14
1836
47
3276
5
3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 / - col2 * + + col0 AS col2 FROM tab2 WHERE - 19 + + - 81 * + - col1 / - col2 * - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-13

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL NOT BETWEEN - 18 AND + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5000
SELECT col2 * - 22 / col0 + - - col0 / - - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT col2 * - 22 / col0 + - - col0 / - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT ALL - 58, COUNT( * ) AS col2 FROM tab0
----
-58
3

skipif mysql # not compatible
query II rowsort label-5001
SELECT ALL - 58, COUNT ( * ) AS col2 FROM tab0
----
-58
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT 20 + CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT 20 + CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + COUNT( * ) + + MIN( + + col0 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5003
SELECT + COUNT ( * ) + + MIN ( + + col0 ) AS col1 FROM tab2
----
49

query I rowsort
SELECT - - 76 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT DISTINCT + + MIN( + + ( - + col1 ) ) + - + MAX( ALL col1 ) col2 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT DISTINCT + + MIN ( + + ( - + col1 ) ) + - + MAX ( ALL col1 ) col2 FROM tab0 AS cor0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0, 31 col1 FROM tab1 cor0
----
-51
31
-85
31
-91
31

query II rowsort
SELECT ALL + col0 + + 59, - 61 AS col2 FROM tab0 AS cor0
----
146
-61
156
-61
74
-61

query I rowsort
SELECT ALL + 61 + + + 15 * + col1 FROM tab2 cor0
----
1066
1216
826

onlyif mysql # DIV for integer division: 
query II rowsort label-5009
SELECT DISTINCT - col0 + - ( + col1 ) DIV + 29 AS col0, + col2 * - 40 AS col2 FROM tab1 AS cor0
----
-51
-3840
-85
-2360
-92
-2720

skipif mysql # not compatible
query II rowsort label-5009
SELECT DISTINCT - col0 + - ( + col1 ) / + 29 AS col0, + col2 * - 40 AS col2 FROM tab1 AS cor0
----
-51
-3840
-85
-2360
-92
-2720

query I rowsort
SELECT 89 FROM tab2 WHERE - + 84 IS NOT NULL
----
89
89
89

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( + + col0 ) / - 91 AND NULL
----

query I rowsort
SELECT ALL + col1 * + col2 - - col1 AS col0 FROM tab1
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + - col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 39 - - col2 + ( - ( col2 ) ) FROM tab1
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT DISTINCT - 15 - + col1 - col2 * + + col0 * CAST( NULL AS SIGNED ) * + CAST( col2 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - 15 - + col1 - col2 * + + col0 * CAST ( NULL AS INTEGER ) * + CAST ( col2 AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT 9 * - col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT 9 * - col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 93 * col2 * - col0 AS col0 FROM tab2
----
-238080
-404550
-98394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT ALL - + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 WHERE - col0 * + - col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5018
SELECT ALL - + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 WHERE - col0 * + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5019
SELECT + col2 DIV CAST( 35 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
60
69
98

skipif mysql # not compatible
query I rowsort label-5019
SELECT + col2 / CAST ( 35 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
60
69
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT 17, + COUNT( * ) AS col2 FROM tab2
----
17
3

skipif mysql # not compatible
query II rowsort label-5020
SELECT 17, + COUNT ( * ) AS col2 FROM tab2
----
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT SUM( + - 65 ) AS col1 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT SUM ( + - 65 ) AS col1 FROM tab1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT - SUM( + - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5022
SELECT - SUM ( + - col1 ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5023
SELECT ALL * FROM tab2 WHERE NULL < - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5023
SELECT ALL * FROM tab2 WHERE NULL < - - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col2 * - 41 AS col1 FROM tab2
----
1640
2378
943

query I rowsort
SELECT DISTINCT col2 * 24 AS col0 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query II rowsort label-5026
SELECT DISTINCT - + 74 AS col2, + ( - 96 ) + + COUNT( 70 ) FROM tab0 AS cor0
----
-74
-93

skipif mysql # not compatible
query II rowsort label-5026
SELECT DISTINCT - + 74 AS col2, + ( - 96 ) + + COUNT ( 70 ) FROM tab0 AS cor0
----
-74
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + - 18 IS NOT NULL AND NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT + MAX( + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + MAX ( + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT DISTINCT + + col1 + - CAST( NULL AS SIGNED ) + 18 * - col2 - - col2 * + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + + col1 + - CAST ( NULL AS INTEGER ) + 18 * - col2 - - col2 * + col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col2 * - - col0 * - col1 col0 FROM tab0 AS cor0
----
10
-18270
47
-57105
99
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-5032
SELECT + col1 DIV - col2 * + col2 * - col2, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-5032
SELECT + col1 / - col2 * + col2 * - col2, col0 AS col1 FROM tab1
----
0
51
0
85
0
91

query III rowsort
SELECT * FROM tab1 WHERE NOT 48 IS NOT NULL
----

query I rowsort
SELECT 64 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * ( col0 ) / + col0 * - col1 + col1 + + + 24 + - - col1 col1 FROM tab2 WHERE NOT ( NOT col2 + + col0 - + - col1 * + + col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + SUM( DISTINCT + - col1 ) + + 10 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5036
SELECT + SUM ( DISTINCT + - col1 ) + + 10 FROM tab1 AS cor0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + 86 AND NULL
----

query I rowsort
SELECT 49 + - + ( - col0 ) AS col2 FROM tab1 AS cor0
----
100
134
140

query II rowsort
SELECT - - 88 + - col1 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
67
-87
7
-15
87
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5040
SELECT SUM( DISTINCT + col2 ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT SUM ( DISTINCT + col2 ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 < - col1
----

query I rowsort
SELECT + col0 * - ( + + ( + col2 ) ) * - col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + 14 * - 15 AS col0 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT - - col2 - + 89 + + col2 FROM tab0 AS cor0
----
-69
109
5

query I rowsort
SELECT + 60 - - - col2 FROM tab1 cor0
----
-36
-8
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + + 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * 6 + + + col1 * - col0 * col2 * + + col2 col2 FROM tab0 AS cor0 WHERE ( col0 / - ( - + col2 ) > - 78 )
----
-183960
-2706777
-951291

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 29 * + col2 * - ( + col0 ) + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 67 + + 10 + + + 59 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT + ( - - MAX( DISTINCT - ( col0 ) ) ) FROM tab2 WHERE NOT - + ( - col0 ) * - 26 * - CAST( NULL AS SIGNED ) + 58 BETWEEN ( col0 + + col0 + - col0 ) AND col1 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT + ( - - MAX ( DISTINCT - ( col0 ) ) ) FROM tab2 WHERE NOT - + ( - col0 ) * - 26 * - CAST ( NULL AS INTEGER ) + 58 BETWEEN ( col0 + + col0 + - col0 ) AND col1 - col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5054
SELECT - + col1 DIV + col0 AS col2, col0 * + col1 * - + 67 AS col0 FROM tab2 AS cor0
----
-1
-157182
-1
-330176
0
-336675

skipif mysql # not compatible
query II rowsort label-5054
SELECT - + col1 / + col0 AS col2, col0 * + col1 * - + 67 AS col0 FROM tab2 AS cor0
----
-1
-157182
-1
-330176
0
-336675

query I rowsort
SELECT DISTINCT col1 * 63 AS col2 FROM tab0 AS cor0
----
1323
5103
63

query I rowsort
SELECT + 0 * + col2 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 80 * + + 61 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-10779920
-122000
-956480

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT - 10 DIV col1 + col0 + + - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1293
-212
-3105

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 10 / col1 + col0 + + - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1293
-212
-3105

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT DISTINCT + + 87, - MIN( DISTINCT + col2 ) - 43 + + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0
----
87
-57

skipif mysql # not compatible
query II rowsort label-5059
SELECT DISTINCT + + 87, - MIN ( DISTINCT + col2 ) - 43 + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
87
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5060
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + CAST( - ( + col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5060
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + CAST ( - ( + col0 ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * + - col0 col1 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT + col0 - - col0 - + col2 + + CAST( + - col2 AS SIGNED ) + - 87 / + - 73 FROM tab2 WHERE NOT - col2 > + - col0
----

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + col0 - - col0 - + col2 + + CAST ( + - col2 AS INTEGER ) + - 87 / + - 73 FROM tab2 WHERE NOT - col2 > + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT MIN( ALL + 7 ) FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5063
SELECT MIN ( ALL + 7 ) FROM tab0 cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT DISTINCT - SUM( ALL + - col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT - SUM ( ALL + - col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + COUNT( * ) + COUNT( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) + - 89 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT + COUNT ( * ) + COUNT ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) + - 89 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5066
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + - CAST( 38 AS DECIMAL ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + - CAST ( 38 AS REAL ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL ( COUNT( - - col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL ( COUNT ( - - col2 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT MAX( ALL col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT MAX ( ALL col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT - 9 + + col1 * - col2 * + + col2 AS col0 FROM tab0
----
-178938
-2109
-9810

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT IN ( + 74 + - + 37, + col1 * + + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + col2 col2 FROM tab0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT - ( + CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5074
SELECT - ( + CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * 62 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5075
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 * 62 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 80 NOT BETWEEN NULL AND 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT ALL - - 31 DIV - col1 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - - 31 / - col1 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + - 59 col0 FROM tab0
----
-2726
-5742
-580

query II rowsort
SELECT 43 + + col0 AS col1, + col1 AS col1 FROM tab1
----
128
5
134
47
94
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT - 74 - + COUNT( * ) AS col0 FROM tab1 WHERE NOT - + 23 <> ( col2 )
----
-74

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - 74 - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - + 23 <> ( col2 )
----
-74

query I rowsort
SELECT + 70 + - col0 FROM tab0 AS cor0
----
-17
-27
55

query I rowsort
SELECT ALL 56 * - 93 - - col0 AS col1 FROM tab2 cor0
----
-5133
-5144
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + - 29 + + + COUNT( * ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + - 29 + + + COUNT ( * ) FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL - - 82 + + col0 FROM tab0 AS cor0
----
169
179
97

query II rowsort
SELECT - + ( + 14 ) AS col1, - col2 FROM tab2 cor0
----
-14
-23
-14
-40
-14
-58

query I rowsort
SELECT col1 * - - col1 - 65 FROM tab0 cor0 WHERE NOT - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT COUNT( * ) * + 86, 47 AS col1 FROM tab0 AS cor0
----
258
47

skipif mysql # not compatible
query II rowsort label-5087
SELECT COUNT ( * ) * + 86, 47 AS col1 FROM tab0 AS cor0
----
258
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT DISTINCT MIN( ALL + col0 ) * + 72 DIV + 18 + - 54 AS col1 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT MIN ( ALL + col0 ) * + 72 / + 18 + - 54 AS col1 FROM tab1
----
150

query II rowsort
SELECT col2 AS col0, 89 FROM tab0
----
10
89
47
89
99
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT 29 * 77 * + COUNT( ALL 93 ) AS col2 FROM tab0
----
6699

skipif mysql # not compatible
query I rowsort label-5090
SELECT 29 * 77 * + COUNT ( ALL 93 ) AS col2 FROM tab0
----
6699

query II rowsort
SELECT DISTINCT + 88 * + + ( - + col0 ) AS col0, - col2 FROM tab1
----
-4488
-96
-7480
-59
-8008
-68

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - + col1 * + + col2
----

query II rowsort
SELECT col1, - col1 AS col2 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT - + col1 DIV + + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5095
SELECT - + col1 / + + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
58

query I rowsort
SELECT ALL - + 31 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - - 56 / + col2 + + col2 AS col1 FROM tab0 WHERE NOT NULL <= + - 24 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT - COUNT( + 52 ) AS col0 FROM tab2 AS cor0 WHERE ( ( NOT ( + col2 - - 19 * + col1 ) IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - COUNT ( + 52 ) AS col0 FROM tab2 AS cor0 WHERE ( ( NOT ( + col2 - - 19 * + col1 ) IS NOT NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT - 2 + + COUNT( - col0 ) AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - 2 + + COUNT ( - col0 ) AS col2 FROM tab2 cor0
----
1

query II rowsort
SELECT 64 AS col0, - 66 * - 45 * - - col2 * + + col1 AS col0 FROM tab2 AS cor0
----
64
11541420
64
3483810
64
9147600

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT ALL + 81, MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
81
58

skipif mysql # not compatible
query II rowsort label-5102
SELECT ALL + 81, MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
81
58

query I rowsort
SELECT ALL ( col1 ) + - 56 FROM tab1 AS cor0
----
-42
-51
-9

query II rowsort
SELECT - - col1, ( col1 ) AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE + 9 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT - col1, 43 AS col1 FROM tab1 AS cor0
----
-14
43
-47
43
-5
43

query II rowsort
SELECT + 77 AS col2, - col0 + - - col2 AS col2 FROM tab1 AS cor0
----
77
-23
77
-26
77
45

query I rowsort
SELECT + col2 * - - col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT - 79 + - + COUNT( * ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - 79 + - + COUNT ( * ) FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - - COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5110
SELECT - - COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + - col0, ( + col0 ) FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 65 * - 0 + + 8 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 65 * - 0 + + 8 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + 37 * MAX( ALL - + col0 ) AS col2 FROM tab2
----
-1702

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 37 * MAX ( ALL - + col0 ) AS col2 FROM tab2
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT MIN( ALL col2 ) AS col1 FROM tab0 WHERE NOT - + col2 NOT BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT MIN ( ALL col2 ) AS col1 FROM tab0 WHERE NOT - + col2 NOT BETWEEN + col1 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + 71 * - col0 <= NULL
----

query I rowsort
SELECT DISTINCT 91 + 89 FROM tab0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT DISTINCT - 86 * - + col1, col0 FROM tab2
----
4386
46
5762
75
6622
64

query I rowsort
SELECT + 10 + - 66 * - col1 + + col2 + - 99 + - - col0 * + col0 * + ( - - col1 ) * 85 + - col0 FROM tab0
----
13511885
1554414
799744

onlyif mysql # DIV for integer division: 
query II rowsort label-5120
SELECT ALL col1 DIV - col2 AS col0, col0 + + 71 AS col2 FROM tab1
----
0
122
0
156
0
162

skipif mysql # not compatible
query II rowsort label-5120
SELECT ALL col1 / - col2 AS col0, col0 + + 71 AS col2 FROM tab1
----
0
122
0
156
0
162

query II rowsort
SELECT DISTINCT col0 * - col1, + col2 AS col1 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + - 94 * + 58 * - COUNT( * ) + 76 + 12 FROM tab0 AS cor0
----
16444

skipif mysql # not compatible
query I rowsort label-5122
SELECT + - 94 * + 58 * - COUNT ( * ) + 76 + 12 FROM tab0 AS cor0
----
16444

query I rowsort
SELECT + + 71 FROM tab1 AS cor0 WHERE NULL < - 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + SUM( DISTINCT + ( + 25 ) ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT + ( + 25 ) ) col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( DISTINCT 56 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( DISTINCT 56 ) FROM tab0
----
-1

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL BETWEEN + col0 AND + col2 + - 88 / - col0
----

query I rowsort
SELECT + 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - - COUNT( + + 69 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - - COUNT ( + + 69 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL 24 FROM tab1 WHERE NOT - - col0 + - - col2 IN ( - - col2 )
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + ( - CAST( NULL AS SIGNED ) ) + - - col1 - + col2, - col1, - 70, + + 68, - - col1, + - col0 / + - col1, - 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5130
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + ( - CAST ( NULL AS INTEGER ) ) + - - col1 - + col2, - col1, - 70, + + 68, - - col1, + - col0 / + - col1, - 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( + 53 ) AS col0 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - + 77 + - 39 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 - + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL 25 * - COUNT( * ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL 25 * - COUNT ( * ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL MAX( ALL 87 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL MAX ( ALL 87 ) AS col0 FROM tab0
----
87

query I rowsort
SELECT DISTINCT 82 * + + 65 * col0 FROM tab2
----
245180
341120
399750

query II rowsort
SELECT + ( col0 ), 65 AS col2 FROM tab2
----
46
65
64
65
75
65

query I rowsort
SELECT - - 33 AS col0 FROM tab2 cor0
----
33
33
33

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 54 * - 85 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT col2 DIV ( + col2 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT col2 / ( + col2 ) AS col1 FROM tab2
----
1

query II rowsort
SELECT - + 21 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-21
46
-21
64
-21
75

query I rowsort
SELECT DISTINCT + - 54 + - + 9 AS col1 FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5145
SELECT ALL - 30 + - + CAST( 30 AS SIGNED ) + col1 * col0, col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
2286
0
4868
0
4965
-1

skipif mysql # not compatible
query II rowsort label-5145
SELECT ALL - 30 + - + CAST ( 30 AS INTEGER ) + col1 * col0, col0 / - col1 AS col2 FROM tab2 AS cor0
----
2286
0
4868
0
4965
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT - col1 * + col0 - - 97 * + - CAST( NULL AS SIGNED ) + + 52 + col0 + + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT - col1 * + col0 - - 97 * + - CAST ( NULL AS INTEGER ) + + 52 + col0 + + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 90 AS col1, 53 AS col0 FROM tab0 AS cor0
----
-90
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT - + COUNT( ALL - + col0 ) + - COUNT( * ) * + ( - 23 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - + COUNT ( ALL - + col0 ) + - COUNT ( * ) * + ( - 23 ) FROM tab1 cor0
----
66

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + + col2 + + + 46 * + col0 * + col2 FROM tab0 AS cor0
----
32477
40030
441837

query I rowsort
SELECT - col2 + + + col0 - + col2 AS col0 FROM tab0
----
-101
-79
67

query I rowsort
SELECT - col0 + + + col1 + 51 * + - 22 + - - col0 * - col2 AS col0 FROM tab0
----
-10821
-1761
-2058

query I rowsort
SELECT col0 + col1 FROM tab0 WHERE NULL <= ( - 21 )
----

query I rowsort
SELECT col0 + - 60 - - - col0 AS col1 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 35 * - col0 FROM tab1
----
-1785
-2975
-3185

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + + col2, - 84 + - - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - 1 * + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT - 1 * + COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5159
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL ( + CAST ( NULL AS REAL ) ) / col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL BETWEEN NULL AND - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 col2, 97 AS col1 FROM tab1
----
22
97
22
97
22
97

query I rowsort
SELECT + ( - 9 ) FROM tab2
----
-9
-9
-9

query II rowsort
SELECT ALL col1, 85 FROM tab1 AS cor0
----
14
85
47
85
5
85

query II rowsort
SELECT 66 + col2 AS col0, col1 FROM tab1
----
125
5
134
47
162
14

query I rowsort
SELECT + 4 * - - col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
204
268
308

query I rowsort
SELECT ALL + - col0 * + - 14 + + - 11 FROM tab2 AS cor0
----
1039
633
885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT - MAX( - CAST( NULL AS SIGNED ) ) * - 3 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) * - 3 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col1 + + + 92 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <> col1 * 59 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + - 10 * - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT - - 59 * - COUNT( * ) col2 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5170
SELECT - - 59 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-177

query II rowsort
SELECT ALL 99 AS col2, col2 FROM tab0
----
99
10
99
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE + col1 * + col2 / - col1 + - + ( - 97 ) / - col1 <= - - 37
----
15
87
97

query I rowsort
SELECT ALL - 24 FROM tab1 WHERE - - 79 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5174
SELECT DISTINCT - - 94 + + col2 + col2 FROM tab2 AS cor0 WHERE col2 + col0 BETWEEN NULL AND + + 91 + + - CAST( NULL AS DECIMAL ) * col1 * col2 + + 73 + - - 75
----

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT - - 94 + + col2 + col2 FROM tab2 AS cor0 WHERE col2 + col0 BETWEEN NULL AND + + 91 + + - CAST ( NULL AS REAL ) * col1 * col2 + + 73 + - - 75
----

query I rowsort
SELECT DISTINCT - - 34 * - col2 + + 23 + + col2 FROM tab1 AS cor0
----
-1924
-2221
-3145

query II rowsort
SELECT - col1 AS col2, - col2 * + col0 AS col0 FROM tab0 cor0
----
-1
-9603
-21
-870
-81
-705

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 58
----

query I rowsort
SELECT + - col1 + 51 + col1 * col0 FROM tab1 AS cor0
----
4281
471
751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT 37 + + col2 + + + CAST( + 19 AS SIGNED ) * - col1 * + 11 FROM tab1 AS cor0
----
-2793
-949
-9718

skipif mysql # not compatible
query I rowsort label-5179
SELECT 37 + + col2 + + + CAST ( + 19 AS INTEGER ) * - col1 * + 11 FROM tab1 AS cor0
----
-2793
-949
-9718

query I rowsort
SELECT ALL col2 + + col2 * - + col0 FROM tab0
----
-658
-860
-9504

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 79 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5182
SELECT ALL - CAST( NULL AS SIGNED ) * + - 95, - 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6a167a27d0aaffb833d63c6276350f05

skipif mysql # not compatible
query II rowsort label-5182
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 95, - 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6a167a27d0aaffb833d63c6276350f05

query II rowsort
SELECT col1 + - col0 AS col2, col2 FROM tab1
----
-37
96
-44
68
-80
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5184
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5185
SELECT ALL + CAST( NULL AS DECIMAL ) * - col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + CAST ( NULL AS REAL ) * - col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 75 + + 32 + 46 AS col1 FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 20 / col0 >= - + 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 < NULL
----

query I rowsort
SELECT ALL 99 + col1 AS col1 FROM tab0
----
100
120
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 - + col1 col0 FROM tab2
----
-25
-41
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, + 22 col2 FROM tab0 WHERE NOT - - col2 * + 12 IS NOT NULL
----

query I rowsort
SELECT - 26 + - - 44 AS col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + 80 * COUNT( * ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + 80 * COUNT ( * ) FROM tab1 AS cor0
----
240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + - col2 + - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5196
SELECT + col2 AS col1, - col1 DIV - 45 FROM tab1 cor0
----
59
0
68
1
96
0

skipif mysql # not compatible
query II rowsort label-5196
SELECT + col2 AS col1, - col1 / - 45 FROM tab1 cor0
----
59
0
68
1
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT - - col0 * col1 + + CAST( NULL AS SIGNED ) / 48 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT - - col0 * col1 + + CAST ( NULL AS INTEGER ) / 48 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + - MIN( ALL 65 ) * - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5198
SELECT + - MIN ( ALL 65 ) * - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT ALL + CAST( NULL AS SIGNED ) / - AVG ( col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + CAST ( NULL AS INTEGER ) / - AVG ( col2 ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5200
SELECT DISTINCT CAST( - ( - ( - CAST( AVG ( - col1 ) AS SIGNED ) ) ) AS SIGNED ), COUNT( * ) AS col1 FROM tab2 WHERE NOT + - ( - - col1 ) >= + col1 * - col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5200
SELECT DISTINCT CAST ( - ( - ( - CAST ( AVG ( - col1 ) AS INTEGER ) ) ) AS INTEGER ), COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - ( - - col1 ) >= + col1 * - col2
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT col1 DIV + col0 * + - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT col1 / + col0 * + - col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT MIN( 34 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5203
SELECT MIN ( 34 ) FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5204
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - + + col0 NOT IN ( col0 / + CAST( + col0 AS SIGNED ), 40 )
----

skipif mysql # not compatible
query III rowsort label-5204
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 - + + col0 NOT IN ( col0 / + CAST ( + col0 AS INTEGER ), 40 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 74 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col1 FROM tab2 AS cor0 WHERE - 22 + + ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT + col0 * - 63 AS col0 FROM tab1
----
-3213
-5355
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT - MAX( DISTINCT + + 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - MAX ( DISTINCT + + 69 ) FROM tab1
----
-69

query I rowsort
SELECT 69 + - 18 AS col1 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - SUM( DISTINCT + 20 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT - SUM ( DISTINCT + 20 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + 99
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 33 AS col1 FROM tab1 AS cor0
----
18
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT ( + - COUNT( * ) ) + - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT ( + - COUNT ( * ) ) + - COUNT ( * ) FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + MIN( DISTINCT 29 ) * 82 + 30 FROM tab2 AS cor0
----
2408

skipif mysql # not compatible
query I rowsort label-5214
SELECT + MIN ( DISTINCT 29 ) * 82 + 30 FROM tab2 AS cor0
----
2408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL CAST( + col1 AS SIGNED ) - col2 AS col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL CAST ( + col1 AS INTEGER ) - col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 8 - ( - col1 ) FROM tab1
----
13
22
55

query I rowsort
SELECT DISTINCT 75 - - 93 AS col2 FROM tab0
----
168

query I rowsort
SELECT col2 * 88 * + + col2 AS col1 FROM tab2
----
140800
296032
46552

query I rowsort
SELECT + - col0 - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL 8 * COUNT( * ) AS col1 FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL 8 * COUNT ( * ) AS col1 FROM tab2 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + - COUNT( * ) - - + ( - 5 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5221
SELECT ALL + - COUNT ( * ) - - + ( - 5 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

query I rowsort
SELECT - ( - 6 ) FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT + MIN( - + 31 ) FROM tab2, tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5223
SELECT + MIN ( - + 31 ) FROM tab2, tab1 AS cor0
----
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 25 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT - SUM( ALL + col2 ) + - + 71 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT - SUM ( ALL + col2 ) + - + 71 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT DISTINCT COUNT( * ), 63 + 33 AS col0 FROM tab0 cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-5226
SELECT DISTINCT COUNT ( * ), 63 + 33 AS col0 FROM tab0 cor0
----
3
96

query I rowsort
SELECT ( - - 25 ) AS col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT 99 * + col2 AS col2 FROM tab0
----
4653
9801
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT + MIN( col1 ) DIV + 16 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5231
SELECT + MIN ( col1 ) / + 16 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL - ( CAST( + 75 AS SIGNED ) ) FROM tab0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - ( CAST ( + 75 AS INTEGER ) ) FROM tab0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL 28 FROM tab2 WHERE NOT - col2 > - CAST( NULL AS SIGNED ) * + col1 - + col0 / ( - col1 ) + + col1
----

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 28 FROM tab2 WHERE NOT - col2 > - CAST ( NULL AS INTEGER ) * + col1 - + col0 / ( - col1 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT - ( + MIN( + col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - ( + MIN ( + col2 ) ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 98 >= col1 + col2
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT ( + + col1 ) + - + col2 AS col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 76 <> NULL
----

query I rowsort
SELECT ALL 0 * - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT col0 DIV + 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT col0 / + 84 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + + COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + + COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5241
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) AS col2, + col0 + col0 AS col0 FROM tab1
----
NULL
102
NULL
170
NULL
182

skipif mysql # not compatible
query II rowsort label-5241
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) AS col2, + col0 + col0 AS col0 FROM tab1
----
NULL
102
NULL
170
NULL
182

query I rowsort
SELECT ALL + + 82 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - 35 + - 81 AS col0 FROM tab2 AS cor0
----
-116
-116
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT - + col1 - - col0 DIV col1 col1 FROM tab2 AS cor0
----
-51
-66
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT - + col1 - - col0 / col1 col1 FROM tab2 AS cor0
----
-51
-66
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + 31 - - - MAX( + + ( - ( + col0 ) ) ) * - COUNT( - - 30 ) FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 31 - - - MAX ( + + ( - ( + col0 ) ) ) * - COUNT ( - - 30 ) FROM tab1 AS cor0
----
-122

query I rowsort
SELECT DISTINCT col2 - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL - col0 + - col2 + - - 6 * + 70 FROM tab0 AS cor0
----
224
323
358

onlyif mysql # DIV for integer division: 
query II rowsort label-5249
SELECT ALL col2 + + - col1 DIV + - 37 AS col1, col2 - col1 AS col0 FROM tab0
----
10
-11
49
-34
99
98

skipif mysql # not compatible
query II rowsort label-5249
SELECT ALL col2 + + - col1 / + - 37 AS col1, col2 - col1 AS col0 FROM tab0
----
10
-11
49
-34
99
98

query I rowsort
SELECT DISTINCT - col2 - + - 71 AS col1 FROM tab1
----
-25
12
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5251
SELECT DISTINCT + 73 - col2 + col2 * col2 + + col2 DIV - col1 + - + ( + 96 ) AS col1, col0 AS col2 FROM tab0
----
2139
15
67
87
9580
97

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT + 73 - col2 + col2 * col2 + + col2 / - col1 + - + ( + 96 ) AS col1, col0 AS col2 FROM tab0
----
2139
15
67
87
9580
97

query I rowsort
SELECT ALL + ( - + 97 ) FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT ( - MIN( ALL + col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT ( - MIN ( ALL + col0 ) ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT DISTINCT + 24, + col0 + + 71 + 54 AS col2 FROM tab2 AS cor0
----
24
171
24
189
24
200

query II rowsort
SELECT 20, - col0 * + - col0 AS col0 FROM tab2 AS cor0
----
20
2116
20
4096
20
5625

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - 59 * + col0 * - 1 * + col0 * col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col1 FROM tab0 AS cor0
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col0 / - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 >= ( + col0 )
----
51
14
96

query I rowsort
SELECT 91 + col1 * col0 FROM tab2 WHERE NOT 73 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5261
SELECT DISTINCT + ( SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) * 45 + - 93 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + ( SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * 45 + - 93 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 82 ) * 71 IS NULL
----

query I rowsort
SELECT 33 + ( col0 ) FROM tab0
----
120
130
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5264
SELECT - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5265
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) * col0 + 43 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5265
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) * col0 + 43 AND ( NULL )
----

query I rowsort
SELECT - col2 + - col1 * 93 AS col1 FROM tab1
----
-1398
-4439
-524

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 * col1 + + col0 AS col1 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1 WHERE NOT - 99 <> col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT - SUM( col0 ) * 17 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT - SUM ( col0 ) * 17 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT MIN( ALL - col1 ) + - SUM( ALL + col1 ) FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-5272
SELECT MIN ( ALL - col1 ) + - SUM ( ALL + col1 ) FROM tab1
----
-113

query I rowsort
SELECT + col2 * - 33 FROM tab2
----
-1320
-1914
-759

query I rowsort
SELECT 86 + col0 FROM tab1
----
137
171
177

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + 74 * + 91 IN ( col0 + + col0 )
----

query I rowsort
SELECT 23 + col1 AS col0 FROM tab2
----
100
74
90

query I rowsort
SELECT DISTINCT + 14 - - col2 FROM tab1
----
110
73
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 25 IN ( + col1 )
----

query I rowsort
SELECT ALL ( 8 ) * col2 + col2 * 75 AS col2 FROM tab0
----
3901
8217
830

query I rowsort
SELECT ( - ( 14 ) ) * - 72 FROM tab1
----
1008
1008
1008

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * + 97 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < - col0 + ( - ( 96 ) )
----

query I rowsort
SELECT 53 + col1 FROM tab2
----
104
120
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT col2 + + CAST( col2 AS SIGNED ) FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-5284
SELECT col2 + + CAST ( col2 AS INTEGER ) FROM tab0
----
198
20
94

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE col2 - - 16 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT DISTINCT col1 DIV + 85 + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT col1 / + 85 + + col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT 32 / + MAX( col0 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( col2 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 32 / + MAX ( col0 ) AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( col2 / col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL 96 + - SUM( DISTINCT 88 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL 96 + - SUM ( DISTINCT 88 ) FROM tab1 AS cor0
----
8

query III rowsort
SELECT * FROM tab2 WHERE 24 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT CAST( COUNT( CAST( col1 AS SIGNED ) ) AS SIGNED ) FROM tab1 WHERE - col2 NOT IN ( - col1 * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5291
SELECT CAST ( COUNT ( CAST ( col1 AS INTEGER ) ) AS INTEGER ) FROM tab1 WHERE - col2 NOT IN ( - col1 * col0 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 52 * - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT MIN( ALL col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT MIN ( ALL col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 22 * - col2 + col2 FROM tab0 AS cor0
----
-2079
-210
-987

query I rowsort
SELECT col2 * - 30 - - ( col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 / col1 IS NOT NULL
----
-1329
-279
-2969

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT 12 DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT 12 / col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) + col0 NOT BETWEEN + col2 AND - 68
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5300
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 16 * + col2 + 72 FROM tab0 cor0
----
1656
232
824

query I rowsort
SELECT ALL - col0 * + col1 + 77 FROM tab2 AS cor0
----
-2269
-4851
-4948

query I rowsort
SELECT ALL - 9 + 20 FROM tab2 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) > - ( - col0 )
----

query I rowsort
SELECT ALL + + ( col0 ) + - 33 * + col0 AS col2 FROM tab2 AS cor0
----
-1472
-2048
-2400

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 - 81 >= NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( + 28 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - MAX( - ( - col0 ) ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - MAX ( - ( - col0 ) ) AS col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - COUNT( * ) * + + MAX( - col0 ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-5309
SELECT - COUNT ( * ) * + + MAX ( - col0 ) FROM tab2
----
138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query II rowsort
SELECT col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE - 39 NOT BETWEEN col1 * - ( + ( + col0 ) ) AND ( + col0 - - ( - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 34 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( col0 ) - - 1 / col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( col0 ) - - 1 / col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT + COUNT( * ) * 12 * COUNT( * ) * + COUNT( ALL + col1 ) + + COUNT( * ) * COUNT( ALL col1 + + col1 ) AS col0 FROM tab0 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + COUNT ( * ) * 12 * COUNT ( * ) * + COUNT ( ALL + col1 ) + + COUNT ( * ) * COUNT ( ALL col1 + + col1 ) AS col0 FROM tab0 AS cor0
----
333

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL - - COUNT( ALL + col1 ) + + 73 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - - COUNT ( ALL + col1 ) + + 73 FROM tab2 AS cor0
----
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 82 > col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - ( 92 ) * - + COUNT( * ) + 72 + 52 AS col0 FROM tab2 AS cor0
----
400

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - ( 92 ) * - + COUNT ( * ) + 72 + 52 AS col0 FROM tab2 AS cor0
----
400

query I rowsort
SELECT DISTINCT + col1 + - - ( - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5323
SELECT - 88 AS col2, - CAST( - 82 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-88
82
-88
82
-88
82

skipif mysql # not compatible
query II rowsort label-5323
SELECT - 88 AS col2, - CAST ( - 82 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-88
82
-88
82
-88
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT DISTINCT 88 DIV + col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT 88 / + col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT 1 * - ( + + ( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT 1 * - ( + + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> ( + 29 )
----

query I rowsort
SELECT - 44 * col0 AS col1 FROM tab2 WHERE col0 + + col2 IN ( col1 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - + col1 col1 FROM tab0
----
-168
-648
-8

query I rowsort
SELECT - col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5330
SELECT * FROM tab0 WHERE NULL NOT IN ( + 20 - 78 * - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5330
SELECT * FROM tab0 WHERE NULL NOT IN ( + 20 - 78 * - CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT CAST( - 9 AS SIGNED ) AS col0 FROM tab2
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5331
SELECT CAST ( - 9 AS INTEGER ) AS col0 FROM tab2
----
-9
-9
-9

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + col2 + col1 + + col1 / + 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5333
SELECT * FROM tab2 cor0 WHERE NULL <> ( - CAST( 98 AS SIGNED ) / 38 )
----

skipif mysql # not compatible
query III rowsort label-5333
SELECT * FROM tab2 cor0 WHERE NULL <> ( - CAST ( 98 AS INTEGER ) / 38 )
----

query I rowsort
SELECT + col1 + col0 - - 11 FROM tab2 AS cor0
----
108
152
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT + col2 + + col0 / 93 + - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT + col2 + + col0 / 93 + - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT - col1 + - + CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5336
SELECT - col1 + - + CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 85 FROM tab2 AS cor0 WHERE NULL <> ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE - 95 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL + MAX( + - 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + MAX ( + - 52 ) FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 / - col0 + - col1 AND NOT - 43 IS NOT NULL
----

query I rowsort
SELECT 60 - + 6 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT - - 49 DIV + col0 - - col0 + + - col1 FROM tab0 AS cor0
----
-63
66
96

skipif mysql # not compatible
query I rowsort label-5342
SELECT - - 49 / + col0 - - col0 + + - col1 FROM tab0 AS cor0
----
-63
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 - - col0 AS col2 FROM tab2 cor0
----
128
150
92

query I rowsort
SELECT + - 76 AS col2 FROM tab0 AS cor0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 18
----

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT 48 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 9 BETWEEN - col2 + 21 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5348
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 9 BETWEEN - col2 + 21 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5349
SELECT - 75 DIV ( 80 ) AS col1, - SUM( ALL 8 ) FROM tab0 AS cor0
----
0
-24

skipif mysql # not compatible
query II rowsort label-5349
SELECT - 75 / ( 80 ) AS col1, - SUM ( ALL 8 ) FROM tab0 AS cor0
----
0
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5350
SELECT DISTINCT + col2 * - col1 + ( CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) <= + ( 13 )
----

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + col2 * - col1 + ( CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) <= + ( 13 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 * col0 IN ( + col0 * 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT ( MAX( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT ( MAX ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, + 97 col0 FROM tab0
----
15
97
87
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL COUNT( * ) col1 FROM tab1 WHERE NOT ( - + col0 ) IN ( - 20 / + col0 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT ALL COUNT ( * ) col1 FROM tab1 WHERE NOT ( - + col0 ) IN ( - 20 / + col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT - CAST( 80 AS SIGNED ) AS col1 FROM tab2
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-5356
SELECT - CAST ( 80 AS INTEGER ) AS col1 FROM tab2
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE - 45 NOT BETWEEN col1 - + col0 + - col2 + col1 / col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col0, - col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # DIV for integer division: 
query III rowsort label-5359
SELECT + + 17 AS col0, + col0 AS col1, + - col2 DIV col2 FROM tab1 AS cor0
----
9 values hashing to 06f9f55e4a2b967f87de634310e3fbe7

skipif mysql # not compatible
query III rowsort label-5359
SELECT + + 17 AS col0, + col0 AS col1, + - col2 / col2 FROM tab1 AS cor0
----
9 values hashing to 06f9f55e4a2b967f87de634310e3fbe7

query II rowsort
SELECT ALL col0 AS col1, col0 * col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT DISTINCT - COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5361
SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT SUM( col1 ) AS col1 FROM tab0 WHERE NOT - - col2 / + col2 * + + CAST( + + ( - + 67 ) AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT SUM ( col1 ) AS col1 FROM tab0 WHERE NOT - - col2 / + col2 * + + CAST ( + + ( - + 67 ) AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - ( - - 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT ALL - ( - col1 ) DIV col0 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL - ( - col1 ) / col0 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE col1 * - 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 61 NOT BETWEEN + + col1 AND ( - + 6 + 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - + col2 - - 97 + + col1 AS col0 FROM tab2 AS cor0
----
-1025
-2906
-3722

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + 90 + COUNT( col2 ) + - + 79 AS col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5369
SELECT + 90 + COUNT ( col2 ) + - + 79 AS col0 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5370
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) = 21 * + col0 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5370
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) = 21 * + col0 * - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + - 2 + + + col2, ( col0 ) AS col1 FROM tab0 AS cor0
----
45
15
8
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + MIN( ALL - + ( col0 ) ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN ( 68 * - col0 ) AND + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT + MIN ( ALL - + ( col0 ) ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN ( 68 * - col0 ) AND + 15
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 43 IS NULL
----

query I rowsort
SELECT ALL - 66 FROM tab1 AS cor0 WHERE ( - col0 * + + 26 * - col1 BETWEEN ( col2 + 79 ) AND col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col0 + + + 9 ) >= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5376
SELECT DISTINCT 71 + col2 + - 36 AS col2, - col1 DIV col0 DIV col0 + - + col0 + 1 AS col0 FROM tab1
----
103
-90
131
-50
94
-84

skipif mysql # not compatible
query II rowsort label-5376
SELECT DISTINCT 71 + col2 + - 36 AS col2, - col1 / col0 / col0 + - + col0 + 1 AS col0 FROM tab1
----
103
-90
131
-50
94
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT - SUM( + 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - SUM ( + 0 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5378
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = CAST( - + 53 AS SIGNED ) + - + col1
----

skipif mysql # not compatible
query III rowsort label-5378
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = CAST ( - + 53 AS INTEGER ) + - + col1
----

query II rowsort
SELECT + col0 AS col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT DISTINCT - CAST( - + 60 AS SIGNED ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - CAST ( - + 60 AS INTEGER ) AS col1 FROM tab2
----
60

query I rowsort
SELECT 70 * - + 12 FROM tab1
----
-840
-840
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT + COUNT( * ) * CAST( AVG ( - col2 ) AS SIGNED ) col1 FROM tab1
----
-222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5382
SELECT + COUNT ( * ) * CAST ( AVG ( - col2 ) AS INTEGER ) col1 FROM tab1
----
-222

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = 83
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5384
SELECT ALL + col2, - 23 DIV + - 50 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-5384
SELECT ALL + col2, - 23 / + - 50 FROM tab1
----
59
0
68
0
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 59 ) - - - col2 col0 FROM tab1 AS cor0
----
-118
-127
-155

query I rowsort
SELECT - 23 - + + col0 AS col0 FROM tab2 AS cor0
----
-69
-87
-98

query I rowsort
SELECT ALL 23 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL AND + col2 IS NOT NULL
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab1 WHERE NULL IN ( + 1 * - col1 - col1, ( 17 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 63 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
63

query I rowsort
SELECT ( + ( + col0 ) ) + + - col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL MAX( DISTINCT - 61 ) AS col1 FROM tab2 WHERE NOT + col1 * + 71 / + 19 + 91 + + - ( - - col1 ) >= + 63 * - ( 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL MAX ( DISTINCT - 61 ) AS col1 FROM tab2 WHERE NOT + col1 * + 71 / + 19 + 91 + + - ( - - col1 ) >= + 63 * - ( 0 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 - - col1 * - - 67 FROM tab2
----
3463
4564
5223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - 70 ) col2, + 96 + - col2 + + col2 * - col1 FROM tab2 cor0
----
70
-1100
70
-3024
70
-3848

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 79 * + - col2 * ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5396
SELECT - - 50 DIV col2 AS col1, - 11 * - col2 AS col2 FROM tab1 cor0
----
0
1056
0
649
0
748

skipif mysql # not compatible
query II rowsort label-5396
SELECT - - 50 / col2 AS col1, - 11 * - col2 AS col2 FROM tab1 cor0
----
0
1056
0
649
0
748

query II rowsort
SELECT ALL + - col0 * - + 87, - col1 AS col0 FROM tab1 AS cor0
----
4437
-14
7395
-5
7917
-47

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 82 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT - col1 DIV ( - + col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT - col1 / ( - + col1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5401
SELECT ALL + 84 col1, 98 + - 71 DIV - COUNT( * ) FROM tab1
----
84
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5401
SELECT ALL + 84 col1, 98 + - 71 / - COUNT ( * ) FROM tab1
----
84
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5402
SELECT DISTINCT - MAX( ALL CAST( + col2 AS SIGNED ) ) AS col2, 43 AS col0 FROM tab2
----
-58
43

skipif mysql # not compatible
query II rowsort label-5402
SELECT DISTINCT - MAX ( ALL CAST ( + col2 AS INTEGER ) ) AS col2, 43 AS col0 FROM tab2
----
-58
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 40 NOT BETWEEN ( NULL ) AND ( NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT ALL + - COUNT( * ) * - + COUNT( * ) DIV + - 56 * - - 44 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + - COUNT ( * ) * - + COUNT ( * ) / + - 56 * - - 44 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 >= ( NULL )
----

query I rowsort
SELECT + 75 + - + col0 - + 15 * 48 + + col1 * + col0 * + col1 * - + 79 FROM tab2
----
-26598045
-29977733
-9452725

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT DISTINCT 89 AS col0, - COUNT( * ) - + SUM( ALL + col0 ) AS col1 FROM tab2
----
89
-188

skipif mysql # not compatible
query II rowsort label-5407
SELECT DISTINCT 89 AS col0, - COUNT ( * ) - + SUM ( ALL + col0 ) AS col1 FROM tab2
----
89
-188

query I rowsort
SELECT + col1 + + col0 + - - 25 * col0 FROM tab0 AS cor0 WHERE - col2 * + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 1 + - 93 IN ( - + 65, + 31 / - col2 + col2 * - + ( + col1 ) + col2 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 21 ) - - ( + - col1 ) BETWEEN NULL AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - COUNT( DISTINCT + ( + 24 ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5412
SELECT - COUNT ( DISTINCT + ( + 24 ) ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + ( 99 ) * - 3 + - 54 AS col2 FROM tab1
----
-351
-351
-351

query I rowsort
SELECT DISTINCT - 45 * - + 19 AS col1 FROM tab2
----
855

query I rowsort
SELECT + + 29 + - col2 FROM tab1 WHERE - col1 * - + 27 * + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + col1 FROM tab1 WHERE ( NOT col1 IS NULL )
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 71 * + + col0 / + 99 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT MAX( col0 ) + + 67 FROM tab1 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-5418
SELECT MAX ( col0 ) + + 67 FROM tab1 AS cor0
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT COUNT( * ) AS col1, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-5419
SELECT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT ALL + col2 + + 64 DIV - - 65 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + col2 + + 64 / - - 65 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + 20 * - + COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5421
SELECT + 20 * - + COUNT ( * ) FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL - MIN( - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - MIN ( - col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT - + 56 * + col0 AS col1 FROM tab2 AS cor0
----
-2576
-3584
-4200

query II rowsort
SELECT DISTINCT - + col1 AS col1, - 34 * + ( + ( - 93 ) ) / + col1 + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND 71
----

query I rowsort
SELECT + col1 * + - col0 + + 86 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 65 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * + ( + 3 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5427
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * + ( + 3 ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 67 * - - 54 col0 FROM tab1 AS cor0
----
-59
3618
-68
3618
-96
3618

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5429
SELECT DISTINCT col1 * CAST( + - 2 AS DECIMAL ) AS col1 FROM tab1 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT col1 * CAST ( + - 2 AS REAL ) AS col1 FROM tab1 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < NULL OR col0 BETWEEN + - col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT ALL + col1 DIV - + 55 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL + col1 / - + 55 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT 72 * - col2 * col1 AS col1 FROM tab1
----
-21240
-230112
-96768

query I rowsort
SELECT + 91 * - + col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-4292
-9106
-997

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT DISTINCT col0 DIV 31 + - 96 FROM tab2 AS cor0
----
-94
-95

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT col0 / 31 + - 96 FROM tab2 AS cor0
----
-94
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT DISTINCT + COUNT( * ) DIV 54 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT + COUNT ( * ) / 54 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
0

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - COUNT( * ) + - + 54 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5439
SELECT - COUNT ( * ) + - + 54 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT + 12 + col0 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT DISTINCT + col1 + + + 36 AS col0 FROM tab0
----
117
37
57

query I rowsort
SELECT DISTINCT + 18 - + 90 AS col0 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL + MIN( DISTINCT - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + MIN ( DISTINCT - - col1 ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( + 0 ) >= col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5445
SELECT 49 col0, - col0 DIV - 6 - - 75 AS col1 FROM tab0
----
49
77
49
89
49
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5445
SELECT 49 col0, - col0 / - 6 - - 75 AS col1 FROM tab0
----
49
77
49
89
49
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + col0 * + 25 col1 FROM tab2
----
46
1150
64
1600
75
1875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 6 - - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - COUNT( * ) - + 16 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-25

skipif mysql # not compatible
query I rowsort label-5448
SELECT - COUNT ( * ) - + 16 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT + MIN( - 77 ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + MIN ( - 77 ) FROM tab1 AS cor0
----
-77

query II rowsort
SELECT - col2, 81 AS col2 FROM tab0
----
-10
81
-47
81
-99
81

query II rowsort
SELECT DISTINCT - col0, + col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 - 74 * - col0 / + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 44 + - col0 + col1 * col0 - - 8 + + - 29 + - - col2 - col1 * + + 23 FROM tab1 AS cor0
----
307
3196
460

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 79 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col2 + - - 39
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 24 * - 51 <> - - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT + - CAST( NULL AS SIGNED ) - - 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5459
SELECT + - CAST ( NULL AS INTEGER ) - - 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT - col2 + + 9 + - + CAST( NULL AS SIGNED ) - - 20 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT - col2 + + 9 + - + CAST ( NULL AS INTEGER ) - - 20 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 89 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT + + 25 + - col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col0 + col1 AS col0, + 3 AS col0 FROM tab2 cor0
----
141
3
142
3
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ( + MIN( + col0 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5464
SELECT ( + MIN ( + col0 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-138

query I rowsort
SELECT ALL + col0 + - col2 + + + col1 AS col1 FROM tab1 AS cor0
----
-31
31
70

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + 16 AS col2 FROM tab1 AS cor0
----
112
75
84

query II rowsort
SELECT DISTINCT + 19 * - ( + 96 ) - - 54 AS col0, col0 FROM tab0 cor0
----
-1770
15
-1770
87
-1770
97

query I rowsort
SELECT DISTINCT + ( - col0 ) + - 40 + + 22 + - 12 + + col2 * - col2 FROM tab0 AS cor0
----
-217
-2254
-9928

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - 0 - MIN( col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5470
SELECT - 0 - MIN ( col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT - 57 + + COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT - 57 + + COUNT ( * ) FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT COUNT( ALL - - 42 ) + + ( + - 33 ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-5472
SELECT COUNT ( ALL - - 42 ) + + ( + - 33 ) AS col2 FROM tab2
----
-30

query I rowsort
SELECT - col0 FROM tab2 WHERE + - 50 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT MIN( 51 ) - COUNT( * ) col2 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5474
SELECT DISTINCT MIN ( 51 ) - COUNT ( * ) col2 FROM tab0
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5475
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 + + - CAST( - col0 AS DECIMAL ) + - + ( - - col0 ) + + 60 + - col0 + + - col0 * - 52 * + col1 * + + 10 * + col0 NOT IN ( + 12 )
----

skipif mysql # not compatible
query III rowsort label-5475
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 + + - CAST ( - col0 AS REAL ) + - + ( - - col0 ) + + 60 + - col0 + + - col0 * - 52 * + col1 * + + 10 * + col0 NOT IN ( + 12 )
----

query II rowsort
SELECT + 19 * + + col2 + + col2 AS col0, + col2 FROM tab1
----
1180
59
1360
68
1920
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5477
SELECT - + col1 * + + ( CAST( NULL AS SIGNED ) ) AS col2, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5477
SELECT - + col1 * + + ( CAST ( NULL AS INTEGER ) ) AS col2, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT DISTINCT - COUNT( * ), 2 AS col1 FROM tab1 AS cor0
----
-3
2

skipif mysql # not compatible
query II rowsort label-5478
SELECT DISTINCT - COUNT ( * ), 2 AS col1 FROM tab1 AS cor0
----
-3
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NOT 5 * + - col2 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * 56 - ( + - 90 ) AS col0 FROM tab1 WHERE ( NULL > + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - + SUM( DISTINCT - 12 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-5481
SELECT - + SUM ( DISTINCT - 12 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

query II rowsort
SELECT col1 AS col1, col0 + col2 FROM tab2
----
51
69
67
133
77
104

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 69 * + 43 NOT BETWEEN + ( + 70 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + 23 ) AS col1 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT - 96, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-96
3

skipif mysql # not compatible
query II rowsort label-5485
SELECT - 96, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5486
SELECT - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 col2, col1 + + + col1 + - col1 - - 43 FROM tab1 AS cor0
----
-24
48
-24
57
-24
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - MAX( ALL - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT - MAX ( ALL - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 62 + + - col0 + - col2, - 31, + 21 )
----

query I rowsort
SELECT 52 FROM tab2 WHERE NOT - ( ( col1 ) ) IS NULL
----
52
52
52

query I rowsort
SELECT - 79 + - col0 FROM tab1
----
-130
-164
-170

query I rowsort
SELECT ALL + 6 * - - col2 AS col1 FROM tab1
----
354
408
576

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT + 45 * - - COUNT( * ) AS col1, + 55 FROM tab1
----
135
55

skipif mysql # not compatible
query II rowsort label-5493
SELECT + 45 * - - COUNT ( * ) AS col1, + 55 FROM tab1
----
135
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5494
SELECT + - COUNT( * ) * 92 * - - ( + CAST( COUNT( * ) AS SIGNED ) ), 25 * + ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-828
-75

skipif mysql # not compatible
query II rowsort label-5494
SELECT + - COUNT ( * ) * 92 * - - ( + CAST ( COUNT ( * ) AS INTEGER ) ), 25 * + ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-828
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5495
SELECT + col0, col0 + + CAST( NULL AS SIGNED ) + - - 78 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5495
SELECT + col0, col0 + + CAST ( NULL AS INTEGER ) + - - 78 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT col2 * + - 3 + - + col0 * + 7 AS col1 FROM tab0
----
-246
-639
-976

query I rowsort
SELECT - col2 * 29 + - col2 * - + col0 AS col1 FROM tab1
----
2112
3304
4216

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT - 32 + - 21 + - COUNT( * ) * + MAX( col2 ) col2 FROM tab0 AS cor0
----
-350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5498
SELECT DISTINCT - 32 + - 21 + - COUNT ( * ) * + MAX ( col2 ) col2 FROM tab0 AS cor0
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL + SUM( ALL + CAST( 77 AS SIGNED ) ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + SUM ( ALL + CAST ( 77 AS INTEGER ) ) FROM tab0 AS cor0
----
231

query I rowsort
SELECT ALL 86 + 11 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + 84 * - + col2 FROM tab2 cor0
----
-1932
-3360
-4872

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab1 AS cor0 WHERE 94 / - col1 * - 71 IS NOT NULL
----
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 87, col2 + col0, + 35, - 82 - + col2 + + + col1, col0 )
----

query II rowsort
SELECT + - col2 AS col0, + col1 * - col0 FROM tab0 AS cor0
----
-10
-1827
-47
-1215
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT COUNT( ALL 4 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5505
SELECT COUNT ( ALL 4 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col1 + + - col0 FROM tab2
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col2 col1 FROM tab1
----
-45
23
26

query II rowsort
SELECT col2 * + - 63 AS col0, 92 FROM tab2
----
-1449
92
-2520
92
-3654
92

query I rowsort
SELECT col2 * - 80 FROM tab0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - COUNT( * ) * + + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5510
SELECT - COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + 39 * COUNT( * ) * - 95 FROM tab0 AS cor0
----
-11115

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 39 * COUNT ( * ) * - 95 FROM tab0 AS cor0
----
-11115

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-29

query I rowsort
SELECT ( + - col0 ) * - 0 + + + 70 FROM tab0 WHERE NOT - col1 IS NULL
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - col2 + + col0
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE - col2 >= + col0
----

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL + + SUM( - - 56 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + + SUM ( - - 56 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 79, + col2 AS col0 FROM tab2 AS cor0
----
79
23
79
40
79
58

query II rowsort
SELECT + 13 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
13
51
13
85
13
91

query II rowsort
SELECT ALL - 18, + col1 AS col2 FROM tab2 AS cor0
----
-18
51
-18
67
-18
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT - 88 AS col1, COUNT( col1 ) + + COUNT( * ) AS col2 FROM tab2
----
-88
6

skipif mysql # not compatible
query II rowsort label-5521
SELECT - 88 AS col1, COUNT ( col1 ) + + COUNT ( * ) AS col2 FROM tab2
----
-88
6

query I rowsort
SELECT - ( + 4 ) AS col2 FROM tab2
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT + col1 + - 28 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + col1 + - 28 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT + SUM( col2 ) + + 64 FROM tab1 AS cor0
----
287

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + SUM ( col2 ) + + 64 FROM tab1 AS cor0
----
287

query I rowsort
SELECT ALL col0 + col0 + - - col1 AS col1 FROM tab1 AS cor0
----
116
175
229

query III rowsort
SELECT ALL col2, col1 AS col1, - col1 * + col0 + + + 4 FROM tab2 AS cor0
----
9 values hashing to 1189e68b7fd058085c73816bede02e8c

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT MIN( DISTINCT + + ( + 31 ) ) + - - 7 AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT MIN ( DISTINCT + + ( + 31 ) ) + - - 7 AS col2 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT MAX( + 4 ) * + COUNT( * ) * + + COUNT( * ) + + - 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
265

skipif mysql # not compatible
query I rowsort label-5528
SELECT MAX ( + 4 ) * + COUNT ( * ) * + + COUNT ( * ) + + - 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
265

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT - MIN( DISTINCT col2 ) * CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT - MIN ( DISTINCT col2 ) * CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + 92 < + + col1 + + col1 + + + col0 + - - ( + + ( - ( 7 ) ) ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5532
SELECT 61 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-5532
SELECT 61 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL 45 * - COUNT( * ) FROM tab1 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL 45 * - COUNT ( * ) FROM tab1 cor0
----
-135

query I rowsort
SELECT ALL col2 * ( + col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT + COUNT( * ) - + MAX( + col2 ) DIV + + 80 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5535
SELECT + COUNT ( * ) - + MAX ( + col2 ) / + + 80 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 32 - - - 14 FROM tab0 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 22 + + col0 IN ( - col1, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 90 col1 FROM tab0 AS cor0
----
-43
-80
9

query I rowsort
SELECT - + col1 + 74 FROM tab1 cor0
----
27
60
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT - COUNT( * ) AS col1, 47 AS col0 FROM tab0
----
-3
47

skipif mysql # not compatible
query II rowsort label-5540
SELECT - COUNT ( * ) AS col1, 47 AS col0 FROM tab0
----
-3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL MIN( ALL 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL MIN ( ALL 54 ) FROM tab0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * 34 col1 FROM tab2
----
238
238
238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col1 + col2 AS col0 FROM tab2
----
-46
74
-64
117
-75
125

query I rowsort
SELECT DISTINCT - 74 * - col1 * col1 FROM tab1
----
14504
163466
1850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + 75 col2 FROM tab0 AS cor0
----
1125
6525
7275

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - MIN( + 76 ) FROM tab0 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5547
SELECT - MIN ( + 76 ) FROM tab0 cor0
----
-76

query I rowsort
SELECT ALL col0 * + col2 * + + 26 - col2 + 26 + - col2 AS col0 FROM tab0 AS cor0
----
18262
22626
249506

query I rowsort
SELECT DISTINCT - 43 + col1 AS col2 FROM tab2 AS cor0
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT + + ( + COUNT( * ) ) + - + 96 AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5550
SELECT + + ( + COUNT ( * ) ) + - + 96 AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT col1 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0 AS col0, + 54 AS col2 FROM tab2
----
46
54
64
54
75
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT COUNT( ALL + col1 ) * - - 23 AS col0 FROM tab2 WHERE NOT + - 30 IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT COUNT ( ALL + col1 ) * - - 23 AS col0 FROM tab2 WHERE NOT + - 30 IS NULL
----
69

query II rowsort
SELECT ALL col1, 3 - - 79 * - 41 FROM tab0
----
1
-3236
21
-3236
81
-3236

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT SUM( - col2 ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5555
SELECT SUM ( - col2 ) col2 FROM tab0
----
-156

query II rowsort
SELECT DISTINCT + col2, col2 + col0 FROM tab1 cor0
----
59
144
68
159
96
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL + COUNT( ALL 97 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + COUNT ( ALL 97 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT 98 + + COUNT( * ) AS col0 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-5558
SELECT 98 + + COUNT ( * ) AS col0 FROM tab1
----
101

query I rowsort
SELECT + - col0 + col1 * + - col1 * - 9 + - - col1 FROM tab0 AS cor0
----
-87
3903
59115

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * 73 + col1 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 17 * - col0 * - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + 1 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT + 1 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 78 * col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - COUNT( ALL + 1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5564
SELECT - COUNT ( ALL + 1 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT ALL col1 * 21 DIV + 17 AS col0 FROM tab0
----
1
100
25

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL col1 * 21 / + 17 AS col0 FROM tab0
----
1
100
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT + ( - SUM( ALL + col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + ( - SUM ( ALL + col2 ) ) FROM tab1
----
-223

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT 72 DIV - 17 + col0 FROM tab2 AS cor0
----
42
60
71

skipif mysql # not compatible
query I rowsort label-5568
SELECT 72 / - 17 + col0 FROM tab2 AS cor0
----
42
60
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT ALL - - 57 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - - 57 / - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - 94 + - col2 - - - 97 FROM tab0 AS cor0 WHERE + col1 / + - col1 * - col1 IS NOT NULL
----
-201
-238
-290

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT ALL - + col0 DIV - 73 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - + col0 / - 73 AS col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE ( - + col2 ) IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT DISTINCT + - col0 + - col1 + - - ( - col1 ) + + 85 DIV 8 FROM tab0 AS cor0
----
-119
-167
-89

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + - col0 + - col1 + - - ( - col1 ) + + 85 / 8 FROM tab0 AS cor0
----
-119
-167
-89

query I rowsort
SELECT col2 * + 93 FROM tab1 AS cor0
----
5487
6324
8928

query I rowsort
SELECT DISTINCT + col2 + + + ( + col0 ) FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 44 * - col2 AS col0 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT col1 + + - ( - col2 ) FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query II rowsort label-5581
SELECT DISTINCT - 11 DIV + 45 AS col1, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT - 11 / + 45 AS col1, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - - col2 col0, - col2 * - - col0 FROM tab2
----
1600
-2560
3364
-4350
529
-1058

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - 37 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5583
SELECT - 37 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT - COUNT( * ) + - 10 AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - COUNT ( * ) + - 10 AS col1 FROM tab0 AS cor0
----
-13

query II rowsort
SELECT DISTINCT col0 + - 33 * + 66 * col2, - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-102351
225
-215525
9409
-21693
7569

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 + - 67 - 93 * - + ( + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT + 73 * - 61 + - COUNT( ALL + col1 ) * - COUNT( * ) * 52 FROM tab2
----
-3985

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + 73 * - 61 + - COUNT ( ALL + col1 ) * - COUNT ( * ) * 52 FROM tab2
----
-3985

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL - MAX( ALL - - 22 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - MAX ( ALL - - 22 ) FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - COUNT( * ) - + COUNT( * ) col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5589
SELECT ALL - COUNT ( * ) - + COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT ALL col0, 65 + + 40 FROM tab0 AS cor0
----
15
105
87
105
97
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT - CAST( NULL AS SIGNED ) / - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT - CAST ( NULL AS INTEGER ) / - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5594
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5594
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5595
SELECT ALL + 59, col2 + + + CAST( + ( - col0 ) AS SIGNED ) + 76 * + - col2 DIV - col2 + + - col0 + - col2 * - + col0 col2 FROM tab1 cor0
----
59
4966
59
4980
59
6150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5595
SELECT ALL + 59, col2 + + + CAST ( + ( - col0 ) AS INTEGER ) + 76 * + - col2 / - col2 + + - col0 + - col2 * - + col0 col2 FROM tab1 cor0
----
59
4966
59
4980
59
6150

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab0 AS cor0 WHERE 56 IS NOT NULL
----
57

query I rowsort
SELECT DISTINCT + col0 * - 20 * col1 FROM tab0 AS cor0
----
-1940
-24300
-36540

query II rowsort
SELECT col1 AS col0, + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT - COUNT( * ) * - + 79 * 8 AS col2 FROM tab0
----
1896

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - COUNT ( * ) * - + 79 * 8 AS col2 FROM tab0
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT - MAX( + col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - MAX ( + col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT ALL ( 40 ) FROM tab1 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT + 20, 52 * + col0 AS col0 FROM tab2
----
20
2392
20
3328
20
3900

query I rowsort
SELECT - ( - - 60 ) FROM tab2 AS cor0
----
-60
-60
-60

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 * - - col1 * 37 AS col2 FROM tab0 AS cor0
----
10
-7770
47
-140859
99
-3663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 35 + + - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT - 59 * - COUNT( * ) AS col0 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-5607
SELECT - 59 * - COUNT ( * ) AS col0 FROM tab2
----
177

query I rowsort
SELECT - + col2 FROM tab2 WHERE + + 0 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND + - 97 * - + col1
----

query I rowsort
SELECT DISTINCT col1 * - 88 * col2 FROM tab0 AS cor0
----
-18480
-335016
-8712

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + col2 * + 34
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT ALL + MIN( ALL - col1 ) AS col2, + 2 FROM tab0 AS cor0
----
-81
2

skipif mysql # not compatible
query II rowsort label-5612
SELECT ALL + MIN ( ALL - col1 ) AS col2, + 2 FROM tab0 AS cor0
----
-81
2

query I rowsort
SELECT + 83 + 77 FROM tab0 AS cor0
----
160
160
160

query I rowsort
SELECT DISTINCT + col1 + + col0 * + 24 + 3 * col2 - - col0 * + - col0 AS col0 FROM tab0 cor0
----
-5430
-6783
357

query I rowsort
SELECT 54 + + - col0 * - col1 FROM tab1 AS cor0
----
4331
479
768

query III rowsort
SELECT * FROM tab1 WHERE + ( - ( 32 ) ) <= - col1
----
51
14
96
85
5
59

query I rowsort
SELECT - 30 FROM tab1 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL + 17 + + + COUNT( * ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL + 17 + + + COUNT ( * ) AS col0 FROM tab2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT DISTINCT + 84 + CAST( - 18 AS SIGNED ) * col1 AS col2 FROM tab1
----
-168
-6
-762

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + 84 + CAST ( - 18 AS INTEGER ) * col1 AS col2 FROM tab1
----
-168
-6
-762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5620
SELECT DISTINCT + COUNT( * ) DIV + 3 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + COUNT ( * ) / + 3 AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + ( - 78 ) * - + COUNT( DISTINCT - - col2 ) col0 FROM tab1
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5621
SELECT + ( - 78 ) * - + COUNT ( DISTINCT - - col2 ) col0 FROM tab1
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT CAST( NULL AS SIGNED ) * + CAST( 58 AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT CAST ( NULL AS INTEGER ) * + CAST ( 58 AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * + col0 AS col2 FROM tab0
----
4611
5141
795

query II rowsort
SELECT ALL - - col0 AS col1, 67 FROM tab1 AS cor0
----
51
67
85
67
91
67

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + + 7 IS NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5626
SELECT ALL 48 - COUNT( * ) DIV + + 79 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL 48 - COUNT ( * ) / + + 79 FROM tab1 AS cor0
----
48

query I rowsort
SELECT col0 * - col1 + col1 + 4 - col0 + + + col1 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
-598
241
978

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5628
SELECT - 64 + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT - 64 + CAST ( NULL AS REAL ) + COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 * - 57 FROM tab0
----
-4959
-5529
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL + MIN( DISTINCT - col1 ) col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5630
SELECT ALL + MIN ( DISTINCT - col1 ) col0 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT - CAST( 78 AS SIGNED ) * - + 46 AS col1 FROM tab1 AS cor0
----
3588
3588
3588

skipif mysql # not compatible
query I rowsort label-5631
SELECT - CAST ( 78 AS INTEGER ) * - + 46 AS col1 FROM tab1 AS cor0
----
3588
3588
3588

query I rowsort
SELECT 33 * - col0 * - col0 AS col2 FROM tab0 AS cor0
----
249777
310497
7425

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 20 FROM tab1 AS cor0
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL MAX( DISTINCT + + 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL MAX ( DISTINCT + + 47 ) FROM tab0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT col2 * col2 DIV + col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5635
SELECT col2 * col2 / + col2 AS col2 FROM tab1
----
59
68
96

query II rowsort
SELECT ALL 21, - 79 AS col2 FROM tab2
----
21
-79
21
-79
21
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5637
SELECT - COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5638
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 < + CAST( - col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5638
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 < + CAST ( - col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT + + COUNT( * ) + + 72 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5639
SELECT + + COUNT ( * ) + + 72 FROM tab0 cor0
----
75

query I rowsort
SELECT + - col2 + 46 AS col0 FROM tab0 AS cor0
----
-1
-53
36

query I rowsort
SELECT ALL + 87 + - col1 FROM tab0 AS cor0
----
6
66
86

query II rowsort
SELECT DISTINCT - col2 * - col2, col0 AS col0 FROM tab2
----
1600
64
3364
75
529
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT DISTINCT - 30 DIV + COUNT( * ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT - 30 / + COUNT ( * ) FROM tab1
----
-10

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab0 cor0 WHERE 45 * - - col0 + + col0 IS NOT NULL
----
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col0 + - 56
----

query I rowsort
SELECT DISTINCT + + col1 + + col1 + + col1 + - col0 - + col1 FROM tab0 AS cor0
----
-45
-95
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5647
SELECT - MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5648
SELECT - CAST( + + 87 AS SIGNED ) DIV + - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5648
SELECT - CAST ( + + 87 AS INTEGER ) / + - col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT col2, - col2 * + - col0 AS col1 FROM tab0 AS cor0
----
10
870
47
705
99
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 col0 FROM tab1 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 + - 36 + - col1 - - + col2 * - - col0 + col2 col0 FROM tab2 cor0 WHERE - col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 59 - - col0 + + 75 + + col0 AS col2 FROM tab2 AS cor0
----
226
262
284

query I rowsort
SELECT DISTINCT + col0 * ( + col2 ) + + + 48 * + - col1 FROM tab0 AS cor0
----
-138
-3183
9555

query I rowsort
SELECT - 45 - 54 AS col1 FROM tab0 cor0
----
-99
-99
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 72 = - col0 * + col2 * + 95 + 65 + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + - ( - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 47 - 81 < - col2 * + + col0
----

query I rowsort
SELECT DISTINCT + ( + 47 ) FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT - col1, 30 AS col2 FROM tab1
----
-14
30
-47
30
-5
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT + MIN( + - col2 ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5662
SELECT + MIN ( + - col2 ) col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - ( + + 9 ) AS col1 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + COUNT( * ) * SUM( ALL ( - ( + - col1 ) ) ) AS col2 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5664
SELECT + COUNT ( * ) * SUM ( ALL ( - ( + - col1 ) ) ) AS col2 FROM tab1 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 63 + - col0 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT ALL + - 80 DIV - - 24 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + - 80 / - - 24 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 + + 53 IS NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col0 + + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT DISTINCT + + col0 DIV + col1 FROM tab0 WHERE NOT NULL IN ( + col2, - col0 * col1 ) OR - 7 < + col0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT + + col0 / + col1 FROM tab0 WHERE NOT NULL IN ( + col2, - col0 * col1 ) OR - 7 < + col0
----
0
4
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 >= NULL
----

query II rowsort
SELECT - col1 + - 95 AS col0, - ( - 98 ) FROM tab1
----
-100
98
-109
98
-142
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT + CAST( + + ( + col1 ) AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5674
SELECT + CAST ( + + ( + col1 ) AS INTEGER ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - COUNT( + col2 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5675
SELECT - COUNT ( + col2 ) col2 FROM tab1
----
-3

query I rowsort
SELECT 46 * - col0 FROM tab1
----
-2346
-3910
-4186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5677
SELECT + + 60 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * + ( - - col1 ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5677
SELECT + + 60 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * + ( - - col1 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - 32 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT - MIN( DISTINCT + - CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5679
SELECT - MIN ( DISTINCT + - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5680
SELECT * FROM tab2 WHERE - col2 NOT IN ( - col2 * - col1 + - + CAST( + - ( 7 ) AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5680
SELECT * FROM tab2 WHERE - col2 NOT IN ( - col2 * - col1 + - + CAST ( + - ( 7 ) AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - col1 ) + col2 AS col0 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT ( + 94 ) + - + 32 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT ( + 94 ) + - + 32 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - AVG ( ALL + + col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + - 19 + + + col1 AS col0 FROM tab1 AS cor0
----
-14
-5
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 36 + + - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col0 BETWEEN 72 AND - - col2
----

query I rowsort
SELECT ALL 42 + - col0 FROM tab2 cor0
----
-22
-33
-4

query I rowsort
SELECT ALL - col0 * - + ( + col0 ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT - 99 * - - 13 AS col1 FROM tab0
----
-1287
-1287
-1287

onlyif mysql # DIV for integer division: 
query I rowsort label-5690
SELECT ALL col0 DIV - col1 - 2 * + 4 + - col0 col0 FROM tab2
----
-54
-72
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5690
SELECT ALL col0 / - col1 - 2 * + 4 + - col0 col0 FROM tab2
----
-54
-72
-84

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL >= + + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT + ( MAX( ALL + + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT + ( MAX ( ALL + + col0 ) ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL < NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 19 + col0 < NULL
----

query II rowsort
SELECT + + col1 AS col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - - 44 FROM tab1 cor0
----
44
44
44

query II rowsort
SELECT + 30 * - col0 AS col2, 56 FROM tab0 AS cor0
----
-2610
56
-2910
56
-450
56

query I rowsort
SELECT ALL - col0 + 14 FROM tab2 cor0
----
-32
-50
-61

query I rowsort
SELECT - - ( - + 9 ) FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT + - 6 AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5701
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( col0 AS DECIMAL ) * - col0 BETWEEN + - col1 AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5701
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( col0 AS REAL ) * - col0 BETWEEN + - col1 AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5702
SELECT CAST( NULL AS SIGNED ), 52 DIV col0 * + - 59 AS col0 FROM tab1
----
NULL
-59
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-5702
SELECT CAST ( NULL AS INTEGER ), 52 / col0 * + - 59 AS col0 FROM tab1
----
NULL
-59
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT + col0 * - 92 AS col0 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT ALL - col2 + + + col0 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + 26 * 43 FROM tab0
----
1118
1118
1118

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - col1 * + 90
----

query I rowsort
SELECT DISTINCT col1 * - ( col1 * + col0 ) AS col0 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + 4 + + col2 IS NOT NULL
----

query I rowsort
SELECT 63 * - 25 + 32 * 89 FROM tab1
----
1273
1273
1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT MIN( col1 ) * + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT MIN ( col1 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT 12 * - ( col0 ) + + col2 FROM tab0
----
-1034
-1065
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL MIN( col2 ) AS col0 FROM tab1 WHERE NOT ( + col1 ) = col1 * 32
----
59

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL MIN ( col2 ) AS col0 FROM tab1 WHERE NOT ( + col1 ) = col1 * 32
----
59

query III rowsort
SELECT * FROM tab2 WHERE col1 < col1 * + col0 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT + COUNT( * ) DIV 25 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT + COUNT ( * ) / 25 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col1 + ( col0 + + 86 ) FROM tab1
----
151
176
224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT 98 DIV - MIN( + 84 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5716
SELECT 98 / - MIN ( + 84 ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab0 WHERE + 28 > ( + col0 + - 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col0 NOT BETWEEN NULL AND ( - col0 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 83 + - col1 FROM tab0
----
2
62
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT DISTINCT ( - ( - 30 ) ) DIV + col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT ( - ( - 30 ) ) / + col1 FROM tab1
----
0
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT + 72 + COUNT( * ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5721
SELECT + 72 + COUNT ( * ) AS col2 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND 39
----

query I rowsort
SELECT ALL col0 + - ( + 50 ) FROM tab1
----
1
35
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL SUM( ALL - 82 ) AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL SUM ( ALL - 82 ) AS col1 FROM tab1
----
-246

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 41 IN ( col0 + col2 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL COUNT( DISTINCT 65 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL COUNT ( DISTINCT 65 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT ALL CAST( NULL AS SIGNED ) * col1 FROM tab2 WHERE NOT ( + ( - 32 ) ) <> - col0 * 67 - - col1
----

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL CAST ( NULL AS INTEGER ) * col1 FROM tab2 WHERE NOT ( + ( - 32 ) ) <> - col0 * 67 - - col1
----

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 37 * - col1 AS col0 FROM tab2 cor0
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT COUNT( * ) * 54 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5730
SELECT COUNT ( * ) * 54 FROM tab2 AS cor0
----
162

query I rowsort
SELECT + 60 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + col2 * 13 AS col2 FROM tab1
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT COUNT( + 15 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5733
SELECT COUNT ( + 15 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 79 - + col1 FROM tab0 WHERE 20 <= NULL
----

query I rowsort
SELECT 17 * + col1 FROM tab2 WHERE NOT ( col0 * 32 ) > NULL
----

query I rowsort
SELECT ALL - col2 * 59 FROM tab0 AS cor0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL - SUM( 94 ) AS col2 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL - SUM ( 94 ) AS col2 FROM tab2 AS cor0
----
-282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT DISTINCT - + COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5739
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5739
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL CAST( NULL AS SIGNED ) + + col2 * 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 * 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT - - 84 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
3864
5376
6300

skipif mysql # not compatible
query I rowsort label-5741
SELECT - - 84 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
3864
5376
6300

query I rowsort
SELECT + col2 * 18 AS col2 FROM tab0 cor0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT ( + 85 ) / - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5743
SELECT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT ( + 85 ) / - col1 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 71 * col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 91 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT - - col2 + 83 DIV col0 col0 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5746
SELECT - - col2 + 83 / col0 col0 FROM tab0 AS cor0
----
10
52
99

query I rowsort
SELECT ALL + col2 * + col2 * - 68 FROM tab0
----
-150212
-666468
-6800

query III rowsort
SELECT * FROM tab2 WHERE ( + ( 73 ) / col1 ) NOT BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + 66 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5750
SELECT ALL COUNT( * ) DIV - 88 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL COUNT ( * ) / - 88 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT 5 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT 5 / col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT - ( COUNT( * ) ) + COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5752
SELECT DISTINCT - ( COUNT ( * ) ) + COUNT ( * ) col0 FROM tab0
----
0

query I rowsort
SELECT ALL + 94 + - - col0 AS col0 FROM tab0 AS cor0
----
109
181
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT 54 * MAX( + - 35 ) + MAX( ALL 92 ) FROM tab0
----
-1798

skipif mysql # not compatible
query I rowsort label-5754
SELECT 54 * MAX ( + - 35 ) + MAX ( ALL 92 ) FROM tab0
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL MIN( ALL + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL MIN ( ALL + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT - COUNT( - - col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - COUNT ( - - col0 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5758
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5758
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL + 74 - - 20 AS col1 FROM tab2 AS cor0 WHERE ( + col1 ) < - col1 * + col0 + - 8
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - 29 * - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL - MIN( - - 53 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - MIN ( - - 53 ) FROM tab1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT + SUM( ALL - - ( + col0 ) ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + SUM ( ALL - - ( + col0 ) ) AS col0 FROM tab1
----
227

query I rowsort
SELECT + + 28 - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-39
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT MAX( + 44 ) AS col0 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT MAX ( + 44 ) AS col0 FROM tab2
----
44

query I rowsort
SELECT - 41 AS col2 FROM tab0 WHERE NOT - col1 NOT IN ( + + 50 )
----

query I rowsort
SELECT + 58 * - - col2 AS col0 FROM tab1
----
3422
3944
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 7 col0 FROM tab1
----
14
7
47
7
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT COUNT( DISTINCT 29 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5769
SELECT COUNT ( DISTINCT 29 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT DISTINCT - col2 AS col1, + col1 * + 53 + col2 * - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-10
903
-47
486
-99
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT 15 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5772
SELECT 15 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + col2 <> + - col2 * - col0 + - col2
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5774
SELECT + CAST( NULL AS SIGNED ), col0 + - + col2 AS col1 FROM tab0
----
NULL
-2
NULL
-32
NULL
77

skipif mysql # not compatible
query II rowsort label-5774
SELECT + CAST ( NULL AS INTEGER ), col0 + - + col2 AS col1 FROM tab0
----
NULL
-2
NULL
-32
NULL
77

query II rowsort
SELECT col2 AS col1, + col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab0 WHERE ( ( + col1 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT - COUNT( * ) * - 32 AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT - COUNT ( * ) * - 32 AS col1 FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE ( 41 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT ALL - col1 DIV 78 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL - col1 / 78 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT ALL - col2 DIV + + col2 + col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - col2 / + + col2 + col2 FROM tab2
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT DISTINCT + ( 9 ) + + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + ( 9 ) + + COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + - 94 * MIN( ALL - 53 ) FROM tab0 AS cor0
----
4982

skipif mysql # not compatible
query I rowsort label-5782
SELECT + - 94 * MIN ( ALL - 53 ) FROM tab0 AS cor0
----
4982

query I rowsort
SELECT 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT 5 - - 16 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5785
SELECT DISTINCT + + MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT + + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT - - SUM( 18 ) FROM tab0 cor0 WHERE NOT ( - col0 * - col0 * + 38 ) NOT BETWEEN ( NULL ) AND - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT - - SUM ( 18 ) FROM tab0 cor0 WHERE NOT ( - col0 * - col0 * + 38 ) NOT BETWEEN ( NULL ) AND - 82
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT - col2 / - col2 + + + col1 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + - 47 * - - 16 + - + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT - COUNT( * ) * + 33, + COUNT( * ) + - 56 AS col1 FROM tab2 AS cor0
----
-99
-53

skipif mysql # not compatible
query II rowsort label-5789
SELECT - COUNT ( * ) * + 33, + COUNT ( * ) + - 56 AS col1 FROM tab2 AS cor0
----
-99
-53

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) <= 60
----

query I rowsort
SELECT ALL - - 66 AS col1 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5792
SELECT - CAST( - col1 AS SIGNED ) DIV - col0 - 43 AS col0 FROM tab2 AS cor0
----
-43
-44
-44

skipif mysql # not compatible
query I rowsort label-5792
SELECT - CAST ( - col1 AS INTEGER ) / - col0 - 43 AS col0 FROM tab2 AS cor0
----
-43
-44
-44

query I rowsort
SELECT 47 * - 68 FROM tab0
----
-3196
-3196
-3196

onlyif mysql # DIV for integer division: 
query II rowsort label-5794
SELECT ALL col1 AS col2, + ( ( ( - col0 ) ) ) + col2 + - col0 + + 46 DIV + col0 AS col2 FROM tab0
----
1
-95
21
-164
81
20

skipif mysql # not compatible
query II rowsort label-5794
SELECT ALL col1 AS col2, + ( ( ( - col0 ) ) ) + col2 + - col0 + + 46 / + col0 AS col2 FROM tab0
----
1
-95
21
-164
81
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT + - MIN( ALL - + 8 ) FROM tab2 WHERE NOT - - 84 IN ( - + 19 + - - 34, col0 )
----
8

skipif mysql # not compatible
query I rowsort label-5795
SELECT + - MIN ( ALL - + 8 ) FROM tab2 WHERE NOT - - 84 IN ( - + 19 + - - 34, col0 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT + SUM( DISTINCT - 7 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-5796
SELECT + SUM ( DISTINCT - 7 ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT - ( MIN( + col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5797
SELECT - ( MIN ( + col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - + 96 AS col1 FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL + SUM( DISTINCT + 55 ) AS col0 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL + SUM ( DISTINCT + 55 ) AS col0 FROM tab2 AS cor0
----
55

query I rowsort
SELECT 84 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < - col1
----
37
70
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5801
SELECT ALL + - CAST( + - col0 AS SIGNED ) * col2 AS col1, - ( - - col2 ) FROM tab0 cor0
----
705
-47
870
-10
9603
-99

skipif mysql # not compatible
query II rowsort label-5801
SELECT ALL + - CAST ( + - col0 AS INTEGER ) * col2 AS col1, - ( - - col2 ) FROM tab0 cor0
----
705
-47
870
-10
9603
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT - + 16 FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) * + 16 > NULL
----

skipif mysql # not compatible
query I rowsort label-5802
SELECT - + 16 FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) * + 16 > NULL
----

query I rowsort
SELECT ALL + col0 + + 87 FROM tab1 AS cor0
----
138
172
178

query I rowsort
SELECT - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 34 col0, col0 FROM tab0 AS cor0
----
121
87
131
97
49
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT DISTINCT - - 70 + SUM( 55 ) AS col0 FROM tab0 AS cor0
----
235

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT - - 70 + SUM ( 55 ) AS col0 FROM tab0 AS cor0
----
235

query I rowsort
SELECT DISTINCT + - 70 * 95 FROM tab2 AS cor0
----
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + ( COUNT( * ) ) + + + 55 AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5808
SELECT + ( COUNT ( * ) ) + + + 55 AS col2 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL - SUM( + + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - SUM ( + + col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5810
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( 41 AS SIGNED ) >= ( - - col2 + - CAST( ( + + 33 ) AS SIGNED ) + - col0 * + - col1 / col1 - col1 * - 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5810
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( 41 AS INTEGER ) >= ( - - col2 + - CAST ( ( + + 33 ) AS INTEGER ) + - col0 * + - col1 / col1 - col1 * - 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 41 * 85 AS col0 FROM tab0
----
3485
3485
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT - 7 * + + COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-5812
SELECT - 7 * + + COUNT ( * ) FROM tab0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT - ( + col2 ) DIV - col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5813
SELECT - ( + col2 ) / - col1 AS col0 FROM tab1
----
1
11
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT - col1 DIV - col0 + - 6 col2 FROM tab2 AS cor0
----
-5
-5
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5814
SELECT - col1 / - col0 + - 6 col2 FROM tab2 AS cor0
----
-5
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT - 95 + - COUNT( * ) AS col2 FROM tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - 95 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT COUNT( * ) + + COUNT( - 87 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT COUNT ( * ) + + COUNT ( - 87 ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT DISTINCT + COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT + COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT ALL + 92 - + col0 AS col0, col1 AS col0 FROM tab1
----
1
47
41
14
7
5

query I rowsort
SELECT ALL - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT + col1 + + - col0 * 90 FROM tab2
----
-4089
-5683
-6683

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT - 49 * 54 >= + 0 * ( + 27 )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + + 82 * 4 FROM tab2 AS cor0
----
328

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 9 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5825
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( 55 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( 55 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + + 81 ) * + col1 AS col0 FROM tab1 AS cor0
----
1134
3807
405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT + COUNT( * ) DIV - COUNT( * ) - 89 AS col0 FROM tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5827
SELECT + COUNT ( * ) / - COUNT ( * ) - 89 AS col0 FROM tab2 cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT + 82 FROM tab0 AS cor0 WHERE NOT CAST( ( - col0 ) AS SIGNED ) - - - CAST( NULL AS SIGNED ) + + col2 IS NOT NULL
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5828
SELECT + 82 FROM tab0 AS cor0 WHERE NOT CAST ( ( - col0 ) AS INTEGER ) - - - CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL
----
82
82
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5829
SELECT + CAST( NULL AS DECIMAL ) * - 75 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT + CAST ( NULL AS REAL ) * - 75 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT + MIN( ALL 15 ) * 20 FROM tab1
----
300

skipif mysql # not compatible
query I rowsort label-5830
SELECT + MIN ( ALL 15 ) * 20 FROM tab1
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT 57 DIV - 96 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT 57 / - 96 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 17 * - + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - col2 ) * - - 77 + - 42 * + col0 FROM tab2 AS cor0
----
-3703
-5768
-7616

query II rowsort
SELECT DISTINCT col1, col0 AS col1 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + col2 + + 11 AS col2 FROM tab1 cor0
----
107
70
79

query I rowsort
SELECT DISTINCT + col0 + 10 * - col2 - + ( + + 20 ) AS col0 FROM tab0 AS cor0
----
-33
-475
-913

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( + col1 ) col2 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5839
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT + col2 ) DIV + 52 AS col1, - 2 FROM tab0 AS cor0
----
0
-2

skipif mysql # not compatible
query II rowsort label-5839
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT + col2 ) / + 52 AS col1, - 2 FROM tab0 AS cor0
----
0
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 32 * + col1 * - 64 BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5841
SELECT - - COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5841
SELECT - - COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - + 14 - + - 71, col2 FROM tab0 AS cor0
----
57
10
57
47
57
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( + - 38 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT - SUM( + col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5844
SELECT DISTINCT - SUM ( + col1 ) col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT 60 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
540

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT 60 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
540

query I rowsort
SELECT ALL 90 * - 87 * - col1 FROM tab1
----
109620
368010
39150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col0 AS col2 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5848
SELECT DISTINCT - 3 * - + ( + CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - 3 * - + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT - CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5849
SELECT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col2 * col1 * col0 AS col0 FROM tab1 cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT - SUM( ALL + 11 ) * ( + COUNT( + col2 ) ) AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT - SUM ( ALL + 11 ) * ( + COUNT ( + col2 ) ) AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) / col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) / col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT + + 75 DIV + ( 66 ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5853
SELECT + + 75 / + ( 66 ) FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * - col2 col0 FROM tab1
----
-205379
-314432
-884736

query II rowsort
SELECT 60 AS col2, - col1 FROM tab0
----
60
-1
60
-21
60
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 94 + - 36 col2, - col0 AS col2 FROM tab2 AS cor0
----
58
-46
58
-64
58
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT + COUNT( * ) AS col0, - 71 AS col2 FROM tab1 AS cor0
----
3
-71

skipif mysql # not compatible
query II rowsort label-5857
SELECT + COUNT ( * ) AS col0, - 71 AS col2 FROM tab1 AS cor0
----
3
-71

query I rowsort
SELECT ALL ( - col2 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 BETWEEN - 63 AND ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT - + 74 * 40 + - - COUNT( ALL - col2 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2969

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - + 74 * 40 + - - COUNT ( ALL - col2 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2969

query I rowsort
SELECT ALL - 91 + - ( + col0 ) - + col1 AS col2 FROM tab0 cor0
----
-187
-189
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT + col2 DIV - + 2 + + col0 * + 81 + col1 FROM tab0
----
1273
7063
7809

skipif mysql # not compatible
query I rowsort label-5862
SELECT + col2 / - + 2 + + col0 * + 81 + col1 FROM tab0
----
1273
7063
7809

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 63 + + COUNT( - col2 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 63 + + COUNT ( - col2 ) AS col1 FROM tab1
----
66

query II rowsort
SELECT col1 + ( - 22 ) * + col0 + - + 16, 68 AS col0 FROM tab2 AS cor0
----
-1347
68
-1599
68
-977
68

query I rowsort
SELECT + + col0 + - ( - - 30 ) + - 87 + col2 AS col2 FROM tab0 cor0
----
-20
-55
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT + - CAST( NULL AS SIGNED ) + - - ( col2 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT + - CAST ( NULL AS INTEGER ) + - - ( col2 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT - ( + COUNT( * ) ) + - 14 FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT - ( + COUNT ( * ) ) + - 14 FROM tab2 cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5868
SELECT DISTINCT + 92 DIV + CAST( + 37 AS SIGNED ) - col2 FROM tab1 AS cor0
----
-57
-66
-94

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + 92 / + CAST ( + 37 AS INTEGER ) - col2 FROM tab1 AS cor0
----
-57
-66
-94

query I rowsort
SELECT ALL + col0 - 65 * - + 11 * + + col0 AS col2 FROM tab0 AS cor0
----
10740
62292
69452

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT - 97 DIV - col2 + + 41 AS col2 FROM tab1 cor0 WHERE col1 DIV - col1 - - - col1 IS NOT NULL
----
42
42
42

skipif mysql # not compatible
query I rowsort label-5870
SELECT - 97 / - col2 + + 41 AS col2 FROM tab1 cor0 WHERE col1 / - col1 - - - col1 IS NOT NULL
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 23 ) col2 FROM tab1
----
-23
-23
-23

query II rowsort
SELECT col2 AS col0, ( + col1 ) FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + 20 * - COUNT( * ) AS col2 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-5873
SELECT + 20 * - COUNT ( * ) AS col2 FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT MAX( - 73 ) - 11 AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-5874
SELECT MAX ( - 73 ) - 11 AS col2 FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5875
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - + 31 + - + ( - - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - + 31 + - + ( - - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 - - - 62 FROM tab1
----
-15
-48
-57

query I rowsort
SELECT - + col1 FROM tab2 cor0 WHERE NOT ( NULL ) = + + col2
----

query II rowsort
SELECT + 35, 58 FROM tab1 cor0 WHERE NOT 39 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - 98 ) col0, col1 FROM tab1
----
-98
14
-98
47
-98
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5880
SELECT CAST( NULL AS SIGNED ) * ( + MIN( ALL col2 ) ) FROM tab1 WHERE NOT + 44 >= ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT CAST ( NULL AS INTEGER ) * ( + MIN ( ALL col2 ) ) FROM tab1 WHERE NOT + 44 >= ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + MIN( + 1 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5881
SELECT + MIN ( + 1 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT - MAX( - + ( - 47 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT - MAX ( - + ( - 47 ) ) AS col0 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL ( + 38 ), + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( ( col0 ) IS NULL ) )
----

query I rowsort
SELECT - 0 * + 52 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + 64 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + 41 + + ( + + 48 ) + col1 FROM tab0 AS cor0
----
-3192
-792
8

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) > - + 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT - + 18 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT - + 18 / col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT + MIN( DISTINCT - 56 ) col1 FROM tab0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5890
SELECT + MIN ( DISTINCT - 56 ) col1 FROM tab0
----
-56

query I rowsort
SELECT col1 * + + col0 * - - col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab0 WHERE col2 < - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT - 6 DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5893
SELECT - 6 / - col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT ALL - 92 DIV + col2 AS col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - 92 / + col2 AS col1 FROM tab2
----
-1
-2
-4

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 / col2 * - col1 + - col0 BETWEEN + 74 AND - - 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + 77 AS col1 FROM tab0 AS cor0
----
124
176
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL COUNT( - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL COUNT ( - col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + + - 76 NOT BETWEEN - col0 AND - 60
----

query II rowsort
SELECT ALL ( - - col0 ), col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT - - 67 AS col2, col1 FROM tab2 AS cor0
----
67
51
67
67
67
77

query I rowsort
SELECT DISTINCT - col1 + - - col2 AS col1 FROM tab1 AS cor0
----
21
54
82

query II rowsort
SELECT ALL - + col2 * + + 42, - 53 AS col2 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL + col2 * + - col0 * + 50 - - col0 * - col0 + ( - + col1 ) + col1 AS col0 FROM tab0 cor0
----
-35475
-489559
-51069

query I rowsort
SELECT + 95 - col1 FROM tab0 AS cor0
----
14
74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL - COUNT( * ) + - 61 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - COUNT ( * ) + - 61 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT 18 + + 26 + 82 AS col0 FROM tab0 AS cor0
----
126
126
126

query I rowsort
SELECT DISTINCT col1 * col1 * - - 20 + - col2 FROM tab2 AS cor0
----
118540
51997
89722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + 94 AS col1, col0 * + col0 + + col0 col2 FROM tab0
----
-5
9506
47
240
84
7656

query I rowsort
SELECT ( + + col2 ) + + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT 92 - - col1 + + - col2 AS col2 FROM tab0
----
-6
103
126

query I rowsort
SELECT DISTINCT - ( - + 67 ) FROM tab2 AS cor0
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5912
SELECT + CAST( NULL AS DECIMAL ) * 21 * - + 20 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT + CAST ( NULL AS REAL ) * 21 * - + 20 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 52, + 2 * + 85 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
52
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT 75 * - MIN( ALL + col1 ) FROM tab2 cor0 WHERE NOT ( col2 + col2 ) IS NULL
----
-3825

skipif mysql # not compatible
query I rowsort label-5914
SELECT 75 * - MIN ( ALL + col1 ) FROM tab2 cor0 WHERE NOT ( col2 + col2 ) IS NULL
----
-3825

query II rowsort
SELECT ALL - - 86 AS col2, + col0 FROM tab2 AS cor0
----
86
46
86
64
86
75

query I rowsort
SELECT ALL - col0 + - 70 AS col2 FROM tab2
----
-116
-134
-145

query I rowsort
SELECT - ( - 24 ) AS col2 FROM tab2 AS cor0
----
24
24
24

query II rowsort
SELECT ALL + col2 + - col0 AS col1, - col0 FROM tab0 AS cor0
----
-77
-87
2
-97
32
-15

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 15 + - 56 FROM tab0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= 45
----
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= 45
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + 67 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL col0 + + 84 + col0 * col0 + - col1 FROM tab2
----
2195
4167
5717

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT - col1 * + col1 DIV col1 * - col2 col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5926
SELECT - col1 * + col1 / col1 * - col2 col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT + col0 FROM tab0 WHERE - 34 BETWEEN + - col2 AND NULL
----

query II rowsort
SELECT ALL col1 AS col0, - col2 AS col1 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-5929
SELECT + col1 AS col0, + 51 DIV col0 FROM tab2
----
51
1
67
0
77
0

skipif mysql # not compatible
query II rowsort label-5929
SELECT + col1 AS col0, + 51 / col0 FROM tab2
----
51
1
67
0
77
0

query I rowsort
SELECT DISTINCT - 41 * + col0 AS col2 FROM tab1 AS cor0
----
-2091
-3485
-3731

query I rowsort
SELECT DISTINCT - ( 13 ) AS col2 FROM tab0 cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col1 * + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT + ( - 73 ) AS col0 FROM tab2
----
-73
-73
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT ALL - 2 DIV - col0 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL - 2 / - col0 * - col1 FROM tab2
----
0
0
0

query II rowsort
SELECT + ( + - col2 ), + 0 AS col0 FROM tab0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + 3 ), ( col0 ) col2 FROM tab2 AS cor0
----
3
46
3
64
3
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT COUNT( * ) DIV - 93 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5940
SELECT COUNT ( * ) / - 93 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * + - col1 * - - ( + col1 ) + - - col1 * - + 90 FROM tab1
----
-154442
-1925
-20076

query II rowsort
SELECT + col2 AS col1, - col1 * col1 FROM tab2
----
23
-2601
40
-5929
58
-4489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT 97 AS col1 FROM tab0 WHERE + CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5943
SELECT 97 AS col1 FROM tab0 WHERE + CAST ( + + col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT col0 * + 69 * + 92, 44 * - 90 AS col1 FROM tab1
----
323748
-3960
539580
-3960
577668
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT DISTINCT + ( + COUNT( ALL ( + 9 ) ) ), + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5945
SELECT DISTINCT + ( + COUNT ( ALL ( + 9 ) ) ), + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + col1 * col2 + 19 FROM tab0 AS cor0
----
118
229
3826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT COUNT( DISTINCT - + CAST( - + col1 AS SIGNED ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5947
SELECT COUNT ( DISTINCT - + CAST ( - + col1 AS INTEGER ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL + 74 + - COUNT( * ) col1 FROM tab0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5948
SELECT ALL + 74 + - COUNT ( * ) col1 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL - + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5949
SELECT ALL - + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

query I rowsort
SELECT DISTINCT - 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT - MAX( DISTINCT + + 51 ) col0 FROM tab0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5953
SELECT - MAX ( DISTINCT + + 51 ) col0 FROM tab0
----
-51

query I rowsort
SELECT col2 - + - col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + - 88 + + col1 FROM tab0 AS cor0
----
-67
-7
-87

query I rowsort
SELECT + 32 + + col1 + + col1 FROM tab1 AS cor0
----
126
42
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN 23 * - + 49 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5959
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - + col1 NOT BETWEEN - col1 * - CAST( NULL AS SIGNED ) + + + col1 + - col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-5959
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - + col1 NOT BETWEEN - col1 * - CAST ( NULL AS INTEGER ) + + + col1 + - col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT ALL col1 * + CAST( - + col2 AS SIGNED ) AS col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL col1 * + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5961
SELECT DISTINCT 5 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT 5 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 69 * + ( + col1 ) AS col0 FROM tab2
----
-3519
-4623
-5313

query I rowsort
SELECT - + 4 * + + col1 AS col2 FROM tab1 AS cor0
----
-188
-20
-56

query I rowsort
SELECT - - col0 FROM tab1 cor0 WHERE + col0 > + col0 OR NOT + 76 <= + 40 * - - col0
----

query I rowsort
SELECT - + 81 * - col2 AS col2 FROM tab2 AS cor0
----
1863
3240
4698

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - + 7 AND NULL
----
15
81
47
87
21
10

query II rowsort
SELECT col0, - col1 AS col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT + COUNT( * ) + - 94 AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT + COUNT ( * ) + - 94 AS col2 FROM tab2 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5969
SELECT DISTINCT - 90 + - + col1 AS col0, ( - col1 ) DIV + col1 + + col0 + + - 95 AS col2 FROM tab2 AS cor0
----
-141
-50
-157
-21
-167
-32

skipif mysql # not compatible
query II rowsort label-5969
SELECT DISTINCT - 90 + - + col1 AS col0, ( - col1 ) / + col1 + + col0 + + - 95 AS col2 FROM tab2 AS cor0
----
-141
-50
-157
-21
-167
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5971
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 5 ) * - 3 - + col2 + col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5971
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 5 ) * - 3 - + col2 + col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT col0 + + 55 DIV - 77 + - 26 + - + col0 FROM tab2 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-5972
SELECT col0 + + 55 / - 77 + - 26 + - + col0 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL - 81 + - + 31 AS col1 FROM tab1 cor0
----
-112
-112
-112

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 80 + - col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, - col2 FROM tab2 cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT + ( + 61 ) AS col0 FROM tab0
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5977
SELECT CAST( + 17 AS SIGNED ) DIV + + CAST( col2 AS SIGNED ) * + - col1 + 8 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5977
SELECT CAST ( + 17 AS INTEGER ) / + + CAST ( col2 AS INTEGER ) * + - col1 + 8 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT MIN( - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5978
SELECT MIN ( - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT CAST( + + 58 AS SIGNED ) AS col2 FROM tab1
----
58
58
58

skipif mysql # not compatible
query I rowsort label-5979
SELECT CAST ( + + 58 AS INTEGER ) AS col2 FROM tab1
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col2 col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT + col1 * CAST( + 56 AS SIGNED ) * col2 * + col1 FROM tab1 AS cor0
----
1053696
82600
8411872

skipif mysql # not compatible
query I rowsort label-5981
SELECT + col1 * CAST ( + 56 AS INTEGER ) * col2 * + col1 FROM tab1 AS cor0
----
1053696
82600
8411872

query I rowsort
SELECT - col2 - - + 30 + + col2 + + col1 AS col1 FROM tab1 AS cor0
----
35
44
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( + col0 ) + + 91 col0 FROM tab2 AS cor0
----
1149
2651
4441

query I rowsort
SELECT 74 + - - col0 + ( + col2 ) FROM tab2
----
143
178
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 * 4 + + 64 col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT + + 93 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 77 * col2 AS col2 FROM tab1 AS cor0
----
-4543
-5236
-7392

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col0 * - 43 AS col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL - 38 DIV col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - 38 / col2 FROM tab0 AS cor0
----
-3
0
0

query II rowsort
SELECT DISTINCT 75 AS col0, 88 AS col1 FROM tab2 AS cor0
----
75
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - ( - MIN( ALL + 30 ) ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-5992
SELECT - ( - MIN ( ALL + 30 ) ) AS col0 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT COUNT( * ) * - 99 AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-5993
SELECT COUNT ( * ) * - 99 AS col0 FROM tab0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + + col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + + col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5996
SELECT MIN( DISTINCT - col0 ) AS col1, CAST( + 97 AS SIGNED ) col0 FROM tab1
----
-91
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5996
SELECT MIN ( DISTINCT - col0 ) AS col1, CAST ( + 97 AS INTEGER ) col0 FROM tab1
----
-91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL >= + 43
----

skipif mysql # not compatible
query I rowsort label-5997
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL >= + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT ALL - 8 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 36 + + 82 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - 8 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 36 + + 82 IS NOT NULL
----

query I rowsort
SELECT ALL 69 * + - col0 AS col0 FROM tab1
----
-3519
-5865
-6279

query I rowsort
SELECT ALL - 73 * - + col1 AS col2 FROM tab2 AS cor0
----
3723
4891
5621

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6002
SELECT ALL - CAST( NULL AS DECIMAL ) + - col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL - CAST ( NULL AS REAL ) + - col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 92 + - col1 AS col0 FROM tab0 AS cor0
----
11
71
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 > + 62 + - col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6005
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST( NULL AS DECIMAL ) >= + CAST( NULL AS SIGNED ) * - ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6005
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST ( NULL AS REAL ) >= + CAST ( NULL AS INTEGER ) * - ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 + - - 67 AS col1 FROM tab2 AS cor0
----
118
134
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6008
SELECT - - CAST( + col1 AS SIGNED ) * + + ( - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-6008
SELECT - - CAST ( + col1 AS INTEGER ) * + + ( - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT + ( - CAST( NULL AS SIGNED ) ) + - col0 + + 26 + ( - col2 ) + + col1 + - ( col1 ) / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - col0 + + 26 + ( - col2 ) + + col1 + - ( col1 ) / + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 6 * - ( - + col2 ) AS col2 FROM tab0
----
282
594
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * + col0 col1 FROM tab2
----
-138
-192
-225

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE ( ( ( NULL ) IS NULL ) )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT + col1 * col0 * - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT + col1 * col0 * - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT - col1 + col2 DIV - col2 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-6014
SELECT - col1 + col2 / - col2 FROM tab1
----
-15
-48
-6

query I rowsort
SELECT ALL 8 + + ( col2 ) FROM tab0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + 52 + + 22 FROM tab1
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 + - 72 + - col2 col2 FROM tab0
----
-175
-212
-264

query I rowsort
SELECT ALL + - 80 * + col1 AS col2 FROM tab2 cor0
----
-4080
-5360
-6160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, + 47 FROM tab1 AS cor0
----
-59
47
-68
47
-96
47

query II rowsort
SELECT - + col0 AS col1, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL - col0 * - - col0 - - col1 FROM tab1
----
-2587
-7220
-8234

query III rowsort
SELECT * FROM tab0 WHERE + ( - - col2 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT col2 - + ( + + col2 ) * + + 1 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( col1 * - col2 ) NOT BETWEEN 34 AND NULL
----
59
68
96

query I rowsort
SELECT + - ( + 16 ) * - 35 AS col0 FROM tab0 AS cor0
----
560
560
560

onlyif mysql # DIV for integer division: 
query I rowsort label-6026
SELECT - 82 * - col2 - 83 DIV ( - + col1 ) AS col1 FROM tab1 AS cor0
----
4854
5577
7877

skipif mysql # not compatible
query I rowsort label-6026
SELECT - 82 * - col2 - 83 / ( - + col1 ) AS col1 FROM tab1 AS cor0
----
4854
5577
7877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6027
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1, 6 FROM tab2 AS cor0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6027
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1, 6 FROM tab2 AS cor0
----
NULL
6

query I rowsort
SELECT DISTINCT 67 * col0 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT 69 * + col2 * - + col1 * + col2 FROM tab1 cor0
----
-1200945
-14995632
-8902656

query I rowsort
SELECT DISTINCT - 25 AS col1 FROM tab0 AS cor0 WHERE col2 + col2 / + + 21 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( - ( + - col2 ) ) + col1 + - 40 * + - col2 NOT BETWEEN NULL AND + 4 / + + 1
----

query II rowsort
SELECT + - col1, - col1 AS col1 FROM tab1 WHERE NOT + 12 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 WHERE - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 92 * + - col2 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT COUNT( ALL - + 62 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6035
SELECT COUNT ( ALL - + 62 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + 86 FROM tab1 WHERE NOT + col1 - 9 + - + col0 * - col2 NOT BETWEEN col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 47 col2 FROM tab1
----
51
47
85
47
91
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + + col1 / - - 8
----

query II rowsort
SELECT ALL 97, + col0 AS col2 FROM tab2
----
97
46
97
64
97
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT DISTINCT - SUM( DISTINCT 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT - SUM ( DISTINCT 62 ) FROM tab1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6041
SELECT ALL 24 DIV - col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL 24 / - col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6042
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - AVG ( DISTINCT + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - AVG ( DISTINCT + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + 32, col0 * col0 AS col0 FROM tab1 AS cor0
----
32
2601
32
7225
32
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6045
SELECT DISTINCT + - col1 * - - CAST( NULL AS SIGNED ) * 61 / + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 73
----

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT + - col1 * - - CAST ( NULL AS INTEGER ) * 61 / + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 73
----

query I rowsort
SELECT ALL + col0 + - 91 * + 26 * + col2 * 72 AS col2 FROM tab1
----
-10050683
-11583845
-16353741

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT DISTINCT ( - col2 ) DIV 54 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT ( - col2 ) / 54 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT + - col0 + - col2 + col0 * - - col1 FROM tab2 AS cor0
----
2277
4824
4892

query I rowsort
SELECT ALL + + col2 + - 45 AS col0 FROM tab2 AS cor0
----
-22
-5
13

query I rowsort
SELECT col0 + + + 84 AS col0 FROM tab0 AS cor0
----
171
181
99

query II rowsort
SELECT - 36, + col2 AS col2 FROM tab0 AS cor0 WHERE ( - 27 ) IS NOT NULL
----
-36
10
-36
47
-36
99

query I rowsort
SELECT ALL + + col2 + - 41 FROM tab1 AS cor0
----
18
27
55

query I rowsort
SELECT - - ( + 43 ) + + 22 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT - - ( - - col0 ) + - 42 AS col2 FROM tab0 AS cor0
----
-27
45
55

query I rowsort
SELECT DISTINCT - col2 + - 16 AS col1 FROM tab1 AS cor0
----
-112
-75
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + col2 col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + + 29 AS col0 FROM tab0 AS cor0 WHERE - 7 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 > NULL
----

query I rowsort
SELECT DISTINCT - ( - 78 ) * - 66 * + col0 FROM tab2 AS cor0
----
-236808
-329472
-386100

query I rowsort
SELECT 95 * - + col0 FROM tab1
----
-4845
-8075
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT 66 + COUNT( * ) * 49 col1 FROM tab1 WHERE + + col2 IS NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6062
SELECT 66 + COUNT ( * ) * 49 col1 FROM tab1 WHERE + + col2 IS NULL
----
66

query II rowsort
SELECT DISTINCT - col2 - 65 + 92 * + col1 * - + 93 AS col1, + col1 + 84 FROM tab0
----
-179751
105
-693148
165
-8720
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6064
SELECT DISTINCT - 54, - 48 DIV - SUM( - col0 ) AS col0 FROM tab2
----
-54
0

skipif mysql # not compatible
query II rowsort label-6064
SELECT DISTINCT - 54, - 48 / - SUM ( - col0 ) AS col0 FROM tab2
----
-54
0

query I rowsort
SELECT 44 * col0 * + + col2 FROM tab2
----
112640
191400
46552

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 65 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT DISTINCT COUNT( ( + 55 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT COUNT ( ( + 55 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL - MIN( - 45 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - MIN ( - 45 ) AS col2 FROM tab0
----
45

query II rowsort
SELECT ALL - col1, ( col1 ) - + col0 AS col2 FROM tab2 AS cor0
----
-51
5
-67
-8
-77
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 27 * 18 col1, ( - - col2 ) * + - col0 AS col0 FROM tab2 AS cor0
----
-486
-1058
-486
-2560
-486
-4350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2 * 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL - SUM( + 70 ) AS col2 FROM tab0 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL - SUM ( + 70 ) AS col2 FROM tab0 cor0
----
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-6073
SELECT ( COUNT( * ) ), + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6073
SELECT ( COUNT ( * ) ), + COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT 21 * - 98 FROM tab0
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT + COUNT( * ) * 18 AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + COUNT ( * ) * 18 AS col1 FROM tab1
----
54

query I rowsort
SELECT + - col0 FROM tab0 WHERE NOT ( col1 BETWEEN NULL AND col1 )
----

query I rowsort
SELECT + + 24 AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= - + ( 65 ) * col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6080
SELECT DISTINCT + 80 * - col2 col1, + ( + + col1 ) / + col1 + + CAST( NULL AS SIGNED ) + + - col2 FROM tab2 AS cor0
----
-1840
NULL
-3200
NULL
-4640
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6080
SELECT DISTINCT + 80 * - col2 col1, + ( + + col1 ) / + col1 + + CAST ( NULL AS INTEGER ) + + - col2 FROM tab2 AS cor0
----
-1840
NULL
-3200
NULL
-4640
NULL

query I rowsort
SELECT + 74 + + 61 FROM tab1
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT 37 * + + MAX( col2 ) FROM tab0
----
3663

skipif mysql # not compatible
query I rowsort label-6082
SELECT 37 * + + MAX ( col2 ) FROM tab0
----
3663

query I rowsort
SELECT 88 * + col0 FROM tab1 WHERE - col2 + - 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL - MAX( DISTINCT - - 74 ) + - 38 FROM tab0 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - MAX ( DISTINCT - - 74 ) + - 38 FROM tab0 AS cor0
----
-112

query I rowsort
SELECT ALL ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6086
SELECT ALL + col2 + - CAST( - col1 AS SIGNED ) * + + col1 + + - 51 FROM tab1 AS cor0
----
2226
241
33

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + col2 + - CAST ( - col1 AS INTEGER ) * + + col1 + + - 51 FROM tab1 AS cor0
----
2226
241
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT COUNT( * ) - + 7 - + + COUNT( * ) + 24 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT COUNT ( * ) - + 7 - + + COUNT ( * ) + 24 FROM tab2
----
17

query I rowsort
SELECT ALL col2 * - col1 - + - col0 + - - col1 AS col1 FROM tab1
----
-1279
-205
-3058

query I rowsort
SELECT DISTINCT - ( + col2 ) + 52 + - + 59 AS col0 FROM tab0 AS cor0
----
-106
-17
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6091
SELECT ( - - col0 ) AS col0, col1 + CAST( NULL AS DECIMAL ) + - 74 * 96 col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6091
SELECT ( - - col0 ) AS col0, col1 + CAST ( NULL AS REAL ) + - 74 * 96 col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + col2 * + + 66 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 9 - - 64 * + col0 * + 78 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - SUM( - 34 ) AS col2 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-6094
SELECT - SUM ( - 34 ) AS col2 FROM tab2 AS cor0
----
102

query I rowsort
SELECT + 57 * 84 + - 32 + + col0 FROM tab1 AS cor0
----
4807
4841
4847

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT + 28 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-6096
SELECT + 28 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 30 col2, col2 + + + col1 AS col2 FROM tab1
----
30
110
30
115
30
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 12 + + 75 / + col2 NOT BETWEEN NULL AND - - col2 * col0 / - 88 * + col0 + - 28 * + col0 * + - col1 * + - 30 + - + 93 * col1 / + 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 47, col0 * - col2 col0 FROM tab0
----
47
-705
47
-870
47
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-6100
SELECT COUNT( DISTINCT col2 ) col2, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6100
SELECT COUNT ( DISTINCT col2 ) col2, + COUNT ( * ) FROM tab2
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col2 FROM tab1
----
19
19
19

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col0 * col1
----

query II rowsort
SELECT + col1, - col0 AS col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query II rowsort
SELECT col0, + col1 FROM tab0 cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE col2 + 73 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE col2 + 73 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + SUM( - - col2 ) + + + COUNT( * ) col2 FROM tab2
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6106
SELECT + SUM ( - - col2 ) + + + COUNT ( * ) col2 FROM tab2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT ( - col2 ) + - col1 DIV col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6107
SELECT ( - col2 ) + - col1 / col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT + 19 + - 22, - 31 AS col1 FROM tab2 AS cor0
----
-3
-31
-3
-31
-3
-31

query I rowsort
SELECT - col2 + + col1 - - - 69 * - col2 AS col0 FROM tab0 AS cor0
----
3277
6733
701

query II rowsort
SELECT col1 + - + col0 AS col1, col0 * - 19 AS col2 FROM tab1 cor0
----
-37
-969
-44
-1729
-80
-1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT DISTINCT - - col0 + + ( - CAST( + col0 AS SIGNED ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT - - col0 + + ( - CAST ( + col0 AS INTEGER ) ) FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - - 57 BETWEEN + - 35 + - 70 * - + 49 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 IS NULL
----

query I rowsort
SELECT DISTINCT 76 - + col0 FROM tab1
----
-15
-9
25

query I rowsort
SELECT DISTINCT + col2 + + - 77 FROM tab0
----
-30
-67
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT ALL COUNT( * ) * + ( + - COUNT( * ) ) AS col2, - COUNT( * ) AS col1 FROM tab2
----
-9
-3

skipif mysql # not compatible
query II rowsort label-6116
SELECT ALL COUNT ( * ) * + ( + - COUNT ( * ) ) AS col2, - COUNT ( * ) AS col1 FROM tab2
----
-9
-3

query I rowsort
SELECT - 91 * - col2 AS col0 FROM tab1
----
5369
6188
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT COUNT( * ) AS col1 FROM tab1 WHERE - 74 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6118
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE - 74 IS NOT NULL
----
3

query II rowsort
SELECT - col1 + + 61 AS col0, - 67 * + 18 AS col1 FROM tab1 WHERE NULL IS NULL
----
14
-1206
47
-1206
56
-1206

query I rowsort
SELECT DISTINCT ( + + 78 ) - - col2 AS col1 FROM tab2
----
101
118
136

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT 51 * - ( col1 ) AS col2 FROM tab2
----
-2601
-3417
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT + 93 * - + MAX( col2 ) AS col2 FROM tab0 cor0
----
-9207

skipif mysql # not compatible
query I rowsort label-6123
SELECT + 93 * - + MAX ( col2 ) AS col2 FROM tab0 cor0
----
-9207

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 > - ( + - 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 39 AS col1 FROM tab1 AS cor0 WHERE NOT + 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( 47 )
----

query I rowsort
SELECT ALL 68 + col0 FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 91 > 46 * - 62
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 22 > NULL
----

query I rowsort
SELECT + col2 + + 27 FROM tab0
----
126
37
74

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 * + col2 FROM tab1
----
-630
1081
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT MIN( - col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT MIN ( - col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col2 - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT COUNT( * ) + 98 AS col0 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT COUNT ( * ) + 98 AS col0 FROM tab0
----
101

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / - 85 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 34 col0 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT - COUNT( ( CAST( col2 AS SIGNED ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6139
SELECT - COUNT ( ( CAST ( col2 AS INTEGER ) ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL 96 FROM tab2 WHERE ( + 41 * - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT 84 + - COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6141
SELECT 84 + - COUNT ( * ) FROM tab2
----
81

query I rowsort
SELECT ALL + col0 + + col1 AS col2 FROM tab1 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT + 51 + + MAX( DISTINCT col1 + + col1 ) AS col1 FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT + 51 + + MAX ( DISTINCT col1 + + col1 ) AS col1 FROM tab1
----
145

query I rowsort
SELECT - 95 AS col0 FROM tab1 WHERE NULL IS NULL
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL - SUM( 11 ) AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - SUM ( 11 ) AS col1 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + ( 53 ) * - 64 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + ( 53 ) * - 64 AND col2
----
0

query I rowsort
SELECT - 4 + col1 AS col0 FROM tab2
----
47
63
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT + col2 + ( col2 - + col2 ) DIV - col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6148
SELECT + col2 + ( col2 - + col2 ) / - col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT + COUNT( + 87 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6149
SELECT + COUNT ( + 87 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col0 = NULL
----

query I rowsort
SELECT DISTINCT + col0 / + ( 54 ) + col0 AS col2 FROM tab0 WHERE NOT - col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT DISTINCT ( COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT ( COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 * - col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT + COUNT( * ) + SUM( ALL 28 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6154
SELECT + COUNT ( * ) + SUM ( ALL 28 ) FROM tab0 AS cor0
----
87

query I rowsort
SELECT ALL + col2 + col0 FROM tab2 AS cor0 WHERE ( - col2 + col1 ) NOT BETWEEN + 72 AND + col0
----
104
133
69

query I rowsort
SELECT ALL + col2 + col1 * + 15 AS col0 FROM tab1 AS cor0
----
134
306
773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT DISTINCT 86 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT 86 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 93 - col1 FROM tab0
----
12
72
92

query I rowsort
SELECT ALL + 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query III rowsort
SELECT * FROM tab0 WHERE ( + 49 ) BETWEEN NULL AND ( 11 * - col0 + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6161
SELECT DISTINCT COUNT( - 28 ) DIV - 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT COUNT ( - 28 ) / - 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT + col0 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN 24 + - 25 * - CAST( + col1 + - 41 * - col1 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6162
SELECT + col0 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN 24 + - 25 * - CAST ( + col1 + - 41 * - col1 AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT + col1 - + 47 FROM tab1 AS cor0
----
-33
-42
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 7 + - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - col2 AND col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - COUNT( + col1 ) AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6166
SELECT - COUNT ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT + col2 + - col1 * + col2 FROM tab0 AS cor0 WHERE + 66 IS NOT NULL
----
-200
-3760
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 79 col0 FROM tab1 AS cor0
----
126
84
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * - 73 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 48 + - 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 0 + - 45 FROM tab0 cor0 WHERE + 10 - col2 IS NULL
----

query I rowsort
SELECT - + col1 + 68 FROM tab1 AS cor0
----
21
54
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT DISTINCT - ( col1 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - 34 - col0 * col2 AS col1 FROM tab2 AS cor0
----
-2072
58
676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6175
SELECT col0 * CAST( NULL AS SIGNED ) + 9 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT col0 * CAST ( NULL AS INTEGER ) + 9 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT - - col0 + ( + col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT - - col1 DIV col2 + + col2 AS col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-6178
SELECT - - col1 / col2 + + col2 AS col2 FROM tab0 AS cor0
----
12
48
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col2 ) * - 57 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6180
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1 WHERE ( + 77 + + 80 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1 WHERE ( + 77 + + 80 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 74 col0 FROM tab1
----
-27
-60
-69

query I rowsort
SELECT DISTINCT + ( 69 ) AS col2 FROM tab1 WHERE 15 - + col1 IS NOT NULL
----
69

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab1 WHERE ( NULL ) BETWEEN - col1 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT + COUNT( * ) * 43 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + COUNT ( * ) * 43 FROM tab2
----
129

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) = NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND col1 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT DISTINCT - 87 * - COUNT( * ) * 69 AS col0 FROM tab2
----
18009

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT - 87 * - COUNT ( * ) * 69 AS col0 FROM tab2
----
18009

query III rowsort
SELECT * FROM tab2 WHERE NOT + 44 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT ALL ( CAST( ( - col2 ) AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL ( CAST ( ( - col2 ) AS INTEGER ) ) FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 67 col2 FROM tab0 AS cor0
----
-1407
-5427
-67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <> col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + - 51 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

skipif mysql # not compatible
query I rowsort label-6193
SELECT + - 51 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

query I rowsort
SELECT ALL - 66 FROM tab2 WHERE + col1 * - col1 + 20 NOT BETWEEN 68 AND col1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6195
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) * 72 FROM tab0
----
3
216

skipif mysql # not compatible
query II rowsort label-6195
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * 72 FROM tab0
----
3
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6196
SELECT - - col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT - - col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 84 FROM tab1 cor0 WHERE + 70 + + 55 > NULL
----

query I rowsort
SELECT ALL col2 + col0 + 17 AS col0 FROM tab1 AS cor0
----
161
164
176

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 65 ) NOT IN ( + col1 * - 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 98 AS col1, 6 + + - col2 FROM tab1 AS cor0
----
98
-53
98
-62
98
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL + COUNT( DISTINCT + + CAST( + - CAST( col0 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + COUNT ( DISTINCT + + CAST ( + - CAST ( col0 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 + - col0 ) IN ( - col1 - col2 * - col1 )
----

query I rowsort
SELECT + col0 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-2550
-7140
-8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL = + CAST( + ( col0 ) AS SIGNED ) + col2 * ( col0 * - ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-6204
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL = + CAST ( + ( col0 ) AS INTEGER ) + col2 * ( col0 * - ( col2 ) )
----

query II rowsort
SELECT DISTINCT + col2, - col1 + - col1 + + 96 FROM tab1 AS cor0
----
59
86
68
2
96
68

query I rowsort
SELECT ALL col0 * + col2 FROM tab0 WHERE NOT col2 + - 78 IS NULL
----
705
870
9603

query II rowsort
SELECT DISTINCT 39 * - - 40, col2 FROM tab0
----
1560
10
1560
47
1560
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6208
SELECT + col1 DIV 97 AS col2, - col2 * + col1 FROM tab0
----
0
-210
0
-3807
0
-99

skipif mysql # not compatible
query II rowsort label-6208
SELECT + col1 / 97 AS col2, - col2 * + col1 FROM tab0
----
0
-210
0
-3807
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT MIN( + col1 ) * - MAX( ALL - ( - 12 ) ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6209
SELECT MIN ( + col1 ) * - MAX ( ALL - ( - 12 ) ) FROM tab1
----
-60

query I rowsort
SELECT ALL - col0 + col2 * 25 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1390
1609
2349

query I rowsort
SELECT DISTINCT ( - 47 ) AS col0 FROM tab0 AS cor0 WHERE - col2 * + ( + + col1 ) > col1
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE - 13 < 60 + 51
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL + COUNT( * ) - + COUNT( * ) * - + 70 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + COUNT ( * ) - + COUNT ( * ) * - + 70 FROM tab1
----
213

query I rowsort
SELECT + + 84 AS col2 FROM tab2 cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6215
SELECT DISTINCT + col2 * ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( + - ( - 59 ) AS SIGNED ) NOT IN ( + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT + col2 * ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( + - ( - 59 ) AS INTEGER ) NOT IN ( + - CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col1 + col0
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col2 * - + 46 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT + ( - col1 ) DIV - + 6 AS col2 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-6220
SELECT + ( - col1 ) / - + 6 AS col2 FROM tab1 AS cor0
----
0
2
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col1 FROM tab0 AS cor0 WHERE 54 IS NULL
----

query I rowsort
SELECT ALL col0 + + 0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > ( + col1 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT ALL - + CAST( - - col0 AS SIGNED ) + - - 12 AS col1 FROM tab1 AS cor0
----
-39
-73
-79

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL - + CAST ( - - col0 AS INTEGER ) + - - 12 AS col1 FROM tab1 AS cor0
----
-39
-73
-79

query III rowsort
SELECT * FROM tab2 WHERE NOT + 22 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT - MAX( + + 55 ) col2 FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6225
SELECT DISTINCT - MAX ( + + 55 ) col2 FROM tab2 WHERE + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT COUNT( - - 92 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6226
SELECT COUNT ( - - 92 ) FROM tab1
----
3

query I rowsort
SELECT ALL - 21 * 43 AS col1 FROM tab0
----
-903
-903
-903

query III rowsort
SELECT ALL * FROM tab1 WHERE - 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT ALL + ( - CAST( - ( + + col2 ) AS SIGNED ) ) * - - 19 FROM tab1
----
1121
1292
1824

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + ( - CAST ( - ( + + col2 ) AS INTEGER ) ) * - - 19 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL - 14 + + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE ( + 29 * - col2 BETWEEN NULL AND NULL )
----
-14

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - 14 + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE ( + 29 * - col2 BETWEEN NULL AND NULL )
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6232
SELECT DISTINCT col0 * 5 AS col2, CAST( NULL AS DECIMAL ) col2 FROM tab0
----
435
NULL
485
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6232
SELECT DISTINCT col0 * 5 AS col2, CAST ( NULL AS REAL ) col2 FROM tab0
----
435
NULL
485
NULL
75
NULL

query I rowsort
SELECT + col1 * - 46 AS col0 FROM tab1
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6234
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT MAX( - 43 ) AS col1 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6235
SELECT MAX ( - 43 ) AS col1 FROM tab0 AS cor0
----
-43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> NULL OR NOT - - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 23 * 81 FROM tab1 AS cor0
----
-1863
-1863
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-6238
SELECT + - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( 75 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - + col1 * - ( + - 46 ) AS col2 FROM tab1 AS cor0
----
-2162
-230
-644

query I rowsort
SELECT DISTINCT + 10 + + - col1 FROM tab2 AS cor0
----
-41
-57
-67

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT ( + 39 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 * + col0 + - 85 FROM tab0 AS cor0 WHERE NOT + col0 + 72 * - + 8 NOT BETWEEN - col2 AND + col0 * - - ( col0 ) - col2
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT - - 16 * + + MIN( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-928

skipif mysql # not compatible
query I rowsort label-6246
SELECT - - 16 * + + MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-928

query II rowsort
SELECT ALL - col1 * - - col2 AS col1, + col2 + + + 33 FROM tab2 AS cor0
----
-1173
56
-3080
73
-3886
91

query I rowsort
SELECT + col1 * + col1 * + + 31 * + + col0 AS col1 FROM tab2
----
10436925
11763136
3709026

query I rowsort
SELECT ALL col0 + + 92 * + 47 FROM tab2
----
4370
4388
4399

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT ALL + 94 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + 94 / + col2 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 84 col2 FROM tab1
----
131
89
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6252
SELECT * FROM tab0 WHERE - - CAST( - col2 AS SIGNED ) * - 31 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6252
SELECT * FROM tab0 WHERE - - CAST ( - col2 AS INTEGER ) * - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT DISTINCT SUM( + 93 ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT SUM ( + 93 ) FROM tab0
----
279

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 69 - 7 + - col2 * + col0 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6255
SELECT DISTINCT col0, CAST( + + col2 AS SIGNED ) * - col1 + col0 DIV col1 FROM tab2 WHERE NOT - col1 BETWEEN - - 63 AND - 55
----
46
-1173
64
-3080
75
-3885

skipif mysql # not compatible
query II rowsort label-6255
SELECT DISTINCT col0, CAST ( + + col2 AS INTEGER ) * - col1 + col0 / col1 FROM tab2 WHERE NOT - col1 BETWEEN - - 63 AND - 55
----
46
-1173
64
-3080
75
-3885

query I rowsort
SELECT ALL - col2 + - 74 AS col2 FROM tab0
----
-121
-173
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + + col0 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6258
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - 20 / - CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6258
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - 20 / - CAST ( col2 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT 30 * + COUNT( * ) AS col2, - MIN( + - 96 ) FROM tab1 cor0 WHERE col1 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6259
SELECT 30 * + COUNT ( * ) AS col2, - MIN ( + - 96 ) FROM tab1 cor0 WHERE col1 IS NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT 81 + + 33 DIV - col0 FROM tab2 cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-6260
SELECT 81 + + 33 / - col0 FROM tab2 cor0
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 24 IS NOT NULL
----

query I rowsort
SELECT ALL + 25 + col1 - + - 18 * - + 54 FROM tab2 AS cor0
----
-870
-880
-896

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6263
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - - col1 + - col0 AS col2, col1 + - - col1 FROM tab0 AS cor0
----
NULL
162
NULL
2
NULL
42

skipif mysql # not compatible
query II rowsort label-6263
SELECT DISTINCT + CAST ( NULL AS REAL ) - - col1 + - col0 AS col2, col1 + - - col1 FROM tab0 AS cor0
----
NULL
162
NULL
2
NULL
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT DISTINCT - ( + col2 ) * + - col0 + - col1 * - + col0 - - col2 DIV 8 FROM tab1 AS cor0
----
10473
5447
5622

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT - ( + col2 ) * + - col0 + - col1 * - + col0 - - col2 / 8 FROM tab1 AS cor0
----
10473
5447
5622

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6265
SELECT DISTINCT 76 - CAST( NULL AS SIGNED ) AS col0, col1 - - col2 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-6265
SELECT DISTINCT 76 - CAST ( NULL AS INTEGER ) AS col0, col1 - - col2 FROM tab2
----
NULL
117
NULL
125
NULL
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT ALL 60 - + col0 + + col2 + + + col1 DIV - col1 col2 FROM tab1
----
104
33
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6266
SELECT ALL 60 - + col0 + + col2 + + + col1 / - col1 col2 FROM tab1
----
104
33
36

query I rowsort
SELECT - 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - - 7 >= + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT ALL - COUNT( * ) AS col1, + 51 col0 FROM tab2 AS cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----
0
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6269
SELECT ALL - COUNT ( * ) AS col1, + 51 col0 FROM tab2 AS cor0 WHERE NOT ( + + col0 ) IS NOT NULL
----
0
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT COUNT( + + col1 ) * + ( - MAX( ALL - - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT COUNT ( + + col1 ) * + ( - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 53 FROM tab1 cor0
----
-53
-53
-53

query I rowsort
SELECT - - 54 FROM tab0 cor0
----
54
54
54

query II rowsort
SELECT col2 * - - col2 / + col1, col0 - + 72 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT - COUNT( * ) AS col0, + 51 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0
51

skipif mysql # not compatible
query II rowsort label-6274
SELECT - COUNT ( * ) AS col0, + 51 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 54 AS col1, - ( - col2 ) AS col2 FROM tab0
----
-54
10
-54
47
-54
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 69 col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT 89 + - col1 FROM tab1 AS cor0
----
42
75
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col2 * col2 + col0 )
----

query III rowsort
SELECT DISTINCT 62, col2 AS col2, - - col1 - + + 26 AS col2 FROM tab0
----
9 values hashing to c82076f1e6e34701f7f85d3034d3b72c

query I rowsort
SELECT DISTINCT - 55 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-55

query I rowsort
SELECT DISTINCT + col1 * col0 * + col1 AS col0 FROM tab0
----
38367
97
98415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT + - col0 * col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT + - col0 * col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + 84 ) + col2 AS col0 FROM tab0 AS cor0
----
131
183
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT + 42 / ( - - col2 ) - col2 + - CAST( NULL AS SIGNED ) * 96 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT + 42 / ( - - col2 ) - col2 + - CAST ( NULL AS INTEGER ) * 96 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + 55
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6288
SELECT - - col2 - col1 - + col1 + - 18 * 62 FROM tab2 AS cor0 WHERE NULL <> - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6288
SELECT - - col2 - col1 - + col1 + - 18 * 62 FROM tab2 AS cor0 WHERE NULL <> - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE + col2 * - - col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 9 - 84 FROM tab0 WHERE NOT - 20 IS NULL
----
-75

query II rowsort
SELECT col1 * 99 AS col0, col1 FROM tab2
----
5049
51
6633
67
7623
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT + - MAX( + 74 ) AS col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6292
SELECT + - MAX ( + 74 ) AS col2 FROM tab2 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT + + 35 DIV - 8 - - + 61 + col1 FROM tab2 AS cor0
----
108
124
134

skipif mysql # not compatible
query I rowsort label-6293
SELECT + + 35 / - 8 - - + 61 + col1 FROM tab2 AS cor0
----
108
124
134

query I rowsort
SELECT DISTINCT + - col2 + - col2 + - - 18 + + col0 + - col2 * + + 62 FROM tab0 AS cor0
----
-2975
-535
-6221

query I rowsort
SELECT DISTINCT + + 96 * + + col0 FROM tab1 cor0
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * ( - 36 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * ( - 36 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 21 AS col2, - col1 col1 FROM tab0 cor0
----
-21
-1
-21
-21
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT 79 AS col2, ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
79
3

skipif mysql # not compatible
query II rowsort label-6300
SELECT 79 AS col2, ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
79
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT COUNT( * ) - + 77 + - - 34 * + 16 FROM tab2 AS cor0 WHERE NOT col1 - - 38 / 76 NOT IN ( CAST( + col0 AS SIGNED ) )
----
467

skipif mysql # not compatible
query I rowsort label-6301
SELECT COUNT ( * ) - + 77 + - - 34 * + 16 FROM tab2 AS cor0 WHERE NOT col1 - - 38 / 76 NOT IN ( CAST ( + col0 AS INTEGER ) )
----
467

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 IN ( ( - 37 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 8, col1 AS col2 FROM tab0 cor0
----
8
1
8
21
8
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + 81 * + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6305
SELECT - CAST( - 80 AS SIGNED ) DIV - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6305
SELECT - CAST ( - 80 AS INTEGER ) / - col2 FROM tab2
----
-1
-2
-3

query II rowsort
SELECT col0 * - - col2 AS col0, + col2 AS col0 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT ALL - 26 * + col0 AS col2 FROM tab0
----
-2262
-2522
-390

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= col0 + - - ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT MAX( - + 54 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT MAX ( - + 54 ) FROM tab2
----
-54

query I rowsort
SELECT + + 75 + - col1 FROM tab0 AS cor0
----
-6
54
74

query I rowsort
SELECT - + col2 + - + col0 + - - 26 FROM tab0 AS cor0
----
-170
-36
-71

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 70 + + col1 AS col2 FROM tab1 cor0
----
-23
-56
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6314
SELECT - CAST( + 26 AS SIGNED ) AS col2 FROM tab0 cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-6314
SELECT - CAST ( + 26 AS INTEGER ) AS col2 FROM tab0 cor0
----
-26
-26
-26

query I rowsort
SELECT ALL + 61 + + - col1 AS col1 FROM tab0 AS cor0
----
-20
40
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT DISTINCT - col1 DIV + ( - + col1 ) - + 3 + - col2 FROM tab2 AS cor0
----
-25
-42
-60

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - col1 / + ( - + col1 ) - + 3 + - col2 FROM tab2 AS cor0
----
-25
-42
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT ALL + 67 + - COUNT( * ), - 77 col0 FROM tab1
----
64
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6317
SELECT ALL + 67 + - COUNT ( * ), - 77 col0 FROM tab1
----
64
-77

query I rowsort
SELECT - col2 + + col2 - + + col1 AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + col2 * + - 19 * - 6 + col1 * - col0 AS col1 FROM tab1
----
10230
3475
6301

onlyif mysql # aggregate syntax: 
query II rowsort label-6320
SELECT ALL COUNT( DISTINCT + col0 ) AS col2, + 49 FROM tab2
----
3
49

skipif mysql # not compatible
query II rowsort label-6320
SELECT ALL COUNT ( DISTINCT + col0 ) AS col2, + 49 FROM tab2
----
3
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - 57 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + COUNT( * ) * - 96 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6322
SELECT + COUNT ( * ) * - 96 FROM tab0 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT - 93 * - 66 + + MIN( - col2 ) - MIN( ALL col1 ) * + 82 + + 77 FROM tab0 AS cor0
----
6034

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT - 93 * - 66 + + MIN ( - col2 ) - MIN ( ALL col1 ) * + 82 + + 77 FROM tab0 AS cor0
----
6034

query III rowsort
SELECT ALL * FROM tab2 WHERE - 78 > NULL
----

query I rowsort
SELECT ALL - 26 * + + 17 + - col2 FROM tab0 AS cor0
----
-452
-489
-541

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT + col2 * + col1 < + col2 * - - col2
----
10
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6327
SELECT + 89 DIV + COUNT( * ) col2, - COUNT( * ) DIV + COUNT( * ) col0 FROM tab2 AS cor0
----
29
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6327
SELECT + 89 / + COUNT ( * ) col2, - COUNT ( * ) / + COUNT ( * ) col0 FROM tab2 AS cor0
----
29
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT - + col2 DIV 64 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - + col2 / 64 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ( - 27 ) FROM tab0 AS cor0
----
-27
-27
-27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + col0 - col0
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col0 col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN col1 AND - + col2 * 87
----
0

skipif mysql # not compatible
query I rowsort label-6333
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN col1 AND - + col2 * 87
----
0

query II rowsort
SELECT 19, - col2 AS col2 FROM tab2
----
19
-23
19
-40
19
-58

query II rowsort
SELECT col1, col2 + - - ( - 64 ) AS col0 FROM tab0 AS cor0
----
1
35
21
-54
81
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 30 * - - col1 * col2 * - + col2 IS NOT NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - ( - + col2 ) * - col1 AS col2 FROM tab0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + COUNT( * ) + - + COUNT( ( + 81 ) ) * + - COUNT( * ) + + - 84 AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6339
SELECT + COUNT ( * ) + - + COUNT ( ( + 81 ) ) * + - COUNT ( * ) + + - 84 AS col2 FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6340
SELECT + col2 + - col2 AS col2, + col1 - + col1 * - CAST( NULL AS SIGNED ) / col2 col2 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6340
SELECT + col2 + - col2 AS col2, + col1 - + col1 * - CAST ( NULL AS INTEGER ) / col2 col2 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT + 33 + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT + 33 + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 61 + - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6343
SELECT ALL ( + - 85 ) AS col2, - col1 * + 71 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE col0 * - col2 + + col2 / 82 < ( NULL )
----

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL ( + - 85 ) AS col2, - col1 * + 71 + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE col0 * - col2 + + col2 / 82 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT - COUNT( * ) - + 50 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT - COUNT ( * ) - + 50 FROM tab2 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT ALL col2 - + col2 DIV - col1 AS col1 FROM tab1
----
102
69
70

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL col2 - + col2 / - col1 AS col1 FROM tab1
----
102
69
70

query I rowsort
SELECT DISTINCT 92 * - ( - + col2 ) FROM tab2
----
2116
3680
5336

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0, + col0 * + 99 * - + col0 )
----

query I rowsort
SELECT col1 - - - col0 + + col1 + - + 93 + + col1 * + + col2 * + - col0 FROM tab2
----
-197123
-291484
-53995

query I rowsort
SELECT + col2 - - 44 AS col1 FROM tab2
----
102
67
84

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + + col2 AND + col0
----

query I rowsort
SELECT DISTINCT col0 + + - 93 * col0 * + col1 + col2 FROM tab0 AS cor0
----
-112933
-169814
-8825

query I rowsort
SELECT + 41 FROM tab2 AS cor0 WHERE + ( + + col0 ) IS NOT NULL
----
41
41
41

query I rowsort
SELECT DISTINCT - + ( 91 ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT ALL + 22 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT + CAST( NULL AS SIGNED ) * 53 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT + CAST ( NULL AS INTEGER ) * 53 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - 49 ) FROM tab1
----
49
49
49

query I rowsort
SELECT DISTINCT col0 * col0 - - col2 FROM tab0 cor0
----
272
7579
9508

query II rowsort
SELECT DISTINCT - - 78, col1 AS col0 FROM tab2 AS cor0
----
78
51
78
67
78
77

query I rowsort
SELECT col1 * col0 + col1 FROM tab2 AS cor0 WHERE NOT 94 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND + col2 + + 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6361
SELECT 21 DIV - 27 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT 21 / - 27 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL 80, 40 AS col1 FROM tab2 AS cor0
----
80
40
80
40
80
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - - ( 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT col1 DIV + 3 col2 FROM tab2
----
17
22
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6364
SELECT col1 / + 3 col2 FROM tab2
----
17
22
25

query I rowsort
SELECT ALL + 55 * + col0 AS col2 FROM tab0
----
4785
5335
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 2 col2 FROM tab1 WHERE NULL IS NULL
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * 78 col1 FROM tab0
----
-7488
-7488
-7488

query I rowsort
SELECT 94 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
94
94
94

query I rowsort
SELECT + col0 * + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4896
5015
6188

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + 82 - - + col2 NOT BETWEEN NULL AND 60
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT ALL + + 62 + + ( col1 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL + + 62 + + ( col1 ) / - col1 AS col1 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT + 27 + + + COUNT( - 8 ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6372
SELECT + 27 + + + COUNT ( - 8 ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT + 98 * - - 45 FROM tab1 AS cor0
----
4410
4410
4410

query I rowsort
SELECT + 17 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT 46 - - COUNT( * ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6375
SELECT 46 - - COUNT ( * ) FROM tab0 AS cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND col0 BETWEEN NULL AND 6
----

query I rowsort
SELECT DISTINCT - col0 + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - + col1 + + - col0 * col2 * + col1 FROM tab0 AS cor0
----
-18291
-57186
-9604

query I rowsort
SELECT 97 + - 85 + col1 * + - col1 AS col2 FROM tab1 cor0
----
-13
-184
-2197

query I rowsort
SELECT + col1 + - + col1 + + 20 AS col0 FROM tab0
----
20
20
20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) BETWEEN - 92 * + 96 AND + col1
----
97
1
99

query I rowsort
SELECT + 88 * col0 * 12 AS col0 FROM tab1 cor0
----
53856
89760
96096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6383
SELECT ALL CAST( ( - + col1 ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL CAST ( ( - + col1 ) AS INTEGER ) FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT DISTINCT CAST( - + col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT SUM( + CAST( - 71 AS SIGNED ) ) col0 FROM tab0
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6386
SELECT SUM ( + CAST ( - 71 AS INTEGER ) ) col0 FROM tab0
----
-213

query I rowsort
SELECT + 74 * - col1 * 21 + + 39 FROM tab2 AS cor0
----
-104079
-119619
-79215

query I rowsort
SELECT ALL col2 * - - 76 FROM tab1 AS cor0
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT + + ( + MIN( + col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + + ( + MIN ( + col1 ) ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - col2 + 80 * col2 * - + 79 - - - 52 <= col1 + col1
----

query I rowsort
SELECT + col1 + 2 AS col1 FROM tab2 cor0
----
53
69
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT ALL + col2 + col0 + - 27 * - col1 + + col0 DIV + col2 FROM tab0
----
223
2249
672

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + col2 + col0 + - 27 * - col1 + + col0 / + col2 FROM tab0
----
223
2249
672

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 93 + - + 47 AS col1 FROM tab2
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT - COUNT( * ) * + + MAX( col0 ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT - COUNT ( * ) * + + MAX ( col0 ) AS col0 FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - + MIN( DISTINCT - 39 ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6397
SELECT - + MIN ( DISTINCT - 39 ) FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6398
SELECT DISTINCT + MAX( DISTINCT + col1 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT + MAX ( DISTINCT + col1 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT - 30 * + COUNT( * ) * + MAX( ALL + + CAST( + col0 AS SIGNED ) ) FROM tab0 cor0
----
-8730

skipif mysql # not compatible
query I rowsort label-6399
SELECT - 30 * + COUNT ( * ) * + MAX ( ALL + + CAST ( + col0 AS INTEGER ) ) FROM tab0 cor0
----
-8730

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT - MAX( + 0 ), - COUNT( DISTINCT + 18 ) col0 FROM tab2 AS cor0
----
0
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6400
SELECT - MAX ( + 0 ), - COUNT ( DISTINCT + 18 ) col0 FROM tab2 AS cor0
----
0
-1

query I rowsort
SELECT ALL 94 * col0 + - 85 + + + col1 - 38 - + col0 FROM tab2 AS cor0 WHERE 14 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, col1 col1 FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT + col1, + 19 AS col2 FROM tab0
----
1
19
21
19
81
19

query II rowsort
SELECT + col2, - col0 * - 66 AS col0 FROM tab1 cor0
----
59
5610
68
6006
96
3366

query II rowsort
SELECT ALL - col2 AS col1, 76 * + col2 AS col0 FROM tab2 cor0
----
-23
1748
-40
3040
-58
4408

query I rowsort
SELECT ALL - ( + - 52 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6408
SELECT - + CAST( + + MIN( + col0 ) AS SIGNED ) - - 81 AS col0 FROM tab0 cor0 WHERE NOT col1 * 83 * + - col2 <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT - + CAST ( + + MIN ( + col0 ) AS INTEGER ) - - 81 AS col0 FROM tab0 cor0 WHERE NOT col1 * 83 * + - col2 <= col2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 73 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT + - col2 DIV - ( + col0 ) FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6410
SELECT + - col2 / - ( + col0 ) FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT + AVG ( + 14 ) FROM tab2 cor0 WHERE NOT - 98 + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 90 * - col0 AS col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT SUM( DISTINCT - + col1 ) * - COUNT( * ) - + + COUNT( * ) FROM tab0
----
306

skipif mysql # not compatible
query I rowsort label-6413
SELECT SUM ( DISTINCT - + col1 ) * - COUNT ( * ) - + + COUNT ( * ) FROM tab0
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT ALL + CAST( 6 AS SIGNED ) FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + CAST ( 6 AS INTEGER ) FROM tab0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT + - 38 * + CAST( - - 59 AS SIGNED ) FROM tab0 WHERE ( NOT - 22 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-6415
SELECT + - 38 * + CAST ( - - 59 AS INTEGER ) FROM tab0 WHERE ( NOT - 22 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6416
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - CAST( col0 AS SIGNED ) FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-6416
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - CAST ( col0 AS INTEGER ) FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT * FROM tab2 WHERE + col2 * 45 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT col1 DIV - - 78 + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6418
SELECT col1 / - - 78 + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - 78 + - col1 FROM tab1 AS cor0
----
-125
-83
-92

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT - MAX( ALL - - ( - col0 ) ) AS col1 FROM tab2 WHERE ( + col2 ) NOT BETWEEN - 83 AND + col0 + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT - MAX ( ALL - - ( - col0 ) ) AS col1 FROM tab2 WHERE ( + col2 ) NOT BETWEEN - 83 AND + col0 + - 4
----
NULL

query I rowsort
SELECT DISTINCT - col1 + 9 AS col2 FROM tab0 AS cor0 WHERE NOT 21 IS NOT NULL
----

query I rowsort
SELECT - col1 + 49 * - col1 * + ( + col2 ) + 9 AS col2 FROM tab1 AS cor0
----
-14451
-156642
-65861

query I rowsort
SELECT DISTINCT - - col1 + + + col2 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6425
SELECT + MAX( ALL + ( - + 50 ) ) + + COUNT( * ) DIV - 23 col2 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6425
SELECT + MAX ( ALL + ( - + 50 ) ) + + COUNT ( * ) / - 23 col2 FROM tab2 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-6426
SELECT DISTINCT col0 DIV + col2, col2 FROM tab1 AS cor0
----
0
96
1
59
1
68

skipif mysql # not compatible
query II rowsort label-6426
SELECT DISTINCT col0 / + col2, col2 FROM tab1 AS cor0
----
0
96
1
59
1
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6427
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL <> ( - CAST( + col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6427
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL <> ( - CAST ( + col0 AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NOT NULL <= - col1 - - - col0
----

query I rowsort
SELECT ALL + col0 * - 24 FROM tab0
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT + 94 * + 11 * + COUNT( * ) FROM tab2
----
3102

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT + 94 * + 11 * + COUNT ( * ) FROM tab2
----
3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT COUNT( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NOT col0 * 78 * + 81 * - CAST( NULL AS SIGNED ) * + col0 < ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT COUNT ( DISTINCT + col0 ) AS col0 FROM tab0 WHERE NOT col0 * 78 * + 81 * - CAST ( NULL AS INTEGER ) * + col0 < ( - col0 )
----
0

query I rowsort
SELECT - col2 * - + 10 FROM tab0 AS cor0
----
100
470
990

onlyif mysql # DIV for integer division: 
query II rowsort label-6433
SELECT ALL col0 DIV - + col1, col1 FROM tab2 AS cor0
----
-1
67
0
51
0
77

skipif mysql # not compatible
query II rowsort label-6433
SELECT ALL col0 / - + col1, col1 FROM tab2 AS cor0
----
-1
67
0
51
0
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT ALL + - COUNT( * ) DIV + 24 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL + - COUNT ( * ) / + 24 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col2
----

query I rowsort
SELECT ALL - col2 - - 74 * + 80 FROM tab1 AS cor0 WHERE col0 * - 13 + + 47 IS NULL
----

query I rowsort
SELECT DISTINCT - 25 * - 32 + 19 + - col2 AS col1 FROM tab1 AS cor0
----
723
751
760

query I rowsort
SELECT ALL - col2 + + + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT - MIN( - 85 ) AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT - MIN ( - 85 ) AS col2 FROM tab2 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT + CAST( - ( + - col1 ) AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6441
SELECT + CAST ( - ( + - col1 ) AS INTEGER ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT + COUNT( * ) DIV + 29 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT + COUNT ( * ) / + 29 AS col1 FROM tab2
----
0

query I rowsort
SELECT col0 * + 74 FROM tab0
----
1110
6438
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT - MIN( ALL col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6444
SELECT - MIN ( ALL col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT col0 * + + col1 * - 56 AS col0 FROM tab1
----
-23800
-239512
-39984

query II rowsort
SELECT col2 * + col0, + ( - col0 ) AS col1 FROM tab1
----
4896
-51
5015
-85
6188
-91

query III rowsort
SELECT + - col2 * col0 - + col1 - + + col2, col0 * + col1 * - col2 AS col0, - - col0 - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 3a9d8b174e85e708f55106d4368997b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT - SUM( + col1 ) FROM tab2 AS cor0 WHERE - col1 * CAST( - col0 AS SIGNED ) + + col1 NOT BETWEEN NULL AND - + col0
----
-195

skipif mysql # not compatible
query I rowsort label-6448
SELECT - SUM ( + col1 ) FROM tab2 AS cor0 WHERE - col1 * CAST ( - col0 AS INTEGER ) + + col1 NOT BETWEEN NULL AND - + col0
----
-195

query I rowsort
SELECT DISTINCT 20 + - - ( + 56 ) AS col0 FROM tab1 AS cor0
----
76

query II rowsort
SELECT + + col0 + 27, + col1 + col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
112
64
118
115
78
110

query I rowsort
SELECT DISTINCT ( col2 ) + 55 AS col2 FROM tab1 AS cor0
----
114
123
151

query I rowsort
SELECT DISTINCT - col0 - 23 FROM tab2
----
-69
-87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL - 36 * - - ( + - MIN( ALL + 9 ) ) - - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1
----
324

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - 36 * - - ( + - MIN ( ALL + 9 ) ) - - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1
----
324

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + - 49 * + 58 * - + col1 * + col2 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT DISTINCT - - CAST( - CAST( CAST( - - col1 AS SIGNED ) AS SIGNED ) AS SIGNED ) * 86 * - ( 7 ) + + - col2 * - ( - + ( 34 ) ) FROM tab2 AS cor0
----
29920
38362
44994

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT - - CAST ( - CAST ( CAST ( - - col1 AS INTEGER ) AS INTEGER ) AS INTEGER ) * 86 * - ( 7 ) + + - col2 * - ( - + ( 34 ) ) FROM tab2 AS cor0
----
29920
38362
44994

query I rowsort
SELECT ALL - 19 * - col0 FROM tab1 cor0
----
1615
1729
969

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT - + 39 * + MAX( DISTINCT + col1 ) FROM tab1 cor0
----
-1833

skipif mysql # not compatible
query I rowsort label-6457
SELECT - + 39 * + MAX ( DISTINCT + col1 ) FROM tab1 cor0
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + 94 + - col1 * - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + 94 + - col1 * - col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT col1 * 19 * col1 FROM tab2 cor0
----
112651
49419
85291

query I rowsort
SELECT - - col1 * - - col0 * + 44 FROM tab2 AS cor0
----
103224
216832
221100

query I rowsort
SELECT ALL 56 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - 6 * - - 10 AS col0 FROM tab2
----
-3060
-4020
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT + COUNT( * ) * + + MAX( DISTINCT + 27 ) * - COUNT( * ) * - COUNT( ( 38 ) ) FROM tab2
----
729

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + COUNT ( * ) * + + MAX ( DISTINCT + 27 ) * - COUNT ( * ) * - COUNT ( ( 38 ) ) FROM tab2
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL + COUNT( * ) * - 56 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL + COUNT ( * ) * - 56 FROM tab1
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col2 + col1 AS col0 FROM tab0 AS cor0
----
-1
100
-21
31
-81
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL - 55 * + MAX( ALL - 87 ) FROM tab2 AS cor0
----
4785

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - 55 * + MAX ( ALL - 87 ) FROM tab2 AS cor0
----
4785

onlyif mysql # DIV for integer division: 
query I rowsort label-6467
SELECT ALL + - col1 DIV col0 DIV + col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL + - col1 / col0 / + col0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT - CAST( + + 97 AS SIGNED ) + col0 col1 FROM tab1 AS cor0
----
-12
-46
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6468
SELECT - CAST ( + + 97 AS INTEGER ) + col0 col1 FROM tab1 AS cor0
----
-12
-46
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6469
SELECT DISTINCT - + col1 DIV - + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT - + col1 / - + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 8 IS NOT NULL
----

query II rowsort
SELECT ALL - - col0, col1 AS col0 FROM tab0 cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT 25 * - 59 * - SUM( col1 ) col1 FROM tab0
----
151925

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6472
SELECT DISTINCT 25 * - 59 * - SUM ( col1 ) col1 FROM tab0
----
151925

query I rowsort
SELECT ALL col1 + 61 * - 69 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = col0 - + col0
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE ( - 27 ) IS NULL
----

query I rowsort
SELECT ALL col1 * - col2 + - col2 + - col1 FROM tab2 AS cor0
----
-1247
-3197
-4011

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6476
SELECT - 48 + + 80 + + - SUM( ALL + col1 ) DIV - 34 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
35
-3

skipif mysql # not compatible
query II rowsort label-6476
SELECT - 48 + + 80 + + - SUM ( ALL + col1 ) / - 34 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
35
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT 90 + + + 43 * col0 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT 90 + + + 43 * col0 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 + 23 FROM tab0
----
87
87
87

query I rowsort
SELECT - ( - col2 ) + 84 FROM tab2
----
107
124
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6480
SELECT DISTINCT 32 AS col1, + CAST( + col2 AS SIGNED ) * col2 FROM tab1
----
32
3481
32
4624
32
9216

skipif mysql # not compatible
query II rowsort label-6480
SELECT DISTINCT 32 AS col1, + CAST ( + col2 AS INTEGER ) * col2 FROM tab1
----
32
3481
32
4624
32
9216

query I rowsort
SELECT 38 + + col1 AS col0 FROM tab2
----
105
115
89

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN NULL AND ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 42 / + col2 + - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( - - col2 * - 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT - SUM( - - col2 ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - SUM ( - - col2 ) AS col0 FROM tab1 cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 + - 18 col0 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT col0 DIV - + col2 col1 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6487
SELECT col0 / - + col2 col1 FROM tab0 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 + - col2 col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 65 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 * col0 + - col2 + - 51 AS col2 FROM tab0 AS cor0
----
127
7508
9259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 92 col1 FROM tab2 AS cor0
----
-4232
-5888
-6900

query II rowsort
SELECT 97 * + + col2 * ( - 52 ), + col2 FROM tab2 AS cor0
----
-116012
23
-201760
40
-292552
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL + COUNT( * ) * + 75 - - + 33 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + COUNT ( * ) * + 75 - - + 33 FROM tab2 AS cor0
----
258

query I rowsort
SELECT + col2 + ( - 14 ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-4
33
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6495
SELECT - ( + + CAST( - - 30 AS SIGNED ) ) DIV - - col1, + col2 AS col2 FROM tab1 AS cor0
----
-2
96
-6
59
0
68

skipif mysql # not compatible
query II rowsort label-6495
SELECT - ( + + CAST ( - - 30 AS INTEGER ) ) / - - col1, + col2 AS col2 FROM tab1 AS cor0
----
-2
96
-6
59
0
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT + - COUNT( col0 ) - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT + - COUNT ( col0 ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col0 * + - col2 * - 30 AS col0, - col1 * - - 93 * - 93 FROM tab1 cor0
----
146880
121086
150450
43245
185640
406503

query I rowsort
SELECT DISTINCT col1 * 52 AS col1 FROM tab1 AS cor0
----
2444
260
728

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL - MIN( DISTINCT + - col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - MIN ( DISTINCT + - col0 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - SUM( - col0 ) * 71 + 7 FROM tab2 AS cor0
----
13142

skipif mysql # not compatible
query I rowsort label-6500
SELECT - SUM ( - col0 ) * 71 + 7 FROM tab2 AS cor0
----
13142

query I rowsort
SELECT ALL col0 + col2 * - + col1 * - 47 FROM tab1 AS cor0
----
13950
150303
63219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT 22 + - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT 22 + - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 94 + - - 55 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT ALL - col1 * - ( col0 ) + - 7 * + 42 + - 79 DIV col2 AS col1 FROM tab1 AS cor0
----
130
3982
420

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - col1 * - ( col0 ) + - 7 * + 42 + - 79 / col2 AS col1 FROM tab1 AS cor0
----
130
3982
420

query I rowsort
SELECT col1 - 38 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3285
-3685
-489

query I rowsort
SELECT DISTINCT - col0 * + ( + 10 ) + col0 + + 70 + - col2 FROM tab0 AS cor0
----
-112
-723
-902

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + col1 * + col1 - + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col1 - - col1 - - - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6509
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6510
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col0, col0 * col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - ( col1 )
----

skipif mysql # not compatible
query II rowsort label-6510
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col0, col0 * col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 91 IS NULL
----

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT + + ( - - col0 ) AS col1 FROM tab2 WHERE col0 * - CAST( NULL AS SIGNED ) + + + col2 - col1 - - col0 NOT BETWEEN col2 AND 25
----

skipif mysql # not compatible
query I rowsort label-6513
SELECT + + ( - - col0 ) AS col1 FROM tab2 WHERE col0 * - CAST ( NULL AS INTEGER ) + + + col2 - col1 - - col0 NOT BETWEEN col2 AND 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT MIN( - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6514
SELECT MIN ( - 2 ) FROM tab2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6515
SELECT 28 * AVG ( ALL + - CAST( NULL AS SIGNED ) ) * + + 6 / - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT 28 * AVG ( ALL + - CAST ( NULL AS INTEGER ) ) * + + 6 / - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT + col0 * - CAST( NULL AS SIGNED ) - + + 33 + 63 + + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT + col0 * - CAST ( NULL AS INTEGER ) - + + 33 + 63 + + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - - 88 * + col1 AS col2 FROM tab0
----
-1761
-7113
9

query I rowsort
SELECT DISTINCT + col1 + ( 7 ) FROM tab0
----
28
8
88

query I rowsort
SELECT DISTINCT + col0 + col0 + - 36 - col0 FROM tab1 AS cor0
----
15
49
55

query I rowsort
SELECT ALL - + col0 + col2 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT ALL - + 37 + 77 FROM tab1 AS cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col1, ( + col2 ), 0 + - col0 - + - 29, + 97 + 65 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6523
SELECT DISTINCT + 99 AS col0, - COUNT( * ) FROM tab1
----
99
-3

skipif mysql # not compatible
query II rowsort label-6523
SELECT DISTINCT + 99 AS col0, - COUNT ( * ) FROM tab1
----
99
-3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT + SUM( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6525
SELECT + SUM ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - col2 * + + 54 FROM tab2
----
-1242
-2160
-3132

query I rowsort
SELECT col2 * 37 * + 12 FROM tab2
----
10212
17760
25752

query I rowsort
SELECT DISTINCT + col0 + + 76 AS col0 FROM tab2
----
122
140
151

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + col2 ) IS NULL
----

query II rowsort
SELECT ALL col0 + + + col2 + - col1 + - 72, col1 AS col0 FROM tab1 cor0
----
40
47
61
14
67
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6531
SELECT ALL - col0 * + 41 * CAST( NULL AS DECIMAL ), 25 AS col1 FROM tab0
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-6531
SELECT ALL - col0 * + 41 * CAST ( NULL AS REAL ), 25 AS col1 FROM tab0
----
NULL
25
NULL
25
NULL
25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - ( + col2 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + 0 col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6534
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + MAX( ALL + col1 ) - - - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + MAX ( ALL + col1 ) - - - COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - col2 + - + 80 + + + col1 AS col0 FROM tab0 AS cor0
----
-49
20
48

query I rowsort
SELECT DISTINCT + col0 - - ( col1 ) * - col0 + - col0 * + col2 FROM tab2 AS cor0
----
-3358
-7424
-9300

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT ALL col0 DIV - 90 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL col0 / - 90 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + 16 * - + col2 + col2 FROM tab1
----
-147360
-55637
-73916

query I rowsort
SELECT ALL + col2 - + - 73 FROM tab1
----
132
141
169

onlyif mysql # aggregate syntax: 
query II rowsort label-6540
SELECT DISTINCT - 23, + 52 * + COUNT( * ) col1 FROM tab1
----
-23
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6540
SELECT DISTINCT - 23, + 52 * + COUNT ( * ) col1 FROM tab1
----
-23
156

onlyif mysql # aggregate syntax: 
query II rowsort label-6541
SELECT ALL - 30 AS col1, - COUNT( * ) FROM tab0
----
-30
-3

skipif mysql # not compatible
query II rowsort label-6541
SELECT ALL - 30 AS col1, - COUNT ( * ) FROM tab0
----
-30
-3

query I rowsort
SELECT DISTINCT col0 * - - ( - col2 ) - - 33 - - + col2 FROM tab0
----
-625
-827
-9471

query I rowsort
SELECT - 91 * + 76 AS col1 FROM tab2
----
-6916
-6916
-6916

query II rowsort
SELECT - col2 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND col0
----

query I rowsort
SELECT ALL - - 13 * - + col2 + + col1 * - 20 FROM tab2 AS cor0
----
-1319
-2060
-2094

onlyif mysql # DIV for integer division: 
query I rowsort label-6547
SELECT DISTINCT + col0 DIV 96 * col1 * + col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + col0 / 96 * col1 * + col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT col1 DIV + - ( 1 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6548
SELECT col1 / + - ( 1 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT COUNT( 25 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT COUNT ( 25 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT + + COUNT( * ) * + - CAST( ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6552
SELECT + + COUNT ( * ) * + - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0 * + 93 + - col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT + COUNT( + 99 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6555
SELECT + COUNT ( + 99 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT ( - CAST( + + 38 AS SIGNED ) ) * COUNT( * ) * - 27 AS col1 FROM tab2 AS cor0
----
3078

skipif mysql # not compatible
query I rowsort label-6556
SELECT ( - CAST ( + + 38 AS INTEGER ) ) * COUNT ( * ) * - 27 AS col1 FROM tab2 AS cor0
----
3078

query II rowsort
SELECT - - 5 * + col0 AS col1, 33 FROM tab0 AS cor0
----
435
33
485
33
75
33

query I rowsort
SELECT DISTINCT - col0 * + col2 * + 35 AS col0 FROM tab1 cor0
----
-171360
-175525
-216580

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT ALL CAST( COUNT( - + CAST( - + col1 AS SIGNED ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL CAST ( COUNT ( - + CAST ( - + col1 AS INTEGER ) ) AS INTEGER ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( - ( + - 36 ) + + + col2, + ( - - col0 ), col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + - col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6563
SELECT + col2 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6563
SELECT + col2 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6564
SELECT COUNT( * ) + COUNT( CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE + col0 < CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-6564
SELECT COUNT ( * ) + COUNT ( CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE + col0 < CAST ( NULL AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT COUNT( * ) * - 85 * 82 FROM tab1 cor0
----
-20910

skipif mysql # not compatible
query I rowsort label-6565
SELECT COUNT ( * ) * - 85 * 82 FROM tab1 cor0
----
-20910

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT + MAX( ALL + 32 ) AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6566
SELECT + MAX ( ALL + 32 ) AS col2 FROM tab0 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 + + 84 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT COUNT( * ) * + 45 AS col1 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-6568
SELECT COUNT ( * ) * + 45 AS col1 FROM tab2
----
135

query I rowsort
SELECT col1 * 87 AS col0 FROM tab1
----
1218
4089
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL col0 + - CAST( - 26 AS SIGNED ) FROM tab0
----
113
123
41

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL col0 + - CAST ( - 26 AS INTEGER ) FROM tab0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - COUNT( * ) + - 28 AS col2 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-6571
SELECT - COUNT ( * ) + - 28 AS col2 FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT - MIN( + 97 ) * - COUNT( * ) AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-6572
SELECT - MIN ( + 97 ) * - COUNT ( * ) AS col0 FROM tab1
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT - col0 DIV + col1 + 57 AS col2 FROM tab0
----
-40
53
57

skipif mysql # not compatible
query I rowsort label-6573
SELECT - col0 / + col1 + 57 AS col2 FROM tab0
----
-40
53
57

query I rowsort
SELECT 9 * - col0 AS col0 FROM tab1
----
-459
-765
-819

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 45
----

query I rowsort
SELECT - 88 AS col2 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT + COUNT( * ) FROM tab1 WHERE NOT + 82 * col0 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6579
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + 82 * col0 <= ( NULL )
----
0

query I rowsort
SELECT 65 + 16 AS col0 FROM tab1
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 29 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT + 20 * + SUM( 88 * + col0 ) FROM tab1
----
399520

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + 20 * + SUM ( 88 * + col0 ) FROM tab1
----
399520

query I rowsort
SELECT col0 + + 41 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN - 60 + - ( - col2 ) * - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - 43 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT - 57 DIV 35 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6585
SELECT - 57 / 35 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 97 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT DISTINCT + col0 - 48 DIV col0 col2 FROM tab2
----
45
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6587
SELECT DISTINCT + col0 - 48 / col0 col2 FROM tab2
----
45
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6588
SELECT + 46 DIV + ( - 88 * - COUNT( 50 DIV + col1 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT + 46 / + ( - 88 * - COUNT ( 50 / + col1 ) ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT + col1 DIV 59 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6589
SELECT + col1 / 59 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT DISTINCT - CAST( NULL AS SIGNED ) * AVG ( ALL ( col0 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * AVG ( ALL ( col0 ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT - 47 DIV + COUNT( - 18 ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6591
SELECT - 47 / + COUNT ( - 18 ) AS col2 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT MAX( DISTINCT - ( + col0 ) ) col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6592
SELECT MAX ( DISTINCT - ( + col0 ) ) col2 FROM tab1
----
-51

query I rowsort
SELECT 5 - col2 AS col0 FROM tab1
----
-54
-63
-91

query I rowsort
SELECT 43 - - col0 * 76 FROM tab0
----
1183
6655
7415

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 = 44
----
-46
-64
-75

query I rowsort
SELECT ALL col2 * - 79 - - col2 / - 72 FROM tab1 AS cor0 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 64 * CAST( + 2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6597
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 64 * CAST ( + 2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6598
SELECT COUNT( * ) DIV MAX( 4 * 8 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT COUNT ( * ) / MAX ( 4 * 8 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 + 64 AND NULL
----

query I rowsort
SELECT 81 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT + ( + 70 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * col0 - col2 NOT BETWEEN ( CAST( NULL AS SIGNED ) * 17 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6602
SELECT + ( + 70 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * col0 - col2 NOT BETWEEN ( CAST ( NULL AS INTEGER ) * 17 ) AND NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND - col2 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL - - MAX( col2 ) AS col2 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL - - MAX ( col2 ) AS col2 FROM tab2 cor0
----
58

query I rowsort
SELECT ( 31 ) + + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
36
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT DISTINCT + COUNT( ALL col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT + COUNT ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT 24 DIV + col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6607
SELECT 24 / + col0 FROM tab0
----
0
0
1

query I rowsort
SELECT 3 + - 18 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 40 * - 51 * col2 FROM tab1
----
-120360
-138720
-195840

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT 72 + - COUNT( * ) + + 1 AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-6610
SELECT 72 + - COUNT ( * ) + + 1 AS col0 FROM tab1
----
70

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + 15 = ( NULL )
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - 49 + ( + 12 ) NOT BETWEEN ( NULL ) AND col2 / - col2
----

query I rowsort
SELECT 67 + + + col0 + col0 AS col0 FROM tab2 AS cor0
----
159
195
217

query I rowsort
SELECT + ( col2 ) * col2 + col0 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT ALL ( + col0 ) + col2 FROM tab1 cor0 WHERE NOT ( col0 ) - + col0 IS NULL
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT CAST( NULL AS SIGNED ) * + COUNT( ALL + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( ALL + col0 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 63 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
63

query II rowsort
SELECT + col0 AS col0, + col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + + 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT - col0 + + 58 + col2 - col2 * - col0 * col2 AS col2 FROM tab2
----
102434
24369
252341

query I rowsort
SELECT + 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT + + 18 + MAX( ALL + 4 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 55 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT + + 18 + MAX ( ALL + 4 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 55 = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6624
SELECT DISTINCT - 8 * COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT - 8 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col2 ) < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - + 3 + - 73 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT + 4 * + - col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-295
-340
-480

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT 40 + - - 31 + col1 + col2 AS col0 FROM tab0 AS cor0
----
102
171
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT ALL - - 57 + - 60 + + COUNT( * ) * COUNT( * ) DIV - 50 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - - 57 + - 60 + + COUNT ( * ) * COUNT ( * ) / - 50 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT ALL - ( - COUNT( * ) ) AS col0, 80 - - + 10 AS col0 FROM tab0
----
3
90

skipif mysql # not compatible
query II rowsort label-6635
SELECT ALL - ( - COUNT ( * ) ) AS col0, 80 - - + 10 AS col0 FROM tab0
----
3
90

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 + + + col1 ) <= - col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 15 + - + ( + col1 ) <> ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT ( - col1 ) >= ( 96 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( col0 ) * + + 38 + col2 AS col2 FROM tab2
----
1771
2472
2908

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col1 ) NOT IN ( 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT - + col1 >= NULL
----

query II rowsort
SELECT + ( col1 ), + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6643
SELECT CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6643
SELECT CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT ALL - ( - + SUM( - col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL - ( - + SUM ( - col1 ) ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 78 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL + 17 FROM tab1 WHERE + 50 BETWEEN NULL AND ( + + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + 17 FROM tab1 WHERE + 50 BETWEEN NULL AND ( + + CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NULL < 89
----

query I rowsort
SELECT + 60 + - - 70 * - 70 * ( + - col2 ) AS col0 FROM tab2 cor0
----
112760
196060
284260

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT 65 + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT 65 + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 17 + - + col0 AS col1 FROM tab2 AS cor0
----
-63
-81
-92

query I rowsort
SELECT DISTINCT 85 - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 59 IN ( col0 )
----
-6
0
34

query I rowsort
SELECT ALL 97 * + col2 * - col0 FROM tab0
----
-68385
-84390
-931491

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT ( + col2 ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 32 IS NOT NULL
----

query I rowsort
SELECT - col2 + 86 AS col1 FROM tab1 WHERE NULL NOT BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 BETWEEN col1 + col2 + col1 AND ( NULL ) )
----
15
81
47
97
1
99

query I rowsort
SELECT - 70 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 > col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6660
SELECT ALL + + COUNT( * ) + + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6
-3

skipif mysql # not compatible
query II rowsort label-6660
SELECT ALL + + COUNT ( * ) + + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - + ( 93 ) <= NULL
----

query I rowsort
SELECT - - 60 * + + col0 FROM tab1 AS cor0
----
3060
5100
5460

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 90 FROM tab1 AS cor0
----
141
175
181

query I rowsort
SELECT ALL - - col0 + + 95 FROM tab0 cor0
----
110
182
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 38 + + 88 - + 95 - - col1 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6666
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 38 + + 88 - + 95 - - col1 col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + MAX( DISTINCT + - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + MAX ( DISTINCT + - col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT 71 FROM tab2 WHERE col0 BETWEEN ( + col2 ) AND col0
----
71
71
71

query I rowsort
SELECT + + 15 * - col0 * - 32 FROM tab1 AS cor0
----
24480
40800
43680

query I rowsort
SELECT ALL - 83 FROM tab0 AS cor0 WHERE NOT NULL <> col1 * 66
----

query I rowsort
SELECT DISTINCT - ( - 82 ) AS col2 FROM tab0 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT DISTINCT + CAST( 43 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT + CAST ( 43 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN 31 * + - 68 AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT ( - ( + - 95 ) ) AS col1 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT + 79 * + COUNT( * ) FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT + 79 * + COUNT ( * ) FROM tab1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT DISTINCT ( - COUNT( * ) ) * - ( COUNT( * ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT ( - COUNT ( * ) ) * - ( COUNT ( * ) ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL 8 * - COUNT( * ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL 8 * - COUNT ( * ) FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT MAX( + 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT MAX ( + 9 ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6681
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - col1 AS col1, + 79 + col1 AS col2 FROM tab1 AS cor0
----
-14
93
-47
126
-5
84

query I rowsort
SELECT ALL + col0 * 41 * - col0 FROM tab2
----
-167936
-230625
-86756

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT col2 * 62 + - 35 IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 32 * + + col1 + + ( - col1 ) + col2 )
----

query II rowsort
SELECT 95, - col0 + - 15 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 38 ) BETWEEN col1 + - + 76 AND ( NULL )
----

query I rowsort
SELECT ALL + 44 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1, 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL - + COUNT( * ) + - 11 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - + COUNT ( * ) + - 11 FROM tab1 AS cor0
----
-14

query II rowsort
SELECT col0 * - col2 AS col0, 16 * + + col2 FROM tab0 AS cor0
----
-705
752
-870
160
-9603
1584

query I rowsort
SELECT DISTINCT - - 24 * - col1 + - 57 + col1 + ( + + col2 ) + + + col2 FROM tab0 AS cor0
----
-1826
-520
118

query I rowsort
SELECT + ( - 51 ) AS col1 FROM tab1 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT DISTINCT COUNT( * ) + ( + - ( + 88 ) ) * + COUNT( * ) col0 FROM tab2 cor0
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6693
SELECT DISTINCT COUNT ( * ) + ( + - ( + 88 ) ) * + COUNT ( * ) col0 FROM tab2 cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT COUNT( * ) * - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6694
SELECT COUNT ( * ) * - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 / col0 - 96 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - 21 AND + col2 AND NOT - ( + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 78 <> 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + 70 FROM tab0
----
157
167
85

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col0 BETWEEN + 87 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 36 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT ALL + - col0 DIV - - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL + - col0 / - - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
-12
11
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + CAST( col2 AS SIGNED ) <= + col0
----
99

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + CAST ( col2 AS INTEGER ) <= + col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6704
SELECT - CAST( NULL AS DECIMAL ) * - - MAX( - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT - CAST ( NULL AS REAL ) * - - MAX ( - col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT DISTINCT ( - col2 ) DIV + - col0 + col2 col0 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6705
SELECT DISTINCT ( - col2 ) / + - col0 + col2 col0 FROM tab1 AS cor0
----
59
68
97

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 60 * + col1 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT + 48 DIV col0 - + col2 + - col1 AS col2 FROM tab1 cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-6708
SELECT + 48 / col0 - + col2 + - col1 AS col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6709
SELECT ALL + col0, + CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6709
SELECT ALL + col0, + CAST ( NULL AS INTEGER ) * - + col0 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 * - + 53 FROM tab0 AS cor0
----
1
-5247
21
-530
81
-2491

query II rowsort
SELECT ALL + - col1 AS col1, - col2 + - col2 - - col0 * col2 FROM tab0 AS cor0
----
-1
9405
-21
850
-81
611

query II rowsort
SELECT DISTINCT + col1 AS col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + 19 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
19

skipif mysql # not compatible
query I rowsort label-6713
SELECT + 19 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
19

query II rowsort
SELECT ALL col1 AS col0, col2 * - + col1 * + + 85 AS col1 FROM tab2 AS cor0
----
51
-99705
67
-330310
77
-261800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6715
SELECT 69 DIV SUM( + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT 69 / SUM ( + col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL - MAX( ( - + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - MAX ( ( - + col0 ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - COUNT( * ) * + 42 AS col0 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-6717
SELECT - COUNT ( * ) * + 42 AS col0 FROM tab0
----
-126

query II rowsort
SELECT - 72 * - 93 AS col1, 75 FROM tab1
----
6696
75
6696
75
6696
75

query I rowsort
SELECT ALL + 35 FROM tab0 WHERE NULL IS NULL
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6720
SELECT DISTINCT + + CAST( - col2 AS SIGNED ), ( - 21 ) - 63 AS col0 FROM tab2 AS cor0
----
-23
-84
-40
-84
-58
-84

skipif mysql # not compatible
query II rowsort label-6720
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ), ( - 21 ) - 63 AS col0 FROM tab2 AS cor0
----
-23
-84
-40
-84
-58
-84

query I rowsort
SELECT - + col0 * col1 * 67 FROM tab2 AS cor0
----
-157182
-330176
-336675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL + - COUNT( * ) * - - COUNT( DISTINCT + 77 ) + CAST( NULL AS SIGNED ) * MAX( DISTINCT - 52 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + - COUNT ( * ) * - - COUNT ( DISTINCT + 77 ) + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT - 52 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - - MAX( 21 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6723
SELECT - - MAX ( 21 ) FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT 23 + - - COUNT( + + 44 ) * + + 80 - + 23 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
240

skipif mysql # not compatible
query I rowsort label-6724
SELECT 23 + - - COUNT ( + + 44 ) * + + 80 - + 23 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT - - col2 DIV col1 + - col1 AS col1 FROM tab0 cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-6725
SELECT - - col2 / col1 + - col1 AS col1 FROM tab0 cor0
----
-21
-81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + 52 * - MIN( + + col1 ) + - - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 52 * - MIN ( + + col1 ) + - - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-6727
SELECT + + COUNT( * ) + - - MIN( ALL + + col1 ), - COUNT( + col2 ) AS col0 FROM tab2 AS cor0
----
54
-3

skipif mysql # not compatible
query II rowsort label-6727
SELECT + + COUNT ( * ) + - - MIN ( ALL + + col1 ), - COUNT ( + col2 ) AS col0 FROM tab2 AS cor0
----
54
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col2 * - 72 col1 FROM tab2 AS cor0
----
-1707
-2957
-4243

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( + 17 ) / 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col1 ) + - 52 AS col1, col0 + 45 * + col2 col0 FROM tab1 cor0
----
-57
2740
-66
4371
-99
3151

query I rowsort
SELECT DISTINCT + col2 * - + 4 FROM tab0 AS cor0
----
-188
-396
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT DISTINCT 89 - + + 98 DIV + + 54 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT 89 - + + 98 / + + 54 FROM tab2
----
88

query I rowsort
SELECT ALL - ( - col1 ) - + col0 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT col2 * - 11 * - col0 FROM tab1
----
53856
55165
68068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT 96 DIV ( - 52 ) - - - MIN( ALL - col1 ) + - 83 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-6735
SELECT 96 / ( - 52 ) - - - MIN ( ALL - col1 ) + - 83 FROM tab2
----
-7

query I rowsort
SELECT - col2 - + col2 * + col1 AS col2 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6737
SELECT ALL + col2, - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col0 + + CAST( + + col1 AS SIGNED ) AND - col0 * + 59 AND NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6737
SELECT ALL + col2, - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col0 + + CAST ( + + col1 AS INTEGER ) AND - col0 * + 59 AND NULL IS NULL
----

query I rowsort
SELECT - - col2 * + 85 - col0 FROM tab1 AS cor0
----
4930
5689
8109

query I rowsort
SELECT + 79 + + col1 AS col2 FROM tab1 AS cor0
----
126
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL COUNT( * ) + 12 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL COUNT ( * ) + 12 FROM tab2 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 68 ) >= + col1 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / - + col2 * + 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 97 AS col2 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT - SUM( DISTINCT + col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6744
SELECT - SUM ( DISTINCT + col2 ) FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-6745
SELECT - 74 * + ( COUNT( * ) ), + 95 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-222
285

skipif mysql # not compatible
query II rowsort label-6745
SELECT - 74 * + ( COUNT ( * ) ), + 95 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-222
285

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6746
SELECT + CAST( NULL AS DECIMAL ) * + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT + CAST ( NULL AS REAL ) * + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 0 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT ALL + CAST( - + 12 AS SIGNED ) AS col1 FROM tab0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + CAST ( - + 12 AS INTEGER ) AS col1 FROM tab0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6749
SELECT ALL col0 AS col0, - col0 * - - CAST( + col0 AS SIGNED ) FROM tab0
----
15
-225
87
-7569
97
-9409

skipif mysql # not compatible
query II rowsort label-6749
SELECT ALL col0 AS col0, - col0 * - - CAST ( + col0 AS INTEGER ) FROM tab0
----
15
-225
87
-7569
97
-9409

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= 53 * + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6751
SELECT ALL 64, COUNT( * ) AS col1 FROM tab0 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-6751
SELECT ALL 64, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
64
3

query I rowsort
SELECT ALL - - 98 + + - 87 * - ( - 46 ) FROM tab0 cor0 WHERE NOT - 16 IS NULL
----
-3904
-3904
-3904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT - MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6754
SELECT CAST( + 59 AS SIGNED ) DIV COUNT( * ) col1 FROM tab2
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6754
SELECT CAST ( + 59 AS INTEGER ) / COUNT ( * ) col1 FROM tab2
----
19

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - 49 + + col0 - col2 * col0 * + col2 * - 4 BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT - 77 + + CAST( - + 84 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6756
SELECT - 77 + + CAST ( - + 84 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 78 + - 45 * + col2 + + 57 + - ( + col0 ) FROM tab1 AS cor0
----
-2761
-3172
-4392

query I rowsort
SELECT DISTINCT col0 + + col1 * + col0 AS col2 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL + 56 - COUNT( * ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + 56 - COUNT ( * ) FROM tab0
----
53

query I rowsort
SELECT ( + col2 ) * col2 + - 66 + + col1 FROM tab2
----
1611
3365
514

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL - 30 - - - MIN( - col1 ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - 30 - - - MIN ( - col1 ) AS col1 FROM tab2
----
47

query III rowsort
SELECT * FROM tab0 WHERE ( - - col1 / 39 ) <> - ( + - col2 ) * + col2 * 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 38 + - + 48 FROM tab1 cor0
----
-10

query I rowsort
SELECT DISTINCT + - 0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT ALL col0 * + col2, - 77 * + + ( - + 0 ) AS col2 FROM tab2
----
1058
0
2560
0
4350
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6766
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT SUM( ALL - 54 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 / - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT SUM ( ALL - 54 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 / - col1 >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT ALL + col2 DIV col0 + col1 * 94 FROM tab2 AS cor0
----
4794
6298
7238

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + col2 / col0 + col1 * 94 FROM tab2 AS cor0
----
4794
6298
7238

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL <> - col2 * + col1 )
----

query I rowsort
SELECT 55 * - + 59 FROM tab2 AS cor0
----
-3245
-3245
-3245

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL - + MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - + MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT + CAST( NULL AS SIGNED ) * 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT + CAST ( NULL AS INTEGER ) * 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT - COUNT( * ) * - 49 FROM tab2 cor0
----
147

skipif mysql # not compatible
query I rowsort label-6774
SELECT - COUNT ( * ) * - 49 FROM tab2 cor0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT ALL ( 82 ) DIV - + col1 col2 FROM tab1 AS cor0
----
-1
-16
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6775
SELECT ALL ( 82 ) / - + col1 col2 FROM tab1 AS cor0
----
-1
-16
-5

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab2 WHERE NOT + 50 * - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + 27, col0 FROM tab2
----
27
46
27
64
27
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 47 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT + MIN( ALL - - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + MIN ( ALL - - col1 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT 12 AS col1, + 32 AS col0 FROM tab2 AS cor0
----
12
32
12
32
12
32

query I rowsort
SELECT DISTINCT - - 94 * + 59 FROM tab2 AS cor0
----
5546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 66 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 66 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 45 * - 73 FROM tab0
----
3285
3285
3285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + - col0 * - col2 * + 57 * + - col0 * 14 col1 FROM tab2
----
-130744256
-260347436
-38837000

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT + 31 + + MIN( DISTINCT + ( + 22 ) ) AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-6785
SELECT + 31 + + MIN ( DISTINCT + ( + 22 ) ) AS col1 FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT + COUNT( * ) + + 66 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6786
SELECT + COUNT ( * ) + + 66 FROM tab1 AS cor0
----
69

query II rowsort
SELECT DISTINCT - col1, 50 AS col1 FROM tab0 AS cor0
----
-1
50
-21
50
-81
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT DISTINCT + - ( CAST( NULL AS SIGNED ) ) + - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + - ( CAST ( NULL AS INTEGER ) ) + - col1 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT ALL + col1 + - 65 - + 78 + + col0 DIV 15 col2 FROM tab2 AS cor0
----
-62
-71
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6789
SELECT ALL + col1 + - 65 - + 78 + + col0 / 15 col2 FROM tab2 AS cor0
----
-62
-71
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - 85 + + MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-181

skipif mysql # not compatible
query I rowsort label-6790
SELECT - 85 + + MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-181

query I rowsort
SELECT DISTINCT col0 + - ( - 84 ) AS col2 FROM tab2 AS cor0
----
130
148
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT + + CAST( NULL AS SIGNED ) * 6 - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT + + CAST ( NULL AS INTEGER ) * 6 - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6793
SELECT + COUNT( * ) AS col1, - MIN( ALL + 20 ) * CAST( - 23 AS SIGNED ) AS col2 FROM tab1 cor0
----
3
460

skipif mysql # not compatible
query II rowsort label-6793
SELECT + COUNT ( * ) AS col1, - MIN ( ALL + 20 ) * CAST ( - 23 AS INTEGER ) AS col2 FROM tab1 cor0
----
3
460

query I rowsort
SELECT ALL + 71 + + col2 AS col0 FROM tab1 AS cor0
----
130
139
167

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 > - col2
----
51
14
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 92 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL col2 * - - col2 * - 90 * - 34 - - - col0 - + 11 AS col1, col2, + 88 * - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
9 values hashing to aa3a33e15425c13e63bf487c2a5e5574

query I rowsort
SELECT 82 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
82
82
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6799
SELECT ALL MAX( ALL + 93 ) DIV + + 65 + + 91 AS col1 FROM tab2 cor0
----
92

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL MAX ( ALL + 93 ) / + + 65 + + 91 AS col1 FROM tab2 cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT ALL 96 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL 96 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + COUNT( * ) - COUNT( * ) + + - 91 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-6801
SELECT + COUNT ( * ) - COUNT ( * ) + + - 91 FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT SUM( DISTINCT + col1 ) - - - 97 AS col2 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-6802
SELECT SUM ( DISTINCT + col1 ) - - - 97 AS col2 FROM tab1
----
-31

query I rowsort
SELECT 23 + col2 AS col0 FROM tab0 cor0
----
122
33
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
46
64
75

query I rowsort
SELECT - + 52 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT col1 * - col2 - + col1 + + 78 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-1146
-3079
-3875

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL + ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6807
SELECT ALL + ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT + - 88 DIV 23 AS col0 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6808
SELECT + - 88 / 23 AS col0 FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT SUM( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6809
SELECT DISTINCT SUM ( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6810
SELECT * FROM tab1 WHERE NOT - CAST( - - 45 AS SIGNED ) BETWEEN + 46 AND - + col0 * 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6810
SELECT * FROM tab1 WHERE NOT - CAST ( - - 45 AS INTEGER ) BETWEEN + 46 AND - + col0 * 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 55 * + col1 FROM tab1
----
2585
275
770

query I rowsort
SELECT - col0 * 91 * + col1 AS col1 FROM tab1
----
-38675
-389207
-64974

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT DISTINCT + 6 + col0 DIV - + col2 AS col2 FROM tab1
----
5
6

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT + 6 + col0 / - + col2 AS col2 FROM tab1
----
5
6

query I rowsort
SELECT 25 + - col1 FROM tab2
----
-26
-42
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * + col0 <> + 17 * + 29 + + col1
----
-3

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 * + col0 <> + 17 * + 29 + + col1
----
-3

query I rowsort
SELECT DISTINCT 98 * - col2 AS col0 FROM tab0 AS cor0
----
-4606
-9702
-980

query I rowsort
SELECT + 81 FROM tab1 AS cor0 WHERE 21 IS NOT NULL
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL - MAX( ALL 56 ) + + + 51 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL - MAX ( ALL 56 ) + + + 51 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT ALL 50 + + col2 - - - 85 * 37 FROM tab0 AS cor0
----
-2996
-3048
-3085

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NULL NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NULL NOT IN ( - col1 )
----
0

query I rowsort
SELECT ALL - - col1 * + 13 + + + col2 + + 70 + - col1 + + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
1021
700
940

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT ALL + COUNT( * ), MAX( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-6822
SELECT ALL + COUNT ( * ), MAX ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
3
58

query I rowsort
SELECT DISTINCT + + col2 - - - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6824
SELECT - + CAST( - col2 AS SIGNED ) + + col2 FROM tab2 cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-6824
SELECT - + CAST ( - col2 AS INTEGER ) + + col2 FROM tab2 cor0
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT DISTINCT + 15 + 25 DIV - - ( col0 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + 15 + 25 / - - ( col0 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT - 74 * col1 + col2 AS col2 FROM tab2
----
-3751
-4900
-5658

query I rowsort
SELECT ALL 26 + + + 12 AS col1 FROM tab0
----
38
38
38

query I rowsort
SELECT ALL ( + - col0 ) - - - 66 + - col2 AS col2 FROM tab2
----
-135
-170
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 67, col2 col1 FROM tab0
----
67
10
67
47
67
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL + 12 - + MAX( + 5 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL + 12 - + MAX ( + 5 ) FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT ALL + col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6832
SELECT DISTINCT - COUNT( * ) col2, SUM( 27 ) + - 2 * - 26 col2 FROM tab0
----
-3
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6832
SELECT DISTINCT - COUNT ( * ) col2, SUM ( 27 ) + - 2 * - 26 col2 FROM tab0
----
-3
133

onlyif mysql # aggregate syntax: 
query II rowsort label-6833
SELECT DISTINCT + MAX( DISTINCT 80 ), - COUNT( * ) AS col1 FROM tab2
----
80
-3

skipif mysql # not compatible
query II rowsort label-6833
SELECT DISTINCT + MAX ( DISTINCT 80 ), - COUNT ( * ) AS col1 FROM tab2
----
80
-3

query II rowsort
SELECT 97 AS col2, + 93 + - col2 FROM tab2
----
97
35
97
53
97
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6835
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT - 0 DIV + 53 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6836
SELECT - 0 / + 53 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6837
SELECT + - col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-6837
SELECT + - col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT DISTINCT - + ( - 36 ) AS col0 FROM tab0 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 31 col0 FROM tab1 AS cor0
----
-1457
-155
-434

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6840
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + - col0 = + ( - col1 ) + - 75 / - + 7 + col0
----

skipif mysql # not compatible
query III rowsort label-6840
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + - col0 = + ( - col1 ) + - 75 / - + 7 + col0
----

query II rowsort
SELECT ALL col2 * - + 7 * col0 AS col0, + col1 AS col2 FROM tab2
----
-17920
77
-30450
67
-7406
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL + COUNT( * ) * - COUNT( - col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + COUNT ( * ) * - COUNT ( - col2 ) FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6843
SELECT ALL - CAST( NULL AS DECIMAL ) + + + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - CAST ( NULL AS REAL ) + + + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - + 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 96 ) - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT + - ( + + CAST( + - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6847
SELECT + - ( + + CAST ( + - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 + + 42 col2 FROM tab2 AS cor0
----
-100
-55
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT + 34 + + + COUNT( * ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6849
SELECT + 34 + + + COUNT ( * ) FROM tab1 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT ALL ( col0 ) DIV - ( - 47 ) AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL ( col0 ) / - ( - 47 ) AS col2 FROM tab1
----
1
1
1

query II rowsort
SELECT col0, ( col0 ) FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT col0 * - col0 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT col0 * - col0 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT + COUNT( - - 70 ) FROM tab2 WHERE + col2 * - 67 * col2 + col1 * + col0 * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT + COUNT ( - - 70 ) FROM tab2 WHERE + col2 * - 67 * col2 + col1 * + col0 * - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT DISTINCT - SUM( + 51 ) DIV - 34 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - SUM ( + 51 ) / - 34 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT COUNT( ALL + + 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6855
SELECT COUNT ( ALL + + 2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6856
SELECT + col0 AS col1, col0 + - + col2 + + - 81 DIV + col1 - col0 * + ( - - col1 ) AS col2 FROM tab0
----
15
-1248
87
-1753
97
-180

skipif mysql # not compatible
query II rowsort label-6856
SELECT + col0 AS col1, col0 + - + col2 + + - 81 / + col1 - col0 * + ( - - col1 ) AS col2 FROM tab0
----
15
-1248
87
-1753
97
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT DISTINCT - ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT - ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6858
SELECT - COUNT( * ) AS col1, + 98 FROM tab1 AS cor0
----
-3
98

skipif mysql # not compatible
query II rowsort label-6858
SELECT - COUNT ( * ) AS col1, + 98 FROM tab1 AS cor0
----
-3
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL 77 + - SUM( + 73 ) FROM tab0 cor0
----
-142

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL 77 + - SUM ( + 73 ) FROM tab0 cor0
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6860
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 + - col0 * col1 * + 86 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6860
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 + - col0 * col1 * + 86 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - 50 AS col0 FROM tab2 AS cor0
----
-10
-27
8

query I rowsort
SELECT + col2 * - 12 - - - 59 AS col2 FROM tab2 AS cor0
----
-335
-539
-755

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - + COUNT( DISTINCT 68 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6863
SELECT - + COUNT ( DISTINCT 68 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 64 BETWEEN NULL AND - ( + + 92 )
----

query I rowsort
SELECT ALL + 68 AS col1 FROM tab1 cor0 WHERE NOT + col1 >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT - col0 * - col0 + + col0 DIV - col1 FROM tab1 cor0
----
2598
7208
8280

skipif mysql # not compatible
query I rowsort label-6866
SELECT - col0 * - col0 + + col0 / - col1 FROM tab1 cor0
----
2598
7208
8280

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 19 = NULL
----

query I rowsort
SELECT DISTINCT - col0 - 52 FROM tab1 AS cor0
----
-103
-137
-143

query I rowsort
SELECT ALL + + 16 AS col1 FROM tab2 cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6870
SELECT 94 - CAST( 3 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif mysql # not compatible
query I rowsort label-6870
SELECT 94 - CAST ( 3 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query II rowsort
SELECT DISTINCT + 51, + col2 AS col1 FROM tab2
----
51
23
51
40
51
58

onlyif mysql # DIV for integer division: 
query II rowsort label-6872
SELECT + col2 col2, + col0 DIV + ( col0 ) FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6872
SELECT + col2 col2, + col0 / + ( col0 ) FROM tab2
----
23
1
40
1
58
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6873
SELECT DISTINCT col2, col0 DIV - 82 FROM tab0
----
10
-1
47
0
99
-1

skipif mysql # not compatible
query II rowsort label-6873
SELECT DISTINCT col2, col0 / - 82 FROM tab0
----
10
-1
47
0
99
-1

query I rowsort
SELECT DISTINCT 12 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col2 col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 9 * + - col2 FROM tab0
----
-423
-891
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6877
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 71 * col2 >= NULL
----

query I rowsort
SELECT ALL + col1 + - + col0 * - + 74 * col1 AS col2 FROM tab2 cor0
----
173655
364749
371917

query II rowsort
SELECT + col0, col2 + col0 FROM tab0 AS cor0
----
15
62
87
97
97
196

query I rowsort
SELECT - 63 FROM tab1 AS cor0 WHERE - col0 * + - col0 <> col2
----
-63
-63
-63

query I rowsort
SELECT ALL - ( + col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 67 col2 FROM tab2
----
-1541
-2680
-3886

query I rowsort
SELECT - 92 * - + col2 + + col1 + + col1 * - col2 AS col2 FROM tab1
----
3107
5138
7502

query I rowsort
SELECT ALL ( + col0 ) * - col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + 76 + + COUNT( * ) AS col1 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-6886
SELECT + 76 + + COUNT ( * ) AS col1 FROM tab2
----
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL - COUNT( * ) + + + 91 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL - COUNT ( * ) + + + 91 FROM tab2
----
88

query I rowsort
SELECT - - 52 FROM tab0 AS cor0 WHERE - 64 = - col0 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - + 59 >= NULL
----

query I rowsort
SELECT ALL - col1 + - + 46 FROM tab1
----
-51
-60
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT + ( CAST( + COUNT( - - 5 ) AS SIGNED ) ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6892
SELECT + ( CAST ( + COUNT ( - - 5 ) AS INTEGER ) ) FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT + col1 - - - col2 - - + 30 AS col0 FROM tab2
----
39
58
67

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL + - 48, + col1 + - 71 - - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 47 * + 78 * - - col0 * + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > - ( - col0 )
----

query I rowsort
SELECT ALL + + 23 * + col1 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT col2 + + + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT ALL - col2 + + - 66 * - 51 * - - 31 + + - col1 FROM tab1 AS cor0 WHERE + CAST( + col1 AS SIGNED ) < - ( - col2 )
----
104231
104236
104282

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - col2 + + - 66 * - 51 * - - 31 + + - col1 FROM tab1 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) < - ( - col2 )
----
104231
104236
104282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6900
SELECT + CAST( 1 AS SIGNED ) FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6900
SELECT + CAST ( 1 AS INTEGER ) FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL ( - 84 ) AS col0 FROM tab1 AS cor0
----
-84
-84
-84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1, col1, ( 63 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - col0 * - CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - col0 * - CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - MIN( DISTINCT + - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - MIN ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT DISTINCT CAST( + + COUNT( col1 ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT CAST ( + + COUNT ( col1 ) AS INTEGER ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( + 17 ) ) col0 FROM tab0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL + - MIN( ALL - ( + + col0 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + - MIN ( ALL - ( + + col0 ) ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL IN ( + col1 * + + col0, - col2, + col1 )
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 = 31 + - col0 / 72 + + col2 * col2
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 * + + col2 col0 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT ALL + + CAST( - + 42 AS SIGNED ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + + CAST ( - + 42 AS INTEGER ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT col1 * + + col0 + + ( - + 48 ) FROM tab2 AS cor0
----
2298
4880
4977

query I rowsort
SELECT DISTINCT - - ( - - col0 ) + - + col1 FROM tab0 cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL + COUNT( * ) + - - 19 + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL + COUNT ( * ) + - - 19 + COUNT ( * ) FROM tab0 AS cor0
----
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL + - SUM( ALL - col2 ) + ( COUNT( ( + col0 ) ) ) + + 31 AS col2 FROM tab2 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL + - SUM ( ALL - col2 ) + ( COUNT ( ( + col0 ) ) ) + + 31 AS col2 FROM tab2 AS cor0
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT DISTINCT - col0 DIV + - 39 + col0 FROM tab1
----
52
87
93

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - col0 / + - 39 + col0 FROM tab1
----
52
87
93

query I rowsort
SELECT - 67 AS col1 FROM tab0 WHERE + + ( - col2 ) * - col1 IS NULL
----

query I rowsort
SELECT - ( - 78 ) * - + col1 FROM tab2
----
-3978
-5226
-6006

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL <= - col2 - 78 * + col2
----

query I rowsort
SELECT ALL 91 * + 52 FROM tab1
----
4732
4732
4732

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 70 = col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 71 IS NULL
----

query I rowsort
SELECT + + col2 / + + 95 / col1 + + + col0 FROM tab2 AS cor0 WHERE col0 / - + 68 >= + col1
----

query I rowsort
SELECT - + col2 - + col1 * + + col1 FROM tab0 AS cor0
----
-100
-451
-6608

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT + col1 + + + col1 NOT BETWEEN col1 / col1 AND + col1
----

query I rowsort
SELECT ALL + col1 - ( + col0 ) FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT - col0 DIV - - col1 + - + col0 FROM tab2
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-6929
SELECT - col0 / - - col1 + - + col0 FROM tab2
----
-46
-64
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( 66 ) ) col0 FROM tab0
----
-66
-66
-66

query I rowsort
SELECT ALL + 33 FROM tab1 AS cor0 WHERE NOT ( - col2 IS NULL )
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT 52 * + + CAST( NULL AS SIGNED ) + + 67 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT 52 * + + CAST ( NULL AS INTEGER ) + + 67 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL COUNT( * ) * - COUNT( DISTINCT - + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL COUNT ( * ) * - COUNT ( DISTINCT - + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT + col2 DIV 30 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6934
SELECT + col2 / 30 FROM tab2 cor0
----
0
1
1

query II rowsort
SELECT + col0 * + - col0, + col1 FROM tab0 AS cor0
----
-225
81
-7569
21
-9409
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT ALL + col1 DIV + - col2 + 73 FROM tab0 cor0
----
71
72
73

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + col1 / + - col2 + 73 FROM tab0 cor0
----
71
72
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT DISTINCT MAX( DISTINCT - 98 ) DIV + ( - COUNT( * ) ) + - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT MAX ( DISTINCT - 98 ) / + ( - COUNT ( * ) ) + - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6939
SELECT - - 80 AS col2, COUNT( DISTINCT - 52 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
80
1

skipif mysql # not compatible
query II rowsort label-6939
SELECT - - 80 AS col2, COUNT ( DISTINCT - 52 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
80
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + ( - 76 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 IN ( + - col2 / + col0 + 44 + + - col2 + - col0 / 28 * + 97, + col1, - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT ALL col2 DIV + 46 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL col2 / + 46 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT + CAST( + 49 AS SIGNED ) AS col2 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-6943
SELECT + CAST ( + 49 AS INTEGER ) AS col2 FROM tab2
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6944
SELECT ALL - col2 DIV + 73 - + + 21 col2 FROM tab2 WHERE - 52 <= + 38
----
-21
-21
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6944
SELECT ALL - col2 / + 73 - + + 21 col2 FROM tab2 WHERE - 52 <= + 38
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 < - 86
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 IN ( 9, - 78 + - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 89 FROM tab2 cor0
----
89
89
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT + ( + 33 ) DIV COUNT( * ) AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6948
SELECT + ( + 33 ) / COUNT ( * ) AS col0 FROM tab2
----
11

query I rowsort
SELECT DISTINCT - ( + 12 ) FROM tab0 AS cor0 WHERE ( NULL ) > - + col0
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6951
SELECT ALL + col1 * - col1 * - CAST( NULL AS SIGNED ) + + col0 AS col0, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6951
SELECT ALL + col1 * - col1 * - CAST ( NULL AS INTEGER ) + + col0 AS col0, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6952
SELECT * FROM tab2 AS cor0 WHERE CAST( 32 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6952
SELECT * FROM tab2 AS cor0 WHERE CAST ( 32 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6953
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6954
SELECT DISTINCT - COUNT( * ) + + + 25 * + - 20 AS col2, + COUNT( * ) FROM tab0
----
-503
3

skipif mysql # not compatible
query II rowsort label-6954
SELECT DISTINCT - COUNT ( * ) + + + 25 * + - 20 AS col2, + COUNT ( * ) FROM tab0
----
-503
3

query I rowsort
SELECT - col0 * - - ( col0 ) + - col1 FROM tab1
----
-2615
-7230
-8328

query I rowsort
SELECT + col1 + - 51 FROM tab0
----
-30
-50
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + MAX( ALL - + col0 ) + - - 20 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-6957
SELECT + MAX ( ALL - + col0 ) + - - 20 FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT col2 / - CAST( NULL AS SIGNED ) * - 21 * - - col0 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT col2 / - CAST ( NULL AS INTEGER ) * - 21 * - - col0 + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 73 - + - col1 FROM tab1 WHERE + 7 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL - ( SUM( + 24 ) ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL - ( SUM ( + 24 ) ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6962
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT col2 * - col0 * + + col0 AS col1 FROM tab0 AS cor0
----
-10575
-75690
-931491

query II rowsort
SELECT + - 55, - col0 * - + 63 AS col1 FROM tab2 AS cor0
----
-55
2898
-55
4032
-55
4725

query I rowsort
SELECT ALL + - 84 + + - col0 AS col1 FROM tab2 AS cor0
----
-130
-148
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6967
SELECT col1 * + CAST( NULL AS SIGNED ) - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT col1 * + CAST ( NULL AS INTEGER ) - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 94 * - - col1 FROM tab0 AS cor0
----
-1974
-7614
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT - col1 * + 51 - col2 DIV - + col0 FROM tab0 AS cor0
----
-1071
-4128
-50

skipif mysql # not compatible
query I rowsort label-6969
SELECT - col1 * + 51 - col2 / - + col0 FROM tab0 AS cor0
----
-1071
-4128
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - + MIN( ALL col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6970
SELECT - + MIN ( ALL col0 ) FROM tab2 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT - + 40 * CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6971
SELECT - + 40 * CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

query I rowsort
SELECT DISTINCT - + 27 AS col0 FROM tab1 AS cor0
----
-27

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 53 NOT BETWEEN 12 AND 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6974
SELECT - COUNT( * ) * COUNT( * ) + + 77 - - 81 DIV - - COUNT( DISTINCT - - 79 ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
149

skipif mysql # not compatible
query I rowsort label-6974
SELECT - COUNT ( * ) * COUNT ( * ) + + 77 - - 81 / - - COUNT ( DISTINCT - - 79 ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-6975
SELECT - COUNT( * ) * - + 66, 67 * + 48 AS col0 FROM tab1 AS cor0
----
198
3216

skipif mysql # not compatible
query II rowsort label-6975
SELECT - COUNT ( * ) * - + 66, 67 * + 48 AS col0 FROM tab1 AS cor0
----
198
3216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, col2 * 49 * - col2 col0 FROM tab1 AS cor0
----
59
-170569
68
-226576
96
-451584

query I rowsort
SELECT - col1 * 37 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 * - col0 AS col1 FROM tab0 WHERE NOT + + col1 - + + col2 IS NULL
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL = 56 * - col1 * - col0 + + ( - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6979
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL = 56 * - col1 * - col0 + + ( - + col1 )
----
0

query I rowsort
SELECT - col2 * - + col2 - - 20 AS col0 FROM tab1 AS cor0
----
3501
4644
9236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6981
SELECT ALL + COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL + COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 47 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 99 * + 93 AS col0 FROM tab2
----
9207
9207
9207

query I rowsort
SELECT - col2 * - col1 - col2 + + - col0 - - + 90 AS col2 FROM tab0 cor0
----
-7
203
3835

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 41 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT ALL + 77 + - col2 DIV + - ( + 94 ) AS col2 FROM tab0 cor0
----
77
77
78

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + 77 + - col2 / + - ( + 94 ) AS col2 FROM tab0 cor0
----
77
77
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6987
SELECT DISTINCT - + col0 * + col1 + - CAST( NULL AS DECIMAL ) - - 14 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT - + col0 * + col1 + - CAST ( NULL AS REAL ) - - 14 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + + ( 72 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT ALL col2 DIV + - col2 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL col2 / + - col2 AS col1 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * + + col1 * col2 col1 FROM tab1
----
20060
217328
91392

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT COUNT( * ) - - SUM( + + col1 ) - + ( + 58 ) * + 30 * + 79 AS col2 FROM tab0
----
-137354

skipif mysql # not compatible
query I rowsort label-6991
SELECT COUNT ( * ) - - SUM ( + + col1 ) - + ( + 58 ) * + 30 * + 79 AS col2 FROM tab0
----
-137354

query I rowsort
SELECT - col2 * 28 + + - col1 FROM tab0 AS cor0
----
-1397
-2773
-301

query I rowsort
SELECT ALL + 35 * col1 + 73 + - + 54 AS col2 FROM tab1 AS cor0
----
1664
194
509

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT - 4 DIV col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6994
SELECT - 4 / col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT + col2, - col0 * - col1 FROM tab2
----
23
2346
40
4928
58
5025

query I rowsort
SELECT 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT - 63 * + 52 + + SUM( 54 ) AS col1 FROM tab0 AS cor0 WHERE NOT 16 IS NULL
----
-3114

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT - 63 * + 52 + + SUM ( 54 ) AS col1 FROM tab0 AS cor0 WHERE NOT 16 IS NULL
----
-3114

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 31 * + col0 * + col1 + + col0 <= col1 * ( col2 )
----

query I rowsort
SELECT + - col1 * - 90 AS col1 FROM tab0 AS cor0
----
1890
7290
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7001
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-7001
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - MIN( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7002
SELECT - MIN ( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT col1 AS col1, col0 + - col0 FROM tab2
----
51
0
67
0
77
0

query II rowsort
SELECT - 4, + col0 FROM tab0
----
-4
15
-4
87
-4
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7005
SELECT ALL - col2 * - 31 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - col2 * - 31 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 88 * - + col0 FROM tab2
----
-4025
-5592
-6542

onlyif mysql # DIV for integer division: 
query I rowsort label-7007
SELECT ALL + 50 * col2 DIV + col1 - ( - col1 ) AS col2 FROM tab1 AS cor0
----
119
356
595

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + 50 * col2 / + col1 - ( - col1 ) AS col2 FROM tab1 AS cor0
----
119
356
595

query I rowsort
SELECT DISTINCT - col1 + col1 - + - 58 FROM tab0 AS cor0
----
58

query I rowsort
SELECT - - 56 * + col0 * 84 + - 73 FROM tab2 AS cor0
----
216311
300983
352727

query I rowsort
SELECT DISTINCT - col2 + + 94 AS col1 FROM tab0 AS cor0
----
-5
47
84

query I rowsort
SELECT + - ( - col2 ) + - 85 * - col1 FROM tab2 AS cor0
----
4358
5753
6585

onlyif mysql # aggregate syntax: 
query III rowsort label-7012
SELECT ALL 9 + - COUNT( * ) AS col2, COUNT( * ) AS col1, - 10 FROM tab2 AS cor0
----
6
3
-10

skipif mysql # not compatible
query III rowsort label-7012
SELECT ALL 9 + - COUNT ( * ) AS col2, COUNT ( * ) AS col1, - 10 FROM tab2 AS cor0
----
6
3
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT + COUNT( + 55 ) + + ( - ( COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT + COUNT ( + 55 ) + + ( - ( COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7014
SELECT - CAST( + COUNT( DISTINCT + col2 ) AS SIGNED ) + + 18 col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7014
SELECT - CAST ( + COUNT ( DISTINCT + col2 ) AS INTEGER ) + + 18 col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab1 WHERE NULL = - + 17
----

query I rowsort
SELECT 6 * 76 * col1 AS col2 FROM tab1
----
21432
2280
6384

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL = - 21
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7018
SELECT * FROM tab0 WHERE CAST( + - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7018
SELECT * FROM tab0 WHERE CAST ( + - col2 AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 AS col0, ( 44 ) col1 FROM tab1
----
55
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT COUNT( 4 ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7020
SELECT COUNT ( 4 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + - 69 FROM tab0 cor0
----
-69

query I rowsort
SELECT - 49 * 65 AS col0 FROM tab1 AS cor0
----
-3185
-3185
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT COUNT( * ) * + COUNT( + - 54 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7023
SELECT COUNT ( * ) * + COUNT ( + - 54 ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 78 * + + 0 + - col2 * col1 <= + 95
----

query I rowsort
SELECT - 63 * - 26 AS col1 FROM tab2 AS cor0
----
1638
1638
1638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 31 col1, col2 * col2 AS col1 FROM tab1 cor0
----
31
3481
31
4624
31
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT MAX( - 46 ) + 53 AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-7027
SELECT MAX ( - 46 ) + 53 AS col1 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT SUM( - 44 ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7028
SELECT SUM ( - 44 ) FROM tab1
----
-132

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND 77
----
51
14
96

query I rowsort
SELECT DISTINCT - ( - 3 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN 71 AND ( 54 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * + col1 + 27 ) NOT BETWEEN ( + col2 - 85 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN ( + col2 ) AND ( ( col1 ) * + 11 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT MAX( + 13 ) col1 FROM tab0 WHERE ( col2 ) + - CAST( NULL AS SIGNED ) NOT IN ( ( col0 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7035
SELECT MAX ( + 13 ) col1 FROM tab0 WHERE ( col2 ) + - CAST ( NULL AS INTEGER ) NOT IN ( ( col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT - ( COUNT( col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - ( COUNT ( col0 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT + col2 DIV col2 + 32 FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-7037
SELECT + col2 / col2 + 32 FROM tab1
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7038
SELECT + col0 DIV 49 + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
46
65
76

skipif mysql # not compatible
query I rowsort label-7038
SELECT + col0 / 49 + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
46
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE ( col0 ) < 69 / - col2
----

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( col0 ) < 69 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT CAST( + 38 AS SIGNED ) + + col1 * + 33 FROM tab0
----
2711
71
731

skipif mysql # not compatible
query I rowsort label-7040
SELECT CAST ( + 38 AS INTEGER ) + + col1 * + 33 FROM tab0
----
2711
71
731

query I rowsort
SELECT ALL col0 * 68 FROM tab2
----
3128
4352
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT ALL + CAST( NULL AS SIGNED ) / + 96 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL + CAST ( NULL AS INTEGER ) / + 96 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT - MAX( ALL col2 ) + - 51 FROM tab2 WHERE - col1 = col1 / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT - MAX ( ALL col2 ) + - 51 FROM tab2 WHERE - col1 = col1 / 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( + col1 ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( + col1 ) >= ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col2 ) >= NULL
----

query I rowsort
SELECT + 44 + 68 AS col1 FROM tab1
----
112
112
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT - MIN( - 1 ) + - MAX( ALL 14 ) AS col2 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-7047
SELECT - MIN ( - 1 ) + - MAX ( ALL 14 ) AS col2 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT - 86 / + CAST( NULL AS SIGNED ) - + AVG ( ( col2 ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT - 86 / + CAST ( NULL AS INTEGER ) - + AVG ( ( col2 ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 69 * - col2 FROM tab0
----
3243
6831
690

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < 38 * 53 + + col1
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE ( NULL ) <= 73 + - col2 * 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL 13 AS col1 FROM tab1 WHERE NOT NULL < + 68 * - CAST( + 5 AS SIGNED ) + col1 * + col1
----

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 13 AS col1 FROM tab1 WHERE NOT NULL < + 68 * - CAST ( + 5 AS INTEGER ) + col1 * + col1
----

query I rowsort
SELECT + col2 * 38 AS col1 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL + ( COUNT( * ) ) * 5 AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + ( COUNT ( * ) ) * 5 AS col0 FROM tab2
----
15

query I rowsort
SELECT - 81 * col1 + + col1 AS col2 FROM tab1
----
-1120
-3760
-400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col0 + 6 col1 FROM tab0 AS cor0
----
231
7575
9415

onlyif mysql # DIV for integer division: 
query I rowsort label-7057
SELECT + col1 DIV 11 FROM tab2 AS cor0
----
4
6
7

skipif mysql # not compatible
query I rowsort label-7057
SELECT + col1 / 11 FROM tab2 AS cor0
----
4
6
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + + ( MAX( ALL + ( + col0 ) ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7058
SELECT + + ( MAX ( ALL + ( + col0 ) ) ) FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT - 96 DIV col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7059
SELECT - 96 / col0 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL 63 * - COUNT( ALL + col0 * 28 + col1 / - col2 ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL 63 * - COUNT ( ALL + col0 * 28 + col1 / - col2 ) FROM tab2 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT - + COUNT( * ) + 71 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - + COUNT ( * ) + 71 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT DISTINCT - COUNT( * ) + + 91 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - COUNT ( * ) + + 91 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT + 68 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT + 68 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab1 AS cor0 WHERE ( - col0 ) BETWEEN NULL AND + col0 * + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT + 84 / + col0 FROM tab1 cor0 WHERE col0 * col1 BETWEEN ( + CAST( - col1 AS SIGNED ) - 77 / 23 ) AND 16
----

skipif mysql # not compatible
query I rowsort label-7065
SELECT + 84 / + col0 FROM tab1 cor0 WHERE col0 * col1 BETWEEN ( + CAST ( - col1 AS INTEGER ) - 77 / 23 ) AND 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL COUNT( * ) * + + 43 - + 95 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL COUNT ( * ) * + + 43 - + 95 FROM tab2
----
34

query I rowsort
SELECT - 91 - + 28 * + ( 92 + col2 * col0 ) FROM tab1
----
-139755
-143087
-175931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT - CAST( NULL AS SIGNED ) * - + col2 * + 30 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT - CAST ( NULL AS INTEGER ) * - + col2 * + 30 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( 88 ) FROM tab1 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL - COUNT( - - 77 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7070
SELECT ALL - COUNT ( - - 77 ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 79 * col2 + + col1 ) BETWEEN NULL AND + ( ( 79 ) )
----

query I rowsort
SELECT col2 * + col2 * 89 AS col1 FROM tab0
----
196601
872289
8900

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE - 60 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE - 60 IS NULL
----
0

query I rowsort
SELECT ALL - 78 FROM tab1 WHERE ( + + col0 ) IS NOT NULL
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7075
SELECT + - CAST( 11 AS SIGNED ) FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-7075
SELECT + - CAST ( 11 AS INTEGER ) FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL + MIN( ALL ( - 65 ) ) AS col2 FROM tab2 AS cor0 WHERE - col0 + + 19 / + col2 <= - col2
----
-65

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + MIN ( ALL ( - 65 ) ) AS col2 FROM tab2 AS cor0 WHERE - col0 + + 19 / + col2 <= - col2
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-7077
SELECT + 46 AS col2, - col2 DIV + col0 + col0 * col2 FROM tab2 AS cor0
----
46
1058
46
2560
46
4350

skipif mysql # not compatible
query II rowsort label-7077
SELECT + 46 AS col2, - col2 / + col0 + col0 * col2 FROM tab2 AS cor0
----
46
1058
46
2560
46
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7078
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - - col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7078
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - - col2 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 * + col1 + - col1 FROM tab1 cor0
----
182
20
2162

query II rowsort
SELECT ALL - col1 AS col2, + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT CAST( - 20 AS SIGNED ) * col2 AS col2 FROM tab2 cor0
----
-1160
-460
-800

skipif mysql # not compatible
query I rowsort label-7081
SELECT CAST ( - 20 AS INTEGER ) * col2 AS col2 FROM tab2 cor0
----
-1160
-460
-800

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 3 - - 71 NOT BETWEEN ( NULL ) AND 38 / 72
----

query I rowsort
SELECT 84 FROM tab1 cor0 WHERE NOT ( col2 / + - ( 25 ) ) BETWEEN + 44 AND ( NULL )
----
84
84
84

query I rowsort
SELECT 58 * - 17 FROM tab2 AS cor0
----
-986
-986
-986

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT DISTINCT + 72 * + - 71 + + + 12 DIV col2 FROM tab0 AS cor0
----
-5111
-5112

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT + 72 * + - 71 + + + 12 / col2 FROM tab0 AS cor0
----
-5111
-5112

onlyif mysql # aggregate syntax: 
query II rowsort label-7086
SELECT ALL - COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7086
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col2 * col1 )
----

query I rowsort
SELECT + col0 * - col0 * + 89 + 67 AS col0 FROM tab2 AS cor0
----
-188257
-364477
-500558

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL SUM( + col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7089
SELECT ALL SUM ( + col2 ) col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7090
SELECT + 77 DIV + COUNT( * ) AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-7090
SELECT + 77 / + COUNT ( * ) AS col0 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT + SUM( ALL + - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + SUM ( ALL + - col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT ( - SUM( ALL ( - 67 ) ) ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT ( - SUM ( ALL ( - 67 ) ) ) FROM tab2
----
201

query I rowsort
SELECT ALL + ( + col1 ) + ( + col1 ) * + ( + ( 20 ) ) AS col0 FROM tab0 cor0
----
1701
21
441

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + col2 BETWEEN - + col2 * - col2 + + col0 AND - col0 * col1
----

query I rowsort
SELECT ALL + col2 * + col0 + + 58 * + - col0 FROM tab0 AS cor0
----
-165
-4176
3977

query I rowsort
SELECT 12 - 59 * + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 36 * col0 * - ( 30 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT ALL col1 + + + col2 DIV - col1 FROM tab1 AS cor0
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL col1 + + + col2 / - col1 FROM tab1 AS cor0
----
-6
46
8

query I rowsort
SELECT ALL + + 52 - 64 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT MAX( DISTINCT col1 ) * - - 30 FROM tab0
----
2430

skipif mysql # not compatible
query I rowsort label-7099
SELECT MAX ( DISTINCT col1 ) * - - 30 FROM tab0
----
2430

query III rowsort
SELECT * FROM tab1 WHERE 48 * + - col2 + - - col1 + - 49 + + 0 * 48 < NULL
----

query I rowsort
SELECT ALL + 5 * + + col2 AS col1 FROM tab1 AS cor0
----
295
340
480

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT + col0 + + - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT + col0 + + - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * ( + col1 ) + - + col1 + - + 60 AS col2 FROM tab1 AS cor0
----
-4384
-490
-788

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT + - MAX( 92 ) + - + COUNT( * ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7107
SELECT + - MAX ( 92 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT + col0 + - 6 AS col2 FROM tab0 AS cor0 WHERE NOT 73 IN ( - - col2 )
----
81
9
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT - CAST( + col0 AS SIGNED ) + + - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

skipif mysql # not compatible
query I rowsort label-7109
SELECT - CAST ( + col0 AS INTEGER ) + + - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7110
SELECT 56 AS col1, CAST( NULL AS SIGNED ) - - col0 FROM tab1
----
56
NULL
56
NULL
56
NULL

skipif mysql # not compatible
query II rowsort label-7110
SELECT 56 AS col1, CAST ( NULL AS INTEGER ) - - col0 FROM tab1
----
56
NULL
56
NULL
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7111
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( - CAST( + ( + col0 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7111
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( - CAST ( + ( + col0 ) AS INTEGER ) )
----

query I rowsort
SELECT ALL - 70 * col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, - col1 * - col0 )
----

query I rowsort
SELECT - 2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-10050
-4692
-9856

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - col0 * + + 78 FROM tab0 AS cor0
----
142506
7566
94770

query I rowsort
SELECT - ( - - 83 ) FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT + + SUM( + + col2 ) col0 FROM tab1 WHERE NOT + col2 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7118
SELECT + + SUM ( + + col2 ) col0 FROM tab1 WHERE NOT + col2 > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 / + col1 + ( - col2 ) + - col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - - COUNT( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7120
SELECT - - COUNT ( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7121
SELECT - - ( + CAST( NULL AS SIGNED ) ) / col1 FROM tab0 AS cor0 WHERE NOT col2 > - + ( + col1 ) + 19
----

skipif mysql # not compatible
query I rowsort label-7121
SELECT - - ( + CAST ( NULL AS INTEGER ) ) / col1 FROM tab0 AS cor0 WHERE NOT col2 > - + ( + col1 ) + 19
----

query II rowsort
SELECT + col2 + - col2, col0 AS col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 + + col2 IS NOT NULL
----

query II rowsort
SELECT - col2 + + col2 AS col0, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT ALL + 46 + ( col0 ) FROM tab0 AS cor0
----
133
143
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 + + 59 col1 FROM tab2 AS cor0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT - col2 * col2 + + col2 - CAST( NULL AS SIGNED ) + + col0 * 5 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-7127
SELECT - col2 * col2 + + col2 - CAST ( NULL AS INTEGER ) + + col0 * 5 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - - 27 + + ( + + 42 ) AS col1 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT + col1 DIV + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7130
SELECT + col1 / + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7131
SELECT + - COUNT( DISTINCT - 26 ) * - MAX( + col1 ) DIV + ( COUNT( DISTINCT col2 ) ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7131
SELECT + - COUNT ( DISTINCT - 26 ) * - MAX ( + col1 ) / + ( COUNT ( DISTINCT col2 ) ) FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7132
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 WHERE NOT + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT + + 51 * + col1 + - 39 + + CAST( NULL AS SIGNED ) * + 26 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - + col0 * col1
----

skipif mysql # not compatible
query I rowsort label-7133
SELECT + + 51 * + col1 + - 39 + + CAST ( NULL AS INTEGER ) * + 26 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - + col0 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT ALL + 69 DIV - col1 col0 FROM tab0
----
-3
-69
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7134
SELECT ALL + 69 / - col1 col0 FROM tab0
----
-3
-69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL 80 * - - COUNT( * ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL 80 * - - COUNT ( * ) FROM tab1
----
240

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NULL BETWEEN 62 AND + col0 / + + 75 * - col2
----

query I rowsort
SELECT DISTINCT - col1 + - 11 FROM tab2
----
-62
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT MIN( DISTINCT col2 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7138
SELECT MIN ( DISTINCT col2 ) col2 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT + col2 DIV col0 - + - col1 FROM tab0 AS cor0 WHERE + 55 NOT BETWEEN - - col2 * col0 AND NULL
----
2
21
84

skipif mysql # not compatible
query I rowsort label-7139
SELECT + col2 / col0 - + - col1 FROM tab0 AS cor0 WHERE + 55 NOT BETWEEN - - col2 * col0 AND NULL
----
2
21
84

query I rowsort
SELECT col1 * - 83 - col0 AS col2 FROM tab0 cor0
----
-180
-1830
-6738

query II rowsort
SELECT + + 65 AS col1, - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 33 ) AS col2 FROM tab2
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT - CAST( - 57 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
1311
2280
3306

skipif mysql # not compatible
query I rowsort label-7143
SELECT - CAST ( - 57 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
1311
2280
3306

query II rowsort
SELECT ALL + ( - - col1 ) AS col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT SUM( - + 12 ) * 18 FROM tab1
----
-648

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT SUM ( - + 12 ) * 18 FROM tab1
----
-648

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 / col1 * + col2 BETWEEN NULL AND - + col1
----

query II rowsort
SELECT col0, + 47 FROM tab2
----
46
47
64
47
75
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IN ( col1 * col1 )
----

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IN ( col1 * col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND 87 + - col1
----

query I rowsort
SELECT - col0 * + - 21 FROM tab1
----
1071
1785
1911

query I rowsort
SELECT DISTINCT 98 * + col1 FROM tab2
----
4998
6566
7546

query I rowsort
SELECT ALL 71 * col1 AS col2 FROM tab2
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT DISTINCT COUNT( * ) * + 91 + 73 AS col0 FROM tab2 cor0
----
346

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT COUNT ( * ) * + 91 + 73 AS col0 FROM tab2 cor0
----
346

query I rowsort
SELECT ALL - 40 * - col2 + - + col2 * - - col2 + + + col0 FROM tab2 AS cor0
----
-969
437
64

query I rowsort
SELECT + - col2 * col2 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
102477
24385
252367

query I rowsort
SELECT DISTINCT - 91 + + + 18 AS col1 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT DISTINCT col1 * - 61 FROM tab2 AS cor0
----
-3111
-4087
-4697

query I rowsort
SELECT + col0 * - - 17 FROM tab1 AS cor0
----
1445
1547
867

query I rowsort
SELECT + + col1 + + col1 * 67 FROM tab0 AS cor0
----
1428
5508
68

query I rowsort
SELECT - 14 + - + col2 FROM tab2 AS cor0
----
-37
-54
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT COUNT( ALL + col2 ) + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7163
SELECT COUNT ( ALL + col2 ) + - COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + - col1 + - col2 * - - 49 FROM tab1
----
-2811
-3288
-4667

query I rowsort
SELECT ALL + 41 * - col1 AS col2 FROM tab0
----
-3321
-41
-861

query III rowsort
SELECT * FROM tab2 WHERE ( NULL BETWEEN ( NULL ) AND NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( 74 ) > + 57 + - col0 )
----

query I rowsort
SELECT ALL col0 * + 15 + + col0 FROM tab0
----
1392
1552
240

query II rowsort
SELECT + 41, 89 * - + col0 * + + col0 AS col1 FROM tab2 AS cor0 WHERE 99 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col2 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - col0 + + + col1 + + col1 + + col1 FROM tab1 AS cor0
----
-70
-9
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT + COUNT( * ) * - COUNT( * ) - - 54 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-7172
SELECT + COUNT ( * ) * - COUNT ( * ) - - 54 FROM tab1 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT - + MAX( DISTINCT + col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7173
SELECT - + MAX ( DISTINCT + col1 ) FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - 36 - 33 * + COUNT( * ) * + MAX( + col2 ) * + MAX( col2 ) * 99 AS col2 FROM tab1
----
-90326052

skipif mysql # not compatible
query I rowsort label-7174
SELECT - 36 - 33 * + COUNT ( * ) * + MAX ( + col2 ) * + MAX ( col2 ) * 99 AS col2 FROM tab1
----
-90326052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT - CAST( - - col1 AS SIGNED ) FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7175
SELECT - CAST ( - - col1 AS INTEGER ) FROM tab1 cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT - col2, + col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT - col0 * + col0 * - col1 + - ( + + 94 ) + col1 AS col2, - 26 FROM tab2 AS cor0
----
107873
-26
315375
-26
376848
-26

query I rowsort
SELECT DISTINCT - 81 * 38 * - col2 * - col0 AS col0 FROM tab1
----
-15069888
-15436170
-19046664

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL OR ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 65 FROM tab1 cor0
----
65
65
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7182
SELECT - + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7182
SELECT - + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT + MAX( - 5 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + MAX ( - 5 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL + - 72 * + + col2 + + - 94 * - - col1 * - 73 * 25 + + + col2 + - 92 * + 62 + col2 + + col0 + + 83 AS col0 FROM tab2 AS cor0
----
11484244
13200993
8741865

query I rowsort
SELECT 66 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 77 * col1 FROM tab0
----
-1617
-6237
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 54 col0 FROM tab0
----
2538
5346
540

query I rowsort
SELECT + + col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT ALL + col1 * CAST( - 6 AS SIGNED ) AS col0 FROM tab2
----
-306
-402
-462

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + col1 * CAST ( - 6 AS INTEGER ) AS col0 FROM tab2
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT + 1 + - + COUNT( * ) - + 7 + + COUNT( + col0 ) * ( - 60 ) AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-7190
SELECT + 1 + - + COUNT ( * ) - + 7 + + COUNT ( + col0 ) * ( - 60 ) AS col1 FROM tab0
----
-189

query I rowsort
SELECT + 60 * + col2 * col1 + col1 AS col1 FROM tab2
----
184877
233227
70431

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT col1 DIV - col0 + - col1 AS col2 FROM tab0 cor0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-7192
SELECT col1 / - col0 + - col1 AS col2 FROM tab0 cor0
----
-1
-21
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7193
SELECT + CAST( NULL AS SIGNED ) + + 26 * col1 AS col1, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7193
SELECT + CAST ( NULL AS INTEGER ) + + 26 * col1 AS col1, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT - - 88 + + col1 AS col1 FROM tab2 AS cor0
----
139
155
165

query I rowsort
SELECT - - 73 * - col0 AS col2 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT SUM( - 22 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7196
SELECT SUM ( - 22 ) FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL - 34 + + 27 + - SUM( DISTINCT - + col2 ) + - + 67 AS col1 FROM tab1 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL - 34 + + 27 + - SUM ( DISTINCT - + col2 ) + - + 67 AS col1 FROM tab1 AS cor0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - SUM( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - SUM ( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL + 19 + + - COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL + 19 + + - COUNT ( * ) FROM tab0 AS cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - 58 col2 FROM tab2 AS cor0
----
-2958
-3886
-4466

query III rowsort
SELECT * FROM tab2 WHERE col1 / col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT IN ( + - 21 * + - 77 + + + ( col1 ) )
----

query I rowsort
SELECT DISTINCT + col1 * - 81 - + col0 FROM tab1
----
-1185
-3898
-490

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE col1 / 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - - MIN( - col0 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT - - MIN ( - col0 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT ALL col0 DIV - 18 AS col0 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL col0 / - 18 AS col0 FROM tab0
----
-4
-5
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7208
SELECT col1 DIV + col2, col0 FROM tab0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-7208
SELECT col1 / + col2, col0 FROM tab0
----
0
97
1
15
2
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT - 8 DIV - 71 - + 63 AS col1 FROM tab0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-7209
SELECT - 8 / - 71 - + 63 AS col1 FROM tab0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL + MAX( - 7 ) AS col2 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + MAX ( - 7 ) AS col2 FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL + MAX( - col0 ) + - 0 col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7211
SELECT ALL + MAX ( - col0 ) + - 0 col2 FROM tab1
----
-51

query I rowsort
SELECT + 16 * + 6 - 12 FROM tab0
----
84
84
84

query I rowsort
SELECT + col2 - - + col2 FROM tab2 cor0
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 79 <= col1
----
15
81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col0 + - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + col1 * 6 + - 56 AS col2 FROM tab0 AS cor0
----
-49
511
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL - ( SUM( 85 ) ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - ( SUM ( 85 ) ) FROM tab0
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-7218
SELECT ALL + 39, COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
39
9

skipif mysql # not compatible
query II rowsort label-7218
SELECT ALL + 39, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
39
9

query II rowsort
SELECT col1 * - col0, + ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 89 * - col1 * + - ( - + ( - - col1 ) ) + 78 <= ( - 32 )
----
-2346
51
-4928
77
-5025
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT DISTINCT ( + ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT + COUNT( ALL + - col0 ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7222
SELECT + COUNT ( ALL + - col0 ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT - CAST( + ( + + SUM( ALL + col2 ) ) AS SIGNED ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7223
SELECT - CAST ( + ( + + SUM ( ALL + col2 ) ) AS INTEGER ) AS col2 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT 73 DIV - - col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7224
SELECT 73 / - - col0 FROM tab2
----
0
1
1

query II rowsort
SELECT - 3, + col0 FROM tab1
----
-3
51
-3
85
-3
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL + COUNT( * ) + 58 + - - MAX( + - col0 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + COUNT ( * ) + 58 + - - MAX ( + - col0 ) FROM tab0
----
46

query III rowsort
SELECT * FROM tab2 WHERE + ( + 83 ) + 46 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT - SUM( + 89 ) AS col1 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT - SUM ( + 89 ) AS col1 FROM tab1
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL + MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT - CAST( - ( + col2 ) AS SIGNED ) + col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7230
SELECT - CAST ( - ( + col2 ) AS INTEGER ) + col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT ALL - col2 + col1 + - + col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT col2 + + col2 + + col0 + + col0 AS col0 FROM tab0 AS cor0
----
124
194
392

query I rowsort
SELECT ALL - + col0 + - - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT - COUNT( * ) + - 61 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-7234
SELECT - COUNT ( * ) + - 61 FROM tab1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE - col2 NOT IN ( - + CAST( + + col1 AS SIGNED ), - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7235
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE - col2 NOT IN ( - + CAST ( + + col1 AS INTEGER ), - col1 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( - - ( - - 19 ) / - - col0, 93 )
----

query I rowsort
SELECT - 92 + - - 76 + - 24 AS col1 FROM tab1
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT 79 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT 79 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 * + + ( - col2 ) - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7240
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7240
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 col2 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 80 col0 FROM tab1 AS cor0 WHERE NOT - 7 IS NULL
----
-12
-21
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT - - COUNT( * ) * - SUM( - 52 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
468

skipif mysql # not compatible
query I rowsort label-7243
SELECT - - COUNT ( * ) * - SUM ( - 52 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
468

query II rowsort
SELECT + 42 - - col0 * 63, + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 + - col1 * + - col0 AND - 80
----

query I rowsort
SELECT - col2 * - 33 * + col0 AS col1 FROM tab1 AS cor0
----
161568
165495
204204

query II rowsort
SELECT DISTINCT col1 AS col2, col2 + - 50 FROM tab1 AS cor0
----
14
46
47
18
5
9

query I rowsort
SELECT + col0 * 60 AS col1 FROM tab0 AS cor0
----
5220
5820
900

onlyif mysql # DIV for integer division: 
query II rowsort label-7249
SELECT 71 DIV col1 * 43 - - 25, + col0 + + col1 AS col0 FROM tab0 cor0
----
154
108
25
96
3078
98

skipif mysql # not compatible
query II rowsort label-7249
SELECT 71 / col1 * 43 - - 25, + col0 + + col1 AS col0 FROM tab0 cor0
----
154
108
25
96
3078
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT DISTINCT col2 DIV 17 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT col2 / 17 FROM tab0 AS cor0
----
0
2
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7251
SELECT ( + COUNT( * ) ), MIN( ALL + - ( 64 ) ) AS col0 FROM tab2
----
3
-64

skipif mysql # not compatible
query II rowsort label-7251
SELECT ( + COUNT ( * ) ), MIN ( ALL + - ( 64 ) ) AS col0 FROM tab2
----
3
-64

query I rowsort
SELECT ALL + 53 * col0 * - ( + 98 ) FROM tab2
----
-238924
-332416
-389550

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - + 34 BETWEEN 52 + - + col1 - - 4 AND + + 65
----
51
14
96

query I rowsort
SELECT ALL - 59 AS col0 FROM tab2 AS cor0 WHERE NOT 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT ALL col1 + 56 + col1 DIV 96 AS col1 FROM tab1 AS cor0
----
103
61
70

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL col1 + 56 + col1 / 96 AS col1 FROM tab1 AS cor0
----
103
61
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IN ( + col0, + 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 78 ) AS col2 FROM tab0 AS cor0
----
78
78
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - 93
----

query II rowsort
SELECT + 72, + 41 AS col2 FROM tab0 AS cor0
----
72
41
72
41
72
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT DISTINCT col0 DIV + - 90 + - col0 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT col0 / + - 90 + - col0 FROM tab1 AS cor0
----
-51
-85
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - col1 ) - + 63 FROM tab0
----
-144
-64
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT DISTINCT 94 - CAST( - MIN( ( - + 42 ) ) AS SIGNED ) col1 FROM tab0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7263
SELECT DISTINCT 94 - CAST ( - MIN ( ( - + 42 ) ) AS INTEGER ) col1 FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - 74 + - - COUNT( * ) - - 40 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-7264
SELECT - 74 + - - COUNT ( * ) - - 40 FROM tab0
----
-31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 * - col2 IN ( - 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - 28 FROM tab2
----
1428
1876
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT COUNT( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7268
SELECT + 42 AS col0, - COUNT( * ) FROM tab0
----
42
-3

skipif mysql # not compatible
query II rowsort label-7268
SELECT + 42 AS col0, - COUNT ( * ) FROM tab0
----
42
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT - SUM( - 2 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7269
SELECT - SUM ( - 2 ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL col2 * 82 + + col0 - 96 AS col0 FROM tab1 AS cor0
----
4827
5571
7827

query I rowsort
SELECT ALL + 38 AS col0 FROM tab0 cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT DISTINCT + + CAST( + + col2 AS SIGNED ) * - - 52 * + - ( + col1 ) FROM tab1 AS cor0
----
-15340
-166192
-69888

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT + + CAST ( + + col2 AS INTEGER ) * - - 52 * + - ( + col1 ) FROM tab1 AS cor0
----
-15340
-166192
-69888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 AS cor0 WHERE NOT - col0 * col2 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7274
SELECT - + ( + + col2 ) / CAST( NULL AS DECIMAL ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7274
SELECT - + ( + + col2 ) / CAST ( NULL AS REAL ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7275
SELECT ALL + COUNT( * ) AS col2, 5 * + 88 FROM tab0
----
3
440

skipif mysql # not compatible
query II rowsort label-7275
SELECT ALL + COUNT ( * ) AS col2, 5 * + 88 FROM tab0
----
3
440

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT + SUM( - 67 ) FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-7276
SELECT + SUM ( - 67 ) FROM tab1
----
-201

query I rowsort
SELECT - + col0 * 69 * + col2 FROM tab1 WHERE NOT col1 = - + col1
----
-337824
-346035
-426972

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT MIN( ALL + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7278
SELECT MIN ( ALL + - col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7279
SELECT ALL CAST( NULL AS SIGNED ) col1, - ( COUNT( * ) ) AS col2 FROM tab0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7279
SELECT ALL CAST ( NULL AS INTEGER ) col1, - ( COUNT ( * ) ) AS col2 FROM tab0
----
NULL
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) * col1 + col2 AS col0, + ( + + col1 ) col1 FROM tab2
----
1196
51
3120
77
3944
67

query I rowsort
SELECT ( + 63 ) + + col0 FROM tab2
----
109
127
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT + COUNT( * ) + + + 20 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7282
SELECT + COUNT ( * ) + + + 20 FROM tab0
----
23

query I rowsort
SELECT + col1 + + 90 * 60 AS col0 FROM tab0
----
5401
5421
5481

query I rowsort
SELECT DISTINCT + col1 * - 28 FROM tab0
----
-2268
-28
-588

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7285
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( - col1 ) ) <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7285
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( - col1 ) ) <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT ALL col0 + + col0 + - - col1 + col0 DIV - 24 FROM tab1 cor0
----
114
172
226

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL col0 + + col0 + - - col1 + col0 / - 24 FROM tab1 cor0
----
114
172
226

query I rowsort
SELECT DISTINCT - + col1 + - - 49 AS col0 FROM tab0 AS cor0
----
-32
28
48

query I rowsort
SELECT ALL + + col1 + + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT + 87 col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7289
SELECT + 87 col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
87
3

query I rowsort
SELECT ALL - 15 - col1 AS col1 FROM tab1
----
-20
-29
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7291
SELECT 77 DIV col2 col1 FROM tab2
----
1
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7291
SELECT 77 / col2 col1 FROM tab2
----
1
1
3

query I rowsort
SELECT DISTINCT - 9 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT + 52 + - - col1 * - col1 * - CAST( NULL AS SIGNED ) + - col2 - - col2 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND 19
----

skipif mysql # not compatible
query I rowsort label-7293
SELECT + 52 + - - col1 * - col1 * - CAST ( NULL AS INTEGER ) + - col2 - - col2 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT - - ( + COUNT( - col0 ) ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7294
SELECT - - ( + COUNT ( - col0 ) ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT ALL - 97 + - - 47 + + - SUM( - 47 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - 97 + - - 47 + + - SUM ( - 47 ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT + + col0 + + + CAST( + - col1 AS SIGNED ) * + col2 * col0 + - 76 AS col0 FROM tab1 AS cor0
----
-25066
-290821
-68569

skipif mysql # not compatible
query I rowsort label-7296
SELECT + + col0 + + + CAST ( + - col1 AS INTEGER ) * + col2 * col0 + - 76 AS col0 FROM tab1 AS cor0
----
-25066
-290821
-68569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT - - col1 + - + ( - CAST( - - 80 AS SIGNED ) ) FROM tab1 AS cor0
----
127
85
94

skipif mysql # not compatible
query I rowsort label-7297
SELECT - - col1 + - + ( - CAST ( - - 80 AS INTEGER ) ) FROM tab1 AS cor0
----
127
85
94

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - ( + + col0 ) * col1 - - 64 AS col1 FROM tab0 AS cor0
----
-1151
-1763
-33

query I rowsort
SELECT DISTINCT col2 - - + col0 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 + + - col1 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 16 AS col0 FROM tab2 AS cor0
----
16
16
16

query II rowsort
SELECT + - col1 + + col0 AS col1, 38 FROM tab1 AS cor0
----
37
38
44
38
80
38

query I rowsort
SELECT - ( 81 ) * - - 17 + - col2 + 21 AS col0 FROM tab1 cor0
----
-1415
-1424
-1452

query I rowsort
SELECT - 2 + - 85 * + col0 FROM tab1 AS cor0
----
-4337
-7227
-7737

onlyif mysql # aggregate syntax: 
query II rowsort label-7308
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col0, - COUNT( * ) * - 36 FROM tab2 AS cor0
----
-9
108

skipif mysql # not compatible
query II rowsort label-7308
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) * - 36 FROM tab2 AS cor0
----
-9
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 69 * + col0 * - + 84 + + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 69 * + col0 * - + 84 + + col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT - MIN( ALL col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7310
SELECT - MIN ( ALL col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - COUNT( * ) * - - 64 AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-7311
SELECT - COUNT ( * ) * - - 64 AS col2 FROM tab0
----
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7312
SELECT ALL - col1 * - col0 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL - col1 * - col0 / - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT ALL + col0 DIV - + 71 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL + col0 / - + 71 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL - col2 * ( col1 ) + - 0 + col2 + + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-2323
-6120
-7714

query I rowsort
SELECT col0 + - ( + + col2 ) + 20 * + - col1 AS col2 FROM tab2 AS cor0
----
-1323
-1516
-997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) < + ( + 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT col2 + col0 + + 79 DIV - col1 AS col2 FROM tab2
----
103
132
68

skipif mysql # not compatible
query I rowsort label-7319
SELECT col2 + col0 + + 79 / - col1 AS col2 FROM tab2
----
103
132
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 90 + + - 42 < + - col0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 AS col1, 68 FROM tab0
----
10
68
47
68
99
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT col0 DIV + + 6 AS col2 FROM tab0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-7322
SELECT col0 / + + 6 AS col2 FROM tab0
----
14
16
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - + MAX( DISTINCT 20 ) * - + MAX( + col0 ) FROM tab1 AS cor0
----
1820

skipif mysql # not compatible
query I rowsort label-7323
SELECT - + MAX ( DISTINCT 20 ) * - + MAX ( + col0 ) FROM tab1 AS cor0
----
1820

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT - + col1 - 4 DIV 26 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7325
SELECT - + col1 - 4 / 26 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + ( 59 ) + - - col2 FROM tab0 AS cor0
----
106
158
69

query I rowsort
SELECT ALL + + col2 - + 14 FROM tab1 cor0
----
45
54
82

query I rowsort
SELECT DISTINCT 74 + col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2190
4170
5699

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT DISTINCT - MAX( + ( + col2 ) ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - MAX ( + ( + col2 ) ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT ALL + MIN( + col2 ), - SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
59
-227

skipif mysql # not compatible
query II rowsort label-7330
SELECT ALL + MIN ( + col2 ), - SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
59
-227

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT + + ( + col0 ) = NULL
----

query I rowsort
SELECT 40 * - - ( - col0 ) FROM tab1
----
-2040
-3400
-3640

query I rowsort
SELECT DISTINCT - + 39 + + + col1 * + col1 * - + 65 * col2 FROM tab2 AS cor0
----
-15415439
-16923569
-3888534

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col0 * - 86 + col2, - 85, - col0 * + col0, - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT + MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT + MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 + + - col0 col1, col0 * - col0 + col2 FROM tab0
----
-14
-9310
-4
-7559
68
-178

query I rowsort
SELECT ALL 71 * col0 * - col2 AS col2 FROM tab0
----
-50055
-61770
-681813

query I rowsort
SELECT col2 * + - col1 + - + col0 * col1 FROM tab2
----
-3519
-8008
-8911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col2 col0 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT 31 + - SUM( DISTINCT - col0 ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-7340
SELECT 31 + - SUM ( DISTINCT - col0 ) FROM tab1
----
258

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7341
SELECT AVG ( DISTINCT - - CAST( NULL AS DECIMAL ) ) + - + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT AVG ( DISTINCT - - CAST ( NULL AS REAL ) ) + - + COUNT ( * ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 42 + - 50 - + - 94 * 72 col0, col1 AS col1 FROM tab2
----
6760
51
6760
67
6760
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL + COUNT( 36 ) + - + 88 AS col2 FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + COUNT ( 36 ) + - + 88 AS col2 FROM tab0 cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT + MIN( DISTINCT + col2 ) - + ( 94 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-7344
SELECT + MIN ( DISTINCT + col2 ) - + ( 94 ) FROM tab0
----
-84

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col2 - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col0 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT - - col2 * + + col0 AS col1 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 <> col0 * - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7349
SELECT DISTINCT - SUM( + + col0 ) DIV + 28 AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - SUM ( + + col0 ) / + 28 AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT - - COUNT( * ) + - 83 col0 FROM tab0 WHERE NOT 89 IS NOT NULL
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7350
SELECT - - COUNT ( * ) + - 83 col0 FROM tab0 WHERE NOT 89 IS NOT NULL
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7351
SELECT COUNT( * ) DIV ( COUNT( DISTINCT CAST( - - col0 AS DECIMAL ) ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7351
SELECT COUNT ( * ) / ( COUNT ( DISTINCT CAST ( - - col0 AS REAL ) ) ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL - SUM( DISTINCT - + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - SUM ( DISTINCT - + col1 ) AS col0 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7353
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
3

query II rowsort
SELECT + col2, col0 * - + col2 - 26 AS col0 FROM tab0
----
10
-896
47
-731
99
-9629

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT ALL + - 49 DIV col0 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL + - 49 / col0 FROM tab0 cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - + 43 ) col2 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT - + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7357
SELECT - + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7358
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) < col0 * + col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7358
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) < col0 * + col0 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7359
SELECT ALL - COUNT( DISTINCT + col2 ) AS col1, + 90 AS col1 FROM tab1 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-7359
SELECT ALL - COUNT ( DISTINCT + col2 ) AS col1, + 90 AS col1 FROM tab1 AS cor0
----
-3
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7360
SELECT col2, col1 / + col1 + 64 + - 80 / 97 * CAST( NULL AS SIGNED ) * col1 / + - 76 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7360
SELECT col2, col1 / + col1 + 64 + - 80 / 97 * CAST ( NULL AS INTEGER ) * col1 / + - 76 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - 29 * 24 + + 53 + col2 <= - ( + col2 ) / 89 + 9 - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7361
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - 29 * 24 + + 53 + col2 <= - ( + col2 ) / 89 + 9 - - col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7362
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) col2, + 63 AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
NULL
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7362
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) col2, + 63 AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
NULL
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 8 + col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT + MIN( ALL + col1 ) + MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT + MIN ( ALL + col1 ) + MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
101

query I rowsort
SELECT + col2 + - + 77 + - 46 AS col0 FROM tab0 AS cor0
----
-113
-24
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT - COUNT( * ) + ( + + COUNT( col0 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT - COUNT ( * ) + ( + + COUNT ( col0 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( + + 87 ) FROM tab2 AS cor0
----
87

query II rowsort
SELECT ALL + ( col0 ) AS col2, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 14 col2 FROM tab0
----
-1218
-1358
-210

query II rowsort
SELECT DISTINCT - col1 AS col2, + col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85

query II rowsort
SELECT DISTINCT col2, 74 FROM tab1
----
59
74
68
74
96
74

query II rowsort
SELECT + - 38 - - - ( + col1 ), + col1 - - - col1 + + - ( - + col0 ) + + 4 + + col0 AS col1 FROM tab2 AS cor0
----
-105
154
-115
132
-89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT + SUM( + 69 ) AS col1 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT + SUM ( + 69 ) AS col1 FROM tab2 AS cor0
----
207

query I rowsort
SELECT ALL col2 + + + 37 AS col2 FROM tab1 AS cor0
----
105
133
96

query I rowsort
SELECT DISTINCT + - col2 - - 9 FROM tab2 AS cor0
----
-14
-31
-49

query I rowsort
SELECT ALL col0 - - 58 + + 35 * + + col1 AS col1 FROM tab1
----
1794
318
599

query I rowsort
SELECT ALL + 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col0 * + col2 col0 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL 58 * + + COUNT( * ) * - 76 AS col2 FROM tab0 cor0
----
-13224

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL 58 * + + COUNT ( * ) * - 76 AS col2 FROM tab0 cor0
----
-13224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7380
SELECT DISTINCT - CAST( + - AVG ( + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT - CAST ( + - AVG ( + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT 76 * - - 3 FROM tab2
----
228
228
228

query I rowsort
SELECT ALL + col0 * - 91 FROM tab2 WHERE col2 IS NOT NULL
----
-4186
-5824
-6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 7, 28 col0 FROM tab1
----
7
28
7
28
7
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL MIN( ALL + CAST( col0 AS SIGNED ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL MIN ( ALL + CAST ( col0 AS INTEGER ) ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT MIN( DISTINCT - 50 ) col2 FROM tab0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7385
SELECT MIN ( DISTINCT - 50 ) col2 FROM tab0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL - COUNT( * ) * - - 20 * - 68 AS col2 FROM tab0
----
4080

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - COUNT ( * ) * - - 20 * - 68 AS col2 FROM tab0
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT + 80 * - + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + 80 * - + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
-240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + + ( + 97 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + + 12 IS NOT NULL
----

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT ( col0 / + - col0 + - col2 < 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT + - col2 * col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT + - col2 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL - MIN( ALL + col0 ) + COUNT( * ) * ( + 0 ) + + - COUNT( * ) + + - 84 FROM tab2 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - MIN ( ALL + col0 ) + COUNT ( * ) * ( + 0 ) + + - COUNT ( * ) + + - 84 FROM tab2 AS cor0
----
-133

query I rowsort
SELECT DISTINCT + + 44 + - col0 FROM tab1 AS cor0
----
-41
-47
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col1 + - col0 * + 54 AS col1 FROM tab0 AS cor0
----
-4677
-5237
-729

query I rowsort
SELECT ALL col2 - + col1 * - - col1 AS col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT ALL + col0 + + col1 * + col1 AS col1 FROM tab2
----
2647
4564
5993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT col1 + + col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) < 94
----

skipif mysql # not compatible
query I rowsort label-7399
SELECT col1 + + col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) < 94
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7400
SELECT + COUNT( * ) + - COUNT( * ) AS col2, COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
0
-9

skipif mysql # not compatible
query II rowsort label-7400
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
0
-9

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7402
SELECT DISTINCT + COUNT( * ) DIV ( COUNT( * ) ) + - + 10 AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT + COUNT ( * ) / ( COUNT ( * ) ) + - + 10 AS col0 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT col1 - 29 AS col1, 16 AS col1 FROM tab1 cor0
----
-15
16
-24
16
18
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL + 24 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + 24 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT ALL + CAST( NULL AS SIGNED ) + + + 22 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7405
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 22 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7406
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7406
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2, col0 AS col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7409
SELECT - ( + 62 ) * + COUNT( * ) DIV 88 DIV - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT - ( + 62 ) * + COUNT ( * ) / 88 / - - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 13 * col0 FROM tab1 AS cor0
----
-1105
-1183
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 * - 94 col2 FROM tab0 AS cor0
----
-2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, - 50 FROM tab2 AS cor0
----
23
-50
40
-50
58
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT + ( col2 ) DIV + 55 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7414
SELECT + ( col2 ) / + 55 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE NOT + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col2 FROM tab1
----
71
71
71

query I rowsort
SELECT DISTINCT 2 * col1 AS col1 FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT ALL + col2 DIV col1 * + - 41 * + 74 AS col2 FROM tab0
----
-300366
0
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + col2 / col1 * + - 41 * + 74 AS col2 FROM tab0
----
-300366
0
0

query I rowsort
SELECT DISTINCT + col2 + - - col2 * col1 * + + col2 FROM tab2 AS cor0
----
123240
225446
27002

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 16 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT CAST( NULL AS SIGNED ) + - col2 * ( 29 ) * + col0 + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT CAST ( NULL AS INTEGER ) + - col2 * ( 29 ) * + col0 + - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT 70 + - col2 DIV col0 FROM tab1
----
69
70
70

skipif mysql # not compatible
query I rowsort label-7422
SELECT 70 + - col2 / col0 FROM tab1
----
69
70
70

query I rowsort
SELECT - 13 + col1 + 34 * - - col1 FROM tab0 cor0
----
22
2822
722

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT col2 DIV 67 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT col2 / 67 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 + - + col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7427
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 44 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 44 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 + - col0 * 78 FROM tab1 AS cor0
----
-4074
-6689
-7166

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT - 70 + COUNT( * ) * - - COUNT( * ) col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7429
SELECT DISTINCT - 70 + COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2 AS cor0
----
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - ( - + 26 ), - 95, - - 0 * + col2, 17 )
----

query I rowsort
SELECT ALL - + 75 + col0 AS col1 FROM tab1 AS cor0
----
-24
10
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL COUNT( * ) + - + MAX( - 78 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL COUNT ( * ) + - + MAX ( - 78 ) AS col0 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN + + col2 AND NULL
----

query II rowsort
SELECT DISTINCT 61, - col2 AS col2 FROM tab1
----
61
-59
61
-68
61
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL MIN( ALL 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL MIN ( ALL 0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT MIN( ALL + + col1 ) - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-7436
SELECT MIN ( ALL + + col1 ) - COUNT ( * ) FROM tab2
----
48

query I rowsort
SELECT + 90 AS col0 FROM tab0 WHERE NULL IS NULL
----
90
90
90

query I rowsort
SELECT 82 - 88 FROM tab2
----
-6
-6
-6

query I rowsort
SELECT ALL + 19 + + 21 FROM tab1 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col0, + 37 FROM tab0 AS cor0
----
0
37

skipif mysql # not compatible
query II rowsort label-7440
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col0, + 37 FROM tab0 AS cor0
----
0
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT DISTINCT + COUNT( ALL + + 44 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + COUNT ( ALL + + 44 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - col2 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT + MAX( ALL col0 ) * + CAST( - - SUM( + - 18 ) AS SIGNED ) FROM tab0 AS cor0
----
-5238

skipif mysql # not compatible
query I rowsort label-7443
SELECT + MAX ( ALL col0 ) * + CAST ( - - SUM ( + - 18 ) AS INTEGER ) FROM tab0 AS cor0
----
-5238

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 + - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 * + + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 * + + col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = - col2 + + - col1 * - - 79 * - 98
----

query I rowsort
SELECT ALL 91 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query II rowsort
SELECT col0, + 44 AS col0 FROM tab1
----
51
44
85
44
91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - MAX( DISTINCT col1 ) + AVG ( DISTINCT - + ( - - col2 ) ) AS col0 FROM tab2 WHERE NOT 90 * + - col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT - MAX ( DISTINCT col1 ) + AVG ( DISTINCT - + ( - - col2 ) ) AS col0 FROM tab2 WHERE NOT 90 * + - col1 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ( - - COUNT( * ) ) AS col2 FROM tab0 WHERE NOT ( + col0 ) - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7450
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT ( + col0 ) - - col0 IS NOT NULL
----
0

query II rowsort
SELECT - 36, + col1 FROM tab1
----
-36
14
-36
47
-36
5

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT col1 - + + 83 * 13 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT + ( + - CAST( NULL AS SIGNED ) ) + - + MIN( - + 84 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT + ( + - CAST ( NULL AS INTEGER ) ) + - + MIN ( - + 84 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL ( + col0 ) + - - 42 + col0 + + + 83 AS col1 FROM tab0 AS cor0
----
155
299
319

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT + ( + COUNT( * ) ) * - MAX( DISTINCT - + col0 ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + ( + COUNT ( * ) ) * - MAX ( DISTINCT - + col0 ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL MIN( ALL 70 ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL MIN ( ALL 70 ) AS col1 FROM tab0
----
70

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 56 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND - col1 * - col1
----

query I rowsort
SELECT - col1 * 21 FROM tab0
----
-1701
-21
-441

query III rowsort
SELECT ALL * FROM tab1 WHERE + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col1 - + col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7463
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) / col2 <= col0
----

skipif mysql # not compatible
query III rowsort label-7463
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) / col2 <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7464
SELECT ALL * FROM tab1 WHERE - ( + 94 ) * col2 <> 92 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7464
SELECT ALL * FROM tab1 WHERE - ( + 94 ) * col2 <> 92 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT 95 NOT BETWEEN - col1 - ( + col1 ) AND ( 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7466
SELECT ALL * FROM tab0 WHERE 52 * + ( CAST( - col1 AS SIGNED ) ) - + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7466
SELECT ALL * FROM tab0 WHERE 52 * + ( CAST ( - col1 AS INTEGER ) ) - + col1 IS NULL
----

query I rowsort
SELECT 43 + 16 AS col2 FROM tab1
----
59
59
59

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= ( NULL )
----

query I rowsort
SELECT 49 * - col0 AS col2 FROM tab2
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT 55 + MIN( col2 + col0 ) * 64 AS col1 FROM tab1
----
9271

skipif mysql # not compatible
query I rowsort label-7470
SELECT 55 + MIN ( col2 + col0 ) * 64 AS col1 FROM tab1
----
9271

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT DISTINCT - MAX( DISTINCT 21 ) AS col2 FROM tab2 WHERE NOT + 3 IN ( col0 )
----
-21

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT - MAX ( DISTINCT 21 ) AS col2 FROM tab2 WHERE NOT + 3 IN ( col0 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT + 31 * + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + 31 * + COUNT ( * ) FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + 86 * + COUNT( ALL - col1 ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-7473
SELECT + 86 * + COUNT ( ALL - col1 ) AS col2 FROM tab2
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT ALL - col2 + 6 DIV col2 col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7474
SELECT ALL - col2 + 6 / col2 col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 47 FROM tab2 WHERE NOT NULL IS NOT NULL
----
47
47
47

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col1 IN ( 75 )
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) * + col1 NOT BETWEEN NULL AND - 78 + + col0
----

query I rowsort
SELECT - ( col1 ) AS col0 FROM tab1 WHERE 62 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 44 NOT BETWEEN - 9 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT ALL + col0 DIV - 21 AS col1 FROM tab0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + col0 / - 21 AS col1 FROM tab0
----
-4
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT 65 DIV + col1 FROM tab0
----
0
3
65

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT 65 / + col1 FROM tab0
----
0
3
65

query I rowsort
SELECT + 54 + + col0 FROM tab0
----
141
151
69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 + col1 * - col1 AND ( NULL )
----

query I rowsort
SELECT 59 + col1 FROM tab2
----
110
126
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7485
SELECT - ( + CAST( NULL AS SIGNED ) ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT + SUM( ( 45 ) ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + SUM ( ( 45 ) ) FROM tab1 AS cor0
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col2 FROM tab1 cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 48 ) col2 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT ( - 49 ) AS col2 FROM tab0 AS cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT DISTINCT - 98 * 74 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - 40 - col2 * CAST( col2 * - 79 - - 2 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - 98 * 74 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - 40 - col2 * CAST ( col2 * - 79 - - 2 AS INTEGER ) = ( NULL )
----

query I rowsort
SELECT DISTINCT 59 * col2 FROM tab2
----
1357
2360
3422

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT AVG ( col0 ) FROM tab0 WHERE NOT ( col1 ) - CAST( + CAST( NULL AS SIGNED ) + + 17 AS SIGNED ) IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT AVG ( col0 ) FROM tab0 WHERE NOT ( col1 ) - CAST ( + CAST ( NULL AS INTEGER ) + + 17 AS INTEGER ) IN ( col0 )
----
NULL

query I rowsort
SELECT - 23 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + 3 AS col2 FROM tab2 AS cor0
----
153
201
231

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT SUM( + 35 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT SUM ( + 35 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + col1 )
----
NULL

query I rowsort
SELECT - + 63 * - col0 AS col1 FROM tab1 cor0
----
3213
5355
5733

query I rowsort
SELECT 78 * - col0 FROM tab1 AS cor0
----
-3978
-6630
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - - COUNT( * ) * ( 40 - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7501
SELECT - - COUNT ( * ) * ( 40 - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 * + col0 AND col2 * - col1 + CAST( ( - 67 ) + ( + 61 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 * + col0 AND col2 * - col1 + CAST ( ( - 67 ) + ( + 61 ) AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> CAST( col0 AS SIGNED ) * + col1 + + CAST( 88 - + 24 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> CAST ( col0 AS INTEGER ) * + col1 + + CAST ( 88 - + 24 AS INTEGER )
----
0

query I rowsort
SELECT - ( 9 ) * col1 FROM tab2 AS cor0
----
-459
-603
-693

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - - col2 NOT BETWEEN ( - 23 ) AND NULL
----

query I rowsort
SELECT ALL - 19 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( col0 / + col1 ) AND NULL
----

query I rowsort
SELECT - + 90 * - col0 AS col2 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT ALL + col1 / - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL col2 * + col0 * + ( 82 ) FROM tab0
----
57810
71340
787446

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT COUNT( DISTINCT + 48 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7511
SELECT COUNT ( DISTINCT + 48 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT MAX( - 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT MAX ( - 40 ) FROM tab0
----
-40

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( 10 + - col0 ) IN ( + 96 / col2 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + COUNT( 68 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7514
SELECT + COUNT ( 68 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE - col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + col1 + - 69 FROM tab1 AS cor0
----
-22
-55
-64

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - col0 / 20 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 37 col1 FROM tab2 cor0
----
-14
21
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT CAST( + MAX( DISTINCT 6 ) AS SIGNED ) + + 74 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7520
SELECT CAST ( + MAX ( DISTINCT 6 ) AS INTEGER ) + + 74 FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL - col1 + - 33 AS col2 FROM tab0
----
-114
-34
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT + COUNT( * ) FROM tab2 WHERE - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7522
SELECT + COUNT ( * ) FROM tab2 WHERE - + col2 IS NULL
----
0

query I rowsort
SELECT ALL 21 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT - COUNT( * ) DIV - + 21 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT - COUNT ( * ) / - + 21 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT - - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7525
SELECT - - col1 / col2 AS col0 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT SUM( col2 ) FROM tab1 AS cor0 WHERE ( NULL ) > - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT SUM ( col2 ) FROM tab1 AS cor0 WHERE ( NULL ) > - - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( AVG ( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( AVG ( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT COUNT( + col2 ) FROM tab0 AS cor0 WHERE + 67 <> - col2
----
3

skipif mysql # not compatible
query I rowsort label-7529
SELECT COUNT ( + col2 ) FROM tab0 AS cor0 WHERE + 67 <> - col2
----
3

query I rowsort
SELECT ALL col0 + - - 47 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + 41 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7532
SELECT DISTINCT - SUM( - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - SUM ( - CAST ( NULL AS REAL ) ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 62 - + col2 + + 67 * col0 AS col2 FROM tab2 AS cor0
----
3121
4310
5029

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - ( + 30 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) IN ( - 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - ( col2 ) ) AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 62 + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL NOT IN ( + - col2 * - - col2 - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + col0 )
----

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL NOT IN ( + - col2 * - - col2 - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 / - + col1 IS NOT NULL
----

query I rowsort
SELECT 67 * - col2 * + col1 * + + col2 FROM tab0
----
-11988243
-140700
-656667

query I rowsort
SELECT DISTINCT ( + 5 ) FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7542
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT 20 DIV col2 * + + col0 FROM tab0
----
0
0
174

skipif mysql # not compatible
query I rowsort label-7543
SELECT 20 / col2 * + + col0 FROM tab0
----
0
0
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT col2 + + ( + ( col1 ) ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col2 * - 69 * - col2 FROM tab2 AS cor0
----
15551772
1861551
8500800

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT MAX( ALL 13 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN 85 AND ( NULL )
----
13

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT MAX ( ALL 13 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN 85 AND ( NULL )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL SUM( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL SUM ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( + 39 ) * col2 > - col0 + 3 * col0
----
14
47
5

query I rowsort
SELECT DISTINCT 36 + - col2 + + + col2 + - - 90 + - 38 * + col1 FROM tab1 cor0
----
-1660
-406
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7551
SELECT + COUNT( * ) * - 68 FROM tab2 AS cor0 WHERE NOT ( 24 ) IN ( + CAST( - + col2 AS SIGNED ) )
----
-204

skipif mysql # not compatible
query I rowsort label-7551
SELECT + COUNT ( * ) * - 68 FROM tab2 AS cor0 WHERE NOT ( 24 ) IN ( + CAST ( - + col2 AS INTEGER ) )
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL - 18 + - - COUNT( * ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - 18 + - - COUNT ( * ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT + 60, COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
60
9

skipif mysql # not compatible
query II rowsort label-7553
SELECT + 60, COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
60
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 40 col1, 10 FROM tab1
----
40
10
40
10
40
10

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( - 60 * col0 ) IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 29 col1 FROM tab1
----
1711
1972
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT DISTINCT 0 * 86 DIV col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT 0 * 86 / col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL col0 + - - col1 - col2 * - - col2 FROM tab2
----
-1459
-3222
-432

query III rowsort
SELECT * FROM tab2 WHERE - 77 < + ( + 96 ) * - + 82 + col0
----

query I rowsort
SELECT col1 + - + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT + - COUNT( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT + - COUNT ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE col2 <> NULL
----
0

query I rowsort
SELECT ALL col2 + - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
116
46
80

query II rowsort
SELECT + col2 AS col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 71 ) > + 78 * - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT + MAX( DISTINCT 33 ) * - 34 + + + MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
-1025

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT + MAX ( DISTINCT 33 ) * - 34 + + + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-1025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 86 ) NOT BETWEEN + ( + + col0 ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + - 73 + - - col0 * + 30 FROM tab0 AS cor0
----
1545
8961
9991

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT - ( - + col0 ) + + 56 - - col0 + + col1 DIV - + col0 AS col1 FROM tab0 AS cor0
----
230
250
81

skipif mysql # not compatible
query I rowsort label-7568
SELECT - ( - + col0 ) + + 56 - - col0 + + col1 / - + col0 AS col1 FROM tab0 AS cor0
----
230
250
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7569
SELECT * FROM tab1 AS cor0 WHERE ( NULL IN ( - - col1, + col1 * + CAST( - + 73 AS SIGNED ) + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7569
SELECT * FROM tab1 AS cor0 WHERE ( NULL IN ( - - col1, + col1 * + CAST ( - + 73 AS INTEGER ) + col0 ) )
----

query I rowsort
SELECT DISTINCT + - col2 * + col2 AS col0 FROM tab2 cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + + COUNT( ALL col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7571
SELECT + + COUNT ( ALL col1 ) FROM tab2 cor0
----
3

query II rowsort
SELECT - col2 AS col2, col1 + + col1 * + 73 FROM tab0
----
-10
1554
-47
5994
-99
74

query II rowsort
SELECT 77 AS col1, + col1 AS col0 FROM tab1
----
77
14
77
47
77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL + + SUM( ALL - - col1 ) FROM tab1 WHERE - - 40 >= - col1 / - 80
----
66

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + + SUM ( ALL - - col1 ) FROM tab1 WHERE - - 40 >= - col1 / - 80
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 49 * 39 / - col0 + - col2 < - 92 + 27
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT ALL col2 * - - CAST( - col2 AS SIGNED ) * - col2 FROM tab2
----
12167
195112
64000

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL col2 * - - CAST ( - col2 AS INTEGER ) * - col2 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT col2 * + + ( + + 5 ) FROM tab1
----
295
340
480

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 / - + col0 <= col0 + + col2
----

query II rowsort
SELECT ALL - col2 * + ( + + col0 ), - col0 AS col2 FROM tab2 AS cor0
----
-1058
-46
-2560
-64
-4350
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT DISTINCT ( col1 ) DIV col1 * + col0 col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7580
SELECT DISTINCT ( col1 ) / col1 * + col0 col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 AND - - col1
----

query II rowsort
SELECT col2, 74 + - + 36 AS col0 FROM tab2 AS cor0
----
23
38
40
38
58
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT - 6 * + - COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT - 6 * + - COUNT ( * ) FROM tab0
----
18

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT 47 * col0 AS col0 FROM tab1 AS cor0
----
2397
3995
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - MIN( - col1 ) * - 12 col2 FROM tab0 AS cor0
----
-972

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7587
SELECT ALL - MIN ( - col1 ) * - 12 col2 FROM tab0 AS cor0
----
-972

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 + - 32 AS col1 FROM tab1 AS cor0
----
-37
-46
-79

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * + 39 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL MIN( + - col0 ) FROM tab2 AS cor0 WHERE NOT - col1 * + ( col2 ) * - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL MIN ( + - col0 ) FROM tab2 AS cor0 WHERE NOT - col1 * + ( col2 ) * - + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - 39 * 75 >= col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT col0 * ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE - - 81 > + col2
----
-23
-40
-58

query I rowsort
SELECT ALL - 17 + - col0 AS col1 FROM tab1 AS cor0
----
-102
-108
-68

query II rowsort
SELECT ALL + 29, col0 FROM tab2
----
29
46
29
64
29
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT SUM( - + 24 ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7598
SELECT SUM ( - + 24 ) AS col2 FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT ALL COUNT( * ) AS col0, + ( COUNT( * ) ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7599
SELECT ALL COUNT ( * ) AS col0, + ( COUNT ( * ) ) FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT 40 / + MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / col1 * - col1 + col1 * 13 / + ( - col1 ) BETWEEN 66 * + + 88 AND ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT 40 / + MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / col1 * - col1 + col1 * 13 / + ( - col1 ) BETWEEN 66 * + + 88 AND ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT 18 * COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT 18 * COUNT ( * ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 >= + - 93
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - 76 + + 73 * - 72 - 73 + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT + - COUNT( 88 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT + - COUNT ( 88 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( + - 21 ) * + + col1 FROM tab0 AS cor0
----
1701
21
441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 col2, 4 AS col2 FROM tab2 AS cor0
----
83
4

query I rowsort
SELECT ALL - 94 * + 65 AS col1 FROM tab0
----
-6110
-6110
-6110

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 > col2
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7609
SELECT ALL * FROM tab0 WHERE ( 6 + + + 18 NOT BETWEEN - col1 AND - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7609
SELECT ALL * FROM tab0 WHERE ( 6 + + + 18 NOT BETWEEN - col1 AND - ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT MAX( DISTINCT - - ( + col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7610
SELECT MAX ( DISTINCT - - ( + col2 ) ) FROM tab0
----
99

query I rowsort
SELECT ( + 74 ) AS col2 FROM tab1
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT ALL + 67 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL + 67 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col1 - + - 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7614
SELECT DISTINCT + 32 * + + col1, col1 DIV - - col2 + - col0 AS col0 FROM tab2 cor0
----
1632
-44
2144
-74
2464
-63

skipif mysql # not compatible
query II rowsort label-7614
SELECT DISTINCT + 32 * + + col1, col1 / - - col2 + - col0 AS col0 FROM tab2 cor0
----
1632
-44
2144
-74
2464
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT + MIN( - ( 98 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 62 * col0 IS NULL
----
-98

skipif mysql # not compatible
query I rowsort label-7615
SELECT + MIN ( - ( 98 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 62 * col0 IS NULL
----
-98

query I rowsort
SELECT + col1 / - - col0 * - + 83 + col2 FROM tab0 AS cor0 WHERE + col1 / + - 66 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT col2 + + 94 <> NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7618
SELECT DISTINCT + 81 AS col1, COUNT( * ) FROM tab2 AS cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-7618
SELECT DISTINCT + 81 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT 77 * + - MIN( 64 ) * - + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
14787

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT 77 * + - MIN ( 64 ) * - + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
14787

query I rowsort
SELECT - col2 * 13 * col0 + + - col0 + col1 FROM tab0 AS cor0
----
-11376
-124935
-9099

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT + + 81 + - - SUM( - - 28 ) AS col1 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + + 81 + - - SUM ( - - 28 ) AS col1 FROM tab2 AS cor0
----
165

query I rowsort
SELECT DISTINCT + col2 + - 18 FROM tab2 AS cor0
----
22
40
5

query I rowsort
SELECT + col1 * col2 + + - col2 + - 63 AS col0 FROM tab1 AS cor0
----
1185
173
3065

query I rowsort
SELECT DISTINCT col1 * 64 * - col2 * - col1 AS col2 FROM tab0 AS cor0
----
19735488
282240
6336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7625
SELECT col0 + + + col1 + + col0 / - col0 * CAST( NULL AS DECIMAL ) + + ( - col0 ) + 9 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7625
SELECT col0 + + + col1 + + col0 / - col0 * CAST ( NULL AS REAL ) + + ( - col0 ) + 9 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col0 * - 86 + - col2 * 44 AS col2 FROM tab1
----
-370814
-39146
-65628

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT - 26 + - COUNT( - - 69 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-7627
SELECT - 26 + - COUNT ( - - 69 ) FROM tab1
----
-29

query III rowsort
SELECT * FROM tab2 WHERE + ( + + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7629
SELECT * FROM tab1 AS cor0 WHERE + 55 * - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7629
SELECT * FROM tab1 AS cor0 WHERE + 55 * - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 98 AS col2, - 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 3d65e5968639a456034a78d6936475db

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT + - COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + - COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT + - 9 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7632
SELECT + - 9 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT - + 40 * MIN( + + col2 ) + - SUM( DISTINCT 10 ) AS col2 FROM tab0 AS cor0
----
-410

skipif mysql # not compatible
query I rowsort label-7633
SELECT - + 40 * MIN ( + + col2 ) + - SUM ( DISTINCT 10 ) AS col2 FROM tab0 AS cor0
----
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7634
SELECT - COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7635
SELECT - col0 AS col2, - CAST( NULL AS SIGNED ) / - 66 AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-7635
SELECT - col0 AS col2, - CAST ( NULL AS INTEGER ) / - 66 AS col2 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT ALL - 77 AS col0, col1 * - col2 AS col1 FROM tab2
----
-77
-1173
-77
-3080
-77
-3886

query I rowsort
SELECT ALL + col0 * - - col0 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT DISTINCT - col1, + 20 AS col1 FROM tab2
----
-51
20
-67
20
-77
20

query I rowsort
SELECT DISTINCT 72 * - + 77 * + 8 * + col1 FROM tab1
----
-2084544
-221760
-620928

query I rowsort
SELECT ALL - col0 / - col2 AS col2 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 * 86 FROM tab0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT 23 + MAX( DISTINCT - 51 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT 23 + MAX ( DISTINCT - 51 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7643
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7643
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7644
SELECT col0, + 10 DIV + col1 col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7644
SELECT col0, + 10 / + col1 col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT DISTINCT - SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT - SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + col2 * - + 17 + - - 26 AS col1 FROM tab1 cor0 WHERE - col1 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, - col2 col1 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT ALL - CAST( NULL AS SIGNED ) * 5 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - CAST ( NULL AS INTEGER ) * 5 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT - - CAST( NULL AS SIGNED ) + + - ( + AVG ( - 37 ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT - - CAST ( NULL AS INTEGER ) + + - ( + AVG ( - 37 ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + col1 * - ( - - ( + - ( + col1 ) ) ) FROM tab0 AS cor0
----
-96
354
6546

query I rowsort
SELECT - 88 * + + 25 AS col1 FROM tab2 AS cor0
----
-2200
-2200
-2200

query I rowsort
SELECT DISTINCT col1 + - col2 + + - 6 FROM tab1 AS cor0
----
-27
-60
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT + - ( CAST( + - col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7653
SELECT + - ( CAST ( + - col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL + COUNT( col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + COUNT ( col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT - COUNT( * ) * + SUM( ALL - - col1 ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-7655
SELECT - COUNT ( * ) * + SUM ( ALL - - col1 ) FROM tab0 AS cor0
----
-309

query I rowsort
SELECT ALL - col2 * - + 55 FROM tab2 AS cor0
----
1265
2200
3190

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN NULL AND + - col2
----

query I rowsort
SELECT DISTINCT + 6 + + 83 FROM tab2
----
89

query I rowsort
SELECT ALL col2 * + ( - col1 ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN 14 AND ( - 60 * col0 + + + 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT DISTINCT + 71 DIV col1 - col0 + col2 + - - ( col2 ) * - + col0 + + col2 * col2 FROM tab1
----
-1546
-1586
4370

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT + 71 / col1 - col0 + col2 + - - ( col2 ) * - + col0 + + col2 * col2 FROM tab1
----
-1546
-1586
4370

query II rowsort
SELECT - col2 + - 61, col0 AS col0 FROM tab0 WHERE NULL BETWEEN col2 * + - col1 AND + - 44 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT DISTINCT SUM( 64 ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT SUM ( 64 ) FROM tab1
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 41 - - col1 col2 FROM tab0 AS cor0
----
1
-40
21
-20
81
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - 2 * 67 col1 FROM tab2 AS cor0
----
185
201
211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT DISTINCT - - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT - - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + + col0 col2 FROM tab1 AS cor0
----
120
154
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col0 col2 FROM tab1 cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 88 col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT - + 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL + ( + + ( - 98 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT - MIN( + col2 ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7671
SELECT DISTINCT - MIN ( + col2 ) col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7672
SELECT DISTINCT COUNT( * ) * - - ( - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) ) * + - 41 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT COUNT ( * ) * - - ( - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) ) * + - 41 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT + SUM( ALL + - ( - - 51 ) ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + SUM ( ALL + - ( - - 51 ) ) AS col1 FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT - - SUM( DISTINCT - + col0 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-7674
SELECT - - SUM ( DISTINCT - + col0 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL SUM( + 44 ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL SUM ( + 44 ) FROM tab1 AS cor0
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, 27 col0 FROM tab0
----
-10
27
-47
27
-99
27

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab1 WHERE col2 IN ( - col1 * + col1 - - ( + col0 ), - col1 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL + - col1 * + + 58 + - col0 + + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + - col1 * + + 58 + - col0 + + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( col0 ) <= NULL
----

query I rowsort
SELECT 77 * 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + 81 * + ( + col0 ) AS col2 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT ALL - ( - - ( 17 ) ) FROM tab2
----
-17
-17
-17

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

query II rowsort
SELECT - col0, col2 AS col2 FROM tab1 cor0 WHERE - col0 <= - col0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT - + ( + 33 ) + + - col2 + + 51 * + + CAST( NULL AS SIGNED ) / - col0 * CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL = col0
----

skipif mysql # not compatible
query I rowsort label-7685
SELECT - + ( + 33 ) + + - col2 + + 51 * + + CAST ( NULL AS INTEGER ) / - col0 * CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT DISTINCT - 63 + MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT - 63 + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL + col2 + 90 * - col2 AS col0 FROM tab2 AS cor0
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT - COUNT( * ) + - COUNT( * ) col0 FROM tab1 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7688
SELECT - COUNT ( * ) + - COUNT ( * ) col0 FROM tab1 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT - + col2 * + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - + col2 * + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 46 + + col1 FROM tab0 AS cor0
----
-25
-45
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT - 18 + - col0 DIV col1 FROM tab0 AS cor0
----
-115
-18
-22

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 18 + - col0 / col1 FROM tab0 AS cor0
----
-115
-18
-22

query III rowsort
SELECT ALL * FROM tab0 WHERE + 52 - + col1 * + - 15 + - col0 * - + 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL + COUNT( DISTINCT + col1 ) - - + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + COUNT ( DISTINCT + col1 ) - - + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7694
SELECT + CAST( NULL AS DECIMAL ) + - 77 - 22 - col2 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT + CAST ( NULL AS REAL ) + - 77 - 22 - col2 * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 54 + - col0 AS col1 FROM tab1
----
-31
-37
3

query I rowsort
SELECT ALL 33 - col1 FROM tab2
----
-18
-34
-44

query I rowsort
SELECT col0 + - col2 + - - 33 + + col2 AS col0 FROM tab1
----
118
124
84

query I rowsort
SELECT ALL col0 * - - col2 + - col2 FROM tab2
----
1035
2520
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT - col0 DIV col0 * - col1 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7699
SELECT - col0 / col0 * - col1 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT DISTINCT + col1 * + + CAST( + 38 AS SIGNED ) FROM tab1 AS cor0
----
1786
190
532

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + col1 * + + CAST ( + 38 AS INTEGER ) FROM tab1 AS cor0
----
1786
190
532

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL <= col2 + col1 )
----

query I rowsort
SELECT ALL col1 * + - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7703
SELECT DISTINCT - + 64 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( 41 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - + 64 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( 41 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + col0 * - - 20 + 67 AS col1 FROM tab0 AS cor0
----
1807
2007
367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT CAST( col2 AS SIGNED ) col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7705
SELECT CAST ( col2 AS INTEGER ) col0 FROM tab1 cor0
----
59
68
96

query II rowsort
SELECT ALL + col0 * - 94 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
-4794
14
-7990
5
-8554
47

query I rowsort
SELECT - ( + 61 ) * - 20 FROM tab2 AS cor0
----
1220
1220
1220

query I rowsort
SELECT DISTINCT + ( + + 38 ) * - + 81 AS col2 FROM tab2 AS cor0
----
-3078

query I rowsort
SELECT DISTINCT + + 32 * - col2 AS col2 FROM tab2 AS cor0
----
-1280
-1856
-736

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7710
SELECT DISTINCT - MAX( ALL + 95 ) / - CAST( NULL AS DECIMAL ) + 96 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT - MAX ( ALL + 95 ) / - CAST ( NULL AS REAL ) + 96 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + SUM( - col2 ) * 24 AS col1 FROM tab2 AS cor0
----
-2904

skipif mysql # not compatible
query I rowsort label-7711
SELECT + SUM ( - col2 ) * 24 AS col1 FROM tab2 AS cor0
----
-2904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - ( + - col0 ) ) col1, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7713
SELECT + 97 col1, + COUNT( * ) DIV COUNT( * ) col0 FROM tab0 cor0
----
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7713
SELECT + 97 col1, + COUNT ( * ) / COUNT ( * ) col0 FROM tab0 cor0
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL - ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 2 + + + col1 + - - col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT + 41 DIV - COUNT( * ) col0 FROM tab2
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7716
SELECT + 41 / - COUNT ( * ) col0 FROM tab2
----
-13

query I rowsort
SELECT ( + 90 ) AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
90
90
90

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL = 82 )
----

query I rowsort
SELECT + 89 AS col2 FROM tab0 WHERE NOT ( 69 = NULL )
----

query I rowsort
SELECT ( 0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 + - 54 + + col1 - + + col0 * + - 2 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( + 45 ) + - - col2 AS col0 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL - COUNT( * ) + + 59 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL - COUNT ( * ) + + 59 FROM tab1 AS cor0
----
56

query II rowsort
SELECT 40 AS col0, + col2 FROM tab1 AS cor0
----
40
59
40
68
40
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT - COUNT( ALL - - 60 ) AS col0 FROM tab2 AS cor0 WHERE + col0 * + CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7726
SELECT - COUNT ( ALL - - 60 ) AS col0 FROM tab2 AS cor0 WHERE + col0 * + CAST ( NULL AS INTEGER ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + col2 * 37 AND ( - 47 * + + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT SUM( DISTINCT 29 ) AS col1 FROM tab2 AS cor0 WHERE - 14 * - col1 IS NOT NULL
----
29

skipif mysql # not compatible
query I rowsort label-7729
SELECT SUM ( DISTINCT 29 ) AS col1 FROM tab2 AS cor0 WHERE - 14 * - col1 IS NOT NULL
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT SUM( - - col2 ) + 33 FROM tab1
----
256

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT SUM ( - - col2 ) + 33 FROM tab1
----
256

query I rowsort
SELECT col0 - + - col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT SUM( col1 ) + - - 64 AS col1 FROM tab1
----
130

skipif mysql # not compatible
query I rowsort label-7732
SELECT SUM ( col1 ) + - - 64 AS col1 FROM tab1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT ( - + MAX( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT ( - + MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7734
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) DIV COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) / COUNT ( * ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT DISTINCT 75 DIV - 95 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT 75 / - 95 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 * - - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT ALL + 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + SUM( DISTINCT - col1 ) FROM tab2 WHERE + 79 >= + col2 * - ( - col0 ) / - col0 * col1
----
-195

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + SUM ( DISTINCT - col1 ) FROM tab2 WHERE + 79 >= + col2 * - ( - col0 ) / - col0 * col1
----
-195

query I rowsort
SELECT + + ( + - 34 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + + COUNT( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7740
SELECT + + COUNT ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL MAX( ALL - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL MAX ( ALL - col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT + col0 DIV 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7742
SELECT + col0 / 85 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 + - 14 AS col1 FROM tab0
----
-15
-35
-95

query I rowsort
SELECT ALL col0 * + 0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - - ( + 56 ) AS col1 FROM tab0 AS cor0
----
56
56
56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT 61 - - + ( - COUNT( * ) ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT 61 - - + ( - COUNT ( * ) ) FROM tab1
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 67 * - AVG ( + 6 ) FROM tab2 AS cor0 WHERE NOT 17 NOT BETWEEN NULL AND NULL AND NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - MAX( - - col2 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7750
SELECT - MAX ( - - col2 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT + + 19 + - col0 FROM tab1 AS cor0
----
-32
-66
-72

query II rowsort
SELECT col2 + col2 AS col2, col2 FROM tab2 AS cor0
----
116
58
46
23
80
40

query I rowsort
SELECT + - ( + + col1 ) * - col2 + + col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7754
SELECT + COUNT( * ) DIV + MAX( - - col0 ) AS col2 FROM tab2 cor0 WHERE 78 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7754
SELECT + COUNT ( * ) / + MAX ( - - col0 ) AS col2 FROM tab2 cor0 WHERE 78 IS NOT NULL
----
0

query I rowsort
SELECT ALL 6 + col0 + col2 AS col0 FROM tab1 AS cor0
----
150
153
165

query I rowsort
SELECT ALL + - ( + col2 ) - - - col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT - 86 DIV - col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-7757
SELECT - 86 / - col2 FROM tab0 AS cor0
----
0
1
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7758
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7758
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + - col0 BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL - SUM( - 70 ) * - - MAX( ALL - - ( - - 28 ) ) AS col1 FROM tab2
----
5880

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - SUM ( - 70 ) * - - MAX ( ALL - - ( - - 28 ) ) AS col1 FROM tab2
----
5880

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - - col1 IS NOT NULL
----

query II rowsort
SELECT ALL - + 48, - col1 AS col0 FROM tab2 AS cor0
----
-48
-51
-48
-67
-48
-77

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col1 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT SUM( col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7767
SELECT SUM ( col2 ) col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT col2 + - 55 AS col2 FROM tab2
----
-15
-32
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7769
SELECT ALL 16 DIV 59, 24 col0 FROM tab2 AS cor0
----
0
24
0
24
0
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7769
SELECT ALL 16 / 59, 24 col0 FROM tab2 AS cor0
----
0
24
0
24
0
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col1 * col0 col0 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT - col0 + + col0 DIV - - col1 col2 FROM tab1 AS cor0
----
-48
-68
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7771
SELECT DISTINCT - col0 + + col0 / - - col1 col2 FROM tab1 AS cor0
----
-48
-68
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7772
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col2, + 83 FROM tab0 AS cor0
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
query II rowsort label-7772
SELECT ALL - - CAST ( NULL AS REAL ) AS col2, + 83 FROM tab0 AS cor0
----
NULL
83
NULL
83
NULL
83

query II rowsort
SELECT - 96 * col2 AS col0, 1 * - col0 + col0 FROM tab2 cor0
----
-2208
0
-3840
0
-5568
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7774
SELECT + + MIN( + 45 ), 49 AS col0 FROM tab2 AS cor0
----
45
49

skipif mysql # not compatible
query II rowsort label-7774
SELECT + + MIN ( + 45 ), 49 AS col0 FROM tab2 AS cor0
----
45
49

query I rowsort
SELECT DISTINCT + 67 + - + col2 AS col0 FROM tab2
----
27
44
9

query I rowsort
SELECT - col0 * + 52 FROM tab0
----
-4524
-5044
-780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7777
SELECT ALL + col2 * - - col0 * CAST( NULL AS SIGNED ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL + col2 * - - col0 * CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab1 WHERE ( + - 13 ) IS NULL
----

query I rowsort
SELECT ALL + 66 * - ( col1 ) FROM tab1
----
-3102
-330
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL + 61 + - 94 - - 22 * COUNT( * ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + 61 + - 94 - - 22 * COUNT ( * ) AS col2 FROM tab0
----
33

query I rowsort
SELECT ALL + col1 * - + col0 + - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT - col2 + - - col2 - + 65 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT 49 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT 49 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + 19 + 10 - COUNT( * ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7784
SELECT + 19 + 10 - COUNT ( * ) FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7785
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col0 * - 13 + 74 AS col0 FROM tab0 cor0
----
-1057
-1187
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - - col2 * col0, - col0 * - 38 col2 FROM tab0 AS cor0
----
752
570
880
3306
9702
3686

query II rowsort
SELECT ALL + 3 AS col0, col1 FROM tab1 cor0
----
3
14
3
47
3
5

query II rowsort
SELECT ALL + col2 AS col2, 80 + - col2 FROM tab0 AS cor0
----
10
70
47
33
99
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT MAX( ALL + 12 ) col1 FROM tab2
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7790
SELECT MAX ( ALL + 12 ) col1 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7791
SELECT MIN( - col0 ) AS col1, COUNT( * ) FROM tab0
----
-97
3

skipif mysql # not compatible
query II rowsort label-7791
SELECT MIN ( - col0 ) AS col1, COUNT ( * ) FROM tab0
----
-97
3

query II rowsort
SELECT ALL + col1 * col0 AS col0, 55 FROM tab1
----
425
55
4277
55
714
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT SUM( + + ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT SUM ( + + ( col1 ) ) FROM tab0
----
103

query I rowsort
SELECT - ( 49 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col0 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT 39, col0 FROM tab0
----
39
15
39
87
39
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7797
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col0 / - - 97 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col0 IS NULL AND NOT col1 < + col0
----

query I rowsort
SELECT + 29 + + ( + 69 ) + - col2 FROM tab0
----
-1
51
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 * col1 * - ( 88 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 * col1 * - ( 88 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - 78 + - + MAX( col1 ) AS col2 FROM tab1
----
-125

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 78 + - + MAX ( col1 ) AS col2 FROM tab1
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT DISTINCT - col0 * + 39 * - CAST( NULL AS SIGNED ) + - col0 - - ( + col1 ) * - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - col0 * + 39 * - CAST ( NULL AS INTEGER ) + - col0 - - ( + col1 ) * - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7804
SELECT - col2 + - CAST( NULL AS SIGNED ) - + col2 - 18 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT - col2 + - CAST ( NULL AS INTEGER ) - + col2 - 18 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + 9 ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 - - + col1 * + col1 <= NULL )
----

query I rowsort
SELECT + 76 + + - col1 AS col1 FROM tab0
----
-5
55
75

query I rowsort
SELECT + ( - 84 ) AS col2 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT 88 - - - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-1256
-207
-3108

query II rowsort
SELECT + 83, - col0 AS col0 FROM tab0 AS cor0
----
83
-15
83
-87
83
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT COUNT( - - col1 ) - + - COUNT( + - col1 ) + MAX( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-7811
SELECT COUNT ( - - col1 ) - + - COUNT ( + - col1 ) + MAX ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0
----
5

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT NULL = - col2 * - col0
----

query I rowsort
SELECT DISTINCT - - col0 * col2 * + col0 FROM tab1 AS cor0
----
249696
426275
563108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col1 * + ( - + col2 ) + - col1 >= 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT DISTINCT 67 DIV - + ( - col0 ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT 67 / - + ( - col0 ) FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7816
SELECT - 71 * + ( + col0 ) col0, - col2 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1065
NULL
-6177
NULL
-6887
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7816
SELECT - 71 * + ( + col0 ) col0, - col2 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1065
NULL
-6177
NULL
-6887
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ( MAX( DISTINCT + col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7817
SELECT ( MAX ( DISTINCT + col1 ) ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT + 48 AS col2, + 74 AS col2 FROM tab1
----
48
74
48
74
48
74

query II rowsort
SELECT col2, - 0 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT + - 90 - + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT + - 90 - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL + SUM( + 26 ) * + 24 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + SUM ( + 26 ) * + 24 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT col1 * + CAST( - 4 AS SIGNED ) FROM tab2 AS cor0
----
-204
-268
-308

skipif mysql # not compatible
query I rowsort label-7822
SELECT col1 * + CAST ( - 4 AS INTEGER ) FROM tab2 AS cor0
----
-204
-268
-308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col0 col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT + - ( - ( - MIN( ALL + - 34 ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-7826
SELECT + - ( - ( - MIN ( ALL + - 34 ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ( + SUM( ALL - + 29 ) ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7827
SELECT ( + SUM ( ALL - + 29 ) ) AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT DISTINCT + 24 DIV + 66 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT + 24 / + 66 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7830
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) > - - CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-7830
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) > - - CAST ( NULL AS INTEGER ) * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - col2 - - 97 - + col2 * - col0 * + col2 col1 FROM tab0
----
31117
8347
946339

query I rowsort
SELECT col0 - - - 33 FROM tab1
----
18
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT + + MAX( + col1 ) * + 42 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + + MAX ( + col1 ) * + 42 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col2
----
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 * - + 26 FROM tab0 AS cor0
----
-1303
-2575
-281

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT col0 DIV - + 4 FROM tab1
----
-12
-21
-22

skipif mysql # not compatible
query I rowsort label-7835
SELECT col0 / - + 4 FROM tab1
----
-12
-21
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7836
SELECT - + 52 * CAST( NULL AS SIGNED ) AS col2, - 16 AS col1 FROM tab0 AS cor0
----
NULL
-16
NULL
-16
NULL
-16

skipif mysql # not compatible
query II rowsort label-7836
SELECT - + 52 * CAST ( NULL AS INTEGER ) AS col2, - 16 AS col1 FROM tab0 AS cor0
----
NULL
-16
NULL
-16
NULL
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col0 AS col1, - col2 * - col0 col2 FROM tab0 AS cor0
----
-705
705
-870
870
-9603
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT ALL 29 DIV + 84 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL 29 / + 84 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT DISTINCT 4 AS col1, - SUM( DISTINCT - 63 ) + + 86 FROM tab1 AS cor0
----
4
149

skipif mysql # not compatible
query II rowsort label-7839
SELECT DISTINCT 4 AS col1, - SUM ( DISTINCT - 63 ) + + 86 FROM tab1 AS cor0
----
4
149

query I rowsort
SELECT ALL + + col0 + - col0 - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT DISTINCT + col2 * - ( ( - CAST( NULL AS SIGNED ) ) ) * + ( - + CAST( NULL AS SIGNED ) ) * + 2 + - col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT + col2 * - ( ( - CAST ( NULL AS INTEGER ) ) ) * + ( - + CAST ( NULL AS INTEGER ) ) * + 2 + - col2 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 2 NOT BETWEEN + col2 * - 84 * col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - 33 ) col1, 78 + - 71 AS col2 FROM tab2
----
33
7
33
7
33
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT ALL MIN( + col0 ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
51
-3

skipif mysql # not compatible
query II rowsort label-7844
SELECT ALL MIN ( + col0 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
51
-3

query I rowsort
SELECT 77 * + 85 AS col1 FROM tab0
----
6545
6545
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT ALL - col0 + + + col0 + - CAST( NULL AS SIGNED ) / - - 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - col0 + + + col0 + - CAST ( NULL AS INTEGER ) / - - 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 32 AS col0, + 60 FROM tab0 cor0
----
32
60

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL )
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 59 + col2 * + ( - 80 ) <> col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + SUM( + + col1 ) * - MAX( + + 52 ) AS col0 FROM tab0 cor0 WHERE + col0 * + 51 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT + SUM ( + + col1 ) * - MAX ( + + 52 ) AS col0 FROM tab0 cor0 WHERE + col0 * + 51 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7851
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST( col1 AS SIGNED ) AND + + col2
----

skipif mysql # not compatible
query III rowsort label-7851
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST ( col1 AS INTEGER ) AND + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 50 + - col2 + 20 col2, - 66 AS col0 FROM tab0 AS cor0
----
-129
-66
-40
-66
-77
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT - - MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - - MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT col2 * - 76 + col0 AS col1 FROM tab2
----
-1702
-2976
-4333

query I rowsort
SELECT + 59 * + - col1 + col1 * col0 AS col1 FROM tab0
----
-3564
38
588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + + 32 + - col2 - 21 + - col1 col0 FROM tab1
----
-46
-51
0

query II rowsort
SELECT DISTINCT + ( col1 ) AS col1, - col2 + + 58 FROM tab1
----
14
-38
47
-10
5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT + ( - SUM( DISTINCT + 1 ) ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + ( - SUM ( DISTINCT + 1 ) ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT + CAST( col0 AS SIGNED ) - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT + CAST ( col0 AS INTEGER ) - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 * - + col0 + + col1 + - col2 * 16 AS col2 FROM tab1 AS cor0
----
-1364
-2236
-5318

onlyif mysql # DIV for integer division: 
query II rowsort label-7861
SELECT col2 AS col2, + col1 DIV + - col2 AS col2 FROM tab2
----
23
-2
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-7861
SELECT col2 AS col2, + col1 / + - col2 AS col2 FROM tab2
----
23
-2
40
-1
58
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL 37 * + + SUM( ALL 52 ) AS col1 FROM tab2
----
5772

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL 37 * + + SUM ( ALL 52 ) AS col1 FROM tab2
----
5772

onlyif mysql # aggregate syntax: 
query II rowsort label-7863
SELECT ALL 55, - COUNT( * ) + + COUNT( * ) + + 75 AS col2 FROM tab2
----
55
75

skipif mysql # not compatible
query II rowsort label-7863
SELECT ALL 55, - COUNT ( * ) + + COUNT ( * ) + + 75 AS col2 FROM tab2
----
55
75

query II rowsort
SELECT ALL - 50 AS col0, col1 FROM tab0 cor0
----
-50
1
-50
21
-50
81

query I rowsort
SELECT ( - + 30 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT - - col0 * + + 74 - + 87 DIV - + col0 FROM tab1 cor0
----
3775
6291
6734

skipif mysql # not compatible
query I rowsort label-7866
SELECT - - col0 * + + 74 - + 87 / - + col0 FROM tab1 cor0
----
3775
6291
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 65 col1, col1 AS col1 FROM tab2 AS cor0
----
-65
51
-65
67
-65
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7868
SELECT + SUM( DISTINCT col2 ) DIV - + 49 AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7868
SELECT + SUM ( DISTINCT col2 ) / - + 49 AS col1 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT + col1 * + - 39 AS col1 FROM tab1 AS cor0
----
-1833
-195
-546

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE 77 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - + 52 * 76 FROM tab1 AS cor0
----
-3952
-3952
-3952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + MIN( ( - 6 ) ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + MIN ( ( - 6 ) ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ALL 94 * - - col2 FROM tab1
----
5546
6392
9024

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT + col0 DIV - + 50 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + col0 / - + 50 FROM tab0
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 col1, col2 AS col1 FROM tab0 AS cor0
----
-5
10
-5
47
-5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT DISTINCT + 51 * - - col2 * + 61 + - + ( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
183554
211595
298670

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + 51 * - - col2 * + 61 + - + ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
183554
211595
298670

query II rowsort
SELECT - col2, + col1 * 20 AS col2 FROM tab2 AS cor0
----
-23
1020
-40
1540
-58
1340

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 70 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 70 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL CAST( NULL AS SIGNED ) / + 21 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL CAST ( NULL AS INTEGER ) / + 21 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT 79 * ( + - COUNT( ALL - col1 ) ) + + 73 FROM tab0 AS cor0 WHERE - CAST( - 13 AS SIGNED ) <= NULL
----
73

skipif mysql # not compatible
query I rowsort label-7884
SELECT 79 * ( + - COUNT ( ALL - col1 ) ) + + 73 FROM tab0 AS cor0 WHERE - CAST ( - 13 AS INTEGER ) <= NULL
----
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 66 / + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL - MIN( - - 97 ) AS col0 FROM tab0, tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - MIN ( - - 97 ) AS col0 FROM tab0, tab0 cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 - 22 col1 FROM tab0
----
52
52
52

query I rowsort
SELECT DISTINCT 81 - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - ( 75 ) * + + 39 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT - ( + COUNT( * ) ) FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT - ( + COUNT ( * ) ) FROM tab1 WHERE NULL = NULL
----
0

query I rowsort
SELECT DISTINCT + 29 - col0 FROM tab2
----
-17
-35
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7891
SELECT ALL * FROM tab2 WHERE - + CAST( - 12 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7891
SELECT ALL * FROM tab2 WHERE - + CAST ( - 12 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 43 - + 24 AS col0 FROM tab1
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT ALL - 2 - + col0 DIV + - col1 AS col0 FROM tab1
----
-1
1
15

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - 2 - + col0 / + - col1 AS col0 FROM tab1
----
-1
1
15

query II rowsort
SELECT DISTINCT col0, - 84 AS col1 FROM tab0
----
15
-84
87
-84
97
-84

query I rowsort
SELECT + col1 + + - 26 AS col0 FROM tab0
----
-25
-5
55

query I rowsort
SELECT 9 * - col2 + col2 - + - col0 + col0 * + col2 + 92 AS col1 FROM tab2
----
1012
2396
4053

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + - COUNT( * ) + - - 49 FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-7897
SELECT + - COUNT ( * ) + - - 49 FROM tab1 cor0
----
46

query I rowsort
SELECT - + ( + ( + + col0 ) ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col0 + 89 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT COUNT( ALL 51 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7901
SELECT DISTINCT COUNT ( ALL 51 ) col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( 71 ) AND col0
----

query I rowsort
SELECT DISTINCT col1 * 35 + col2 AS col2 FROM tab0
----
134
2882
745

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL - 65 DIV + col2 + + col0 col2 FROM tab1
----
51
84
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7904
SELECT ALL - 65 / + col2 + + col0 col2 FROM tab1
----
51
84
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7905
SELECT * FROM tab0 WHERE ( ( col2 ) ) * - 47 NOT IN ( + CAST( col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7905
SELECT * FROM tab0 WHERE ( ( col2 ) ) * - 47 NOT IN ( + CAST ( col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - COUNT( * ) FROM tab0 WHERE col1 * - col0 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - COUNT ( * ) FROM tab0 WHERE col1 * - col0 = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT + 97 * SUM( ALL ( col2 ) ) + SUM( col0 ) FROM tab2
----
11922

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + 97 * SUM ( ALL ( col2 ) ) + SUM ( col0 ) FROM tab2
----
11922

query I rowsort
SELECT ALL col0 + - 84 AS col2 FROM tab2 WHERE ( - col1 ) * + ( 92 * col2 ) + + 1 NOT BETWEEN - 43 AND col2
----
-20
-38
-9

query III rowsort
SELECT * FROM tab0 WHERE + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query III rowsort label-7910
SELECT ALL * FROM tab0 WHERE NOT 48 + - 67 DIV 51 IN ( + col2 )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-7910
SELECT ALL * FROM tab0 WHERE NOT 48 + - 67 / 51 IN ( + col2 )
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + 50 * - 61 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL - SUM( DISTINCT 66 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - SUM ( DISTINCT 66 ) FROM tab2
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT 57 > col1
----

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab1 WHERE NOT ( NULL ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT 59 > + col1
----
2

skipif mysql # not compatible
query I rowsort label-7915
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT 59 > + col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT - 10 - + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT - 10 - + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT + col0 + + col0 DIV + 34 AS col0 FROM tab2
----
47
65
77

skipif mysql # not compatible
query I rowsort label-7917
SELECT + col0 + + col0 / + 34 AS col0 FROM tab2
----
47
65
77

query I rowsort
SELECT col0 + col1 * + col1 AS col2 FROM tab0
----
528
6576
98

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE 60 < col0
----
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7920
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) + col1 * + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7920
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) + col1 * + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT MAX( col1 ) * AVG ( DISTINCT col2 * + CAST( NULL AS SIGNED ) ) + + 56 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT MAX ( col1 ) * AVG ( DISTINCT col2 * + CAST ( NULL AS INTEGER ) ) + + 56 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 77 + + col1 AS col0 FROM tab2 AS cor0
----
128
144
154

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7925
SELECT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) / - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7925
SELECT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) / - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT ALL + col0 * col2 + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
786
891
9604

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + col0 * col2 + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
786
891
9604

query I rowsort
SELECT DISTINCT + col1 - 88 FROM tab1 AS cor0
----
-41
-74
-83

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 73 col2 FROM tab2 AS cor0
----
124
140
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7930
SELECT DISTINCT - ( + COUNT( * ) ) + - CAST( 53 AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - ( + COUNT ( * ) ) + - CAST ( 53 AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( 50 - - 46 ) > 31
----
-3

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( 50 - - 46 ) > 31
----
-3

query I rowsort
SELECT ALL + 88 FROM tab2 WHERE NULL IN ( 60 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 68 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
25
25
25

query I rowsort
SELECT ALL - 35 FROM tab0 WHERE NOT 44 / col1 IS NULL
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - col1 * - col0 - + 63 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT + - 0 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7938
SELECT + CAST( NULL AS DECIMAL ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT + CAST ( NULL AS REAL ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT - - 23 * + CAST( NULL AS SIGNED ) + 44 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT - - 23 * + CAST ( NULL AS INTEGER ) + 44 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT + COUNT( * ) AS col0, 20 AS col1 FROM tab2 AS cor0
----
3
20

skipif mysql # not compatible
query II rowsort label-7940
SELECT + COUNT ( * ) AS col0, 20 AS col1 FROM tab2 AS cor0
----
3
20

query I rowsort
SELECT DISTINCT - 75 FROM tab2 cor0 WHERE NOT - ( col2 ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT ( 90 ) AS col1 FROM tab0 AS cor0
----
90

query II rowsort
SELECT ALL + col2 AS col2, - 11 AS col0 FROM tab2 AS cor0
----
23
-11
40
-11
58
-11

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col0 * + - col2 BETWEEN 58 AND + col2 * - col0
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 + - col2 * - 84 FROM tab2 AS cor0
----
1955
3384
4889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 AS col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL col0 + - col2 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= col1 * col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 67 ) <= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - col1 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
13072504
4928000
620517

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( 76 )
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( 76 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + col0 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + 38 BETWEEN + col0 + + ( col1 ) AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 30 AS col2 FROM tab0 WHERE + - 75 IS NOT NULL
----
-30
-30
-30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 36 NOT BETWEEN + 5 * - 55 AND + col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL + 79 + COUNT( * ) AS col0 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL + 79 + COUNT ( * ) AS col0 FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL COUNT( * ) + SUM( DISTINCT + col1 ) AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL COUNT ( * ) + SUM ( DISTINCT + col1 ) AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 * - col0 AS col2 FROM tab0 WHERE ( - col0 / - col0 * col0 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL COUNT( + 93 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL COUNT ( + 93 ) FROM tab0
----
3

query I rowsort
SELECT ALL - 43 FROM tab2 WHERE - col0 * col0 / col1 + col2 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT - + SUM( DISTINCT - 5 ) + - 35 * + COUNT( * ) col1 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7962
SELECT DISTINCT - + SUM ( DISTINCT - 5 ) + - 35 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT DISTINCT + col2 + - - 94 * + col1 - + - CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1216
2277
504

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + col2 + - - 94 * + col1 - + - CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1216
2277
504

query I rowsort
SELECT - ( - ( + col0 ) ) + + - 19 FROM tab2 AS cor0
----
27
45
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7965
SELECT + + 52 DIV + + 94 + - 90 * + + COUNT( * ) + 1 * + COUNT( * ) col2 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7965
SELECT + + 52 / + + 94 + - 90 * + + COUNT ( * ) + 1 * + COUNT ( * ) col2 FROM tab0 AS cor0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE col2 < - ( + 15 )
----

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE col2 < - ( + 15 )
----

query II rowsort
SELECT ALL + 46 AS col0, col0 FROM tab0
----
46
15
46
87
46
97

query I rowsort
SELECT 62 AS col2 FROM tab2 WHERE NULL NOT IN ( - col1 * col2 )
----

query I rowsort
SELECT + - col1 * 54 + + - col2 AS col0 FROM tab2 AS cor0
----
-2777
-3676
-4198

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT - COUNT( * ) * - 64 AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7970
SELECT - COUNT ( * ) * - 64 AS col1 FROM tab0 AS cor0
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + ( col1 ) + - - col0 col2 FROM tab2 AS cor0
----
147
191
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL COUNT( DISTINCT + 15 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL COUNT ( DISTINCT + 15 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 43 + 90 AS col1 FROM tab1 AS cor0
----
133

query II rowsort
SELECT + col1 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT ALL + + col1 - col1 + - - CAST( NULL AS SIGNED ) * + 91 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL + + col1 - col1 + - - CAST ( NULL AS INTEGER ) * + 91 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( + + ( col0 ) + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - - col1 + 16 FROM tab1 WHERE + + col0 / - col2 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7980
SELECT - CAST( NULL AS SIGNED ) * - + 74 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7980
SELECT - CAST ( NULL AS INTEGER ) * - + 74 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 5 * + col1 FROM tab1
----
235
25
70

query II rowsort
SELECT - - 5, col1 FROM tab0 AS cor0
----
5
1
5
21
5
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL - COUNT( * ) - ( 94 ) col2 FROM tab1 AS cor0 WHERE NOT col1 * + col1 * + 70 NOT BETWEEN + col1 AND ( 71 ) * col2
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7983
SELECT ALL - COUNT ( * ) - ( 94 ) col2 FROM tab1 AS cor0 WHERE NOT col1 * + col1 * + 70 NOT BETWEEN + col1 AND ( 71 ) * col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * + + col0 + + 8 )
----

skipif mysql # not compatible
query I rowsort label-7984
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * + + col0 + + 8 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * 78 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT 25 DIV + 49 * + ( col0 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT 25 / + 49 * + ( col0 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + + AVG ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT ALL col2 + - col0 + + CAST( NULL AS SIGNED ) * - 68 + + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL col2 + - col0 + + CAST ( NULL AS INTEGER ) * - 68 + + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col0 AND - col2 / - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7991
SELECT * FROM tab1 WHERE + CAST( + 15 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7991
SELECT * FROM tab1 WHERE + CAST ( + 15 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 32 AS col2 FROM tab1
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT 6 + - MIN( ALL + 43 ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7993
SELECT 6 + - MIN ( ALL + 43 ) FROM tab0
----
-37

query I rowsort
SELECT DISTINCT + col0 * - col2 + ( + 16 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 * - 46 * - col0 AND 44
----

query II rowsort
SELECT + 50, - col0 + + col0 AS col2 FROM tab1 AS cor0
----
50
0
50
0
50
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 col0 FROM tab0
----
162
2
42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( ( 69 NOT BETWEEN ( NULL ) AND 17 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT ALL - 56 DIV + - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - 56 / + - col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 13 * + col0, - 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT ALL - - col2 DIV - 96 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - - col2 / - 96 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 79 ) col1 FROM tab0 AS cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT + MAX( DISTINCT - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8004
SELECT + MAX ( DISTINCT - col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 / ( + - col2 ) AND - col2
----

query I rowsort
SELECT - 69 * - + col1 + + col1 FROM tab0 AS cor0
----
1470
5670
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT col0 DIV 15 * - col0 AS col1 FROM tab0 AS cor0
----
-15
-435
-582

skipif mysql # not compatible
query I rowsort label-8007
SELECT col0 / 15 * - col0 AS col1 FROM tab0 AS cor0
----
-15
-435
-582

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN - 69 * col1 AND + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 88 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8010
SELECT - col2 AS col1, + col0 DIV 38 + - 88 AS col0 FROM tab1
----
-59
-86
-68
-86
-96
-87

skipif mysql # not compatible
query II rowsort label-8010
SELECT - col2 AS col1, + col0 / 38 + - 88 AS col0 FROM tab1
----
-59
-86
-68
-86
-96
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8011
SELECT + - 82 col0 FROM tab0 WHERE NOT 13 * + col1 + + + 13 * - + col0 + - 85 / + + CAST( NULL AS DECIMAL ) / - col0 = + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT + - 82 col0 FROM tab0 WHERE NOT 13 * + col1 + + + 13 * - + col0 + - 85 / + + CAST ( NULL AS REAL ) / - col0 = + col0
----

query I rowsort
SELECT DISTINCT 17 + + col2 + + - col2 FROM tab0 cor0
----
17

query II rowsort
SELECT - col2 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT + 6 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 91 + col2 AS col2 FROM tab2
----
114
131
149

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8016
SELECT ALL col0 DIV + col1 + CAST( - + col1 AS SIGNED ) FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL col0 / + col1 + CAST ( - + col1 AS INTEGER ) FROM tab2
----
-51
-66
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT + + 67 + + MIN( ALL - 72 ) AS col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8017
SELECT + + 67 + + MIN ( ALL - 72 ) AS col2 FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8018
SELECT * FROM tab2 AS cor0 WHERE + CAST( + 44 AS SIGNED ) + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8018
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + 44 AS INTEGER ) + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 48 + - + 4 AS col1 FROM tab0
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * + ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 65 AS col0, - 48 FROM tab1 AS cor0 WHERE NOT ( NOT + + col1 < + col2 )
----
65
-48
65
-48
65
-48

query I rowsort
SELECT ALL + - 74 * 81 FROM tab2 AS cor0
----
-5994
-5994
-5994

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT DISTINCT + + 86, + 94 * + SUM( - 30 ) AS col0 FROM tab1 AS cor0
----
86
-8460

skipif mysql # not compatible
query II rowsort label-8023
SELECT DISTINCT + + 86, + 94 * + SUM ( - 30 ) AS col0 FROM tab1 AS cor0
----
86
-8460

query II rowsort
SELECT DISTINCT 15 AS col1, - 5 + 24 + - 10 FROM tab2 AS cor0
----
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - MIN( ALL 57 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - MIN ( ALL 57 ) FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL + col1 * + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) col1 FROM tab2 cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * 93 * - 17 col2 FROM tab2
----
-52173
-52173
-52173

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col0 * + 54 col1 FROM tab0
----
-38070
-46980
-518562

query I rowsort
SELECT DISTINCT 0 * - - col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 * col1 * 19 > NULL
----

query I rowsort
SELECT ALL + 17 * - - col0 + + 49 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT 66 * - + COUNT( * ) AS col1 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT 66 * - + COUNT ( * ) AS col1 FROM tab2
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT ALL SUM( ALL + 91 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL SUM ( ALL + 91 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 70 FROM tab1 WHERE NOT + + ( 88 ) * - - 67 + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT - MIN( - - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8037
SELECT - MIN ( - - 10 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + SUM( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + SUM ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - 40 * - 83 FROM tab0 AS cor0
----
3320
3320
3320

query I rowsort
SELECT DISTINCT - 35 + + 35 AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 97 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * 29 col1 FROM tab1
----
1885
1885
1885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL + - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - - ( col0 ) IN ( 53 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + SUM( - 47 ) + + COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8045
SELECT + SUM ( - 47 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - + 55 + - - col2 col2 FROM tab1 cor0
----
3304
3808
5376

query I rowsort
SELECT col2 + + 48 AS col0 FROM tab0 AS cor0
----
147
58
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - + col0 col2 FROM tab1 AS cor0 WHERE col0 * 86 + + 66 + + 23 - - 14 >= NULL
----

query I rowsort
SELECT + + col2 + 0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + SUM( DISTINCT - ( + col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + SUM ( DISTINCT - ( + col2 ) ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
0

query II rowsort
SELECT col0 + + col2 AS col0, + 18 + - 77 + - 83 * + 73 FROM tab1
----
144
-6118
147
-6118
159
-6118

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - ( SUM( DISTINCT + + col0 ) ) + + - COUNT( * ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-8053
SELECT - ( SUM ( DISTINCT + + col0 ) ) + + - COUNT ( * ) FROM tab1
----
-230

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * col0 + - 8 + col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 57 * + - col2 FROM tab2 WHERE + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + - 5
----

query II rowsort
SELECT ALL col2 + - col2 + - col1 * 57 AS col1, 30 FROM tab0 AS cor0
----
-1197
30
-4617
30
-57
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT - + 2 + + ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT - + 2 + + ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - col2 + 86 + - - col1 AS col0 FROM tab0 AS cor0
----
-12
120
97

query I rowsort
SELECT ALL - 18 - - 57 - - col2 * + col0 + - col2 FROM tab1 AS cor0
----
4839
4995
6159

query III rowsort
SELECT * FROM tab1 WHERE - col0 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - col1 + + + col2 AS col2 FROM tab1
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT DISTINCT MIN( ALL - + col0 ) AS col0, 79 FROM tab2
----
-75
79

skipif mysql # not compatible
query II rowsort label-8063
SELECT DISTINCT MIN ( ALL - + col0 ) AS col0, 79 FROM tab2
----
-75
79

query I rowsort
SELECT + 52 AS col1 FROM tab0 WHERE NOT ( - - ( - col0 ) ) IS NULL
----
52
52
52

query I rowsort
SELECT DISTINCT - 92 * 53 * + col0 FROM tab0
----
-424212
-472972
-73140

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT - COUNT( ALL ( + ( + col0 ) ) ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 NOT BETWEEN 61 AND - col2 + col0 + + col1 + + 46 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - COUNT ( ALL ( + ( + col0 ) ) ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 NOT BETWEEN 61 AND - col2 + col0 + + col1 + + 46 * + col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8067
SELECT - 82 DIV COUNT( * ), - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 cor0
----
-27
-6

skipif mysql # not compatible
query II rowsort label-8067
SELECT - 82 / COUNT ( * ), - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-27
-6

query I rowsort
SELECT - col2 * - 59 * 65 AS col1 FROM tab2 AS cor0
----
153400
222430
88205

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT 35 * - + MAX( DISTINCT - col0 ) FROM tab2
----
1610

skipif mysql # not compatible
query I rowsort label-8069
SELECT 35 * - + MAX ( DISTINCT - col0 ) FROM tab2
----
1610

query I rowsort
SELECT ALL - col2 * - 83 AS col2 FROM tab1
----
4897
5644
7968

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 60 AS col2 FROM tab0 AS cor0
----
2820
5940
600

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT ALL 71 DIV - 32 + + 47 FROM tab2 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL 71 / - 32 + + 47 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - COUNT( * ) + - 59 + + + 68 col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8074
SELECT - COUNT ( * ) + - 59 + + + 68 col0 FROM tab0
----
6

query I rowsort
SELECT ALL 10 * - 85 * 98 AS col2 FROM tab2
----
-83300
-83300
-83300

query I rowsort
SELECT DISTINCT - 19 * + 29 AS col0 FROM tab2
----
-551

query I rowsort
SELECT - 82 + + col1 + 58 AS col1 FROM tab1
----
-10
-19
23

query I rowsort
SELECT + 16 * + + ( - 70 ) + + 15 AS col2 FROM tab1
----
-1105
-1105
-1105

query I rowsort
SELECT DISTINCT + 12 + + - col0 AS col2 FROM tab1 AS cor0
----
-39
-73
-79

query I rowsort
SELECT ALL 54 + + 6 + - col0 FROM tab2 AS cor0
----
-15
-4
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + 57 - + 53 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8082
SELECT ALL 19 DIV + 67 * + + 24 + COUNT( * ) DIV + 37 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL 19 / + 67 * + + 24 + COUNT ( * ) / + 37 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 45 - + ( - - col1 ) * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT + - COUNT( * ) * - - 89 AS col2 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + - COUNT ( * ) * - - 89 AS col2 FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT ALL + ( + 69 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + ( + 69 ) / + COUNT ( * ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT + - ( + col0 ) FROM tab0 cor0 WHERE ( NULL > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col2 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT + col0 + - - col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
138
65
90

skipif mysql # not compatible
query I rowsort label-8088
SELECT + col0 + - - col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
138
65
90

query I rowsort
SELECT 68 * - col1 + + 41 + + 53 * + 78 AS col2 FROM tab1
----
3223
3835
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + ( col2 ) col0, 76 AS col1 FROM tab0
----
196
76
62
76
97
76

query II rowsort
SELECT ( col0 ) * - - 4 AS col1, + col2 AS col0 FROM tab0 WHERE + + col1 IS NOT NULL
----
348
10
388
99
60
47

query I rowsort
SELECT - col0 + + + 45 AS col1 FROM tab0
----
-42
-52
30

query I rowsort
SELECT 75 * 16 + + col0 * + 57 FROM tab1
----
4107
6045
6387

query III rowsort
SELECT DISTINCT col2 AS col0, - col0 * + col0, 75 AS col1 FROM tab0 AS cor0
----
9 values hashing to 42c2e02b2695475d8b950b53ab49e2cd

query I rowsort
SELECT DISTINCT - 19 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, + ( + col1 ) col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8097
SELECT ALL + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT - MIN( + 69 ) AS col2 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8098
SELECT - MIN ( + 69 ) AS col2 FROM tab2 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL MIN( 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL MIN ( 32 ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * - + col1 * + 3 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col2, ( - - 17 ) FROM tab1 AS cor0
----
-59
17
-68
17
-96
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL COUNT( ALL + 2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL COUNT ( ALL + 2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 16, - col2, + col1 + 87 + + 52 + - + col1 * + 82, 37 )
----
0

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 16, - col2, + col1 + 87 + + 52 + - + col1 * + 82, 37 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * - col0 * + 63 col0 FROM tab0
----
-4768470
-58683933
-666225

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + COUNT( + 24 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8105
SELECT + COUNT ( + 24 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NULL AND + 11 + - 54 IS NULL
----

query I rowsort
SELECT 73 + - col1 AS col1 FROM tab1
----
26
59
68

query I rowsort
SELECT DISTINCT col0 * col0 + - + ( - col1 ) + - - col1 FROM tab0 AS cor0
----
387
7611
9411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT DISTINCT - + SUM( CAST( - 51 AS SIGNED ) ) FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - + SUM ( CAST ( - 51 AS INTEGER ) ) FROM tab0 cor0
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col2 * + col0
----

query II rowsort
SELECT ALL + col0, col0 - col0 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8112
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + col0 + + col0 - col2 * 54 < ( + CAST( NULL AS SIGNED ) ) AND ( NULL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8112
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + col0 + + col0 - col2 * 54 < ( + CAST ( NULL AS INTEGER ) ) AND ( NULL ) IS NULL
----

query I rowsort
SELECT col0 - + + 53 AS col2 FROM tab2 cor0 WHERE - col0 = + 94
----

query II rowsort
SELECT 34 + + + ( + col1 ), col1 FROM tab2 AS cor0
----
101
67
111
77
85
51

query III rowsort
SELECT ALL * FROM tab0 WHERE 45 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT - COUNT( DISTINCT + - 75 ) AS col2 FROM tab2, tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - COUNT ( DISTINCT + - 75 ) AS col2 FROM tab2, tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 + + + 96 FROM tab1 AS cor0
----
49
82
91

query I rowsort
SELECT ALL + ( + - 2 ) AS col2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8119
SELECT - ( + col1 ) AS col1, + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8119
SELECT - ( + col1 ) AS col1, + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL + col1 * + - 31 AS col0 FROM tab0 cor0
----
-2511
-31
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8121
SELECT ALL - COUNT( * ) DIV + + 73 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - COUNT ( * ) / + + 73 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT + - MIN( + + col1 ) * COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + - MIN ( + + col1 ) * COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT MIN( ALL - 16 ) AS col2 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-8123
SELECT MIN ( ALL - 16 ) AS col2 FROM tab1
----
-16

query II rowsort
SELECT ( + + col2 ) AS col2, - col1 + - col2 FROM tab1 WHERE NOT 25 = ( - 12 )
----
59
-64
68
-115
96
-110

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 81 * + + 71 AS col1 FROM tab0 AS cor0
----
5751
5751
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT - + SUM( DISTINCT + ( - ( + - col0 ) ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT - + SUM ( DISTINCT + ( - ( + - col0 ) ) ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ( + 7 ) FROM tab2 cor0
----
7
7
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - - col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * col0 NOT IN ( + 77 + 50 * - ( + col0 ) + - col0 )
----

query I rowsort
SELECT - col2 * - ( + col1 ) * + col2 - - col2 + - col2 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT + - col1 * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT ALL + col0, col0 + + col2 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT - MIN( DISTINCT col2 ) AS col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-8134
SELECT - MIN ( DISTINCT col2 ) AS col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
-10

query I rowsort
SELECT ( ( - + col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + MAX( ALL 16 ) col0 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8136
SELECT + MAX ( ALL 16 ) col0 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT MAX( - 31 ) AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8137
SELECT MAX ( - 31 ) AS col0 FROM tab0 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col1 FROM tab1 AS cor0
----
2
2
2

query II rowsort
SELECT DISTINCT col0 AS col2, + ( col2 ) AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL 89 - - - 42 FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT + SUM( - + 15 ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + SUM ( - + 15 ) AS col2 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL + MIN( DISTINCT + 22 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + MIN ( DISTINCT + 22 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
22

query I rowsort
SELECT + - ( ( + + col2 ) ) * - + 58 + col0 AS col1 FROM tab2 WHERE ( ( NULL ) IS NULL )
----
1380
2384
3439

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE 74 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL - - ( - 63 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query II rowsort
SELECT - - col1 * - + 13 AS col2, + col1 FROM tab0 AS cor0
----
-1053
81
-13
1
-273
21

query I rowsort
SELECT - 98 / 16 + + col1 * col0 AS col0 FROM tab2 AS cor0 WHERE - col0 > NULL
----

query I rowsort
SELECT ALL ( 10 ) AS col1 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - col2 ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 - - col0 col2 FROM tab2 AS cor0
----
113
124
95

query I rowsort
SELECT ALL + - 91 FROM tab1 AS cor0 WHERE + col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT + ( + COUNT( * ) ) * + + ( + COUNT( * ) ) - - - COUNT( * ) DIV 21 AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8152
SELECT + ( + COUNT ( * ) ) * + + ( + COUNT ( * ) ) - - - COUNT ( * ) / 21 AS col2 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col2 col1 FROM tab2
----
17
23
24

query II rowsort
SELECT 67 AS col2, + col1 FROM tab2
----
67
51
67
67
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT - col0 * - col2 + col1 + - ( + CAST( + + 16 AS SIGNED ) ) FROM tab2 AS cor0
----
1093
2621
4401

skipif mysql # not compatible
query I rowsort label-8155
SELECT - col0 * - col2 + col1 + - ( + CAST ( + + 16 AS INTEGER ) ) FROM tab2 AS cor0
----
1093
2621
4401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col2 FROM tab1
----
36

query I rowsort
SELECT DISTINCT + 57 * ( + + col1 ) FROM tab2
----
2907
3819
4389

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 > - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1 * - col0
----

query I rowsort
SELECT ALL 5 FROM tab2 AS cor0 WHERE + col1 * - col0 + - col0 <> NULL
----

query I rowsort
SELECT + col2 + + col1 FROM tab0 AS cor0 WHERE NOT 24 * col0 * + 97 BETWEEN + col0 AND + col0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT - + MIN( ( + CAST( - col1 AS SIGNED ) ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT - + MIN ( ( + CAST ( - col1 AS INTEGER ) ) ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8163
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST( + col1 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8163
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( + col1 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / + col2 < NULL
----

query I rowsort
SELECT + 48 + + - 40 + - ( - 8 ) * col0 AS col1 FROM tab1
----
416
688
736

query II rowsort
SELECT ALL 84 AS col1, col2 FROM tab2
----
84
23
84
40
84
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8167
SELECT ALL * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8167
SELECT ALL * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8168
SELECT - MAX( + - col1 ) + + 73, COUNT( * ) + 44 AS col0 FROM tab0
----
74
47

skipif mysql # not compatible
query II rowsort label-8168
SELECT - MAX ( + - col1 ) + + 73, COUNT ( * ) + 44 AS col0 FROM tab0
----
74
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8169
SELECT + CAST( NULL AS SIGNED ) + col0 + + col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8169
SELECT + CAST ( NULL AS INTEGER ) + col0 + + col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT ( ( - ( - + col0 ) ) ) * + CAST( NULL AS SIGNED ) + + 60 + + col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8170
SELECT ( ( - ( - + col0 ) ) ) * + CAST ( NULL AS INTEGER ) + + 60 + + col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + + 66 FROM tab0
----
147
67
87

query I rowsort
SELECT DISTINCT - col0 * + - 96 + - + col2 FROM tab2
----
4393
6104
7142

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - - COUNT( - - col2 ) AS col1 FROM tab1 AS cor0 WHERE col0 - - col1 * + col2 BETWEEN + 93 * - + col1 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8173
SELECT - - COUNT ( - - col2 ) AS col1 FROM tab1 AS cor0 WHERE col0 - - col1 * + col2 BETWEEN + 93 * - + col1 AND col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8174
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) * col0 * - - 73 + + 86 + - ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) * col0 * - - 73 + + 86 + - ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - ( 13 ) FROM tab0 cor0
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-8176
SELECT + col1 AS col2, - ( col0 ) DIV + - 58 FROM tab0
----
1
1
21
1
81
0

skipif mysql # not compatible
query II rowsort label-8176
SELECT + col1 AS col2, - ( col0 ) / + - 58 FROM tab0
----
1
1
21
1
81
0

query II rowsort
SELECT DISTINCT + 57, - 97 * - col1 AS col0 FROM tab2
----
57
4947
57
6499
57
7469

query I rowsort
SELECT + 97 + - - col0 AS col0 FROM tab1 AS cor0
----
148
182
188

query I rowsort
SELECT + col1 * col2 + col0 AS col2 FROM tab1 cor0
----
1395
3287
380

query I rowsort
SELECT - col0 + + 29 AS col2 FROM tab0 AS cor0
----
-58
-68
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT DISTINCT - ( - AVG ( + 70 ) ) * + + MAX( - + CAST( + + col2 AS SIGNED ) ) + 57 FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND 36 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT - ( - AVG ( + 70 ) ) * + + MAX ( - + CAST ( + + col2 AS INTEGER ) ) + 57 FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND 36 * col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT - CAST( + 96 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-8182
SELECT - CAST ( + 96 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * + col2 + 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT 71 * - + SUM( DISTINCT col1 ) AS col2 FROM tab0
----
-7313

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT 71 * - + SUM ( DISTINCT col1 ) AS col2 FROM tab0
----
-7313

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT SUM( DISTINCT 86 ) * COUNT( * ) FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT SUM ( DISTINCT 86 ) * COUNT ( * ) FROM tab2
----
258

query I rowsort
SELECT DISTINCT + col0 * + 78 FROM tab0
----
1170
6786
7566

query I rowsort
SELECT + 18 * + + 70 * - col0 AS col1 FROM tab1 AS cor0
----
-107100
-114660
-64260

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT 94 DIV + + col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8188
SELECT 94 / + + col0 FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8190
SELECT + + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - + 21 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - col1 + - ( - col0 ) FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT - 36 AS col0, - col2 FROM tab0 AS cor0
----
-36
-10
-36
-47
-36
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8194
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 * - 84 IN ( + col0 + + - col2, CAST( col2 AS SIGNED ), - + col2 )
----

skipif mysql # not compatible
query III rowsort label-8194
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 * - 84 IN ( + col0 + + - col2, CAST ( col2 AS INTEGER ), - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 25 + - col2 col1 FROM tab0 AS cor0
----
-7
102
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8196
SELECT CAST( NULL AS DECIMAL ) * SUM( - ( + + 40 ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT CAST ( NULL AS REAL ) * SUM ( - ( + + 40 ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 79 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * - 87 * + 63 col2 FROM tab0 AS cor0
----
400113
400113
400113

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT - - COUNT( * ) * - MAX( col2 ) AS col1 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT - - COUNT ( * ) * - MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT ALL 51 * col1 FROM tab0 AS cor0
----
1071
4131
51

query I rowsort
SELECT + - col1 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * + col1 + + + 79 col0 FROM tab1 AS cor0
----
-1251
-396
-4386

query I rowsort
SELECT ALL + - 21 * + + 18 + - col0 + + col2 * - 75 AS col2 FROM tab2 WHERE NOT + 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT COUNT( DISTINCT + ( 17 ) ) FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT COUNT ( DISTINCT + ( 17 ) ) FROM tab0 WHERE col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL - COUNT( * ) * - 9 AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - COUNT ( * ) * - 9 AS col0 FROM tab1
----
27

query I rowsort
SELECT col1 + col0 + + col1 AS col2 FROM tab0
----
129
177
99

query I rowsort
SELECT + col1 + - 54 AS col0 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT col2 + - 86 + - + col2 AS col0 FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT ( - 94 ) + + col1 DIV - col0 FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-8209
SELECT ( - 94 ) + + col1 / - col0 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE ( - col0 + - 10 ) BETWEEN col2 + - + col1 AND 20 + + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT 67 - - + SUM( ALL - col0 ) col0 FROM tab0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8211
SELECT DISTINCT 67 - - + SUM ( ALL - col0 ) col0 FROM tab0 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) * - COUNT( * ) * 53 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * 53 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + COUNT( * ) * 77 AS col1 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-8213
SELECT + COUNT ( * ) * 77 AS col1 FROM tab1
----
231

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE - col0 / col1 IS NULL
----

query I rowsort
SELECT + 65 * - + col2 FROM tab2 AS cor0
----
-1495
-2600
-3770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE ( - 62 IS NULL )
----

query I rowsort
SELECT - 20 FROM tab2 WHERE NOT NULL = + col1
----

query II rowsort
SELECT ALL - 90, - col0 AS col2 FROM tab0
----
-90
-15
-90
-87
-90
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8220
SELECT DISTINCT COUNT( * ) AS col2, - MAX( - col0 ) + + CAST( NULL AS SIGNED ) - MIN( DISTINCT - 50 ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8220
SELECT DISTINCT COUNT ( * ) AS col2, - MAX ( - col0 ) + + CAST ( NULL AS INTEGER ) - MIN ( DISTINCT - 50 ) FROM tab0
----
3
NULL

query II rowsort
SELECT + 13 AS col0, col2 + + - col1 FROM tab0
----
13
-11
13
-34
13
98

query I rowsort
SELECT + 62 * - col1 * col1 AS col1 FROM tab1
----
-12152
-136958
-1550

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT + COUNT( * ) + - + 81 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 49 IS NULL
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8223
SELECT + COUNT ( * ) + - + 81 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 49 IS NULL
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + - 64 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL - ( SUM( col1 ) ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - ( SUM ( col1 ) ) AS col0 FROM tab1 cor0
----
-66

query I rowsort
SELECT ALL + col2 + col2 + - - 29 FROM tab1 AS cor0
----
147
165
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT - 38 + + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8228
SELECT - 38 + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 + - col0 AS col2 FROM tab1 AS cor0
----
-38
-4
-44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - col0 BETWEEN + - col0 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL - col0 * + - CAST( col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - col0 * + - CAST ( col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT 48 + - - 36 AS col0 FROM tab2
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + + - 78 * - col1 + + col1 col1 FROM tab1
----
1151
369
3690

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + + 87 BETWEEN NULL AND + + 12
----

query I rowsort
SELECT + 67 + - ( - col2 ) FROM tab1
----
126
135
163

query I rowsort
SELECT + ( - 34 ) AS col2 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT DISTINCT - - SUM( - + 36 ) FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - - SUM ( - + 36 ) FROM tab0 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + COUNT( * ) - - MAX( - 11 ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-8238
SELECT + COUNT ( * ) - - MAX ( - 11 ) AS col0 FROM tab1
----
-8

query I rowsort
SELECT ALL col2 - - 22 + - 16 FROM tab2
----
29
46
64

query III rowsort
SELECT * FROM tab0 WHERE - 98 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + 36 FROM tab0
----
-11
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT SUM( - 8 ) * ( + ( COUNT( * ) ) ) + - 59 FROM tab2
----
-131

skipif mysql # not compatible
query I rowsort label-8242
SELECT SUM ( - 8 ) * ( + ( COUNT ( * ) ) ) + - 59 FROM tab2
----
-131

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + 21
----

query II rowsort
SELECT - col1 * col1, + col1 FROM tab0
----
-1
1
-441
21
-6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - MAX( + col0 ) AS col2 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT - MAX ( + col0 ) AS col2 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL + MIN( DISTINCT + col0 ) col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8246
SELECT ALL + MIN ( DISTINCT + col0 ) col0 FROM tab2 cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / 75 * + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + - COUNT( * ) * 64 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8249
SELECT + - COUNT ( * ) * 64 FROM tab2 AS cor0
----
-192

query II rowsort
SELECT ALL ( + - 83 ), col1 AS col1 FROM tab2 AS cor0
----
-83
51
-83
67
-83
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT MIN( - col2 ) AS col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8251
SELECT MIN ( - col2 ) AS col1 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT + MIN( ALL + + col2 ) AS col2 FROM tab0 WHERE col0 <> - + 80
----
10

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT + MIN ( ALL + + col2 ) AS col2 FROM tab0 WHERE col0 <> - + 80
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE + 26 * + + 53 + + col0 = 28
----

query II rowsort
SELECT ALL 5, + col0 * col1 AS col1 FROM tab1
----
5
425
5
4277
5
714

query I rowsort
SELECT - - col2 * ( - 12 ) FROM tab1 cor0
----
-1152
-708
-816

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 * + col0 BETWEEN + col1 AND - + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE NOT ( + - 19 * - 76 IS NULL )
----
14
47
5

query I rowsort
SELECT - - ( + - col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + + 55 * - ( + - 24 ) FROM tab0 AS cor0
----
1320
1320
1320

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 = + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + + 82 * - col0 + + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 * - + col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT + 84 + col1 FROM tab0 AS cor0 WHERE + ( + col2 ) * + 17 <> + 61
----
105
165
85

query I rowsort
SELECT + col1 * + 89 FROM tab0 AS cor0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> - ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> - ( col1 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE 12 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8267
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE 12 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT DISTINCT - SUM( DISTINCT + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - SUM ( DISTINCT + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT 68 * - SUM( ALL - + col2 ) FROM tab1
----
15164

skipif mysql # not compatible
query I rowsort label-8269
SELECT 68 * - SUM ( ALL - + col2 ) FROM tab1
----
15164

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 75 > + ( + 49 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col0 col2 FROM tab1
----
138
65
90

query I rowsort
SELECT - + 59 + col1 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
247
7531
9351

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 9 / - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT DISTINCT - 45 DIV - col2 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - 45 / - col2 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - 23 * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8276
SELECT DISTINCT - CAST( NULL AS SIGNED ), 2 AS col0 FROM tab2 AS cor0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-8276
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 2 AS col0 FROM tab2 AS cor0
----
NULL
2

query I rowsort
SELECT + 0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - - col2 ) * 65 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-19175
-207740
-87360

query II rowsort
SELECT ALL - - ( col0 ) * - - 34 AS col1, col1 * - col1 AS col0 FROM tab1 cor0
----
1734
-196
2890
-25
3094
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT + CAST( - + 52 AS SIGNED ) + col0 AS col2 FROM tab0
----
-37
35
45

skipif mysql # not compatible
query I rowsort label-8280
SELECT + CAST ( - + 52 AS INTEGER ) + col0 AS col2 FROM tab0
----
-37
35
45

query I rowsort
SELECT col0 + + col1 + - col0 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - COUNT( - - col2 ) + - + 43 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-8282
SELECT - COUNT ( - - col2 ) + - + 43 FROM tab0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - + 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 43 * + + 93 AS col0 FROM tab2
----
3999
3999
3999

query I rowsort
SELECT ALL - 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col1 col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT - 82 + + 24 + - 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT ALL ( col0 ) + - col2 + col0 AS col0 FROM tab0 AS cor0
----
-17
164
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT SUM( + 15 ) + - 70 AS col0, + 21 AS col1 FROM tab2 AS cor0
----
-25
21

skipif mysql # not compatible
query II rowsort label-8289
SELECT SUM ( + 15 ) + - 70 AS col0, + 21 AS col1 FROM tab2 AS cor0
----
-25
21

query I rowsort
SELECT ALL - + 35 + + col1 FROM tab0 AS cor0
----
-14
-34
46

query I rowsort
SELECT + 87 + + - col0 * - + col1 FROM tab1 AS cor0
----
4364
512
801

query I rowsort
SELECT DISTINCT + - col2 - + col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8293
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( + - 66 AS SIGNED ) BETWEEN + + col1 / 38 * + 45 + + - col2 AND 19
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-8293
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( + - 66 AS INTEGER ) BETWEEN + + col1 / 38 * + 45 + + - col2 AND 19
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 * + 26 + - - col1 FROM tab1
----
1539
1815
2510

query I rowsort
SELECT ALL + 60 * col1 - 69 AS col0 FROM tab0
----
-9
1191
4791

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + MIN( ALL col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT + MIN ( ALL col2 ) col0 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT + CAST( 29 AS SIGNED ) AS col0 FROM tab1 WHERE NULL = col2
----

skipif mysql # not compatible
query I rowsort label-8297
SELECT + CAST ( 29 AS INTEGER ) AS col0 FROM tab1 WHERE NULL = col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col0 + + col1 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT COUNT( * ) FROM tab0 WHERE - col2 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT COUNT ( * ) FROM tab0 WHERE - col2 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT - + COUNT( * ), 79 AS col0 FROM tab2 AS cor0
----
-3
79

skipif mysql # not compatible
query II rowsort label-8300
SELECT - + COUNT ( * ), 79 AS col0 FROM tab2 AS cor0
----
-3
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL + 86 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + 86 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8302
SELECT CAST( NULL AS DECIMAL ) * ( - col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT CAST ( NULL AS REAL ) * ( - col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT DISTINCT - ( + col2 ) DIV + - 58 AS col1 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - ( + col2 ) / + - 58 AS col1 FROM tab0 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT ALL - SUM( ALL - + col0 ) AS col0, SUM( - col2 ) col0 FROM tab2 AS cor0
----
185
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8304
SELECT ALL - SUM ( ALL - + col0 ) AS col0, SUM ( - col2 ) col0 FROM tab2 AS cor0
----
185
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 * + col1 AS col2, 88 AS col2, col1 col2 FROM tab0 AS cor0
----
9 values hashing to 29f51db65c76a33ab5a1623a0718ab68

query I rowsort
SELECT - + ( - 45 ) FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT col0 * 77 * - - col1 + + - 54 AS col0 FROM tab2 AS cor0
----
180588
379402
386871

query I rowsort
SELECT - 79 * - - col2 AS col1 FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT + + ( - 88 ) FROM tab1 cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT + 46 DIV - COUNT( * ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8310
SELECT + 46 / - COUNT ( * ) AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT ALL 86 * CAST( NULL AS SIGNED ) * + + col1 * - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL 86 * CAST ( NULL AS INTEGER ) * + + col1 * - - col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT 84 * + - COUNT( * ) AS col0 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT 84 * + - COUNT ( * ) AS col0 FROM tab0
----
-252

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + ( 67 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT - COUNT( * ) * + + 66 col2 FROM tab2 cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8316
SELECT - COUNT ( * ) * + + 66 col2 FROM tab2 cor0
----
-198

query I rowsort
SELECT ( - 62 ) + - col0 * col1 * + + col1 AS col2 FROM tab1 AS cor0
----
-10058
-201081
-2187

query I rowsort
SELECT - col1 * - 97 FROM tab1
----
1358
4559
485

query I rowsort
SELECT - 63 FROM tab2 WHERE ( 12 ) IS NOT NULL
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT COUNT( * ) FROM tab2 WHERE ( col0 + - 33 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8320
SELECT COUNT ( * ) FROM tab2 WHERE ( col0 + - 33 ) IS NOT NULL
----
3

query I rowsort
SELECT 46 * + col2 + col2 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT 80 * + 70 AS col0 FROM tab0
----
5600
5600
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT 86 * COUNT( * ) col0 FROM tab2
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8323
SELECT 86 * COUNT ( * ) col0 FROM tab2
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT - 13 FROM tab1 WHERE + col0 / + 28 + + col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 13 FROM tab1 WHERE + col0 / + 28 + + col2 <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE - 73 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col2 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL - MAX( DISTINCT + col1 ) * + 22 FROM tab0
----
-1782

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - MAX ( DISTINCT + col1 ) * + 22 FROM tab0
----
-1782

query I rowsort
SELECT + 46 + - 88 AS col0 FROM tab1
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT + MIN( + ( + col2 ) ) + 16 AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-8331
SELECT + MIN ( + ( + col2 ) ) + 16 AS col0 FROM tab0
----
26

query I rowsort
SELECT DISTINCT - col0 * 95 FROM tab2
----
-4370
-6080
-7125

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL 75 FROM tab1 WHERE NOT + col1 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 * 61 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8336
SELECT * FROM tab2 WHERE NOT ( - 32 * ( 49 * col1 ) + - CAST( NULL AS DECIMAL ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8336
SELECT * FROM tab2 WHERE NOT ( - 32 * ( 49 * col1 ) + - CAST ( NULL AS REAL ) ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT - col2 DIV + 58 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8337
SELECT - col2 / + 58 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col1 + + 22 AS col0 FROM tab2
----
-29
-45
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT COUNT( * ) + - MIN( col0 ) FROM tab1 WHERE + ( + col1 ) + - 71 IS NOT NULL
----
-48

skipif mysql # not compatible
query I rowsort label-8339
SELECT COUNT ( * ) + - MIN ( col0 ) FROM tab1 WHERE + ( + col1 ) + - 71 IS NOT NULL
----
-48

query I rowsort
SELECT - col0 + + ( 23 ) AS col1 FROM tab2
----
-23
-41
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8341
SELECT - ( COUNT( * ) ) DIV MAX( - col1 * 94 - + 42 DIV 6 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT - ( COUNT ( * ) ) / MAX ( - col1 * 94 - + 42 / 6 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT + COUNT( * ) - 66 AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT + COUNT ( * ) - 66 AS col0 FROM tab2
----
-63

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8344
SELECT * FROM tab0 WHERE col0 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8344
SELECT * FROM tab0 WHERE col0 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT 44 BETWEEN 22 / col2 AND + ( + col2 )
----

query I rowsort
SELECT 26 * + col2 FROM tab2
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT ( COUNT( ALL col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT ( COUNT ( ALL col2 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8348
SELECT ALL ( - COUNT( * ) ) FROM tab2 WHERE + CAST( NULL AS DECIMAL ) + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL ( - COUNT ( * ) ) FROM tab2 WHERE + CAST ( NULL AS REAL ) + col1 IS NULL
----
-3

query I rowsort
SELECT - col0 * + col0 + col2 * 28 AS col0 FROM tab1
----
-5573
-6377
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT ALL 62 * - 11 AS col1 FROM tab2 WHERE 69 BETWEEN ( ( col1 ) * + ( col1 + 74 ) ) AND ( col1 * + CAST( + 28 / - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL 62 * - 11 AS col1 FROM tab2 WHERE 69 BETWEEN ( ( col1 ) * + ( col1 + 74 ) ) AND ( col1 * + CAST ( + 28 / - col2 AS INTEGER ) )
----

query I rowsort
SELECT 40 + col1 AS col0 FROM tab2 AS cor0
----
107
117
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL + MIN( col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL + MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab1 cor0 WHERE NOT NULL > ( ( - col2 ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) = - 88 * col0 + 41
----
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) = - 88 * col0 + 41
----
0

query I rowsort
SELECT ALL - 55 * - col2 AS col0 FROM tab0
----
2585
5445
550

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT DISTINCT - + col1 DIV - col2 col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8356
SELECT DISTINCT - + col1 / - col2 col1 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( col1 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 55 IS NOT NULL
----

query I rowsort
SELECT + col2 * + ( - col0 * - col0 ) AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT col1 * col2 + col0 FROM tab2 cor0 WHERE NOT ( col0 + - 74 ) IS NULL
----
1219
3144
3961

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 > ( - 70 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT + MAX( DISTINCT - 88 ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT + MAX ( DISTINCT - 88 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT + - CAST( MIN( ALL col1 ) AS SIGNED ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + - CAST ( MIN ( ALL col1 ) AS INTEGER ) FROM tab2 cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 30 >= NULL
----

query I rowsort
SELECT DISTINCT - 88 * col1 AS col0 FROM tab1 AS cor0
----
-1232
-4136
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT 82 DIV + 48 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8366
SELECT 82 / + 48 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT + COUNT( * ) * + 60 AS col1 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-8367
SELECT + COUNT ( * ) * + 60 AS col1 FROM tab2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL - 64 / + SUM( col1 ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - 64 / + SUM ( col1 ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 27 * + + col1 * - col2 FROM tab0
----
102789
2673
5670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) + - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT col1 + col0 + + col1 DIV - col0 AS col0 FROM tab2
----
140
142
96

skipif mysql # not compatible
query I rowsort label-8372
SELECT col1 + col0 + + col1 / - col0 AS col0 FROM tab2
----
140
142
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT SUM( + + col0 ) * + 18 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT SUM ( + + col0 ) * + 18 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL COUNT( DISTINCT + 62 ) * 3 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL COUNT ( DISTINCT + 62 ) * 3 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 + - ( col2 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 * - - 34 FROM tab1
----
-1734
-2890
-3094

query I rowsort
SELECT col1 FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8380
SELECT ALL * FROM tab1 WHERE col0 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8380
SELECT ALL * FROM tab1 WHERE col0 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT + 37 + + SUM( 75 ) AS col0 FROM tab2 AS cor0
----
262

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + 37 + + SUM ( 75 ) AS col0 FROM tab2 AS cor0
----
262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT col1 * + + CAST( - - 46 AS SIGNED ) * - CAST( - 76 - + col2 AS SIGNED ) FROM tab1
----
110768
31050
311328

skipif mysql # not compatible
query I rowsort label-8382
SELECT col1 * + + CAST ( - - 46 AS INTEGER ) * - CAST ( - 76 - + col2 AS INTEGER ) FROM tab1
----
110768
31050
311328

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT 98 * - COUNT( * ) AS col2 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-882

skipif mysql # not compatible
query I rowsort label-8383
SELECT 98 * - COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-882

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN col1 AND col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8385
SELECT * FROM tab0 WHERE - CAST( col1 AS SIGNED ) IN ( - col2 / col1 + col0 )
----

skipif mysql # not compatible
query III rowsort label-8385
SELECT * FROM tab0 WHERE - CAST ( col1 AS INTEGER ) IN ( - col2 / col1 + col0 )
----

query I rowsort
SELECT ALL - + col2 + + - 8 AS col2 FROM tab1 AS cor0
----
-104
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - 82 + + + col0 NOT BETWEEN col1 AND CAST( + 87 AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - 82 + + + col0 NOT BETWEEN col1 AND CAST ( + 87 AS INTEGER ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * 0 AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * 0 AS col0 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL + CAST( + + 82 AS SIGNED ) + + col2 * col2 AS col2 FROM tab1 AS cor0
----
3563
4706
9298

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + CAST ( + + 82 AS INTEGER ) + + col2 * col2 AS col2 FROM tab1 AS cor0
----
3563
4706
9298

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 * col0 AND 31
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - - col2
----

query I rowsort
SELECT DISTINCT col2 - + - 0 + - col1 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + col0 ) > ( col2 + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( - col2 * col0 ) ) )
----

query II rowsort
SELECT DISTINCT ( - col2 ), col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT + SUM( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + SUM ( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( col2 ) >= ( col2 + - 81 / + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ( - MAX( col2 ) ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8398
SELECT ( - MAX ( col2 ) ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT MAX( ALL - + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT MAX ( ALL - + col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) + COUNT( col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + COUNT ( col0 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 60 * + ( + + 76 ) col2, 32 * - - 71 * + col2 FROM tab0 cor0
----
-4560
106784
-4560
224928
-4560
22720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8403
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 9 * - + col0 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8403
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 9 * - + col0 ) IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 NOT BETWEEN + 25 AND NULL
----

query I rowsort
SELECT + 20 * + col1 AS col0 FROM tab0 AS cor0
----
1620
20
420

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8406
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 86 ) IN ( CAST( - col2 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8406
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 86 ) IN ( CAST ( - col2 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - 72 IS NULL
----

query I rowsort
SELECT ALL 78 * 45 FROM tab1
----
3510
3510
3510

query I rowsort
SELECT - 85 FROM tab0 WHERE ( - - 27 * + col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8410
SELECT DISTINCT MAX( DISTINCT + CAST( + 33 AS SIGNED ) ) * + 54 AS col2 FROM tab0
----
1782

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT MAX ( DISTINCT + CAST ( + 33 AS INTEGER ) ) * + 54 AS col2 FROM tab0
----
1782

query I rowsort
SELECT ALL - col1 * - 25 + col1 AS col0 FROM tab1
----
1222
130
364

query II rowsort
SELECT - col2 AS col1, - 37 FROM tab2
----
-23
-37
-40
-37
-58
-37

query I rowsort
SELECT - ( - col2 ) + 88 + - col2 AS col1 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT - col0 + - 93 AS col1 FROM tab0 AS cor0
----
-108
-180
-190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 * - col2 - + col2 col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - 61 + + 89 AS col2 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT 70 + + col1 AS col2 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN col2 AND - - col0 / - 31 / col2
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL - ( + 96 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT DISTINCT + + 93 + + SUM( + - col0 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + + 93 + + SUM ( + - col0 ) FROM tab2 AS cor0
----
-92

query I rowsort
SELECT ALL - - 96 + 30 FROM tab1 cor0
----
126
126
126

query II rowsort
SELECT DISTINCT - 6 + + - 12 AS col1, ( - + 0 ) + + + ( - + col1 ) FROM tab0 AS cor0
----
-18
-1
-18
-21
-18
-81

query II rowsort
SELECT + col0 - + 4, - col0 AS col2 FROM tab0 AS cor0
----
11
-15
83
-87
93
-97

query I rowsort
SELECT DISTINCT 8 * - col2 + - + col1 + col2 AS col2 FROM tab2 AS cor0 WHERE - col0 + - 19 IS NOT NULL
----
-212
-357
-473

query III rowsort
SELECT * FROM tab1 WHERE NOT + 47 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8428
SELECT ALL - col1 DIV + - 63 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL - col1 / + - 63 AS col2 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT 61, col2 + col2 AS col0 FROM tab2
----
61
116
61
46
61
80

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col1 IN ( + + 66 ) OR col1 * + col2 IS NULL
----

query II rowsort
SELECT 22 * 38 * col0 AS col0, col2 - col1 + + 22 + - 48 * + + col0 * col0 AS col0 FROM tab0
----
12540
-10812
72732
-363301
81092
-451512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT - COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - - col2 < - - col0
----
-6

skipif mysql # not compatible
query I rowsort label-8432
SELECT - COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - - col2 < - - col0
----
-6

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col1, + 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 34 col1, + ( + + col1 ) + 32 FROM tab0 cor0
----
-34
113
-34
33
-34
53

query I rowsort
SELECT ( 69 ) FROM tab2
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8436
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + - COUNT( - - 48 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8437
SELECT + - COUNT ( - - 48 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT col1 * - 45 NOT BETWEEN ( col0 * col2 + + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT + col0 FROM tab0 AS cor0 WHERE + 56 * + + CAST( NULL AS SIGNED ) NOT BETWEEN + - 83 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8439
SELECT + col0 FROM tab0 AS cor0 WHERE + 56 * + + CAST ( NULL AS INTEGER ) NOT BETWEEN + - 83 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT 64 + + COUNT( * ) DIV + 47 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-8440
SELECT 64 + + COUNT ( * ) / + 47 FROM tab2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL COUNT( * ) * + COUNT( * ) * + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT MIN( DISTINCT + - col1 ) + - - COUNT( * ) AS col1 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-8442
SELECT MIN ( DISTINCT + - col1 ) + - - COUNT ( * ) AS col1 FROM tab1
----
-44

query I rowsort
SELECT col1 * 94 * - ( + col0 ) + col0 + - 2 * + 52 FROM tab2
----
-220582
-463272
-472379

query I rowsort
SELECT ALL col2 + + - 2 AS col1 FROM tab0
----
45
8
97

query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab1 cor0
----
-118
-136
-192

query I rowsort
SELECT + col1 - - 75 / - 21 FROM tab1 WHERE NULL NOT IN ( - col0, + col1 * + - ( - 25 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 88 + - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 77 col1 FROM tab0 AS cor0
----
1155
6699
7469

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT col2 DIV + - 33 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-8449
SELECT col2 / + - 33 FROM tab1 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ALL - - col0 * - + col1 + - - col2 FROM tab2 cor0
----
-2323
-4888
-4967

query I rowsort
SELECT + 27 AS col2 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT + + ( + 58 ) / + col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT - COUNT( - + 95 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8453
SELECT - COUNT ( - + 95 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 + - col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8455
SELECT ALL + col0 * - - col2 DIV + col2 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + col0 * - - col2 / + col2 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT 4 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query II rowsort
SELECT ALL 8 AS col2, + col2 * + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8458
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( + 80 ) * CAST( NULL AS SIGNED ) + - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8458
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( + 80 ) * CAST ( NULL AS INTEGER ) + - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT DISTINCT 55 DIV - - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT 55 / - - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 97 col1 FROM tab0
----
15
-97
87
-97
97
-97

query II rowsort
SELECT ALL col0 AS col0, 37 FROM tab2
----
46
37
64
37
75
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT ALL + CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
15
87
97

query II rowsort
SELECT + - col0 AS col1, + col1 AS col0 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL - 86 * - - col0 * + - ( + - col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
-104475
-157035
-8245

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 22 IS NULL
----

query II rowsort
SELECT - col0, 59 + - col1 * + + 91 AS col1 FROM tab1 AS cor0
----
-51
-1215
-85
-396
-91
-4218

onlyif mysql # DIV for integer division: 
query II rowsort label-8467
SELECT 0 + col0 col0, ( - + col0 ) DIV + ( + ( - - col0 ) ) col1 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8467
SELECT 0 + col0 col0, ( - + col0 ) / + ( + ( - - col0 ) ) col1 FROM tab1
----
51
-1
85
-1
91
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( 49, 4, - col0 )
----

query I rowsort
SELECT + + col1 + - 95 * + - col0 FROM tab2 AS cor0
----
4421
6157
7192

query I rowsort
SELECT ALL - col1 + 97 FROM tab0 AS cor0
----
16
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + 59 col0 FROM tab1 AS cor0
----
106
64
73

query I rowsort
SELECT DISTINCT col1 + + 69 * - + 78 AS col0 FROM tab2 cor0
----
-5305
-5315
-5331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT ALL + + 58 + - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + + 58 + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 71 - + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT col1 - col1 * + + ( - col0 ) * - CAST( NULL AS SIGNED ) * - + ( - - col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT col1 - col1 * + + ( - col0 ) * - CAST ( NULL AS INTEGER ) * - + ( - - col2 ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT + col0, 83 FROM tab1
----
51
83
85
83
91
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8477
SELECT ALL - COUNT( * ) * - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - COUNT ( * ) * - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8478
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 9 NOT BETWEEN col2 * + - col1 + - + 96 * + + CAST( NULL AS SIGNED ) * - - col1 + + - CAST( + 83 AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-8478
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 9 NOT BETWEEN col2 * + - col1 + - + 96 * + + CAST ( NULL AS INTEGER ) * - - col1 + + - CAST ( + 83 AS INTEGER ) AND + col0
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT - - col1 NOT BETWEEN col2 AND NULL OR NOT + 68 <= 53
----
-51
-67
-77

query I rowsort
SELECT + + col0 * 70 * + + col2 AS col2 FROM tab1 AS cor0
----
342720
351050
433160

query II rowsort
SELECT 35, col2 AS col0 FROM tab0
----
35
10
35
47
35
99

query I rowsort
SELECT - col0 * 74 AS col0 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT + ( - + 11 ) FROM tab1
----
-11
-11
-11

query I rowsort
SELECT + 24 * + col2 FROM tab2
----
1392
552
960

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT 47, COUNT( * ) * + + 21 AS col2 FROM tab0
----
47
63

skipif mysql # not compatible
query II rowsort label-8485
SELECT 47, COUNT ( * ) * + + 21 AS col2 FROM tab0
----
47
63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 87 NOT IN ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT + CAST( + 30 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-8487
SELECT + CAST ( + 30 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8488
SELECT col2 DIV - ( CAST( + 78 AS SIGNED ) ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT col2 / - ( CAST ( + 78 AS INTEGER ) ) FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8489
SELECT ALL * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8489
SELECT ALL * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 46 > NULL
----

query I rowsort
SELECT - + 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT + 57 * col1 * + + 1 + - - col1 AS col0 FROM tab1 WHERE + + 96 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col2 - col0 / + 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8494
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND + 87 * + col0
----

skipif mysql # not compatible
query III rowsort label-8494
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + 87 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8495
SELECT DISTINCT - col2 - + - CAST( NULL AS SIGNED ) + - col2, - 37 + col0 AS col0 FROM tab0
----
NULL
-22
NULL
50
NULL
60

skipif mysql # not compatible
query II rowsort label-8495
SELECT DISTINCT - col2 - + - CAST ( NULL AS INTEGER ) + - col2, - 37 + col0 AS col0 FROM tab0
----
NULL
-22
NULL
50
NULL
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8496
SELECT DISTINCT col2 AS col1, - 66 + - 56 + + ( + 8 ) * + + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8496
SELECT DISTINCT col2 AS col1, - 66 + - 56 + + ( + 8 ) * + + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL col0 - + + col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - 87 * col2 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8499
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( 95 AS SIGNED ) - + ( + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8499
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( 95 AS INTEGER ) - + ( + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 23 FROM tab2 WHERE 57 IS NOT NULL
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT DISTINCT 96 * + + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT 96 * + + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT 26 - - 42 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
68
68
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 96 - - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 * - - col0 IN ( - + col1 + col1 + 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT + - 24 DIV + 59 * + 31 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8505
SELECT + - 24 / + 59 * + 31 AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 - - + 42 + + 90 * + + col2 * col2 IS NULL )
----

query I rowsort
SELECT + AVG ( ALL - 69 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > col1 / + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + ( COUNT( * ) ) * + - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8508
SELECT + ( COUNT ( * ) ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT - 1 DIV col0 * - 83 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT - 1 / col0 * - 83 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 77 FROM tab1 WHERE NOT - - 88 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL + 21 * + - COUNT( * ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + 21 * + - COUNT ( * ) FROM tab2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL - col1 * + CAST( 74 AS SIGNED ) FROM tab2
----
-3774
-4958
-5698

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - col1 * + CAST ( 74 AS INTEGER ) FROM tab2
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT - - 15 AS col0, COUNT( * ) + 4 FROM tab2 AS cor0
----
15
7

skipif mysql # not compatible
query II rowsort label-8513
SELECT - - 15 AS col0, COUNT ( * ) + 4 FROM tab2 AS cor0
----
15
7

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT col2 + 80 FROM tab2 cor0
----
103
120
138

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 70 = + + 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT - CAST( - 71 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif mysql # not compatible
query I rowsort label-8517
SELECT - CAST ( - 71 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL col1 / + 47 * col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 57 + 72 AS col0 FROM tab0
----
129
129
129

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 69 IS NOT NULL )
----

query I rowsort
SELECT col2 * 28 * 50 FROM tab2 WHERE + - ( - - col2 ) IS NULL
----

query I rowsort
SELECT 17 * + 74 + + + col1 AS col2 FROM tab0 AS cor0
----
1259
1279
1339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8523
SELECT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT ALL + col2 + - col1 DIV + - col0 FROM tab2 AS cor0
----
24
41
58

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + col2 + - col1 / + - col0 FROM tab2 AS cor0
----
24
41
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8526
SELECT + col1, col1 DIV 95 AS col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-8526
SELECT + col1, col1 / 95 AS col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT + col1 - - + col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8528
SELECT ALL - col0 + + 23 + + col2 * + col1 + col1, + col2 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
1330
NULL
238
NULL
3175
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8528
SELECT ALL - col0 + + 23 + + col2 * + col1 + col1, + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
1330
NULL
238
NULL
3175
NULL

query I rowsort
SELECT DISTINCT - 15 * - col1 AS col0 FROM tab0
----
1215
15
315

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT ALL - col0 DIV + 35 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - col0 / + 35 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT MAX( DISTINCT col2 ) + COUNT( ALL + col1 ) * - 43 AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8531
SELECT MAX ( DISTINCT col2 ) + COUNT ( ALL + col1 ) * - 43 AS col0 FROM tab1
----
-33

query I rowsort
SELECT col0 * 54 + + col1 * + 39 FROM tab0
----
3969
5277
5517

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT + MIN( DISTINCT - col2 ) + + + COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8533
SELECT + MIN ( DISTINCT - col2 ) + + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT - col2 + + + ( - col2 ) + - - col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8535
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col1 ) / + - ( - col1 ) - col1 NOT BETWEEN 64 AND col2 / CAST( NULL AS SIGNED ) + - 69
----

skipif mysql # not compatible
query III rowsort label-8535
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col1 ) / + - ( - col1 ) - col1 NOT BETWEEN 64 AND col2 / CAST ( NULL AS INTEGER ) + - 69
----

query II rowsort
SELECT 31, - col0 * col0 AS col2 FROM tab0
----
31
-225
31
-7569
31
-9409

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 25 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 40 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-139
-50
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 27 * + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8541
SELECT ALL col0, + col0 DIV col0 * 31 FROM tab1 cor0
----
51
31
85
31
91
31

skipif mysql # not compatible
query II rowsort label-8541
SELECT ALL col0, + col0 / col0 * 31 FROM tab1 cor0
----
51
31
85
31
91
31

query I rowsort
SELECT - col2 * ( - col2 ) AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT 13 FROM tab1 WHERE NOT - col1 * - col1 * 90 * - col2 + - col1 IS NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8544
SELECT ALL ( 56 ) AS col2, - COUNT( + col2 ) FROM tab2
----
56
-3

skipif mysql # not compatible
query II rowsort label-8544
SELECT ALL ( 56 ) AS col2, - COUNT ( + col2 ) FROM tab2
----
56
-3

query I rowsort
SELECT 21 + col2 - col2 AS col0 FROM tab1
----
21
21
21

query I rowsort
SELECT col2 * + - 31 * - col1 + - + col0 * - + 43 FROM tab2
----
123691
38341
98232

query III rowsort
SELECT * FROM tab2 WHERE NOT + 58 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + col1 * 55 - + + 89
----

query I rowsort
SELECT ALL + - 33 AS col0 FROM tab2 AS cor0 WHERE NOT 49 IN ( col0, col2 * col2 )
----
-33
-33
-33

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - - 60 * ( + col2 ) AS col0 FROM tab1
----
3625
4171
5811

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT - 83 DIV - 82 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 83 / - 82 AS col2 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - 97 * - COUNT( * ) * + SUM( - - 63 ) FROM tab2
----
54999

skipif mysql # not compatible
query I rowsort label-8555
SELECT - 97 * - COUNT ( * ) * + SUM ( - - 63 ) FROM tab2
----
54999

query I rowsort
SELECT DISTINCT - - col0 * + 66 + - col2 + + - col1 FROM tab2 AS cor0
----
2962
4107
4825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 27 / col1, + col2 col1 FROM tab2 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT ALL - col2 * - 68 + - col1 + col2 + + 93 FROM tab2 AS cor0
----
1629
2776
4028

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE 22 BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT - MAX( ALL - 24 ) + - - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8560
SELECT - MAX ( ALL - 24 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL - col1 + - col1 * + col2 * - + col2 AS col0 FROM tab0 AS cor0
----
178848
2079
9800

query II rowsort
SELECT col1 AS col1, ( - - col1 ) AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + SUM( - col2 ) * + 24 FROM tab1
----
-5352

skipif mysql # not compatible
query I rowsort label-8563
SELECT + SUM ( - col2 ) * + 24 FROM tab1
----
-5352

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL + COUNT( * ) - - 60 AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL + COUNT ( * ) - - 60 AS col0 FROM tab0
----
63

query II rowsort
SELECT + 58 AS col2, + 91 FROM tab0
----
58
91
58
91
58
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT col1 DIV - col2 * + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8566
SELECT col1 / - col2 * + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL + ( + 80 ) * + COUNT( * ) col1 FROM tab0 cor0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8567
SELECT ALL + ( + 80 ) * + COUNT ( * ) col1 FROM tab0 cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT MIN( DISTINCT - 67 ) * COUNT( * ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8568
SELECT MIN ( DISTINCT - 67 ) * COUNT ( * ) FROM tab1 AS cor0
----
-201

query I rowsort
SELECT DISTINCT - - 67 * - col0 + + ( + 40 ) AS col2 FROM tab2 AS cor0
----
-3042
-4248
-4985

query I rowsort
SELECT ALL + + col2 * + 28 FROM tab0 cor0
----
1316
2772
280

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT 30 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT DISTINCT - MAX( DISTINCT + + 6 ) col0 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8572
SELECT DISTINCT - MAX ( DISTINCT + + 6 ) col0 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - - 99 AS col0 FROM tab0 cor0
----
99

query I rowsort
SELECT ALL + 85 * - col2 * - + ( - + col2 ) FROM tab2 AS cor0
----
-136000
-285940
-44965

query I rowsort
SELECT - ( + + ( - - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-8576
SELECT + col1 DIV - 13, 16 * col2 + + + col2 AS col0 FROM tab0 AS cor0
----
-1
170
-6
799
0
1683

skipif mysql # not compatible
query II rowsort label-8576
SELECT + col1 / - 13, 16 * col2 + + + col2 AS col0 FROM tab0 AS cor0
----
-1
170
-6
799
0
1683

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 30 + + col1 * + ( + 74 ) = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT COUNT( * ) * + 37 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-8579
SELECT COUNT ( * ) * + 37 FROM tab2
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 59 col2 FROM tab0
----
1239
4779
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT SUM( DISTINCT - 40 ) FROM tab0 WHERE NOT col2 IS NULL
----
-40

skipif mysql # not compatible
query I rowsort label-8581
SELECT SUM ( DISTINCT - 40 ) FROM tab0 WHERE NOT col2 IS NULL
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col1 col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT - col0 + 58 AS col0 FROM tab2 AS cor0
----
-17
-6
12

query II rowsort
SELECT ALL col1 AS col0, + col2 AS col1 FROM tab0 AS cor0 WHERE 20 IS NULL
----

query I rowsort
SELECT ALL - ( ( + - col1 ) ) * + col0 + + col1 FROM tab1 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT - 80 * SUM( col1 ) col1 FROM tab0
----
-8240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8586
SELECT - 80 * SUM ( col1 ) col1 FROM tab0
----
-8240

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT COUNT( - + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8587
SELECT COUNT ( - + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 * - + col2 col1 FROM tab0 cor0
----
-178929
-2100
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT ALL + - col1 DIV + col1 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + - col1 / + col1 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - - ( - - 61 ) + - + COUNT( * ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - - ( - - 61 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT + col1 - - + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-8591
SELECT + col1 - - + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - ( + col2 ) + - 14 AS col0 FROM tab1 AS cor0
----
-110
-73
-82

query I rowsort
SELECT col2 + + col2 * + col1 * + col2 FROM tab0
----
178976
2110
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT 71 DIV - - 15 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8595
SELECT 71 / - - 15 FROM tab2
----
4
4
4

query I rowsort
SELECT DISTINCT 26 / - 93 FROM tab0 WHERE - col2 * 39 + - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT MIN( ALL 93 ) col0 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8597
SELECT MIN ( ALL 93 ) col0 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT ALL + 77 DIV + col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + 77 / + col2 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT + + col1 * - - ( + col2 ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8600
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col0, - COUNT( - col2 ) FROM tab0 AS cor0
----
NULL
-3
-3

skipif mysql # not compatible
query III rowsort label-8600
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col0, - COUNT ( - col2 ) FROM tab0 AS cor0
----
NULL
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT + MAX( DISTINCT + ( - - 64 ) ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8601
SELECT + MAX ( DISTINCT + ( - - 64 ) ) AS col1 FROM tab2 AS cor0
----
64

query II rowsort
SELECT DISTINCT + col2 * - col1, col0 FROM tab2 AS cor0
----
-1173
46
-3080
64
-3886
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT - CAST( - 39 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-8603
SELECT - CAST ( - 39 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - - col1 + + + col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 73 + col0 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - 77 AS col0, 17 AS col2 FROM tab0 AS cor0
----
-77
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 > + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 62 * + col1 col2 FROM tab0 cor0
----
1312
161
5069

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8609
SELECT DISTINCT + COUNT( * ) AS col1, 27 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-8609
SELECT DISTINCT + COUNT ( * ) AS col1, 27 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
9

query I rowsort
SELECT ( + ( 60 ) ) * col2 + - col2 + col0 AS col1 FROM tab1
----
3566
4103
5715

query II rowsort
SELECT ALL - ( - col2 ) AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT - col0 + - 19 * + col2 AS col2 FROM tab2
----
-1177
-483
-824

onlyif mysql # DIV for integer division: 
query III rowsort label-8613
SELECT col0 * + col0 + - - 68 AS col2, 33 DIV 71, + col0 FROM tab0
----
9 values hashing to 6e381b48fb68903706738c1a8b04eee9

skipif mysql # not compatible
query III rowsort label-8613
SELECT col0 * + col0 + - - 68 AS col2, 33 / 71, + col0 FROM tab0
----
9 values hashing to 6e381b48fb68903706738c1a8b04eee9

query III rowsort
SELECT * FROM tab1 WHERE + - 6 = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT 96 + - 88 * - + 85 * COUNT( * ) * + + COUNT( * ) FROM tab0
----
67416

skipif mysql # not compatible
query I rowsort label-8615
SELECT 96 + - 88 * - + 85 * COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
67416

query I rowsort
SELECT DISTINCT + 15 * col2 FROM tab0
----
1485
150
705

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL + COUNT( * ) + + ( - - ( - 97 ) ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL + COUNT ( * ) + + ( - - ( - 97 ) ) FROM tab2
----
-94

query I rowsort
SELECT ALL - + col1 * - - col1 * + 75 + col1 AS col2 FROM tab2 WHERE NOT - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT + 58 - - - COUNT( * ) AS col0 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-8619
SELECT + 58 - - - COUNT ( * ) AS col0 FROM tab0
----
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 33 = NULL
----

query I rowsort
SELECT DISTINCT - - ( + + col1 ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 36 col1, - col1 FROM tab0 AS cor0
----
36
-1
36
-21
36
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL - MIN( ALL + + 32 ) col1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8624
SELECT ALL - MIN ( ALL + + 32 ) col1 FROM tab1 AS cor0
----
-32

query II rowsort
SELECT + + col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8626
SELECT - CAST( col2 AS DECIMAL ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - col2 AND - 62
----

skipif mysql # not compatible
query I rowsort label-8626
SELECT - CAST ( col2 AS REAL ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN - col2 AND - 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT ALL col2 * col1 * col0 DIV + + col0 AS col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL col2 * col1 * col0 / + + col0 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT ALL COUNT( * ) * - SUM( + 6 ) - + - COUNT( * ) DIV MAX( ALL col2 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL COUNT ( * ) * - SUM ( + 6 ) - + - COUNT ( * ) / MAX ( ALL col2 ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT DISTINCT - col1 * + 11 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT - - col1 * ( 98 ) FROM tab1 AS cor0
----
1372
4606
490

query II rowsort
SELECT + + ( + col0 ), + col2 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + - col2 * - + col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + COUNT( * ) FROM tab2 WHERE NOT col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col2 = NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 26, + col0 - + + 5, + col2 * col1, + 72, + + col1, - - 32 * - col2 / + 71 )
----

query II rowsort
SELECT ALL - ( ( - 28 ) ) AS col0, - col1 * - - col2 FROM tab0 AS cor0
----
28
-210
28
-3807
28
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT - COUNT( DISTINCT + + 93 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT - COUNT ( DISTINCT + + 93 ) AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + col1 + - 8 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT + 27 + + COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT + 27 + + COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT - col1 * + + 50 AS col0 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8641
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8641
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS REAL ) < NULL
----

query I rowsort
SELECT + + col0 * - + col1 * + + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT MAX( + + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8643
SELECT MAX ( + + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT MAX( DISTINCT + + 57 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT MAX ( DISTINCT + + 57 ) FROM tab1 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 56 col1, ( 82 ) * + col0 FROM tab0 cor0
----
-56
1230
-56
7134
-56
7954

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 <> + 11 )
----

query II rowsort
SELECT + col1 / - col1 + + col1 + - col1 * - col0 * col2, 5 + - - col0 + + 85 AS col2 FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND - ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8648
SELECT ALL col2 DIV 6 FROM tab0
----
1
16
7

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL col2 / 6 FROM tab0
----
1
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + COUNT( * ) + + COUNT( * ) * + 49 AS col1 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * + 49 AS col1 FROM tab0
----
150

query I rowsort
SELECT DISTINCT + 26 + - 41 * 36 * + col2 + col1 FROM tab2 cor0
----
-33871
-58937
-85515

query I rowsort
SELECT - - col2 + 0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT + col1 * + ( 75 ) + + + col1, - col2 * 89 AS col0 FROM tab2 AS cor0
----
3876
-2047
5092
-5162
5852
-3560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT - - 61 - - - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8654
SELECT - - 61 - - - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT SUM( - col1 ) * - COUNT( - 23 ) - - - 61 AS col2 FROM tab2 AS cor0
----
524

skipif mysql # not compatible
query I rowsort label-8655
SELECT SUM ( - col1 ) * - COUNT ( - 23 ) - - - 61 AS col2 FROM tab2 AS cor0
----
524

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL - + MAX( - + 45 ) AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - + MAX ( - + 45 ) AS col1 FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + col0 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT CAST( NULL AS SIGNED ) * 14 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8658
SELECT CAST ( NULL AS INTEGER ) * 14 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + + 21 AS col0 FROM tab2 AS cor0
----
21
21
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( ( NOT NULL IS NOT NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - ( + col2 ) * 48 + + - 51
----

skipif mysql # not compatible
query I rowsort label-8661
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - ( + col2 ) * 48 + + - 51
----

query II rowsort
SELECT col2 AS col2, - 93 AS col0 FROM tab2
----
23
-93
40
-93
58
-93

query I rowsort
SELECT 56 * + + col1 AS col0 FROM tab0
----
1176
4536
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT + 6 * + + COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT + 6 * + + COUNT ( * ) FROM tab2
----
18

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN - col2 AND NULL AND 45 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT - COUNT( * ) + - MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT - COUNT ( * ) + - MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col2 FROM tab2 AS cor0
----
14

query I rowsort
SELECT DISTINCT + 59 + + col1 + col2 AS col2 FROM tab1 AS cor0
----
123
169
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col1 col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT - col1 + 82 + + + col1 FROM tab2 AS cor0
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col2, 92, 52, + col1, col2 + - col2, - col0 * + 98 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8673
SELECT - col1 + - CAST( NULL AS DECIMAL ) * + - col2 * 71 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT - col1 + - CAST ( NULL AS REAL ) * + - col2 * 71 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + - COUNT( * ) FROM tab1 WHERE + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT + - COUNT ( * ) FROM tab1 WHERE + col0 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT col1 * + + col0 * CAST( col2 AS SIGNED ) + + col1 - col2 col1 FROM tab0
----
18281
57139
9505

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8675
SELECT col1 * + + col0 * CAST ( col2 AS INTEGER ) + + col1 - col2 col1 FROM tab0
----
18281
57139
9505

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( col2 ) < + + 81
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT 65 * + + 8 FROM tab0
----
520

query I rowsort
SELECT DISTINCT + col1 * - 59 + + col1 * - 77 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT DISTINCT 92 DIV 69 * - SUM( col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT 92 / 69 * - SUM ( col0 ) FROM tab2
----
-185

query III rowsort
SELECT * FROM tab2 WHERE + col1 * 5 + + ( + col1 ) BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN - ( 65 ) + - - col0 AND + - col0 + - 44
----

query I rowsort
SELECT - ( + + col1 ) * - 73 * - col0 FROM tab2
----
-171258
-359744
-366825

query I rowsort
SELECT ALL + col1 + + col2 + - - col2 * col2 * + ( + + col2 ) AS col1 FROM tab0
----
1031
103951
970399

query I rowsort
SELECT - 47 + + + 32 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT DISTINCT + + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT + + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

query II rowsort
SELECT + 63, - col1 AS col0 FROM tab0 AS cor0 WHERE + 76 * + col1 / + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT + + COUNT( * ) - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT + + COUNT ( * ) - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 >= + 75
----

query I rowsort
SELECT + col1 + - + 3 * + col0 AS col1 FROM tab1
----
-139
-226
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 26 ) col0 FROM tab1 AS cor0 WHERE NOT NULL < col0 + + + ( 78 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 >= col0 * + 31 + - - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT MIN( ALL - 90 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT MIN ( ALL - 90 ) FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT CAST( + 4 AS SIGNED ) FROM tab0 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8695
SELECT CAST ( + 4 AS INTEGER ) FROM tab0 cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT CAST( - - 38 AS SIGNED ) AS col2 FROM tab2
----
38
38
38

skipif mysql # not compatible
query I rowsort label-8696
SELECT CAST ( - - 38 AS INTEGER ) AS col2 FROM tab2
----
38
38
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8697
SELECT 80 AS col0 FROM tab2 WHERE NOT + 25 * CAST( + + 29 AS DECIMAL ) - - + col2 + - - 93 IS NULL
----
80
80
80

skipif mysql # not compatible
query I rowsort label-8697
SELECT 80 AS col0 FROM tab2 WHERE NOT + 25 * CAST ( + + 29 AS REAL ) - - + col2 + - - 93 IS NULL
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL - CAST( - - col1 AS SIGNED ) col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8698
SELECT ALL - CAST ( - - col1 AS INTEGER ) col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 95 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT - - MIN( + col1 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8700
SELECT - - MIN ( + col1 ) AS col2 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT + + MIN( ( + 46 ) ) AS col0, COUNT( * ) * - - MAX( col2 ) FROM tab2 cor0
----
46
174

skipif mysql # not compatible
query II rowsort label-8701
SELECT + + MIN ( ( + 46 ) ) AS col0, COUNT ( * ) * - - MAX ( col2 ) FROM tab2 cor0
----
46
174

query I rowsort
SELECT - ( + + 30 ) FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ( ( + ( - + ( + col0 ) ) ) ) * col0 FROM tab2 cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 * + 28 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT + col0 * col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT - CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT - CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col0 FROM tab0
----
-65
-65
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8708
SELECT DISTINCT CAST( NULL AS SIGNED ) / 14 AS col0, + COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8708
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 14 AS col0, + COUNT ( * ) AS col0 FROM tab1
----
NULL
3

query I rowsort
SELECT 16 + - col2 * + + 31 AS col1 FROM tab0
----
-1441
-294
-3053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT CAST( NULL AS SIGNED ) * col0 * + 21 + - 20 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT CAST ( NULL AS INTEGER ) * col0 * + 21 + - 20 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT 24 + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8711
SELECT 24 + COUNT ( * ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT SUM( ALL + col1 ) + 4 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-8712
SELECT SUM ( ALL + col1 ) + 4 FROM tab0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT - SUM( + 50 ) + - - 68 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - SUM ( + 50 ) + - - 68 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL COUNT( * ) + + 31 * - + 17 AS col2 FROM tab0 AS cor0
----
-524

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL COUNT ( * ) + + 31 * - + 17 AS col2 FROM tab0 AS cor0
----
-524

query I rowsort
SELECT - ( + - 70 ) + + col2 - + 7 * + + col2 * 12 FROM tab1 AS cor0
----
-4827
-5574
-7898

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( 73 ) / + col0 * - 81 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT DISTINCT + + 48 * + col1 + - - col0 + + - CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT + + 48 * + col1 + - - col0 + + - CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - - col2 - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, col1 col2 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT + MAX( 48 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
48

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + MAX ( 48 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT DISTINCT SUM( + 56 ) * - 5 AS col1 FROM tab2
----
-840

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT SUM ( + 56 ) * - 5 AS col1 FROM tab2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - ( + SUM( col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - ( + SUM ( col2 ) ) FROM tab0
----
-156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - col1 NOT BETWEEN - + col0 AND + 80
----
85
5
59
91
47
68

query I rowsort
SELECT + - ( - col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8726
SELECT + MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8727
SELECT ALL COUNT( * ) DIV ( + MAX( DISTINCT - col2 ) ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL COUNT ( * ) / ( + MAX ( DISTINCT - col2 ) ) AS col2 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 58 * + + col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 95 ) col2 FROM tab2
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col2, + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
66
6

skipif mysql # not compatible
query II rowsort label-8730
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col2, + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
66
6

query II rowsort
SELECT - 33, - 96 AS col1 FROM tab0
----
-33
-96
-33
-96
-33
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT ALL - MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT - 40 AS col2, 92 AS col1 FROM tab1
----
-40
92
-40
92
-40
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT + col1 * col2 DIV col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8734
SELECT + col1 * col2 / col2 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL + - col1 AS col1, 14 + + 89 FROM tab2 AS cor0
----
-51
103
-67
103
-77
103

query II rowsort
SELECT - col0 * - - 66, col0 AS col2 FROM tab0
----
-5742
87
-6402
97
-990
15

query I rowsort
SELECT - col1 / col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> + 44
----

query I rowsort
SELECT DISTINCT ( + 79 ) - - - 93 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT ALL + + 0 AS col2 FROM tab2 cor0 WHERE - ( + col2 ) * col0 <= NULL
----

query I rowsort
SELECT ALL + 81 - - ( - col1 ) FROM tab1 AS cor0
----
34
67
76

query I rowsort
SELECT + col0 * 93 + + col1 AS col1 FROM tab1 AS cor0
----
4757
7910
8510

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT + - 13 + + MAX( ALL - col0 ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + - 13 + + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-64

query I rowsort
SELECT ALL + ( + ( + col1 ) ) - 32 FROM tab0
----
-11
-31
49

query II rowsort
SELECT - 18 AS col2, ( + col0 ) + - col2 FROM tab0
----
-18
-2
-18
-32
-18
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8745
SELECT - CAST( NULL AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8745
SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 71 * + 43 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + CAST( 86 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + CAST ( 86 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 85 * + - 1 FROM tab2
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 - - ( + - 61 ) col0 FROM tab0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT DISTINCT SUM( - - 45 ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT SUM ( - - 45 ) FROM tab1
----
135

query I rowsort
SELECT 26 * + 81 FROM tab1
----
2106
2106
2106

query I rowsort
SELECT DISTINCT + col1 * - 36 FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT DISTINCT - col1 * + + 18 AS col0 FROM tab2 cor0
----
-1206
-1386
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + COUNT( * ) + - 82 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + COUNT ( * ) + - 82 FROM tab1
----
-79

query I rowsort
SELECT DISTINCT col2 * - 85 AS col1 FROM tab1 WHERE NOT NULL = ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 15 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT ALL CAST( NULL AS SIGNED ) + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL CAST ( NULL AS INTEGER ) + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE - 70 * + col2 NOT BETWEEN NULL AND 44
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + ( col2 )
----

query I rowsort
SELECT 66 + col0 AS col1 FROM tab1
----
117
151
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT MAX( ( col2 ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col0 + - col0 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT MAX ( ( col2 ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col0 + - col0 AND col1
----
NULL

query I rowsort
SELECT + 14 + - col2 AS col0 FROM tab2
----
-26
-44
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + COUNT( * ) + MIN( DISTINCT + 71 ) * SUM( DISTINCT col1 ) AS col2 FROM tab0
----
7316

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( * ) + MIN ( DISTINCT + 71 ) * SUM ( DISTINCT col1 ) AS col2 FROM tab0
----
7316

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IN ( 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col1 >= col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 81 FROM tab1 WHERE NOT 84 IS NULL
----
81
81
81

query I rowsort
SELECT 33 FROM tab2 WHERE - ( 72 ) IS NULL
----

query I rowsort
SELECT DISTINCT 77 - + col1 FROM tab0
----
-4
56
76

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col1 - + ( + col2 ) * - 88 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 * - col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col1 + - 44 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + SUM( ( 94 ) ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-8773
SELECT + SUM ( ( 94 ) ) FROM tab2
----
282

query I rowsort
SELECT DISTINCT + col0 - + col0 * col0 AS col0 FROM tab1
----
-2550
-7140
-8190

query I rowsort
SELECT 45 + col1 AS col0 FROM tab2
----
112
122
96

query I rowsort
SELECT ALL + 99 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 12 + col2 AS col2 FROM tab0
----
111
22
59

query III rowsort
SELECT * FROM tab1 WHERE ( 73 - 43 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT + col1 + - 26 DIV + col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8779
SELECT + col1 + - 26 / + col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT - 91 + col0 AS col1 FROM tab2
----
-16
-27
-45

query I rowsort
SELECT + col0 + - 60 FROM tab0
----
-45
27
37

query I rowsort
SELECT ALL + 51 + col1 FROM tab0
----
132
52
72

query I rowsort
SELECT - col2 + + col2 * 94 AS col1 FROM tab2
----
2139
3720
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT + 19 - MAX( 12 ) AS col0 FROM tab2 WHERE NOT 89 >= ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + 19 - MAX ( 12 ) AS col0 FROM tab2 WHERE NOT 89 >= ( + col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT - col0 + col1 DIV - col2 FROM tab0
----
-16
-89
-97

skipif mysql # not compatible
query I rowsort label-8786
SELECT - col0 + col1 / - col2 FROM tab0
----
-16
-89
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT ( + CAST( MAX( + 71 ) AS SIGNED ) ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-8787
SELECT ( + CAST ( MAX ( + 71 ) AS INTEGER ) ) FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT + COUNT( * ) FROM tab2 WHERE NULL >= + col2 / 89 + - 43
----
0

skipif mysql # not compatible
query I rowsort label-8788
SELECT + COUNT ( * ) FROM tab2 WHERE NULL >= + col2 / 89 + - 43
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 42 col0 FROM tab0
----
129
139
57

query I rowsort
SELECT + 22 - + col1 * - ( - col1 ) FROM tab1 WHERE NOT NULL > + 42
----

query I rowsort
SELECT 46 AS col1 FROM tab1 WHERE NOT ( NULL ) >= ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE 47 + + col0 < 43
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 < - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 + + col2 / - 48 ) IN ( col1 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT DISTINCT CAST( col1 AS SIGNED ) * 66 FROM tab1 WHERE NOT + col2 * + col0 NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT CAST ( col1 AS INTEGER ) * 66 FROM tab1 WHERE NOT + col2 * + col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT DISTINCT - CAST( NULL AS SIGNED ) + ( 97 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + ( 97 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + 55 AS col0 FROM tab2 AS cor0
----
106
122
132

query I rowsort
SELECT DISTINCT 10 + 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
72

query I rowsort
SELECT - 82 * col1 AS col2 FROM tab0 AS cor0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL + 72 + COUNT( + 81 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + 72 + COUNT ( + 81 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8801
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + col0 BETWEEN CAST( NULL AS DECIMAL ) AND ( - col1 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-8801
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + col0 BETWEEN CAST ( NULL AS REAL ) AND ( - col1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + COUNT( * ) + + 7 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + COUNT ( * ) + + 7 FROM tab1 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT ALL - col0 DIV col0 - ( col0 ) FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - col0 / col0 - ( col0 ) FROM tab0 AS cor0
----
-16
-88
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 31 col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-2697
-3007
-465

query I rowsort
SELECT DISTINCT col2 + 45 FROM tab1 AS cor0
----
104
113
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL 38 - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL 38 - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + - 29 * + COUNT( * ) - - 51 AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8807
SELECT + - 29 * + COUNT ( * ) - - 51 AS col2 FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT ALL - - 26 DIV + 57 - col1 AS col0 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - - 26 / + 57 - col1 AS col0 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT ALL MIN( ALL col1 ) FROM tab2 AS cor0 WHERE - col0 > CAST( + 59 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL MIN ( ALL col1 ) FROM tab2 AS cor0 WHERE - col0 > CAST ( + 59 AS INTEGER )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 - - col2 col0 FROM tab1 AS cor0
----
17
45
8

query I rowsort
SELECT DISTINCT - 23 * - col2 * - ( col2 ) - col1 AS col2 FROM tab1
----
-106399
-211982
-80068

query III rowsort
SELECT * FROM tab1 WHERE NULL > col0 + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ( - MAX( + col1 ) ) + 41 AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8813
SELECT ( - MAX ( + col1 ) ) + 41 AS col2 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT + 17 - - col0 AS col0 FROM tab2
----
63
81
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + COUNT( col1 ) FROM tab2 WHERE 9 NOT BETWEEN col1 * - 17 AND col2 + col1 * col2
----
0

skipif mysql # not compatible
query I rowsort label-8815
SELECT + COUNT ( col1 ) FROM tab2 WHERE 9 NOT BETWEEN col1 * - 17 AND col2 + col1 * col2
----
0

query I rowsort
SELECT col2 + + 72 AS col0 FROM tab1
----
131
140
168

query I rowsort
SELECT + 27 FROM tab2 WHERE NOT NULL IN ( + 85 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 17 * col1 col0 FROM tab2
----
19941
52360
66062

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) <= 30 + - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + col2 FROM tab1
----
NULL

query I rowsort
SELECT ( - 87 ) * col1 FROM tab2
----
-4437
-5829
-6699

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL - 6 * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 < ( col2 * 69 )
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - 6 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 < ( col2 * 69 )
----
0

query I rowsort
SELECT 30 + + AVG ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 51 )
----

query I rowsort
SELECT + col2 * - 70 + + col1 FROM tab0 AS cor0
----
-3209
-679
-6929

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL <= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / 5 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col2 + col0
----

query I rowsort
SELECT + 25 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # DIV for integer division: 
query II rowsort label-8830
SELECT col1, + 31 DIV + ( + col0 ) AS col0 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-8830
SELECT col1, + 31 / + ( + col0 ) AS col0 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT ( - 70 ) AS col2 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL - - 79 * + col0 FROM tab1 AS cor0
----
4029
6715
7189

query I rowsort
SELECT - AVG ( col1 ) * + 41 FROM tab2 cor0 WHERE NOT 80 IS NOT NULL
----
NULL

query I rowsort
SELECT 26 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 * + 99 col0 FROM tab1 AS cor0
----
4554

query I rowsort
SELECT ALL - col2 * col2 FROM tab0 AS cor0 WHERE + ( 83 ) IS NOT NULL
----
-100
-2209
-9801

query I rowsort
SELECT 38 + - 71 AS col2 FROM tab1
----
-33
-33
-33

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IS NULL AND NOT + 47 IN ( - ( - 89 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 89 * + 78 * 84 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 68 / - - 52 > - 95 / + 90
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8841
SELECT + COUNT( * ) + MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT + COUNT ( * ) + MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 + + + col2 + col2 + - 5 * col0 FROM tab0
----
-286
-394
100

query I rowsort
SELECT DISTINCT + 84 * col1 * - 98 FROM tab2
----
-419832
-551544
-633864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT - col0 + - CAST( + ( - col1 ) AS SIGNED ) * + col2 col1 FROM tab1
----
1293
210
3105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8844
SELECT - col0 + - CAST ( + ( - col1 ) AS INTEGER ) * + col2 col1 FROM tab1
----
1293
210
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT DISTINCT + 34 DIV + 45 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + 34 / + 45 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT - CAST( NULL AS SIGNED ) + - 24 + + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT - CAST ( NULL AS INTEGER ) + - 24 + + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - ( + col1 ) + 2 NOT BETWEEN ( 10 * col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + col2 * - 58 * + col2 FROM tab2 AS cor0
----
-1411372
-14633400
-5939200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 49 ) col1 FROM tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT ( - col2 ) + + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT ( - col2 ) + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * + 2 - + col0 FROM tab2 cor0 WHERE + 18 NOT IN ( 73 )
----
-148
-209
-218

query I rowsort
SELECT DISTINCT + - col2 * + - col1 + col2 + col0 AS col0 FROM tab0 cor0
----
295
307
3869

query I rowsort
SELECT DISTINCT + 46 + + col2 * - + 60 AS col2 FROM tab2 AS cor0
----
-1334
-2354
-3434

query I rowsort
SELECT - - 57 AS col1 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT 45 + + 67 + + - COUNT( * ) - MAX( - col0 ) + 84 FROM tab1 AS cor0
----
244

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT 45 + + 67 + + - COUNT ( * ) - MAX ( - col0 ) + 84 FROM tab1 AS cor0
----
244

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * - 83 - - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT - - CAST( NULL AS SIGNED ) * - col2 + + + col1 + - col2 + + 59 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT - - CAST ( NULL AS INTEGER ) * - col2 + + + col1 + - col2 + + 59 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + 79 + + col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8861
SELECT CAST( NULL AS SIGNED ), 34 AS col1 FROM tab1
----
NULL
34
NULL
34
NULL
34

skipif mysql # not compatible
query II rowsort label-8861
SELECT CAST ( NULL AS INTEGER ), 34 AS col1 FROM tab1
----
NULL
34
NULL
34
NULL
34

query II rowsort
SELECT 88 AS col2, - col1 FROM tab2
----
88
-51
88
-67
88
-77

query II rowsort
SELECT DISTINCT + col1, + col1 AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8864
SELECT MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL NOT BETWEEN - col1 AND col1 * ( + ( col0 ) ) * + 25 + - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT SUM( - 3 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT SUM ( - 3 ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT COUNT( * ) * 49 AS col1 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT COUNT ( * ) * 49 AS col1 FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - - MIN( ALL + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8868
SELECT - - MIN ( ALL + + col0 ) FROM tab2 AS cor0
----
46

query II rowsort
SELECT + col1, col2 * col0 FROM tab0 cor0
----
1
9603
21
870
81
705

query II rowsort
SELECT + col2, - col1 * col0 AS col1 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8871
SELECT - + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT DISTINCT 84 * col0 AS col2 FROM tab2 WHERE - col2 BETWEEN + col0 * - col2 AND ( + col1 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT 84 * col0 AS col2 FROM tab2 WHERE - col2 BETWEEN + col0 * - col2 AND ( + col1 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( - 59 + - col2 + + col2 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL - + CAST( + ( - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - + CAST ( + ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT ( 8 ) AS col0 FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col0 col2, ( + + col1 ) + + col2 FROM tab1 AS cor0
----
-2601
110
-7225
64
-8281
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT - col1 * + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT - col1 * + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 93 * col2 AS col0 FROM tab0 WHERE NOT - 73 * - - ( + + 41 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT + MAX( col0 ) col2 FROM tab0 WHERE NULL IS NULL
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8880
SELECT + MAX ( col0 ) col2 FROM tab0 WHERE NULL IS NULL
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8881
SELECT ALL + 23 * + CAST( - col0 AS SIGNED ) AS col0, col2 AS col1, + + CAST( + col1 AS SIGNED ) FROM tab1
----
9 values hashing to a926b926f03750d04dd635962e3ef865

skipif mysql # not compatible
query III rowsort label-8881
SELECT ALL + 23 * + CAST ( - col0 AS INTEGER ) AS col0, col2 AS col1, + + CAST ( + col1 AS INTEGER ) FROM tab1
----
9 values hashing to a926b926f03750d04dd635962e3ef865

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8882
SELECT DISTINCT 82 DIV CAST( - ( - col0 ) AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT 82 / CAST ( - ( - col0 ) AS INTEGER ) FROM tab2
----
1

query II rowsort
SELECT ALL col2 AS col2, 96 * - col2 + - col2 AS col0 FROM tab2
----
23
-2231
40
-3880
58
-5626

query III rowsort
SELECT * FROM tab2 WHERE - 93 - 75 IS NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + + 25 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + col0 + - 65 FROM tab1 AS cor0
----
-14
20
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT - MAX( - - col0 ) * 74 + + COUNT( * ) FROM tab0 AS cor0
----
-7175

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT - MAX ( - - col0 ) * 74 + + COUNT ( * ) FROM tab0 AS cor0
----
-7175

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 - - - col2 * + 33 - + 62 * - col2 IN ( - + col0 / + col2 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8890
SELECT * FROM tab1 WHERE ( ( ( ( col1 ) BETWEEN ( - col1 * + 33 * + CAST( NULL AS SIGNED ) ) AND + col1 / col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-8890
SELECT * FROM tab1 WHERE ( ( ( ( col1 ) BETWEEN ( - col1 * + 33 * + CAST ( NULL AS INTEGER ) ) AND + col1 / col2 ) ) )
----

query I rowsort
SELECT - + 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT col2 * + col2 * - + col1 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT + 52 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT CAST( NULL AS SIGNED ) / - - 78 * col2 - col1 - + 28 * - + 80 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT CAST ( NULL AS INTEGER ) / - - 78 * col2 - col1 - + 28 * - + 80 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT + 26 - 33 DIV + col2 AS col0 FROM tab2 AS cor0
----
25
26
26

skipif mysql # not compatible
query I rowsort label-8896
SELECT + 26 - 33 / + col2 AS col0 FROM tab2 AS cor0
----
25
26
26

query I rowsort
SELECT col0 - - - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8898
SELECT - 20 DIV 80 - + col0 * - col1 AS col0, 36 + - col2 AS col1 FROM tab1 AS cor0
----
425
-23
4277
-32
714
-60

skipif mysql # not compatible
query II rowsort label-8898
SELECT - 20 / 80 - + col0 * - col1 AS col0, 36 + - col2 AS col1 FROM tab1 AS cor0
----
425
-23
4277
-32
714
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT + 97 - + CAST( - - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
20
30
46

skipif mysql # not compatible
query I rowsort label-8899
SELECT + 97 - + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
20
30
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT + col1 * + 35 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / - col0 + 34 + - + col1 + - 17 - - - col1 > + 26 + + CAST( col2 AS SIGNED ) * + col0
----

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT + col1 * + 35 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - col0 + 34 + - + col1 + - 17 - - - col1 > + 26 + + CAST ( col2 AS INTEGER ) * + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT ALL + 67 DIV - + MIN( col1 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL + 67 / - + MIN ( col1 ) FROM tab1
----
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 >= col2
----
87
21
10

query I rowsort
SELECT 21 * + - col1 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT ALL + 72 col0, - COUNT( * ) FROM tab1
----
72
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8905
SELECT ALL + 72 col0, - COUNT ( * ) FROM tab1
----
72
-3

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT + col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT ALL - COUNT( * ), + 62 AS col2 FROM tab1
----
-3
62

skipif mysql # not compatible
query II rowsort label-8907
SELECT ALL - COUNT ( * ), + 62 AS col2 FROM tab1
----
-3
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 95 * + col1 ) < ( NULL )
----

query II rowsort
SELECT - + col1, + col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT + 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - + 33 AND 48 + + col0
----

query II rowsort
SELECT col0 AS col1, - 17 AS col1 FROM tab0 WHERE NOT ( - ( + col2 ) * - 86 ) IS NULL
----
15
-17
87
-17
97
-17

query I rowsort
SELECT ALL - col0 + + 97 FROM tab0 AS cor0
----
0
10
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8916
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 94 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-4278
-5952
-6975

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + ( - COUNT( DISTINCT + col1 ) ) + - ( - + 40 ) * + MAX( ALL - col0 ) AS col0 FROM tab1
----
-2043

skipif mysql # not compatible
query I rowsort label-8921
SELECT + ( - COUNT ( DISTINCT + col1 ) ) + - ( - + 40 ) * + MAX ( ALL - col0 ) AS col0 FROM tab1
----
-2043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 45 col0 FROM tab2
----
-1035
-1800
-2610

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT 60 DIV - col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT 60 / - col2 FROM tab0
----
-1
-6
0

query I rowsort
SELECT 78 * + 14 FROM tab1
----
1092
1092
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT - + COUNT( DISTINCT - col0 ) + - 69 AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT - + COUNT ( DISTINCT - col0 ) + - 69 AS col1 FROM tab2 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 / + 21 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT MIN( + col2 ) - + SUM( + + col2 ) AS col2 FROM tab0
----
-146

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT MIN ( + col2 ) - + SUM ( + + col2 ) AS col2 FROM tab0
----
-146

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 48 IS NOT NULL
----

query II rowsort
SELECT 11, col0 + - 74 + 62 * - + col2 AS col0 FROM tab2 AS cor0
----
11
-1454
11
-2490
11
-3595

query II rowsort
SELECT + col1, + col0 * - col1 AS col2 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT - 51 AS col1, COUNT( * ) FROM tab0 cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-8931
SELECT - 51 AS col1, COUNT ( * ) FROM tab0 cor0
----
-51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT + MIN( 23 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT + MIN ( 23 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT + CAST( 14 AS SIGNED ) FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8933
SELECT + CAST ( 14 AS INTEGER ) FROM tab2 AS cor0
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT ALL 89 DIV + 2 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL 89 / + 2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query II rowsort label-8935
SELECT + 56 DIV + ( + col1 ) AS col0, 98 FROM tab0 cor0
----
0
98
2
98
56
98

skipif mysql # not compatible
query II rowsort label-8935
SELECT + 56 / + ( + col1 ) AS col0, 98 FROM tab0 cor0
----
0
98
2
98
56
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + - col0 AS col2, col0 col1 FROM tab2
----
-1058
46
-2560
64
-4350
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE + - CAST( NULL AS SIGNED ) * + 94 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) * + 94 >= NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * + col2 * ( - col2 ) AS col2 FROM tab1
----
205379
314432
884736

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - - col2 + col2
----

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab1 AS cor0 WHERE - 9 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT ALL - col1 DIV - 82 + ( + col0 ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - col1 / - 82 + ( + col0 ) FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL col2 AS col0, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT 18 * - + COUNT( 0 ) + + - MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT 18 * - + COUNT ( 0 ) + + - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 21
----
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 21
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8945
SELECT * FROM tab0 WHERE - col1 * col2 / + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8945
SELECT * FROM tab0 WHERE - col1 * col2 / + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 56 ) col0 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT + 3 + 38 AS col2 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT 61 + col2 + + + col2 - 28 FROM tab1 AS cor0
----
151
169
225

query I rowsort
SELECT col1 + - 76 AS col1 FROM tab1 AS cor0 WHERE ( NOT + + 74 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT ALL + - col1 * 42 DIV + + 92 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
423
4256
708

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + - col1 * 42 / + + 92 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
423
4256
708

query II rowsort
SELECT - + 78 AS col1, - 55 AS col2 FROM tab2 AS cor0
----
-78
-55
-78
-55
-78
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT - 77 * - COUNT( * ) - + 27 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-8952
SELECT - 77 * - COUNT ( * ) - + 27 FROM tab2
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT DISTINCT 10 * 82 DIV col0 FROM tab2
----
10
12
17

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT 10 * 82 / col0 FROM tab2
----
10
12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL 95 * - SUM( DISTINCT + col0 ) AS col1 FROM tab2
----
-17575

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL 95 * - SUM ( DISTINCT + col0 ) AS col1 FROM tab2
----
-17575

query I rowsort
SELECT col0 * - - 6 FROM tab2
----
276
384
450

onlyif mysql # DIV for integer division: 
query II rowsort label-8956
SELECT - - col1 DIV col1 AS col0, col2 FROM tab2 cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-8956
SELECT - - col1 / col1 AS col0, col2 FROM tab2 cor0
----
1
23
1
40
1
58

query I rowsort
SELECT col1 * 79 * + - col2 AS col1 FROM tab0 AS cor0
----
-16590
-300753
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT COUNT( - + ( - 3 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT COUNT ( - + ( - 3 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8960
SELECT DISTINCT - COUNT( DISTINCT col2 ) DIV + ( - + SUM( + col0 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - COUNT ( DISTINCT col2 ) / + ( - + SUM ( + col0 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 * - + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0, tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT + - 28 FROM tab2 WHERE + col0 IS NOT NULL
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ( - COUNT( * ) ) * + 84 AS col0 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-8964
SELECT ( - COUNT ( * ) ) * + 84 AS col0 FROM tab0
----
-252

query I rowsort
SELECT 75 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL col2 * - + 67 FROM tab1
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT + 40 * + col1 FROM tab0
----
3240
40
840

query I rowsort
SELECT ALL col1 * + 36 AS col0 FROM tab1
----
1692
180
504

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 * - + 12 AND col0 / + col1 * + + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT MAX( ALL col0 ) * + + 14 AS col1 FROM tab1
----
1274

skipif mysql # not compatible
query I rowsort label-8970
SELECT MAX ( ALL col0 ) * + + 14 AS col1 FROM tab1
----
1274

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT ALL + COUNT( * ) AS col1, + 56 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
168

skipif mysql # not compatible
query II rowsort label-8971
SELECT ALL + COUNT ( * ) AS col1, + 56 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
168

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 44 * + 74 - - 98 ) IS NOT NULL
----

query I rowsort
SELECT + 67 * col0 AS col2 FROM tab0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL + COUNT( * ) + 68 AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL + COUNT ( * ) + 68 AS col0 FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 80 AND - + col0
----

query I rowsort
SELECT + 27 - + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 56 - 72 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT DISTINCT - col0 + - CAST( + 45 AS SIGNED ) FROM tab1 cor0
----
-130
-136
-96

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT - col0 + - CAST ( + 45 AS INTEGER ) FROM tab1 cor0
----
-130
-136
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT COUNT( * ) * 56 + - 48 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-8979
SELECT COUNT ( * ) * 56 + - 48 FROM tab1 AS cor0
----
120

query I rowsort
SELECT DISTINCT - 39 * + + col2 AS col2 FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT ALL + 12 AS col2 FROM tab2 WHERE NOT + 72 IS NOT NULL
----

query I rowsort
SELECT - col0 * - 88 AS col0 FROM tab0
----
1320
7656
8536

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT + MAX( col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8983
SELECT DISTINCT + MAX ( col0 ) col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT ( - col0 ) DIV + col2 AS col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8985
SELECT ( - col0 ) / + col2 AS col1 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL + COUNT( + col0 ) + 81 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + COUNT ( + col0 ) + 81 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL 98 + + col1 FROM tab1 cor0
----
103
112
145

query I rowsort
SELECT - + 92 + col1 FROM tab2 AS cor0
----
-15
-25
-41

query I rowsort
SELECT + col1 + - 18 + + col0 * - ( - + col0 ) - - ( + - ( 43 ) ) AS col1 FROM tab1 AS cor0
----
2554
7169
8267

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT SUM( - + 76 ) FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT SUM ( - + 76 ) FROM tab0 AS cor0
----
-228

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <= col1 * - + col2 / - ( col0 )
----
87
21
10
97
1
99

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 = NULL
----

query I rowsort
SELECT ALL - + col2 * 69 * - col1 AS col1 FROM tab2 cor0
----
212520
268134
80937

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8995
SELECT DISTINCT - col2, CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8995
SELECT DISTINCT - col2, CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8996
SELECT DISTINCT + col1 col2, - col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
9 values hashing to d0c831087752ac362c8fbdf55102cf92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8996
SELECT DISTINCT + col1 col2, - col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
9 values hashing to d0c831087752ac362c8fbdf55102cf92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
74

query I rowsort
SELECT + col0 * - 14 * + 97 FROM tab0 AS cor0
----
-118146
-131726
-20370

query I rowsort
SELECT 93 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
93
93
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9000
SELECT 54 * COUNT( * ) DIV 38 AS col1 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9000
SELECT 54 * COUNT ( * ) / 38 AS col1 FROM tab1 cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9001
SELECT - CAST( NULL AS SIGNED ) * - ( MAX( + col2 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT - CAST ( NULL AS INTEGER ) * - ( MAX ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col2 AND - + col2
----

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab0 WHERE NOT ( NULL ) <= - col1
----

query II rowsort
SELECT col2 * + 47 AS col1, - 14 AS col2 FROM tab2
----
1081
-14
1880
-14
2726
-14

query I rowsort
SELECT ALL col1 * + + col0 * - col2 AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL col1 - - 40 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - 34 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-31

skipif mysql # not compatible
query I rowsort label-9007
SELECT - 34 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-31

query I rowsort
SELECT ALL + ( - + 4 ) FROM tab1 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) + 73 col2 FROM tab1 AS cor0
----
-23
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE col1 BETWEEN - + 26 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE col1 BETWEEN - + 26 AND + col2
----
0

query I rowsort
SELECT DISTINCT 12 * 77 * - col2 AS col1 FROM tab0
----
-43428
-91476
-9240

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT DISTINCT 5 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
5
0

skipif mysql # not compatible
query II rowsort label-9012
SELECT DISTINCT 5 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT - + SUM( + + ( - ( + - 80 ) ) ) col1 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9013
SELECT - + SUM ( + + ( - ( + - 80 ) ) ) col1 FROM tab0 AS cor0
----
-240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9014
SELECT DISTINCT col0 + + col1 - - CAST( NULL AS DECIMAL ) + ( + 77 ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9014
SELECT DISTINCT col0 + + col1 - - CAST ( NULL AS REAL ) + ( + 77 ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 15 * col1 + col0 col2 FROM tab2 AS cor0
----
35236
73984
75450

query I rowsort
SELECT - ( - 40 ) AS col1 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT 55 * col1 * - col0 - + 28 FROM tab0 AS cor0
----
-100513
-5363
-66853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) - - col1 + + 62 + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) - - col1 + + 62 + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 51 - col2 FROM tab0
----
-150
-61
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - 97 + - COUNT( * ) FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-9020
SELECT - 97 + - COUNT ( * ) FROM tab2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT + + 33 + COUNT( * ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9021
SELECT + + 33 + COUNT ( * ) FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9022
SELECT DISTINCT * FROM tab2 WHERE + col2 + - ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9022
SELECT DISTINCT * FROM tab2 WHERE + col2 + - ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT 52, col1 AS col1 FROM tab0
----
52
1
52
21
52
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 AS col1, 19 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL MAX( DISTINCT + 96 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL MAX ( DISTINCT + 96 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 66 NOT IN ( + 64 )
----

query II rowsort
SELECT + col2 AS col1, 83 FROM tab2 cor0
----
23
83
40
83
58
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT - 27 DIV + - 75 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT - 27 / + - 75 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - col1 * + col0 >= - - col0 + col0 / + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - - - 42 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT col0, - 14 FROM tab2 AS cor0
----
46
-14
64
-14
75
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT + COUNT( * ) * - 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT + COUNT ( * ) * - 70 FROM tab1
----
-210

query I rowsort
SELECT DISTINCT - col2 + - + 43 AS col2 FROM tab2
----
-101
-66
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT - SUM( DISTINCT - + 62 ) * + 20 col2 FROM tab2 cor0
----
1240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9035
SELECT DISTINCT - SUM ( DISTINCT - + 62 ) * + 20 col2 FROM tab2 cor0
----
1240

query I rowsort
SELECT ALL + + 86 * - col2 * 62 AS col0 FROM tab1 AS cor0
----
-314588
-362576
-511872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT 48 DIV - COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-9037
SELECT 48 / - COUNT ( * ) FROM tab2
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 7 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL + + 19 FROM tab1 AS cor0 WHERE + 20 IS NULL
----

query I rowsort
SELECT DISTINCT 0 + + col0 + - + col1 + + + col2 * + - col1 FROM tab1 AS cor0
----
-1307
-215
-3152

query I rowsort
SELECT ALL - col2 + - col2 - + col0 + - - 79 FROM tab0 AS cor0
----
-216
-28
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - + 48 + col0 col1 FROM tab2 cor0
----
-40
-53
-61

query I rowsort
SELECT DISTINCT + col2 * - + 78 - - 43 AS col0 FROM tab1 AS cor0
----
-4559
-5261
-7445

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT COUNT( * ) - - 29 AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT COUNT ( * ) - - 29 AS col2 FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9045
SELECT 22, + col0 + - - 26 DIV CAST( + + 64 AS SIGNED ) * + - 10 AS col0 FROM tab0
----
22
15
22
87
22
97

skipif mysql # not compatible
query II rowsort label-9045
SELECT 22, + col0 + - - 26 / CAST ( + + 64 AS INTEGER ) * + - 10 AS col0 FROM tab0
----
22
15
22
87
22
97

query II rowsort
SELECT + ( + - 3 ), + col0 AS col2 FROM tab1 WHERE + col1 + + col2 * + ( + 94 ) IS NOT NULL
----
-3
51
-3
85
-3
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL CAST( NULL AS SIGNED ) - - col0 + 6 + + + ( 7 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL CAST ( NULL AS INTEGER ) - - col0 + 6 + + + ( 7 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9049
SELECT ALL 22 * + + CAST( NULL AS SIGNED ) - + - 59 AS col1, - col2 AS col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-9049
SELECT ALL 22 * + + CAST ( NULL AS INTEGER ) - + - 59 AS col1, - col2 AS col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT ALL - - col1 * + - col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT col2 AS col2, col2 + - 35 FROM tab0 AS cor0 WHERE NOT - col2 * - col1 * 82 = col2
----
10
-25
47
12
99
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9052
SELECT ALL - + COUNT( * ) AS col2, COUNT( * ) + + COUNT( ALL col0 ) FROM tab2 AS cor0
----
-3
6

skipif mysql # not compatible
query II rowsort label-9052
SELECT ALL - + COUNT ( * ) AS col2, COUNT ( * ) + + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-3
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT 58 AS col0, COUNT( * ) * + - 53 FROM tab1 AS cor0
----
58
-159

skipif mysql # not compatible
query II rowsort label-9053
SELECT 58 AS col0, COUNT ( * ) * + - 53 FROM tab1 AS cor0
----
58
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - SUM( ALL 80 ) FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-9054
SELECT - SUM ( ALL 80 ) FROM tab0 AS cor0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT - + col1 DIV + col0 AS col2 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9055
SELECT - + col1 / + col0 AS col2 FROM tab0 cor0
----
-5
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) > + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 62 * - 69 + + + 97 - - - col2 AS col2 FROM tab1 AS cor0
----
4279
4307
4316

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9059
SELECT CAST( - CAST( - 54 AS DECIMAL ) AS SIGNED ) col1 FROM tab0 AS cor0
----
54
54
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9059
SELECT CAST ( - CAST ( - 54 AS REAL ) AS INTEGER ) col1 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + 73 * - + 36 + - col0 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) <> - 9
----

query II rowsort
SELECT ALL + - col0 + - 19 AS col2, - 37 AS col0 FROM tab2 AS cor0
----
-65
-37
-83
-37
-94
-37

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 + - col0 / + col0 + 78 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + 58 IS NOT NULL
----

query I rowsort
SELECT + col2 * 72 FROM tab1 cor0
----
4248
4896
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - COUNT( * ) * - 41 AS col1 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-9065
SELECT - COUNT ( * ) * - 41 AS col1 FROM tab2
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + + + col1 * - 44 + - col0 col0 FROM tab0
----
-3497
-59
-929

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT ALL - 53 + - col2 DIV + col0 + + 25 FROM tab2 AS cor0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - 53 + - col2 / + col0 + + 25 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - + col0 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT col1 DIV + 82 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT col1 / + 82 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 36 * + col2 AS col2 FROM tab1
----
2124
2448
3456

query I rowsort
SELECT ALL - + col1 + + ( - 34 ) AS col2 FROM tab0 AS cor0
----
-115
-35
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 89 col0 FROM tab1 AS cor0
----
59
89
68
89
96
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + 88, - 24 / + col1, - - col2 + + + col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT + col0 + col0 + - ( 68 ) * - - col0 * + - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
159620
335232
341850

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT + col0 + col0 + - ( 68 ) * - - col0 * + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
159620
335232
341850

query I rowsort
SELECT + + 15 - + 41 AS col2 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL - 61 - - col0 FROM tab0 cor0
----
-46
26
36

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col1 ), 50 col0 FROM tab1
----
14
50
47
50
5
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - col2
----

query I rowsort
SELECT - 36 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + ( 97 ) AS col1, - 3 - col0 + + col1 * + col2 FROM tab1
----
97
1290
97
207
97
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT MIN( - col1 ) * COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-9083
SELECT MIN ( - col1 ) * COUNT ( * ) FROM tab1
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-9084
SELECT col1 DIV + + col1, - 38 DIV col0 AS col2 FROM tab1
----
1
0
1
0
1
0

skipif mysql # not compatible
query II rowsort label-9084
SELECT col1 / + + col1, - 38 / col0 AS col2 FROM tab1
----
1
0
1
0
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT ALL - - col0 DIV - - col1 - + 3 FROM tab1 AS cor0
----
-2
0
14

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL - - col0 / - - col1 - + 3 FROM tab1 AS cor0
----
-2
0
14

query II rowsort
SELECT + 56 * + ( - col2 ) AS col2, + col1 FROM tab1
----
-3304
5
-3808
47
-5376
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 87 col2 FROM tab2 AS cor0
----
46
-87
64
-87
75
-87

query II rowsort
SELECT - 36 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-36
51
-36
85
-36
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * 43 - - col0 / + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT + col2 + + col2 * CAST( NULL AS SIGNED ) * + 77 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT + col2 + + col2 * CAST ( NULL AS INTEGER ) * + 77 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9093
SELECT + col1 DIV col0 * - + col0 + - 41, + 7 AS col2 FROM tab0
----
-116
7
-41
7
-41
7

skipif mysql # not compatible
query II rowsort label-9093
SELECT + col1 / col0 * - + col0 + - 41, + 7 AS col2 FROM tab0
----
-116
7
-41
7
-41
7

query I rowsort
SELECT ALL - ( + - ( + + col1 ) ) * + - 32 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1504
-160
-448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT CAST( - - 39 AS SIGNED ) col0 FROM tab0 AS cor0
----
39
39
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9095
SELECT CAST ( - - 39 AS INTEGER ) col0 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT ALL 28 - - col1 AS col0 FROM tab2
----
105
79
95

query I rowsort
SELECT - 94 + + 39 * - - 31 FROM tab1
----
1115
1115
1115

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT COUNT( DISTINCT + ( + - col2 ) ) * - 87 + - 97 + - - COUNT( * ) AS col2 FROM tab2
----
-355

skipif mysql # not compatible
query I rowsort label-9098
SELECT COUNT ( DISTINCT + ( + - col2 ) ) * - 87 + - 97 + - - COUNT ( * ) AS col2 FROM tab2
----
-355

query I rowsort
SELECT + ( - + col2 ) + - 9 * - - col1 + - + col0 FROM tab0
----
-205
-286
-791

query I rowsort
SELECT - col2 + + col0 * - ( col0 ) FROM tab0
----
-272
-7579
-9508

query I rowsort
SELECT - + col2 * - col1 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT ALL col1 * + - col2 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - + col2 + 43 + + col1 FROM tab2 AS cor0
----
52
71
80

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 86 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 63 * + col2 FROM tab0 AS cor0
----
2961
6237
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL MAX( ALL + 49 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL MAX ( ALL + 49 ) FROM tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT ALL CAST( 14 AS SIGNED ) FROM tab0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL CAST ( 14 AS INTEGER ) FROM tab0
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + - col0 BETWEEN NULL AND - - col2 / - - 36
----

query I rowsort
SELECT + 83 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL ( + COUNT( * ) ) * ( + - 62 ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL ( + COUNT ( * ) ) * ( + - 62 ) FROM tab1
----
-186

query I rowsort
SELECT + 2 * - col2 + col2 * - + 51 + + + 48 FROM tab2 AS cor0
----
-1171
-2072
-3026

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, 75, - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, 75, - col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT ALL + MAX( - CAST( 31 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + MAX ( - CAST ( 31 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT - - CAST( NULL AS SIGNED ) * + + ( - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT - - CAST ( NULL AS INTEGER ) * + + ( - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL - + MIN( - 9 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - + MIN ( - 9 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT col0 * - - col1 / col2 + 72 * 15 - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + 10 + + col2 * + col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT col0 * - - col1 / col2 + 72 * 15 - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + 10 + + col2 * + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 + + 48 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 * - col2 + - col0 col2, col0 FROM tab0 AS cor0
----
-720
15
-957
87
-9700
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL + + COUNT( * ) + - - COUNT( + col1 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + + COUNT ( * ) + - - COUNT ( + col1 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT col2 + + + 35 FROM tab2 AS cor0
----
58
75
93

query I rowsort
SELECT DISTINCT col1 + + - col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 23 * + 37 FROM tab2 cor0
----
851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1
----
9

query II rowsort
SELECT ALL - 74 AS col1, - 41 AS col2 FROM tab0
----
-74
-41
-74
-41
-74
-41

query I rowsort
SELECT 0 AS col0 FROM tab0 WHERE + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - col1 ) ) NOT IN ( + 28, + col2 + col2, CAST( NULL AS SIGNED ) * col2, - col0, + ( - col2 ) * 53 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-9127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - col1 ) ) NOT IN ( + 28, + col2 + col2, CAST ( NULL AS INTEGER ) * col2, - col0, + ( - col2 ) * 53 + - col1 )
----

query II rowsort
SELECT + col1 * - col1 + + col0 AS col2, - col2 AS col2 FROM tab2 cor0
----
-2555
-23
-4414
-58
-5865
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + 59 + + + col0 + + + col1 * - col2 + + col1 * + col1
----

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col0 + - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NULL = - + col0 + 49
----

query I rowsort
SELECT - - 70 AS col2 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT - - col2 * + col0 DIV - col0 - col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-9135
SELECT - - col2 * + col0 / - col0 - col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT ALL + col2, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9137
SELECT - MIN( + col2 ), - 3 AS col1 FROM tab0 AS cor0
----
-10
-3

skipif mysql # not compatible
query II rowsort label-9137
SELECT - MIN ( + col2 ), - 3 AS col1 FROM tab0 AS cor0
----
-10
-3

query I rowsort
SELECT + col0 * - 47 AS col1 FROM tab0 AS cor0
----
-4089
-4559
-705

query I rowsort
SELECT DISTINCT + col0 * - 10 * - + col0 FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NULL
----
21160
40960
56250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 63 ) col2 FROM tab2 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT MIN( 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9141
SELECT MIN ( 9 ) FROM tab2
----
9

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT 39 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT ALL CAST( - col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9144
SELECT ALL CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + 68 * - col2 FROM tab2 AS cor0
----
-1564
-2720
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9146
SELECT DISTINCT * FROM tab2 WHERE - col0 * - col2 * - + CAST( + - col2 AS SIGNED ) * + col0 * 80 IN ( - col1, + col2, - - col1, - - ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-9146
SELECT DISTINCT * FROM tab2 WHERE - col0 * - col2 * - + CAST ( + - col2 AS INTEGER ) * + col0 * 80 IN ( - col1, + col2, - - col1, - - ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT DISTINCT SUM( - col1 ) * - + COUNT( * ) AS col1 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT SUM ( - col1 ) * - + COUNT ( * ) AS col1 FROM tab2
----
585

query I rowsort
SELECT ALL + col0 + - + col1 + - col1 * col1 + - 65 FROM tab2
----
-2671
-4546
-6007

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT + - 60 + - COUNT( * ) AS col2 FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT + - 60 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT DISTINCT + + col1 + + col1 * col2 * + - CAST( - col2 AS SIGNED ) * - 32 + + 99 * col2 FROM tab1 AS cor0
----
-4119250
-551114
-6947717

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + + col1 + + col1 * col2 * + - CAST ( - col2 AS INTEGER ) * - 32 + + 99 * col2 FROM tab1 AS cor0
----
-4119250
-551114
-6947717

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL + 67 + + + COUNT( * ) AS col0 FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + 67 + + + COUNT ( * ) AS col0 FROM tab0 cor0
----
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 55 - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT ALL CAST( NULL AS SIGNED ) / - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL CAST ( NULL AS INTEGER ) / - + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 71 * - col1 AS col2 FROM tab2
----
3667
4832
5531

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + ( + col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT 2 * + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9156
SELECT 2 * + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT SUM( - col2 ), - 74 AS col2 FROM tab1
----
-223
-74

skipif mysql # not compatible
query II rowsort label-9157
SELECT SUM ( - col2 ), - 74 AS col2 FROM tab1
----
-223
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT CAST( + + ( - - col0 ) AS SIGNED ) * col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-9158
SELECT CAST ( + + ( - - col0 ) AS INTEGER ) * col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - col2 + 72 / - ( + ( - 31 ) ) + - + col1 FROM tab0 WHERE ( NOT ( - ( + - 85 ) ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT ALL ( CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9160
SELECT ALL ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 * - - col1 AS col1 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9162
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 24 + + CAST( col2 AS SIGNED ) <= NULL )
----

skipif mysql # not compatible
query III rowsort label-9162
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 24 + + CAST ( col2 AS INTEGER ) <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT ( + col0 ) + + 7 DIV + 89 + + 31 FROM tab0
----
118
128
46

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT ( + col0 ) + + 7 / + 89 + + 31 FROM tab0
----
118
128
46

query I rowsort
SELECT ALL - + col0 + col1 - + + 2 FROM tab2 cor0
----
-10
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL MIN( - col1 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL MIN ( - col1 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - + ( 62 ) = + + col1 + - - col0 - - ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 7 AND NOT ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9169
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * ( + 58 ) * col1 NOT BETWEEN + + col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9169
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * ( + 58 ) * col1 NOT BETWEEN + + col2 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 * + - 34 + + + col0 AS col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + 6 * + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 6 * + COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9172
SELECT ALL + + col1 col1, CAST( 86 AS SIGNED ) FROM tab0 AS cor0
----
1
86
21
86
81
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9172
SELECT ALL + + col1 col1, CAST ( 86 AS INTEGER ) FROM tab0 AS cor0
----
1
86
21
86
81
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT - 3 * CAST( + COUNT( * ) AS SIGNED ) * - 98 AS col0 FROM tab1
----
882

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - 3 * CAST ( + COUNT ( * ) AS INTEGER ) * - 98 AS col0 FROM tab1
----
882

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT DISTINCT - col1 + - - col2 DIV - col1 FROM tab1 AS cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT - col1 + - - col2 / - col1 FROM tab1 AS cor0
----
-16
-20
-48

query I rowsort
SELECT ALL 56 + + 32 + - col2 - - col2 * - + col2 * + col0 * col1 FROM tab0 AS cor0
----
-182622
-2683894
-950708

query I rowsort
SELECT - col2 + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-9177
SELECT + col2 + col0 DIV - + col1 + + col0 + 88 col0 FROM tab0 AS cor0
----
150
181
187

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9177
SELECT + col2 + col0 / - + col1 + + col0 + 88 col0 FROM tab0 AS cor0
----
150
181
187

query I rowsort
SELECT - col1 + - 10 FROM tab1 AS cor0
----
-15
-24
-57

query I rowsort
SELECT - + 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT - SUM( ALL + + col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9180
SELECT DISTINCT - SUM ( ALL + + col0 ) col2 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT + 60 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 32 * + 21 * col2 <> 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - - MIN( - - 58 ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9183
SELECT - - MIN ( - - 58 ) AS col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col1 * - - col0 IS NULL
----

query I rowsort
SELECT ALL + 80 + + 94 AS col1 FROM tab0 AS cor0
----
174
174
174

query I rowsort
SELECT - col0 - - col1 + + col1 * col1 * + col2 * + col2 FROM tab0 AS cor0
----
14493315
44034
9705

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= + col2 + col1 - 3 + + col1 - + + ( + - col0 ) + + - col2 OR NOT + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + 80 * col0 AS col2 FROM tab0
----
1153
6950
7661

query II rowsort
SELECT DISTINCT col0 * - col2, - col2 AS col0 FROM tab0
----
-705
-47
-870
-10
-9603
-99

query II rowsort
SELECT DISTINCT col1, + 90 + - col0 * - + 69 - ( col2 ) FROM tab2
----
51
3241
67
5207
77
4466

query III rowsort
SELECT * FROM tab0 WHERE col0 * 30 / 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT - col2 DIV 93 + - 37 AS col2 FROM tab2 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-9192
SELECT - col2 / 93 + - 37 AS col2 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9193
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) <> + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9193
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) <> + CAST ( + - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT 85 * - COUNT( * ) AS col0 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT 85 * - COUNT ( * ) AS col0 FROM tab0
----
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab2
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT 17 * - COUNT( * ) * + MIN( DISTINCT + col0 ) FROM tab1
----
-2601

skipif mysql # not compatible
query I rowsort label-9196
SELECT 17 * - COUNT ( * ) * + MIN ( DISTINCT + col0 ) FROM tab1
----
-2601

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT DISTINCT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9199
SELECT * FROM tab1 cor0 WHERE NOT - col1 * col2 / - + 87 <> - + CAST( + 28 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9199
SELECT * FROM tab1 cor0 WHERE NOT - col1 * col2 / - + 87 <> - + CAST ( + 28 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 52 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 96 * - 51 AS col0 FROM tab0
----
-4896
-4896
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT - MAX( ALL + 70 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-9203
SELECT - MAX ( ALL + 70 ) FROM tab2
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-9204
SELECT col1, 46 DIV - col1 - 91 FROM tab0
----
1
-137
21
-93
81
-91

skipif mysql # not compatible
query II rowsort label-9204
SELECT col1, 46 / - col1 - 91 FROM tab0
----
1
-137
21
-93
81
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT DISTINCT - 72 + - 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-9205
SELECT DISTINCT - 72 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 44 * col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * 15 NOT BETWEEN ( 70 * - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL - SUM( - 60 ) * - COUNT( * ) FROM tab0
----
-540

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL - SUM ( - 60 ) * - COUNT ( * ) FROM tab0
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9209
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN - 83 * + col0 AND + col0 + - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9209
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN - 83 * + col0 AND + col0 + - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 35 * 24 + + ( col0 ) * col0 FROM tab0
----
10249
1065
8409

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - SUM( ALL col1 ) * + 99 + + 64 * 44 AS col0 FROM tab1
----
-3718

skipif mysql # not compatible
query I rowsort label-9211
SELECT - SUM ( ALL col1 ) * + 99 + + 64 * 44 AS col0 FROM tab1
----
-3718

query I rowsort
SELECT + col0 * - col0 + - col0 AS col2 FROM tab2
----
-2162
-4160
-5700

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col0 + + col0 )
----

query I rowsort
SELECT ALL 54 + - col0 AS col2 FROM tab0
----
-33
-43
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9215
SELECT DISTINCT CAST( + col2 AS SIGNED ) DIV 80 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT CAST ( + col2 AS INTEGER ) / 80 AS col2 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL CAST( + 82 AS SIGNED ) * 38 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL CAST ( + 82 AS INTEGER ) * 38 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9217
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> ( + 48 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9217
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> ( + 48 / CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * - col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( 23 ) AS col0 FROM tab2
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL COUNT( ALL 14 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL COUNT ( ALL 14 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT - col0 * CAST( NULL AS SIGNED ) + col0 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT - col0 * CAST ( NULL AS INTEGER ) + col0 * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 * col1 + - col1 FROM tab1
----
-3243
-345
-966

query I rowsort
SELECT ALL - col0 - col2 AS col2 FROM tab0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + 76 * - COUNT( * ) FROM tab2 WHERE ( + 5 / col0 + + col1 ) IS NOT NULL
----
-228

skipif mysql # not compatible
query I rowsort label-9225
SELECT + 76 * - COUNT ( * ) FROM tab2 WHERE ( + 5 / col0 + + col1 ) IS NOT NULL
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT MAX( DISTINCT - col1 ) + 44 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT MAX ( DISTINCT - col1 ) + 44 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NULL < + col1
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NULL < + col1
----
0

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * 83 col1 FROM tab1 AS cor0
----
-1245

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT - col2 < 99
----

query I rowsort
SELECT ALL + col0 * col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <= - ( 72 ) + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 53 * - col1 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT + col2 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 25 - - col0 <> 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL - COUNT( * ) * 23 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL - COUNT ( * ) * 23 FROM tab2 cor0
----
-69

query I rowsort
SELECT ALL + col1 * - 40 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-141
-1812
-464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9237
SELECT ALL CAST( SUM( - col1 ) AS SIGNED ) DIV + MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL CAST ( SUM ( - col1 ) AS INTEGER ) / + MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT + - col2 DIV col0 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9238
SELECT + - col2 / col0 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * + 6 FROM tab1 cor0
----
306
510
546

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - ( col0 ) * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - 79 * MAX( col0 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-7189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9241
SELECT - 79 * MAX ( col0 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-9242
SELECT ( - 17 ) DIV - 58 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9242
SELECT ( - 17 ) / - 58 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT MAX( ALL + 14 ) * + 63 AS col1 FROM tab0
----
882

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT MAX ( ALL + 14 ) * + 63 AS col1 FROM tab0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - MAX( col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - MAX ( col1 ) AS col2 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT - 72 >= ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE - 52 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 93 AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9248
SELECT DISTINCT + CAST( - - 26 AS SIGNED ) DIV 77 + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + CAST ( - - 26 AS INTEGER ) / 77 + - col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + 88 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1261
3168
3974

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT - + 30 DIV - ( ( col0 ) ) + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-9250
SELECT - + 30 / - ( ( col0 ) ) + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT + 95 * + 58 * col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 95 * + 58 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col2 + 96 AS col1 FROM tab0 WHERE NOT + + col1 + ( - 5 ) * + col1 IS NULL
----
106
143
195

query III rowsort
SELECT * FROM tab2 WHERE ( 12 + col1 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + MIN( DISTINCT - col0 ) - + MAX( DISTINCT + col2 ) AS col0 FROM tab1 WHERE 42 + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT + MIN ( DISTINCT - col0 ) - + MAX ( DISTINCT + col2 ) AS col0 FROM tab1 WHERE 42 + col0 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 < + col2 + col2
----

query I rowsort
SELECT ALL col0 * - 60 + - 0 AS col0 FROM tab0 AS cor0 WHERE NOT 75 * - + col0 IS NULL
----
-5220
-5820
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT + + MIN( ( + col1 ) ) + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + + MIN ( ( + col1 ) ) + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + 45 + - + 7 AS col2 FROM tab1 AS cor0
----
38
38
38

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( + - 2 )
----

query I rowsort
SELECT DISTINCT - 26 - col1 AS col2 FROM tab2 AS cor0
----
-103
-77
-93

query I rowsort
SELECT - 13 - - + col2 AS col0 FROM tab1 AS cor0
----
46
55
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT + - 22 + - + col1 - 97 + col1 * - 34 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT + - 22 + - + col1 - 97 + col1 * - 34 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + 54 - + + 62 * - 89 IS NULL
----

query I rowsort
SELECT ALL 58 - - + 35 FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT COUNT( * ) * - 78 + COUNT( * ) FROM tab2 WHERE - col1 + 95 IS NOT NULL
----
-231

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT COUNT ( * ) * - 78 + COUNT ( * ) FROM tab2 WHERE - col1 + 95 IS NOT NULL
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL ( + - COUNT( * ) ) * COUNT( DISTINCT - - col1 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL ( + - COUNT ( * ) ) * COUNT ( DISTINCT - - col1 ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - 48 * + + COUNT( * ) col1 FROM tab1
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9268
SELECT ALL - 48 * + + COUNT ( * ) col1 FROM tab1
----
-144

query II rowsort
SELECT DISTINCT 6 * + col1 AS col0, col1 FROM tab0
----
126
21
486
81
6
1

query I rowsort
SELECT ALL - col0 * - + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT - COUNT( DISTINCT - ( col2 ) ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT - COUNT ( DISTINCT - ( col2 ) ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9272
SELECT + + col0 DIV col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + 68 AND NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9272
SELECT + + col0 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + 68 AND NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9273
SELECT col1 DIV col0 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9273
SELECT col1 / col0 + col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - - col0 * - 24 / col1 + col0 * - col1 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT - + SUM( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - + SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < ( + 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT DISTINCT CAST( + ( col2 ) AS SIGNED ) + - col2 AS col1 FROM tab0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT CAST ( + ( col2 ) AS INTEGER ) + - col2 AS col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT 88 FROM tab2 WHERE NOT NULL NOT IN ( - + 19 + col1 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NULL BETWEEN - + col1 AND - 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 69 * - col1 * 89 col2, col2 AS col0 FROM tab2
----
-313191
23
-411447
58
-472857
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + - 47 IN ( 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL - MIN( + - col2 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - MIN ( + - col2 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
288

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 99 * - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9284
SELECT - col2, + col2 DIV - 92 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-9284
SELECT - col2, + col2 / - 92 AS col0 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT - 24 * ( + col2 ) FROM tab1 AS cor0
----
-1416
-1632
-2304

query I rowsort
SELECT + - 71 * - 37 * - 44 + ( 76 ) AS col2 FROM tab2 cor0
----
-115512
-115512
-115512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT - 18 / + 73 + 98 AS col2 FROM tab2 AS cor0 WHERE NOT ( - ( + CAST( NULL AS SIGNED ) ) * col2 ) IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - 18 / + 73 + 98 AS col2 FROM tab2 AS cor0 WHERE NOT ( - ( + CAST ( NULL AS INTEGER ) ) * col2 ) IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * 7 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT - col0 + - col2 DIV - 18 FROM tab2 AS cor0 WHERE NOT col2 * - 89 = - col2 + - 4
----
-45
-62
-72

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT - col0 + - col2 / - 18 FROM tab2 AS cor0 WHERE NOT col2 * - 89 = - col2 + - 4
----
-45
-62
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9290
SELECT ALL - 18 * - SUM( + 77 ) FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) + + - 79 * + 74 * col2 NOT IN ( col2 / - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - 18 * - SUM ( + 77 ) FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) + + - 79 * + 74 * col2 NOT IN ( col2 / - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT ALL - ( 42 ) / col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + + 4 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - ( 42 ) / col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + + 4 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE - col0 * + 87 IS NULL AND NOT 50 IN ( - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 * + 87 IS NULL AND NOT 50 IN ( - 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + 24 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9293
SELECT + 24 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
27

query II rowsort
SELECT ALL - col1 AS col2, col2 AS col1 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT - 86 * - col1 * - col2 FROM tab2
----
-100878
-264880
-334196

query I rowsort
SELECT col0 + - - col0 AS col1 FROM tab1
----
102
170
182

query II rowsort
SELECT DISTINCT col0, ( + col2 ) * 72 AS col2 FROM tab0
----
15
3384
87
720
97
7128

query I rowsort
SELECT + + 63 * - col0 FROM tab1 AS cor0
----
-3213
-5355
-5733

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 + col0 * + 85 )
----

query II rowsort
SELECT + col1 + + 62, - ( + col1 ) AS col1 FROM tab1
----
109
-47
67
-5
76
-14

query I rowsort
SELECT AVG ( ALL col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + col1 NOT BETWEEN + col2 AND - col1 * - ( col1 ) + 58 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT ALL + col2 DIV + col1 + + 44 + ( + 91 ) * col0 AS col1 FROM tab2 AS cor0
----
4230
5868
6869

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + col2 / + col1 + + 44 + ( + 91 ) * col0 AS col1 FROM tab2 AS cor0
----
4230
5868
6869

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT DISTINCT + col0 + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + col0 + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
50
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - + col2 col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 22 IN ( col2 )
----

query I rowsort
SELECT col2 * 15 FROM tab2
----
345
600
870

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL - - COUNT( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 75 FROM tab1 cor0
----
75

query II rowsort
SELECT + 57 * - col2 - + col2, - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2726
0
-5742
0
-580
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT + 65 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT + 65 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IN ( 30 + + 93 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - col1 - - 67 FROM tab1 AS cor0
----
104
111
147

query I rowsort
SELECT + 41 * - 8 FROM tab1
----
-328
-328
-328

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT ALL 7 DIV + + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL 7 / + + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 45 FROM tab2
----
-1
-19
-30

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - 12 * col2
----

query I rowsort
SELECT DISTINCT - col2 * 40 AS col1 FROM tab2
----
-1600
-2320
-920

query III rowsort
SELECT * FROM tab1 WHERE ( 92 + - ( 59 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 + - + col0 AS col2 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE + col1 + - col2 - + 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + col1 + - col2 - + 41 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT + CAST( + col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-9325
SELECT + CAST ( + col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT - 36 - - col2 AS col0 FROM tab2
----
-13
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL COUNT( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9327
SELECT ALL COUNT ( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col1 + - 20 * + + col1 * 69 col1 FROM tab2
----
-106106
-70278
-92326

query I rowsort
SELECT col1 - - - 34 FROM tab1 cor0
----
-20
-29
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9330
SELECT + 31 DIV + - COUNT( * ) - - 14 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9330
SELECT + 31 / + - COUNT ( * ) - - 14 FROM tab1 cor0
----
4

query I rowsort
SELECT ( + col2 ) - + 6 AS col1 FROM tab0 AS cor0
----
4
41
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT - col1 DIV + + col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9332
SELECT - col1 / + + col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 8 BETWEEN - 86 AND ( col2 )
----

query I rowsort
SELECT col0 * - - col0 * col2 * - col1 FROM tab2
----
-12615680
-21858750
-2482068

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9336
SELECT DISTINCT + col2 DIV + + col0 AS col2, - CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9336
SELECT DISTINCT + col2 / + + col0 AS col2, - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
0
23
0
40
0
58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col0 BETWEEN NULL AND + - 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9339
SELECT + ( - col2 ) col0, + col0 DIV + - 6 col1 FROM tab2
----
-23
-7
-40
-10
-58
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9339
SELECT + ( - col2 ) col0, + col0 / + - 6 col1 FROM tab2
----
-23
-7
-40
-10
-58
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT + CAST( + 19 AS SIGNED ) * + col2 col0 FROM tab1 AS cor0
----
1121
1292
1824

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9340
SELECT + CAST ( + 19 AS INTEGER ) * + col2 col0 FROM tab1 AS cor0
----
1121
1292
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT - + SUM( + ( + col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9341
SELECT - + SUM ( + ( + col0 ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - 95 * col2 FROM tab1 AS cor0 WHERE NOT ( - + col1 ) IS NULL
----
-5605
-6460
-9120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT + + MIN( - col0 ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT + + MIN ( - col0 ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - 1 AS col1 FROM tab2 WHERE ( 32 ) > ( + 57 + + col1 )
----

query II rowsort
SELECT + + col0 AS col2, - col0 FROM tab0 cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 + + + col2 - - col2 * - + col2 AND - 54
----

skipif mysql # not compatible
query I rowsort label-9347
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 + + + col2 - - col2 * - + col2 AND - 54
----

query II rowsort
SELECT DISTINCT col1 AS col2, col2 * + col0 / - + col1 FROM tab2 AS cor0 WHERE + col2 + - col0 + + col1 * col2 + - ( - 5 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT COUNT( * ) + + 31 AS col0 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9349
SELECT COUNT ( * ) + + 31 AS col0 FROM tab2 AS cor0
----
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT DISTINCT - SUM( 86 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - SUM ( 86 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + COUNT( * ) + + ( COUNT( * ) ) * + - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9352
SELECT + COUNT ( * ) + + ( COUNT ( * ) ) * + - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT - col2 * - + col0 * + ( col0 ) FROM tab2
----
163840
326250
48668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( col0 ) col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT - col0 DIV + col2 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9355
SELECT - col0 / + col2 col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT + MAX( + - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9356
SELECT + MAX ( + - col2 ) AS col2 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 71 IN ( - + ( col1 ) / col2 + + col2 + 34 + + - 91 )
----

query I rowsort
SELECT + 50 * 39 AS col1 FROM tab0
----
1950
1950
1950

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - - ( - col1 ) col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col1 AND - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT DISTINCT + 96 DIV + col2 - - col0 AS col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT + 96 / + col2 - - col0 AS col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT + 6 + col2 AS col0 FROM tab2 cor0
----
29
46
64

query I rowsort
SELECT DISTINCT + 36 - - col2 + - 55 + + - col0 AS col0 FROM tab0
----
-17
-96
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT - SUM( DISTINCT col0 ) * COUNT( * ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT - SUM ( DISTINCT col0 ) * COUNT ( * ) AS col2 FROM tab0
----
-597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL - + COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT ALL ( + - 52 ) AS col0 FROM tab1 AS cor0
----
-52
-52
-52

query II rowsort
SELECT - col1 AS col0, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-9370
SELECT col0 DIV - + 91 AS col2, ( 11 ) AS col2 FROM tab0
----
-1
11
0
11
0
11

skipif mysql # not compatible
query II rowsort label-9370
SELECT col0 / - + 91 AS col2, ( 11 ) AS col2 FROM tab0
----
-1
11
0
11
0
11

query I rowsort
SELECT + 57 * - + 11 * - - col1 AS col2 FROM tab2
----
-31977
-42009
-48279

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - MAX( ALL + - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - MAX ( ALL + - col0 ) AS col0 FROM tab2
----
46

query II rowsort
SELECT ALL - col0 AS col0, col1 AS col1 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - 31 * + col2 FROM tab2
----
-1240
-1798
-713

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <= 45 * - col0 + + col0 * + + col0
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - col0 + - - 90 AS col2 FROM tab1 AS cor0
----
51
39
85
5
91
-1

query II rowsort
SELECT ALL + col2 + - col2 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT + ( + - col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT MAX( ALL - col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9379
SELECT MAX ( ALL - col2 ) col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL col0 + 81 FROM tab2 AS cor0
----
127
145
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL - COUNT( col0 ) + + 9 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - COUNT ( col0 ) + + 9 AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT + ( - ( MIN( - + col0 ) ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT + ( - ( MIN ( - + col0 ) ) ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT col2 * - 57 - - col0 FROM tab1
----
-3278
-3785
-5421

onlyif mysql # DIV for integer division: 
query II rowsort label-9385
SELECT ALL - col2 AS col0, col0 DIV - + col0 AS col0 FROM tab0
----
-10
-1
-47
-1
-99
-1

skipif mysql # not compatible
query II rowsort label-9385
SELECT ALL - col2 AS col0, col0 / - + col0 AS col0 FROM tab0
----
-10
-1
-47
-1
-99
-1

query III rowsort
SELECT * FROM tab1 WHERE + 84 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab1
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT col2 + col1 - + + ( + 59 ) DIV + 99 AS col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-9388
SELECT col2 + col1 - + + ( + 59 ) / + 99 AS col0 FROM tab1
----
110
115
64

query I rowsort
SELECT + 7 + col1 AS col1 FROM tab2 AS cor0
----
58
74
84

query I rowsort
SELECT - - 96 + + col1 FROM tab1 AS cor0
----
101
110
143

query I rowsort
SELECT - 13 + - 89 AS col0 FROM tab2 cor0
----
-102
-102
-102

query II rowsort
SELECT + - 42, + 21 AS col2 FROM tab0 cor0
----
-42
21
-42
21
-42
21

query I rowsort
SELECT - ( ( + 61 ) ) FROM tab0 AS cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - - col0 col0 FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 26 col1 FROM tab1
----
-1326
-2210
-2366

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - 1
----

query I rowsort
SELECT ALL col1 * - 38 + - - col2 AS col0 FROM tab1 AS cor0
----
-131
-1718
-436

query II rowsort
SELECT ALL - + col0 * col1, col2 - + - col1 AS col0 FROM tab2 AS cor0
----
-2346
74
-4928
117
-5025
125

query I rowsort
SELECT - - 21 * + col0 AS col1 FROM tab1 AS cor0
----
1071
1785
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-9400
SELECT - 38 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT - 38 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - 58 + + - col0 FROM tab2 AS cor0
----
-2714
-3776
-4425

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT DISTINCT + col1 DIV - col0 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + col1 / - col0 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT DISTINCT + COUNT( * ) col1, - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9403
SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) AS col1 FROM tab1
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * col1 col0 FROM tab0
----
-126
-486
-6

query I rowsort
SELECT DISTINCT + 21 * col0 * - col0 FROM tab0
----
-158949
-197589
-4725

query I rowsort
SELECT ALL + 78 AS col2 FROM tab0 WHERE 74 - + col0 + - ( + - 37 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT ALL COUNT( * ) DIV + SUM( - + ( + col0 ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL COUNT ( * ) / + SUM ( - + ( + col0 ) ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL CAST( + - SUM( + - 30 ) AS SIGNED ) AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL CAST ( + - SUM ( + - 30 ) AS INTEGER ) AS col0 FROM tab1
----
90

query I rowsort
SELECT + ( - 90 ) AS col2 FROM tab1 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9410
SELECT ALL + COUNT( * ) + 9, - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18
-81

skipif mysql # not compatible
query II rowsort label-9410
SELECT ALL + COUNT ( * ) + 9, - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18
-81

query II rowsort
SELECT DISTINCT col2 AS col2, + 63 FROM tab2
----
23
63
40
63
58
63

query I rowsort
SELECT 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT col2 / - 50 * - col2 FROM tab2 AS cor0 WHERE - col2 >= 65
----

query I rowsort
SELECT ALL - col0 + - + col0 * + col0 * ( - col2 ) * - col1 AS col2 FROM tab0 cor0
----
-1589577
-856590
-931588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL ( - ( COUNT( ALL - CAST( NULL AS SIGNED ) ) ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL ( - ( COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 24 + + 11 - - + col1 * col1 NOT BETWEEN col1 * - ( + + col2 ) / + 61 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9417
SELECT + 77 DIV + col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-9417
SELECT + 77 / + col1 FROM tab1
----
1
15
5

query II rowsort
SELECT + 66 * - col0 * + col2 AS col1, col0 FROM tab0 WHERE - 36 * + + col1 * - 17 * - col2 * 19 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT - SUM( - 73 ) AS col2 FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-9420
SELECT - SUM ( - 73 ) AS col2 FROM tab2 cor0
----
219

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 >= - col1
----

query II rowsort
SELECT DISTINCT + 79 AS col0, col1 AS col1 FROM tab1
----
79
14
79
47
79
5

query I rowsort
SELECT 12 * - 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c33ff88a08208c65dcffebadde589935

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9424
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, col1 * col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
query II rowsort label-9424
SELECT ALL + CAST ( NULL AS REAL ) AS col1, col1 * col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT - 14 * - COUNT( * ) AS col1 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - 14 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL - - 61 * - + 6 + - COUNT( + + 80 ) col2 FROM tab1 AS cor0
----
-369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9426
SELECT ALL - - 61 * - + 6 + - COUNT ( + + 80 ) col2 FROM tab1 AS cor0
----
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - ( + 99 ) * + - SUM( + col0 ) * + 29 FROM tab2 AS cor0
----
531135

skipif mysql # not compatible
query I rowsort label-9427
SELECT - ( + 99 ) * + - SUM ( + col0 ) * + 29 FROM tab2 AS cor0
----
531135

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT + - col0 DIV - + col2 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9428
SELECT + - col0 / - + col2 AS col0 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT DISTINCT + col0 AS col0, - 37 AS col2 FROM tab1 AS cor0
----
51
-37
85
-37
91
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 42 ) col1 FROM tab2
----
42
42
42

query I rowsort
SELECT ALL 30 * col1 FROM tab0
----
2430
30
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL - COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT - col0 ) * - - SUM( DISTINCT - + 48 ) col2 FROM tab0 AS cor0
----
13968

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9433
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT - col0 ) * - - SUM ( DISTINCT - + 48 ) col2 FROM tab0 AS cor0
----
13968

query I rowsort
SELECT DISTINCT 52 + + - 45 FROM tab0 cor0 WHERE NULL IS NULL
----
7

query I rowsort
SELECT DISTINCT + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
39

query I rowsort
SELECT DISTINCT - 72 * - - 44 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3168

query II rowsort
SELECT - ( 66 ) * + col2, - col1 * 61 AS col0 FROM tab0 AS cor0
----
-3102
-4941
-6534
-61
-660
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - COUNT( DISTINCT ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9438
SELECT - COUNT ( DISTINCT ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - + MAX( col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9439
SELECT - + MAX ( col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL - - 26 + + col1 AS col2 FROM tab2 AS cor0
----
103
77
93

query I rowsort
SELECT 13 - - col2 FROM tab1 AS cor0
----
109
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL - COUNT( DISTINCT 61 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - COUNT ( DISTINCT 61 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 WHERE + col1 - + col0 + + ( - col1 ) < NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-9444
SELECT * FROM tab1 WHERE ( col2 + - 89 ) > - col0 DIV - col2 * col2
----
51
14
96

skipif mysql # not compatible
query III rowsort label-9444
SELECT * FROM tab1 WHERE ( col2 + - 89 ) > - col0 / - col2 * col2
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 + - + col1 - - col0 col2 FROM tab1
----
-14
-50
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-9446
SELECT DISTINCT ( + col0 ) DIV col2 + - col2 AS col2, col2 AS col2 FROM tab0
----
-2
10
-47
47
-99
99

skipif mysql # not compatible
query II rowsort label-9446
SELECT DISTINCT ( + col0 ) / col2 + - col2 AS col2, col2 AS col2 FROM tab0
----
-2
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col1 / 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 66 ) AS col2 FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - ( - - MIN( - - col2 ) ) * + + COUNT( * ) + + - 64 AS col1 FROM tab1 AS cor0
----
-241

skipif mysql # not compatible
query I rowsort label-9449
SELECT - ( - - MIN ( - - col2 ) ) * + + COUNT ( * ) + + - 64 AS col1 FROM tab1 AS cor0
----
-241

query I rowsort
SELECT DISTINCT - 68 * - 75 FROM tab1 AS cor0
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT COUNT( * ) + COUNT( * ) + - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9451
SELECT COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT + col0 * + col0 - col1 DIV - 45 AS col1 FROM tab1 AS cor0
----
2601
7225
8282

skipif mysql # not compatible
query I rowsort label-9452
SELECT + col0 * + col0 - col1 / - 45 AS col1 FROM tab1 AS cor0
----
2601
7225
8282

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 0 * + + col0 * + 67 + - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9454
SELECT ALL - ( 5 ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-5
NULL
-5
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-9454
SELECT ALL - ( 5 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-5
NULL
-5
NULL
-5
NULL

query I rowsort
SELECT + col0 * + col2 + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col2 + col0 + - col1 * + + 36 FROM tab0
----
-2948
-38
-679

query I rowsort
SELECT ALL - - col0 * - + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 99 * - col1 NOT BETWEEN + col2 * + - 25 / 36 AND - col1 - ( - col0 )
----

query I rowsort
SELECT 27 + + 81 FROM tab0
----
108
108
108

query I rowsort
SELECT + ( 4 ) AS col2 FROM tab1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT SUM( + + 50 ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-9461
SELECT SUM ( + + 50 ) FROM tab1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ( + COUNT( 24 ) ) * - 16 AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-9462
SELECT ( + COUNT ( 24 ) ) * - 16 AS col0 FROM tab0
----
-48

query II rowsort
SELECT + 34 AS col2, - col0 - col1 * + 52 FROM tab1
----
34
-2535
34
-345
34
-779

query I rowsort
SELECT ALL 73 AS col1 FROM tab2 WHERE NOT + + col2 IS NULL
----
73
73
73

query I rowsort
SELECT ALL - + col2 * 34 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT - COUNT( * ) + + - 60 + + SUM( 47 ) col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT DISTINCT - COUNT ( * ) + + - 60 + + SUM ( 47 ) col2 FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL - col2 * 74 + + + col1 + + col0 FROM tab2 cor0
----
-1605
-2819
-4150

query I rowsort
SELECT ( + 18 ) AS col1 FROM tab1
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - 98 + - COUNT( * ) * + COUNT( * ) + - MIN( + 60 ) FROM tab1
----
-167

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 98 + - COUNT ( * ) * + COUNT ( * ) + - MIN ( + 60 ) FROM tab1
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT DISTINCT + col1 * + col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + col1 * + col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * + 27 + + 34 + + - col2 FROM tab0
----
-38
2174
591

query I rowsort
SELECT + 31 + + - col0 * 10 FROM tab2
----
-429
-609
-719

query I rowsort
SELECT col2 * + + col0 * - col1 + - col0 * + col0 FROM tab2
----
-201216
-297075
-56074

query I rowsort
SELECT + col2 + + ( col2 ) AS col1 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 74 BETWEEN ( - 28 ) AND NULL
----
23
40
58

query I rowsort
SELECT + 65 AS col0 FROM tab0 AS cor0 WHERE col0 + - col0 NOT BETWEEN + col1 AND NULL
----
65
65
65

query I rowsort
SELECT DISTINCT - - col0 - col1 * + 99 AS col0 FROM tab1 AS cor0
----
-1335
-410
-4562

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL + MAX( ALL - 96 ) + - + COUNT( * ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + MAX ( ALL - 96 ) + - + COUNT ( * ) FROM tab1
----
-99

query I rowsort
SELECT ALL 25 AS col1 FROM tab0 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 - + col2 col2 FROM tab2
----
1
19
36

query I rowsort
SELECT + col1 FROM tab1 WHERE - + col2 NOT BETWEEN + + col2 AND NULL
----
14
47
5

query I rowsort
SELECT - col0 - - ( - 86 ) FROM tab1
----
-137
-171
-177

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 29 IN ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + col1 * - col2 AS col2 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT ALL col0 * - col2 + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-658
-860
-9504

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 69 + - col1 + 43 / - col1 >= + 31 + - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9489
SELECT ALL - CAST( - 90 AS SIGNED ) * + 5 AS col2, + 23 AS col2 FROM tab1 AS cor0
----
450
23
450
23
450
23

skipif mysql # not compatible
query II rowsort label-9489
SELECT ALL - CAST ( - 90 AS INTEGER ) * + 5 AS col2, + 23 AS col2 FROM tab1 AS cor0
----
450
23
450
23
450
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + SUM( DISTINCT + + 68 ) AS col0 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9490
SELECT + SUM ( DISTINCT + + 68 ) AS col0 FROM tab1 AS cor0
----
68

query II rowsort
SELECT DISTINCT + col0, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT MAX( ALL 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9492
SELECT MAX ( ALL 61 ) FROM tab2
----
61

query II rowsort
SELECT DISTINCT - 81 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-81
-59
-81
-68
-81
-96

query II rowsort
SELECT 13, col0 AS col2 FROM tab0 AS cor0
----
13
15
13
87
13
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( col0 / + col0 - - + col1 * - col0, - 78, + + col2 + + + 38 )
----

query I rowsort
SELECT - 56 * 98 + + + col0 FROM tab1 cor0
----
-5397
-5403
-5437

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT COUNT( * ) * + 48 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT COUNT ( * ) * + 48 FROM tab1 AS cor0
----
144

query I rowsort
SELECT col2 * + 54 AS col1 FROM tab0
----
2538
5346
540

query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9500
SELECT col1 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT col1 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9501
SELECT 58 * + CAST( NULL AS SIGNED ), + ( - + col2 ) AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-9501
SELECT 58 * + CAST ( NULL AS INTEGER ), + ( - + col2 ) AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT + 88 * - col1 + + col2 FROM tab0
----
-1838
-7081
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - MAX( ALL col1 ) + COUNT( * ) col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9503
SELECT - MAX ( ALL col1 ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9504
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9505
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - - col0 + + + ( col2 ) AS col1 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT DISTINCT + 29 * col1 * + 88 * - + col2 - + - 38 DIV - - col1 col1 FROM tab0 AS cor0
----
-252610
-535919
-9715464

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9508
SELECT DISTINCT + 29 * col1 * + 88 * - + col2 - + - 38 / - - col1 col1 FROM tab0 AS cor0
----
-252610
-535919
-9715464

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL - COUNT( * ) + COUNT( * ) + - + 75 AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - COUNT ( * ) + COUNT ( * ) + - + 75 AS col1 FROM tab0 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT ( - - col2 ) + + 21 FROM tab0 AS cor0
----
120
31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 35 NOT BETWEEN NULL AND 10
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 35 NOT BETWEEN NULL AND 10
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9513
SELECT + MAX( col1 ) DIV COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-9513
SELECT + MAX ( col1 ) / COUNT ( * ) FROM tab2
----
25

query I rowsort
SELECT DISTINCT 83 FROM tab1 AS cor0 WHERE NOT NULL <> + 24
----

query I rowsort
SELECT DISTINCT - 48 * + - 13 AS col0 FROM tab0 AS cor0
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT + 89 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT + 89 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9517
SELECT ALL COUNT( DISTINCT + + 92 ) DIV 81 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL COUNT ( DISTINCT + + 92 ) / 81 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT col2 + col1 BETWEEN NULL AND - col0 + + col1
----
3

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT col2 + col1 BETWEEN NULL AND - col0 + + col1
----
3

query I rowsort
SELECT col1 * - - col1 FROM tab1 WHERE NOT - col1 * - + col2 IS NULL
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9520
SELECT - col0 AS col1, + col1 + - col1 * CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-2295
-64
-4851
-75
-4958

skipif mysql # not compatible
query II rowsort label-9520
SELECT - col0 AS col1, + col1 + - col1 * CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-2295
-64
-4851
-75
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - MIN( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - MIN ( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 79 + - 11 AS col1 FROM tab0 AS cor0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 77 col2, 4 / + 8 col2 FROM tab0 WHERE NOT - col1 <= - col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT CAST( NULL AS SIGNED ) * col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9525
SELECT CAST ( NULL AS INTEGER ) * col0 col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 / + 42 + + + col2 AS col0, + 35 * 86 FROM tab0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE - + col0 / + col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT MAX( ALL + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9528
SELECT MAX ( ALL + + col1 ) FROM tab2
----
77

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 - - col0 AS col0 FROM tab2
----
23
92
40
128
58
150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - - + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) * COUNT( * ) + - 72 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) * COUNT ( * ) + - 72 FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + 76 FROM tab1
----
-14
76
-47
76
-5
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL - COUNT( ALL + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - COUNT ( ALL + col2 ) FROM tab1
----
-3

query I rowsort
SELECT ALL - + ( - col2 ) * - + 89 + - - 54 * - - col1 AS col0 FROM tab0 AS cor0
----
-8757
191
244

query I rowsort
SELECT DISTINCT - + 47 + + col0 FROM tab1 AS cor0
----
38
4
44

query I rowsort
SELECT ALL + col1 - + ( col2 ) AS col0 FROM tab0 cor0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67 + col1 - + + 58 * + col2 col2, 1 AS col1 FROM tab1 AS cor0
----
-3350
1
-3830
1
-5487
1

query I rowsort
SELECT - 27 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 + - 29 FROM tab2
----
17
35
46

query I rowsort
SELECT 46 * - col1 + ( - col2 ) FROM tab2
----
-2369
-3140
-3582

query II rowsort
SELECT ALL col1 + 68 AS col1, 60 AS col1 FROM tab1 cor0
----
115
60
73
60
82
60

query I rowsort
SELECT col1 * - 19 + - + col2 FROM tab0 cor0
----
-118
-1586
-409

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT ALL - - col1 DIV + col1 + 97 AS col0 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - - col1 / + col1 + 97 AS col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - 66 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL + ( MAX( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + ( MAX ( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - col2 col0, + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
100
21
2209
81
9801
1

query II rowsort
SELECT - col1 AS col2, 86 AS col0 FROM tab0
----
-1
86
-21
86
-81
86

query II rowsort
SELECT ALL col2 AS col2, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT ALL + col1 * ( - - col2 ) AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + 80 * col0 FROM tab2 AS cor0
----
3680
5120
6000

query I rowsort
SELECT + 63 * col1 AS col2 FROM tab1 AS cor0
----
2961
315
882

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT + MAX( - 6 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT + MAX ( - 6 ) FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT 87 + - col1 DIV + 19 FROM tab0
----
83
86
87

skipif mysql # not compatible
query I rowsort label-9553
SELECT 87 + - col1 / + 19 FROM tab0
----
83
86
87

query I rowsort
SELECT ALL + col2 * + + 90 - + col1 + - - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col2 * + + col0 AS col0, - col1 FROM tab2
----
1058
-51
2560
-77
4350
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9556
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( + 3 AS SIGNED ) + 17 + + col1 + - - col0 + - + ( + 30 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9556
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( + 3 AS INTEGER ) + 17 + + col1 + - - col0 + - + ( + 30 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL - MIN( - + col1 ) * - COUNT( * ) AS col1 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - MIN ( - + col1 ) * - COUNT ( * ) AS col1 FROM tab1
----
-141

query I rowsort
SELECT DISTINCT col1 + + 22 AS col0 FROM tab2 AS cor0
----
73
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT - - SUM( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT - - SUM ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT - - 97 * - + col1 AS col0 FROM tab2 cor0
----
-4947
-6499
-7469

query I rowsort
SELECT ALL col2 * + + col2 + 0 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9562
SELECT ALL - 57 * - col1 * - CAST( NULL AS DECIMAL ) * - col0 + 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - 57 * - col1 * - CAST ( NULL AS REAL ) * - col0 + 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + + 28 * + + SUM( ALL - 84 ) col0 FROM tab0 AS cor0
----
-7056

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9563
SELECT + + 28 * + + SUM ( ALL - 84 ) col0 FROM tab0 AS cor0
----
-7056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT COUNT( * ) DIV + 60 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT COUNT ( * ) / + 60 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 * - - 85 AS col1 FROM tab2
----
-1955
-3400
-4930

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT - 10 DIV + 70 + + - col2 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9566
SELECT - 10 / + 70 + + - col2 AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - + 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - COUNT( * ) + - 50 AS col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9568
SELECT - COUNT ( * ) + - 50 AS col0 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT DISTINCT - 69 DIV col0 + col1 AS col2 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - 69 / col0 + col1 AS col2 FROM tab1 AS cor0
----
13
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT ALL - 6 * + col1 - 19 * + 70 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - 6 * + col1 - 19 * + 70 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9572
SELECT ALL MAX( - 35 ) AS col1, CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-35
3

skipif mysql # not compatible
query II rowsort label-9572
SELECT ALL MAX ( - 35 ) AS col1, CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-35
3

query I rowsort
SELECT ALL - col0 * + col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT - ( - ( - COUNT( * ) ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9574
SELECT - ( - ( - COUNT ( * ) ) ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col1 * + 60 FROM tab2 AS cor0
----
3060
4020
4620

query I rowsort
SELECT DISTINCT - + 73 * - col1 FROM tab2 AS cor0
----
3723
4891
5621

query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - - col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT - - MIN( + + 18 ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
18
3

skipif mysql # not compatible
query II rowsort label-9579
SELECT - - MIN ( + + 18 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
18
3

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query II rowsort
SELECT ALL col2, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL - 55 + 43 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT + 97 DIV - 23 FROM tab1, tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + 97 / - 23 FROM tab1, tab2 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 98 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN + col2 * col1 * + col2 + - - 28 * + 51 AND - col0 * + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL - 20 * + COUNT( * ) AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - 20 * + COUNT ( * ) AS col1 FROM tab0
----
-60

query I rowsort
SELECT DISTINCT 65 * ( col1 ) FROM tab0 cor0
----
1365
5265
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 22 col1 FROM tab2
----
45
62
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT ALL 21 DIV 64 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL 21 / 64 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 > + col0 * 3
----

query I rowsort
SELECT DISTINCT + + 85 + + col0 FROM tab0 AS cor0
----
100
172
182

query I rowsort
SELECT - + col2 + + - col0 * 87 AS col2 FROM tab2 AS cor0
----
-4025
-5608
-6583

query II rowsort
SELECT DISTINCT + col0, 79 + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL + ( - col2 ) * - + 14 AS col0 FROM tab0
----
1386
140
658

query I rowsort
SELECT + 45 * + 49 FROM tab0
----
2205
2205
2205

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9597
SELECT ALL - 94 - - col0 + + col1 DIV 4 - + + col0 * col0 DIV - col2 FROM tab0
----
-55
754
98

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - 94 - - col0 + + col1 / 4 - + + col0 * col0 / - col2 FROM tab0
----
-55
754
98

query I rowsort
SELECT ALL 91 * - col2 * - col2 AS col0 FROM tab1
----
316771
420784
838656

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 79 * 87 AS col0 FROM tab1
----
-6873
-6873
-6873

query III rowsort
SELECT * FROM tab0 WHERE + + col1 * + 46 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col1 * + col0 - - - ( - col1 ) col1 FROM tab2 cor0
----
-107865
-315315
-376808

query I rowsort
SELECT ( + col2 ) * - col2 FROM tab0 AS cor0 WHERE - col1 - + 1 * + + col2 BETWEEN + 4 AND + + col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + 88 AS col2 FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT + 64 * + - COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9606
SELECT + 64 * + - COUNT ( * ) FROM tab1 AS cor0
----
-192

query II rowsort
SELECT 34, - 96 AS col0 FROM tab1 cor0
----
34
-96
34
-96
34
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT - - COUNT( ALL 56 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - - COUNT ( ALL 56 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col0 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT ALL - 61 * + - 87 AS col2 FROM tab2
----
5307
5307
5307

query I rowsort
SELECT ALL + 28 * - 19 AS col1 FROM tab1
----
-532
-532
-532

query II rowsort
SELECT + 24 AS col0, + col1 + 15 FROM tab2
----
24
66
24
82
24
92

query I rowsort
SELECT + 46 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
46
46

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + 45 + col1 + - - col2 / + 8 + - col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9615
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 29 AS col0 FROM tab0
----
NULL
-29
NULL
-29
NULL
-29

skipif mysql # not compatible
query II rowsort label-9615
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 29 AS col0 FROM tab0
----
NULL
-29
NULL
-29
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL COUNT( ALL 31 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL COUNT ( ALL 31 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col1 AS col2, 83 AS col0 FROM tab1
----
14
83
47
83
5
83

query II rowsort
SELECT ALL - 25 + + 69, + ( - col1 ) AS col2 FROM tab1 AS cor0
----
44
-14
44
-47
44
-5

query I rowsort
SELECT ALL - + 37 AS col2 FROM tab0 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND + + col2
----

query I rowsort
SELECT + - col2 * - col0 + - 66 FROM tab1 WHERE - + col0 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT 99 * + col0 - 61 >= + 42
----

query I rowsort
SELECT - + ( - + 86 ) FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - ( + 22 ) + - 11 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - col0 + col1 - + - 73 * + col2 AS col1 FROM tab1 AS cor0
----
4227
4920
6971

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 16 BETWEEN + 41 + + ( - - 89 ) AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 56 * - col1 col2 FROM tab0 AS cor0
----
1263
153
4551

query I rowsort
SELECT DISTINCT - col1 * col2 * col1 AS col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT ALL 22 * + + col2 FROM tab0
----
1034
2178
220

query I rowsort
SELECT col2 * - - col2 + + - 91 * - - col0 * col0 AS col2 FROM tab0
----
-18266
-688679
-846418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT DISTINCT - 71 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT - 71 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) >= + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - - 39 * + col2 * 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT 76 + - + COUNT( * ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT 76 + - + COUNT ( * ) FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + COUNT( * ) * COUNT( * ) + 47 AS col1 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-9634
SELECT + COUNT ( * ) * COUNT ( * ) + 47 AS col1 FROM tab0
----
56

query II rowsort
SELECT ALL 13 * - 92 + - col2, 17 + - - col0 AS col1 FROM tab2 AS cor0
----
-1219
63
-1236
81
-1254
92

query I rowsort
SELECT + ( + 76 ) FROM tab1 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9637
SELECT + col1 * col0 * 35 DIV col2 DIV + ( - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-60
-73
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT + col1 * col0 * 35 / col2 / + ( - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-60
-73
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9638
SELECT ALL - CAST( 30 AS SIGNED ) + - + col0 AS col1, - col1 FROM tab1 cor0
----
-115
-5
-121
-47
-81
-14

skipif mysql # not compatible
query II rowsort label-9638
SELECT ALL - CAST ( 30 AS INTEGER ) + - + col0 AS col1, - col1 FROM tab1 cor0
----
-115
-5
-121
-47
-81
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT + - COUNT( DISTINCT ( - - 67 ) ) * + - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + - COUNT ( DISTINCT ( - - 67 ) ) * + - COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9640
SELECT + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL - ( - COUNT( * ) ) * - 36 - 97 FROM tab2
----
-205

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - ( - COUNT ( * ) ) * - 36 - 97 FROM tab2
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE ( + 16 ) IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 WHERE NOT NULL IN ( 6 )
----

query I rowsort
SELECT DISTINCT + ( 61 ) + col1 FROM tab2
----
112
128
138

query I rowsort
SELECT - col0 * 21 + col2 AS col1 FROM tab0
----
-1817
-1938
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - COUNT( * ) * 89 + 52 AS col2 FROM tab1
----
-215

skipif mysql # not compatible
query I rowsort label-9648
SELECT - COUNT ( * ) * 89 + 52 AS col2 FROM tab1
----
-215

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9649
SELECT ALL * FROM tab2 WHERE NOT - ( + col2 ) + + col2 * - col0 > col0 * CAST( NULL AS DECIMAL ) - CAST( 93 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9649
SELECT ALL * FROM tab2 WHERE NOT - ( + col2 ) + + col2 * - col0 > col0 * CAST ( NULL AS REAL ) - CAST ( 93 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * - 27 FROM tab2 WHERE NOT ( - 87 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 80 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( - 73 * 61 ) AND ( col0 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 WHERE ( col1 ) = 89
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 20 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col1 + + 32 FROM tab2
----
109
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE - col0 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE - col0 + col2 IS NULL
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND 21 * + col0 + 93
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) = col0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT ALL + col0 + - col0 DIV col1 AS col2 FROM tab1
----
48
68
90

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL + col0 + - col0 / col1 AS col2 FROM tab1
----
48
68
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( 2 + + CAST( - col1 AS SIGNED ) ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( 2 + + CAST ( - col1 AS INTEGER ) ) AND ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col0 FROM tab0
----
4

query I rowsort
SELECT DISTINCT col1 * - 76 + col2 FROM tab2 AS cor0
----
-3853
-5034
-5812

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col2 * + col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 89 / - 31 + col0 * col1 ) AND ( col1 * - col2 )
----

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL 68 * MIN( col2 ) + - 32 AS col1 FROM tab2
----
1532

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL 68 * MIN ( col2 ) + - 32 AS col1 FROM tab2
----
1532

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
81

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
81

query I rowsort
SELECT ALL + 21 + col0 AS col0 FROM tab0
----
108
118
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT - ( + COUNT( col2 ) ) / + 15 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT - ( + COUNT ( col2 ) ) / + 15 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 61 <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT DISTINCT COUNT( * ) DIV 25 + + 62 * + 7 FROM tab0 AS cor0
----
434

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT COUNT ( * ) / 25 + + 62 * + 7 FROM tab0 AS cor0
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE - col0 BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9673
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 BETWEEN ( NULL ) AND NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT + - 42 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + - 42 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT COUNT( * ) * - MAX( - col0 * + col2 ) FROM tab0 AS cor0 WHERE + 41 + col2 IS NOT NULL
----
2115

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT COUNT ( * ) * - MAX ( - col0 * + col2 ) FROM tab0 AS cor0 WHERE + 41 + col2 IS NOT NULL
----
2115

query I rowsort
SELECT DISTINCT - 66 + - 96 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT - ( - col1 ) FROM tab0 cor0 WHERE NULL IN ( 44 - + 75 )
----

query I rowsort
SELECT DISTINCT - 51 + ( col0 ) FROM tab1 AS cor0
----
0
34
40

query I rowsort
SELECT ALL 86 - + - col0 + col2 * + 70 FROM tab2
----
1742
2950
4221

query I rowsort
SELECT 60 * - col0 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT + SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9682
SELECT + SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT 94 - + - 7 FROM tab2
----
101
101
101

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 > col0 * col0 + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT MAX( ALL + ( + 19 ) ) - 81 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT MAX ( ALL + ( + 19 ) ) - 81 FROM tab1
----
-62

query I rowsort
SELECT col0 * - col1 - 89 FROM tab1
----
-4366
-514
-803

query I rowsort
SELECT - 32 - + col2 AS col0 FROM tab0
----
-131
-42
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT - ( + col1 ) DIV + 77 - col2 FROM tab0
----
-10
-48
-99

skipif mysql # not compatible
query I rowsort label-9688
SELECT - ( + col1 ) / + 77 - col2 FROM tab0
----
-10
-48
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - ( 90 ) col2 FROM tab1 AS cor0 WHERE NOT 52 NOT BETWEEN NULL AND ( 72 )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + 51 * 16 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 / 85 <> col2 + + 27
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT + + 22 DIV - 79 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT + + 22 / - 79 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT DISTINCT - + col2 DIV ( + - 67 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - + col2 / ( + - 67 ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT MAX( ALL + 46 ) FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( 93 + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT MAX ( ALL + 46 ) FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( 93 + col0 ) AND NULL
----
NULL

query I rowsort
SELECT ALL col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT ALL col2 DIV + col1 + + + col2 - + col0 FROM tab1 AS cor0
----
-15
-22
51

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL col2 / + col1 + + + col2 - + col0 FROM tab1 AS cor0
----
-15
-22
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + ( + + MIN( ALL 28 ) ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9698
SELECT + ( + + MIN ( ALL 28 ) ) FROM tab1 AS cor0
----
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - col2 * - col0 + col2 )
----

query I rowsort
SELECT 30 * + + 4 + + 44 AS col2 FROM tab1 AS cor0
----
164
164
164

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= ( col1 ) OR NOT + col0 * col2 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + + col2 ) + - - col0 FROM tab1 AS cor0
----
144
147
159

query II rowsort
SELECT ALL - col1, 32 - col2 + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-51
-1049
-67
-4376
-77
-2568

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT + + col1 DIV + 71 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT + + col1 / + 71 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 9 * + 76 * + col0 + 72 * col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
34776
48384
56700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT - 38 DIV + COUNT( DISTINCT - - col1 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9706
SELECT - 38 / + COUNT ( DISTINCT - - col1 ) FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab2 WHERE NOT ( + col1 + - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE NOT ( + col1 + - col0 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * - - 87 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + + 59
----

query I rowsort
SELECT DISTINCT col0 + + ( - - 89 ) FROM tab1 AS cor0
----
140
174
180

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( + + col0 )
----

query I rowsort
SELECT ALL col0 + 60 * - + col0 + 76 * col0 AS col2 FROM tab2 cor0
----
1088
1275
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT - + CAST( NULL AS SIGNED ) + + 86 + - ( + - 65 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT - + CAST ( NULL AS INTEGER ) + + 86 + - ( + - 65 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT + 98 + - COUNT( * ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + 98 + - COUNT ( * ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL + 75 FROM tab1 AS cor0 WHERE ( + col0 ) NOT BETWEEN 67 AND NULL
----
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 59 = - 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL + MIN( ALL + - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL + MIN ( ALL + - col0 ) FROM tab0
----
-97

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 23 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 >= + 78
----

query I rowsort
SELECT + col1 - 98 FROM tab1 cor0
----
-51
-84
-93

query I rowsort
SELECT ALL - 18 + + ( 20 ) FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - 90 * + - col1 - + col2 * + + col2 FROM tab2 AS cor0
----
2666
4061
5330

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL + - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT COUNT( - col2 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT COUNT ( - col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 90 + col0 AS col2 FROM tab2 cor0
----
136
154
165

query I rowsort
SELECT DISTINCT - col2 * - col1 - + 47 - + col0 FROM tab0
----
-45
3745
76

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT + 49 * COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-9729
SELECT + 49 * COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT ALL col0 + + col0 AS col2 FROM tab1 WHERE NOT ( NOT col0 > + ( 53 ) )
----
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28 * + 79 col0, ( col1 ) FROM tab1
----
2212
14
2212
47
2212
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT - col2 * + - 0 DIV 84 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9732
SELECT - col2 * + - 0 / 84 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 82 AS col1 FROM tab1 WHERE NULL IS NULL
----
82
82
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9734
SELECT DISTINCT + MIN( DISTINCT + 84 ) AS col2, - CAST( NULL AS DECIMAL ) FROM tab0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-9734
SELECT DISTINCT + MIN ( DISTINCT + 84 ) AS col2, - CAST ( NULL AS REAL ) FROM tab0
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NOT col0 * col0 + - col2 + + col2 BETWEEN NULL AND ( 4 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NOT col0 * col0 + - col2 + + col2 BETWEEN NULL AND ( 4 ) )
----
0

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT - + 3 = col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 >= ( NULL )
----
0

query II rowsort
SELECT ALL - col1 AS col1, col1 * + 9 FROM tab2 cor0
----
-51
459
-67
603
-77
693

query I rowsort
SELECT + 86 + + 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cf22002891a88578dbc2596c0472ad61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9740
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( - 87 AS SIGNED ), 98 + + - col2 AS col0 FROM tab1 AS cor0
----
NULL
2
NULL
30
NULL
39

skipif mysql # not compatible
query II rowsort label-9740
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( - 87 AS INTEGER ), 98 + + - col2 AS col0 FROM tab1 AS cor0
----
NULL
2
NULL
30
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + + ( - 65 ) - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
-65

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + + ( - 65 ) - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9742
SELECT col1 DIV + CAST( - col1 AS SIGNED ) + - 14 AS col1 FROM tab2
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-9742
SELECT col1 / + CAST ( - col1 AS INTEGER ) + - 14 AS col1 FROM tab2
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-9743
SELECT 58 AS col2, col0 DIV 6 col1 FROM tab1
----
58
14
58
15
58
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9743
SELECT 58 AS col2, col0 / 6 col1 FROM tab1
----
58
14
58
15
58
8

query II rowsort
SELECT col2 AS col0, + col0 AS col2 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT - 20 DIV + col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9745
SELECT - 20 / + col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT + col0 + - + 71 AS col0 FROM tab2
----
-25
-7
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT - - 80 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - - 80 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - COUNT( * ) + - 19 AS col0 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - COUNT ( * ) + - 19 AS col0 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT 37 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT 37 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT ALL + 4 AS col0 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT MAX( - 47 ) + - - COUNT( * ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-9752
SELECT MAX ( - 47 ) + - - COUNT ( * ) FROM tab2
----
-44

query I rowsort
SELECT + 12 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NOT NULL ) ) OR NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NOT NULL ) ) OR NULL IS NULL
----
3

query II rowsort
SELECT ALL col1 + 61 AS col1, - col1 FROM tab2 AS cor0
----
112
-51
128
-67
138
-77

query I rowsort
SELECT ALL - 61 * col2 + + col0 FROM tab1 AS cor0
----
-3514
-4057
-5805

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9757
SELECT DISTINCT + + col1 + - col2 + + col0 + 31 * - + ( + - col2 ) + - CAST( NULL AS DECIMAL ) * col0 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9757
SELECT DISTINCT + + col1 + - col2 + + col0 + 31 * - + ( + - col2 ) + - CAST ( NULL AS REAL ) * col0 col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 28 * + ( col1 ) + + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT - - CAST( NULL AS SIGNED ) + - + col2 * ( + col2 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 - + col2 * 27
----

skipif mysql # not compatible
query I rowsort label-9759
SELECT - - CAST ( NULL AS INTEGER ) + - + col2 * ( + col2 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 - + col2 * 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 col0, + 88 * + - ( + 24 ) + 9 col0 FROM tab2 AS cor0
----
85
-2103
85
-2103
85
-2103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT + 55 AS col2 FROM tab2 WHERE NOT + col2 + - CAST( - + CAST( + col1 AS SIGNED ) AS SIGNED ) * + 9 >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9761
SELECT + 55 AS col2 FROM tab2 WHERE NOT + col2 + - CAST ( - + CAST ( + col1 AS INTEGER ) AS INTEGER ) * + 9 >= + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( col0 ) * + ( + - col1 ) ) <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT COUNT( * ) + 30 * - - 99 FROM tab2
----
2973

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT COUNT ( * ) + 30 * - - 99 FROM tab2
----
2973

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9764
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9764
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT - 9 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - col2 - - col0 NOT IN ( - ( - col2 ) * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9765
SELECT - 9 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - col2 - - col0 NOT IN ( - ( - col2 ) * - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9767
SELECT ALL + 22 + - 85 DIV - + MAX( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + 22 + - 85 / - + MAX ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ( + - 34 ) * + ( col0 ) * - + col0 + 39 AS col1 FROM tab1 AS cor0
----
245689
281593
88473

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < + col1
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < + col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT DISTINCT - COUNT( * ) * MAX( ALL - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT - COUNT ( * ) * MAX ( ALL - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-288

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT - SUM( - col2 ) DIV + + 19 AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-9772
SELECT - SUM ( - col2 ) / + + 19 AS col2 FROM tab1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * ( - ( - 87 ) ) col0 FROM tab0
----
4959
4959
4959

query I rowsort
SELECT DISTINCT + col1 * - - col2 * + col0 AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL + 81 FROM tab1 WHERE + col0 IS NOT NULL
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 83 + col1 col1 FROM tab1
----
-4892
-5597
-7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 41 col2 FROM tab2 AS cor0
----
64
81
99

query I rowsort
SELECT + col2 + col0 + - col0 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col1 - + col0 * + col1 FROM tab2 cor0
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT DISTINCT - 78 DIV + COUNT( * ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - 78 / + COUNT ( * ) FROM tab0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9781
SELECT * FROM tab2 WHERE + - col1 - 13 + + - col2 + + col2 * + ( 71 ) * + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9781
SELECT * FROM tab2 WHERE + - col1 - 13 + + - col2 + + col2 * + ( 71 ) * + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - + 72 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT - MAX( ALL - col1 ) DIV - 77 - + + 27 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9783
SELECT - MAX ( ALL - col1 ) / - 77 - + + 27 FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT + col2 - - 48 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9786
SELECT DISTINCT - 15, MIN( - 69 ) AS col0 FROM tab0 AS cor0
----
-15
-69

skipif mysql # not compatible
query II rowsort label-9786
SELECT DISTINCT - 15, MIN ( - 69 ) AS col0 FROM tab0 AS cor0
----
-15
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9787
SELECT - 16 AS col1, - MIN( + col0 ) + - ( MAX( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-16
-98

skipif mysql # not compatible
query II rowsort label-9787
SELECT - 16 AS col1, - MIN ( + col0 ) + - ( MAX ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-16
-98

query I rowsort
SELECT + col0 * - - col1 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 78 * - + 75 AS col0 FROM tab1 WHERE NOT ( - 23 + col2 ) IS NULL
----
-5850
-5850
-5850

query I rowsort
SELECT ( - 50 ) FROM tab1
----
-50
-50
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT - + COUNT( * ) DIV + 78 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9792
SELECT - + COUNT ( * ) / + 78 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * + 69 + - col0 FROM tab0
----
1020
5916
6596

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / + ( + 29 ) * + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * + col0 + - col2 + 42 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 78 * 73 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 28 + ( 50 ) FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT col1 * - - 16 AS col1 FROM tab0 cor0
----
1296
16
336

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9799
SELECT ALL + 77 DIV + CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + 77 / + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT - + COUNT( ALL + col0 ) + 47 AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - + COUNT ( ALL + col0 ) + 47 AS col0 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL + COUNT( - - col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9801
SELECT ALL + COUNT ( - - col2 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT COUNT( * ) DIV 44 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT COUNT ( * ) / 44 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( + col0 - + col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT COUNT( * ) AS col2 FROM tab1 WHERE - col0 + - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE - col0 + - + col2 IS NULL
----
0

query II rowsort
SELECT DISTINCT 16 AS col1, - 14 AS col1 FROM tab1
----
16
-14

query II rowsort
SELECT - 89, - 72 AS col1 FROM tab1
----
-89
-72
-89
-72
-89
-72

query I rowsort
SELECT ALL - 3 * 85 + - col0 AS col1 FROM tab1
----
-306
-340
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9808
SELECT + - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9809
SELECT + col1 + - + col0, + CAST( NULL AS SIGNED ) + + col2 - + 67 * - col0 * + col1 * + - col0 * + col1 + col1 + + - 24 * + + col2 / - col2 AS col1 FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-9809
SELECT + col1 + - + col0, + CAST ( NULL AS INTEGER ) + + col2 - + 67 * - col0 * + col1 * + - col0 * + col1 + col1 + + - 24 * + + col2 / - col2 AS col1 FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT 89 + - + ( CAST( + - 77 AS SIGNED ) ) AS col2 FROM tab2
----
166
166
166

skipif mysql # not compatible
query I rowsort label-9810
SELECT 89 + - + ( CAST ( + - 77 AS INTEGER ) ) AS col2 FROM tab2
----
166
166
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9811
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 78 * 2 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT SUM( 49 ) FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-9813
SELECT SUM ( 49 ) FROM tab0
----
147

query II rowsort
SELECT col1 * ( + col0 ) AS col1, - 37 FROM tab0
----
1215
-37
1827
-37
97
-37

query I rowsort
SELECT + ( 16 ) FROM tab0 WHERE NOT - + col2 IS NULL
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT ALL + 94 DIV + 92 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + 94 / + 92 AS col2 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 78 IN ( - 17, - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9818
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9818
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT - + col1 DIV + col1 + + + 18 AS col2 FROM tab0 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9819
SELECT - + col1 / + col1 + + + 18 AS col2 FROM tab0 cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 1 / col2 NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-9820
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 1 / col2 NOT BETWEEN NULL AND + col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9821
SELECT 75 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT 75 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + + 67 AS col1 FROM tab1
----
126
135
163

query II rowsort
SELECT ALL + col1 + - + 99 AS col2, - col1 FROM tab0 AS cor0
----
-18
-81
-78
-21
-98
-1

query I rowsort
SELECT DISTINCT - + col0 + - 59 - + col1 * + 18 * 11 FROM tab1 AS cor0
----
-1134
-2882
-9456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 - - + col0 col0 FROM tab1 AS cor0
----
41
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT + 37 AS col2 FROM tab2 AS cor0 WHERE - 75 * + 34 / + 39 - + CAST( NULL AS SIGNED ) + - col1 + - + col1 * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9826
SELECT + 37 AS col2 FROM tab2 AS cor0 WHERE - 75 * + 34 / + 39 - + CAST ( NULL AS INTEGER ) + - col1 + - + col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT + COUNT( - 68 ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT + COUNT ( - 68 ) - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE - 64 / - col0 IS NULL
----

query II rowsort
SELECT ALL - col0 AS col1, + 30 FROM tab2
----
-46
30
-64
30
-75
30

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - + col0
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT NULL <> + col0 * - - col1 / - col0 + col1
----

query I rowsort
SELECT col1 + - - 41 FROM tab1
----
46
55
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 30 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT COUNT( * ) + + 80 + + - COUNT( * ) + + 2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9835
SELECT COUNT ( * ) + + 80 + + - COUNT ( * ) + + 2 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + + COUNT( * ) + + 12 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9836
SELECT + + COUNT ( * ) + + 12 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + + 98 + - col2 FROM tab1 AS cor0
----
2
30
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT - - col2 * CAST( - col2 AS SIGNED ) - - - col1 AS col2 FROM tab0 AS cor0
----
-121
-2290
-9802

skipif mysql # not compatible
query I rowsort label-9838
SELECT - - col2 * CAST ( - col2 AS INTEGER ) - - - col1 AS col2 FROM tab0 AS cor0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT MAX( - + col1 ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT MAX ( - + col1 ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 19, ( col0 ) FROM tab1
----
19
51
19
85
19
91

query II rowsort
SELECT col0, 72 FROM tab1
----
51
72
85
72
91
72

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 98 NOT IN ( - 20 )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT + 54 DIV + 73 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT + 54 / + 73 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT 7 DIV - - 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT 7 / - - 84 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT + ( + CAST( + - 45 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-9846
SELECT + ( + CAST ( + - 45 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - 8 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-9848
SELECT + + 78, 30 AS col1, - COUNT( * ) col2 FROM tab0 AS cor0
----
78
30
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9848
SELECT + + 78, 30 AS col1, - COUNT ( * ) col2 FROM tab0 AS cor0
----
78
30
-3

query I rowsort
SELECT col1 * - col2 + col1 * - col0 * - ( + - col1 ) * 61 * + + col1 AS col0 FROM tab0 AS cor0
----
-486272322
-49148337
-6016

query I rowsort
SELECT ALL - col1 * - + col0 + col0 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL 54 * - COUNT( * ) - MIN( DISTINCT - ( col0 ) ) FROM tab2 AS cor0 WHERE + ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 54 * - COUNT ( * ) - MIN ( DISTINCT - ( col0 ) ) FROM tab2 AS cor0 WHERE + ( col2 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + col1 - 49 / + col2 - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL COUNT( 7 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL COUNT ( 7 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9854
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9854
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9855
SELECT CAST( 32 AS SIGNED ) * col2 AS col2, + ( - col0 ) AS col0 FROM tab2
----
1280
-64
1856
-75
736
-46

skipif mysql # not compatible
query II rowsort label-9855
SELECT CAST ( 32 AS INTEGER ) * col2 AS col2, + ( - col0 ) AS col0 FROM tab2
----
1280
-64
1856
-75
736
-46

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9857
SELECT DISTINCT - COUNT( * ) DIV + 39 + - COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - COUNT ( * ) / + 39 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col2 < NULL
----

query I rowsort
SELECT DISTINCT + 0 * + - 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 + + ( + - col1 ) AS col0 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9863
SELECT ALL 69 * + col1 + - + col2 AS col0, col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
-30
NULL
1439
NULL
5542
NULL

skipif mysql # not compatible
query II rowsort label-9863
SELECT ALL 69 * + col1 + - + col2 AS col0, col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
-30
NULL
1439
NULL
5542
NULL

query I rowsort
SELECT col2 + - + col2 * + - col1 + + 47 FROM tab2
----
1243
3167
3991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 8 ) col1 FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT + MAX( DISTINCT + col2 ) * - - ( 87 ) + - 37 AS col1 FROM tab2 AS cor0
----
5009

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT + MAX ( DISTINCT + col2 ) * - - ( 87 ) + - 37 AS col1 FROM tab2 AS cor0
----
5009

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + col0 <> - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 + - 95 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 + - 95 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT - - CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE ( NOT 54 + + 91 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9869
SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE ( NOT 54 + + 91 IS NULL )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + - + 31 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT 74 - - CAST( NULL AS SIGNED ) - - - col2 / + 46 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT 74 - - CAST ( NULL AS INTEGER ) - - - col2 / + 46 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT + - COUNT( * ) FROM tab1 WHERE NULL > - - col0
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT + - COUNT ( * ) FROM tab1 WHERE NULL > - - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT - col0 - - col2 - col2 * + col1 DIV - col1 FROM tab0
----
-67
101
79

skipif mysql # not compatible
query I rowsort label-9873
SELECT - col0 - - col2 - col2 * + col1 / - col1 FROM tab0
----
-67
101
79

query I rowsort
SELECT ALL + 63 FROM tab2 AS cor0 WHERE NOT - 21 NOT BETWEEN NULL AND - col2 * col1
----

query I rowsort
SELECT - - col0 * - 33 FROM tab1 cor0
----
-1683
-2805
-3003

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT ALL - + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - + CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * 99 FROM tab1 AS cor0
----
-5841
-6732
-9504

query I rowsort
SELECT ALL + 80 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL IN ( - 68, col1 * - + col0, - 50 * + col2 - - col0 - + col1 + + 68, + 78, - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > - - 30
----

query II rowsort
SELECT ALL - + col1 AS col2, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT DISTINCT + col2, col2 - col1 + - col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - MAX( DISTINCT - + col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9883
SELECT - MAX ( DISTINCT - + col0 ) AS col1 FROM tab2 cor0
----
46

query I rowsort
SELECT ALL + ( - 83 ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL ( 51 ) AS col0 FROM tab0
----
51
51
51

query I rowsort
SELECT 83 * - ( + + col2 ) FROM tab2
----
-1909
-3320
-4814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 46 col2, 53 FROM tab2
----
46
53
46
53
46
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9888
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 * - 40 / 17 + - CAST( NULL AS SIGNED ) + - col1 * - - col2, 17 )
----

skipif mysql # not compatible
query III rowsort label-9888
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 * - 40 / 17 + - CAST ( NULL AS INTEGER ) + - col1 * - - col2, 17 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT + CAST( NULL AS SIGNED ) * - col1 + - col2 + - ( - 8 ) + 14 * col0 + - 56 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT + CAST ( NULL AS INTEGER ) * - col1 + - col2 + - ( - 8 ) + 14 * col0 + - 56 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( - col0 ) AND 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT DISTINCT 90 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT 90 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT MAX( - col0 ) + - 97 col0 FROM tab2 AS cor0
----
-143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9892
SELECT DISTINCT MAX ( - col0 ) + - 97 col0 FROM tab2 AS cor0
----
-143

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 20 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL - 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-9894
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT 65 * - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - 39, 82, + col2 )
----

query I rowsort
SELECT - - col2 * col2 - + 44 FROM tab0 AS cor0
----
2165
56
9757

query I rowsort
SELECT ALL + col0 - col2 * - - col0 AS col0 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE - 9 = col2
----
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE - 9 = col2
----
0

query I rowsort
SELECT 74 + + + col0 FROM tab2
----
120
138
149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9900
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + 38 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + 38 IS NOT NULL
----

query I rowsort
SELECT + 17 + col0 AS col2 FROM tab0
----
104
114
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + COUNT( + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9902
SELECT + COUNT ( + col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL + - MAX( DISTINCT + 17 ) col2 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9903
SELECT ALL + - MAX ( DISTINCT + 17 ) col2 FROM tab0 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72
72
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + 82 * - col2 AS col1 FROM tab0 AS cor0
----
-17220
-312174
-8118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT CAST( - 60 AS SIGNED ) FROM tab1 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-9907
SELECT CAST ( - 60 AS INTEGER ) FROM tab1 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col0 FROM tab2 AS cor0
----
-64

query II rowsort
SELECT DISTINCT col0, col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
147
85
144
91
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 18 > - col1 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 18 > - col1 + - col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9911
SELECT + - col2 - + + ( + 38 ) FROM tab1 AS cor0 WHERE col1 * + - 83 + + col1 IS NULL AND NULL > CAST( NULL AS DECIMAL ) * + 87
----

skipif mysql # not compatible
query I rowsort label-9911
SELECT + - col2 - + + ( + 38 ) FROM tab1 AS cor0 WHERE col1 * + - 83 + + col1 IS NULL AND NULL > CAST ( NULL AS REAL ) * + 87
----

query I rowsort
SELECT ALL - - 60 FROM tab2 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL 71 * - MAX( ALL + + col1 ) FROM tab1
----
-3337

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL 71 * - MAX ( ALL + + col1 ) FROM tab1
----
-3337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT + col1 + + + CAST( - 30 AS SIGNED ) * 6 + - + ( + - 79 ) FROM tab2
----
-24
-34
-50

skipif mysql # not compatible
query I rowsort label-9914
SELECT + col1 + + + CAST ( - 30 AS INTEGER ) * 6 + - + ( + - 79 ) FROM tab2
----
-24
-34
-50

query I rowsort
SELECT 85 * 0 FROM tab1, tab2 AS cor0 WHERE NOT - 47 * + 35 IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL + COUNT( * ) + - 5 AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL + COUNT ( * ) + - 5 AS col1 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT MIN( - - col0 ) + MAX( - 5 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-9917
SELECT MIN ( - - col0 ) + MAX ( - 5 ) FROM tab2
----
41

query I rowsort
SELECT col2 + - 75 + + 83 AS col0 FROM tab1
----
104
67
76

query I rowsort
SELECT ALL + 46 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
46
46
46

query I rowsort
SELECT - 14 * + col2 + - - col2 FROM tab2 AS cor0
----
-299
-520
-754

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9921
SELECT DISTINCT col0 + - col1 * + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9921
SELECT DISTINCT col0 + - col1 * + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 91
----

query II rowsort
SELECT ALL col0 - col0 AS col0, - 97 FROM tab0
----
0
-97
0
-97
0
-97

query I rowsort
SELECT 1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + 80 ) AS col2 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9926
SELECT ALL COUNT( * ), COUNT( * ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9926
SELECT ALL COUNT ( * ), COUNT ( * ) col1 FROM tab0
----
3
3

query I rowsort
SELECT ALL 88 + 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 23f8878249837974086cc4c256b553c0

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT + SUM( DISTINCT 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9928
SELECT + SUM ( DISTINCT 23 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT + col2 + + CAST( col2 AS SIGNED ) + + col0 * + - ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + col0 AND NULL
----
-4909

skipif mysql # not compatible
query I rowsort label-9929
SELECT + col2 + + CAST ( col2 AS INTEGER ) + + col0 * + - ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + col0 AND NULL
----
-4909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT CAST( NULL AS SIGNED ) * col2 + - + 65 * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT CAST ( NULL AS INTEGER ) * col2 + - + 65 * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 56 AS col2 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT + 83 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
83
83
83

query III rowsort
SELECT * FROM tab1 WHERE - - col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9934
SELECT DISTINCT + ( - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT + ( - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 10 * col1 FROM tab2 WHERE NOT + ( + - col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT ALL MAX( ALL col1 ) AS col1, - COUNT( * ) FROM tab2
----
77
-3

skipif mysql # not compatible
query II rowsort label-9936
SELECT ALL MAX ( ALL col1 ) AS col1, - COUNT ( * ) FROM tab2
----
77
-3

query I rowsort
SELECT - col0 * + col1 * col2 AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT DISTINCT 99 * - MIN( DISTINCT - + 48 ) AS col0 FROM tab1
----
4752

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT 99 * - MIN ( DISTINCT - + 48 ) AS col0 FROM tab1
----
4752

query II rowsort
SELECT 57 + - - col0 + + ( col0 ), 15 AS col1 FROM tab2 AS cor0
----
149
15
185
15
207
15

query I rowsort
SELECT DISTINCT + col2 * - col1 + - ( - ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT ALL + - ( col2 ) * 33 + - CAST( + + col1 AS SIGNED ) + + col2 + + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1203
2427
271

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + - ( col2 ) * 33 + - CAST ( + + col1 AS INTEGER ) + + col2 + + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
1203
2427
271

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 35 * col1 - col2 NOT BETWEEN NULL AND + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT - COUNT( * ) + - 88 AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT - COUNT ( * ) + - 88 AS col1 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT - 55 - 15 * + ( + - 5 ) FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT 0 - - col2 AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9946
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + + col2 AND - col0
----

skipif mysql # not compatible
query III rowsort label-9946
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + + col2 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 30 col0 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + ( - - COUNT( * ) ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT + ( - - COUNT ( * ) ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col1 - - 58 AS col2 FROM tab0 AS cor0
----
139
59
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT DISTINCT - 15 + - + CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-5
32
84

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT - 15 + - + CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-5
32
84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, + col0 )
----

query I rowsort
SELECT + - 36 + - col2 + - col0 + + + col0 FROM tab2 AS cor0
----
-59
-76
-94

query I rowsort
SELECT ALL 80 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL NOT BETWEEN 57 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9955
SELECT DISTINCT 72 DIV - + COUNT( * ), MAX( DISTINCT + - col0 ) + - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
-24
-57

skipif mysql # not compatible
query II rowsort label-9955
SELECT DISTINCT 72 / - + COUNT ( * ), MAX ( DISTINCT + - col0 ) + - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
-24
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT - CAST( + SUM( DISTINCT - col1 ) AS SIGNED ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - CAST ( + SUM ( DISTINCT - col1 ) AS INTEGER ) AS col0 FROM tab0
----
103

query III rowsort
SELECT + col1 AS col0, - 17 AS col1, 65 + + 90 AS col0 FROM tab2
----
9 values hashing to 36a6f3ce8ee02d24ac3b7c86c3e53f87

query II rowsort
SELECT ALL + col0 * col2 - 1 AS col1, 41 FROM tab0 WHERE NOT + col1 + col2 IS NOT NULL
----

query I rowsort
SELECT col1 * + col0 * + 80 FROM tab2 AS cor0
----
187680
394240
402000

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT DISTINCT - ( - col2 ) DIV + col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT - ( - col2 ) / + col1 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT 11 FROM tab0 AS cor0 WHERE NOT + 11 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT DISTINCT - + 61 * 33 + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 59 <= + + 84
----
-2013

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT - + 61 * 33 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 59 <= + + 84
----
-2013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 92 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9963
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 92 col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - 31 + - 63 * + col2 + - + col1 AS col0 FROM tab1 cor0
----
-3691
-4300
-6031

query I rowsort
SELECT ALL + col2 + - ( 7 ) FROM tab0 AS cor0
----
3
40
92

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL >= col0 ) )
----

query I rowsort
SELECT DISTINCT - col2 * + col2 + + 98 FROM tab0 AS cor0
----
-2
-2111
-9703

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + COUNT( * ) + - ( + + 64 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + COUNT ( * ) + - ( + + 64 ) FROM tab2 AS cor0
----
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - + ( - col0 )
----

query II rowsort
SELECT + 55 AS col0, - col2 FROM tab1
----
55
-59
55
-68
55
-96

query I rowsort
SELECT DISTINCT ( + - col0 ) + + 52 + - col1 FROM tab1
----
-13
-38
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT - COUNT( ALL + + 13 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9972
SELECT - COUNT ( ALL + + 13 ) FROM tab0
----
-3

query I rowsort
SELECT col2 * + - col1 * - 54 AS col2 FROM tab0
----
11340
205578
5346

query I rowsort
SELECT DISTINCT + col1 + - - col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT + col2 + + 21 AS col1 FROM tab2 AS cor0
----
44
61
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 61 = + + ( - col2 ) * - 24 + + 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 54 col2 FROM tab1 AS cor0
----
-3186
-3672
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + + MIN( DISTINCT + 15 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9979
SELECT + + MIN ( DISTINCT + 15 ) AS col2 FROM tab0 AS cor0
----
15

query II rowsort
SELECT ALL - col1 * - col2, + col2 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - 91
----

query I rowsort
SELECT + col0 + - 8 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7
79
89

query I rowsort
SELECT DISTINCT + 13 * - + col1 FROM tab1
----
-182
-611
-65

query II rowsort
SELECT DISTINCT col2 * + col2 * - col1 AS col2, - col2 + col0 AS col2 FROM tab2
----
-123200
24
-225388
17
-26979
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT + col1 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) < col2
----

skipif mysql # not compatible
query I rowsort label-9984
SELECT + col1 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) < col2
----

query I rowsort
SELECT ALL col0 * 59 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT DISTINCT 55 * + col1 AS col1 FROM tab2
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 / 12 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 / 12 IS NOT NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT MAX( ALL col2 ) + + 26 AS col0 FROM tab0 cor0
----
125

skipif mysql # not compatible
query I rowsort label-9988
SELECT MAX ( ALL col2 ) + + 26 AS col0 FROM tab0 cor0
----
125

query I rowsort
SELECT - ( - col1 ) + - + col0 * col2 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT COUNT( col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT COUNT ( col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9991
SELECT ALL - 78 + + CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9991
SELECT ALL - 78 + + CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT ALL col0 + + + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL col0 + + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + 8 * - COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 8 * - COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT DISTINCT 38 DIV - col2 + - col0 FROM tab0 AS cor0
----
-15
-90
-97

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT 38 / - col2 + - col0 FROM tab0 AS cor0
----
-15
-90
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9995
SELECT + - 17, CAST( + - 88 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-17
-88
-17
-88
-17
-88

skipif mysql # not compatible
query II rowsort label-9995
SELECT + - 17, CAST ( + - 88 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-17
-88
-17
-88
-17
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT + 0 * 15 + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + 0 * 15 + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - 32 * col2 + + col2 FROM tab2 AS cor0
----
-1240
-1798
-713

